2025-04-09 11:37:25,529 - INFO - Domain Default found not creating 2025-04-09 11:37:25,702 - INFO - Project ctest-TestBasicPolicy-81657573 not found, creating it 2025-04-09 11:37:26,244 - INFO - Created Project:ctest-TestBasicPolicy-81657573, ID : 4ce69977-83a8-42a9-8442-bdcafc55bce2 2025-04-09 11:37:27,837 - INFO - ================================================================================ 2025-04-09 11:37:27,837 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-09 11:37:27,837 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2025-04-09 11:37:28,092 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-04-09 11:37:28,092 - INFO - Initial checks done. Running the testcase now 2025-04-09 11:37:28,092 - INFO - 2025-04-09 11:37:28,686 - DEBUG - Response for create_network : {'network': {'id': '2f171251-17df-4627-9b04-386663f845ac', 'name': 'ctest-vn-08832836', 'tenant_id': '4ce6997783a842a98442bdcafc55bce2', 'project_id': '4ce6997783a842a98442bdcafc55bce2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81657573', 'ctest-vn-08832836'], 'port_security_enabled': True, 'description': ''}} 2025-04-09 11:37:28,868 - DEBUG - Response for create_subnet : {'subnet': {'id': '8beacb33-c8d0-4034-b234-8c63a8b48a91', 'name': '', 'tenant_id': '4ce6997783a842a98442bdcafc55bce2', 'network_id': '2f171251-17df-4627-9b04-386663f845ac', 'ip_version': 4, 'cidr': '207.65.216.64/26', 'allocation_pools': [{'start': '207.65.216.66', 'end': '207.65.216.126'}], 'gateway_ip': '207.65.216.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '207.65.216.66', 'tags': [], 'project_id': '4ce6997783a842a98442bdcafc55bce2'}} 2025-04-09 11:37:28,893 - INFO - Created VN ctest-vn-08832836 2025-04-09 11:37:28,953 - DEBUG - VN ctest-vn-08832836 UUID is 2f171251-17df-4627-9b04-386663f845ac 2025-04-09 11:37:29,298 - DEBUG - Response for create_network : {'network': {'id': '1b0d2527-ce38-4076-b887-7beb5615ab4f', 'name': 'ctest-vn-95080394', 'tenant_id': '4ce6997783a842a98442bdcafc55bce2', 'project_id': '4ce6997783a842a98442bdcafc55bce2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81657573', 'ctest-vn-95080394'], 'port_security_enabled': True, 'description': ''}} 2025-04-09 11:37:29,516 - DEBUG - Response for create_subnet : {'subnet': {'id': '93245467-267d-4577-a72d-db297519601d', 'name': '', 'tenant_id': '4ce6997783a842a98442bdcafc55bce2', 'network_id': '1b0d2527-ce38-4076-b887-7beb5615ab4f', 'ip_version': 4, 'cidr': '19.236.42.192/26', 'allocation_pools': [{'start': '19.236.42.194', 'end': '19.236.42.254'}], 'gateway_ip': '19.236.42.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.236.42.194', 'tags': [], 'project_id': '4ce6997783a842a98442bdcafc55bce2'}} 2025-04-09 11:37:29,535 - INFO - Created VN ctest-vn-95080394 2025-04-09 11:37:29,589 - DEBUG - VN ctest-vn-95080394 UUID is 1b0d2527-ce38-4076-b887-7beb5615ab4f 2025-04-09 11:37:29,721 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-81657573:ctest-vn-08832836, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-81657573:ctest-vn-95080394, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2025-04-09 11:37:30,081 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2f171251-17df-4627-9b04-386663f845ac', 'name': 'ctest-vn-08832836', 'tenant_id': '4ce6997783a842a98442bdcafc55bce2', 'project_id': '4ce6997783a842a98442bdcafc55bce2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8beacb33-c8d0-4034-b234-8c63a8b48a91'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81657573', 'ctest-vn-08832836'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-81657573', 'ctest-policy-allow-all-90210249']], 'subnet_ipam': [{'subnet_cidr': '207.65.216.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-09 11:37:30,365 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1b0d2527-ce38-4076-b887-7beb5615ab4f', 'name': 'ctest-vn-95080394', 'tenant_id': '4ce6997783a842a98442bdcafc55bce2', 'project_id': '4ce6997783a842a98442bdcafc55bce2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['93245467-267d-4577-a72d-db297519601d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81657573', 'ctest-vn-95080394'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-81657573', 'ctest-policy-allow-all-90210249']], 'subnet_ipam': [{'subnet_cidr': '19.236.42.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-09 11:37:30,549 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-09 11:37:30,865 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-09 11:37:30,899 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a0e2c731-5fae-4fc9-867a-34a900af99d2 2025-04-09 11:37:30,916 - DEBUG - Requesting: http://10.0.0.38:8082/project/4ce69977-83a8-42a9-8442-bdcafc55bce2 2025-04-09 11:37:30,998 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2f171251-17df-4627-9b04-386663f845ac 2025-04-09 11:37:31,014 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2f171251-17df-4627-9b04-386663f845ac 2025-04-09 11:37:31,029 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d314f93a-2daf-4aea-bccf-4b8f4a100159 2025-04-09 11:37:31,039 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d314f93a-2daf-4aea-bccf-4b8f4a100159 2025-04-09 11:37:31,049 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/57e451a7-ea68-4d9e-865f-0cb4ff2d1332 2025-04-09 11:37:31,060 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-09 11:37:31,060 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2f171251-17df-4627-9b04-386663f845ac 2025-04-09 11:37:31,075 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d314f93a-2daf-4aea-bccf-4b8f4a100159 2025-04-09 11:37:31,095 - INFO - Verified VN network id 9 for VN 2f171251-17df-4627-9b04-386663f845ac 2025-04-09 11:37:31,095 - INFO - Verifications in API Server for VN ctest-vn-08832836 passed 2025-04-09 11:37:31,095 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2f171251-17df-4627-9b04-386663f845ac 2025-04-09 11:37:31,108 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d314f93a-2daf-4aea-bccf-4b8f4a100159 2025-04-09 11:37:31,118 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d314f93a-2daf-4aea-bccf-4b8f4a100159 2025-04-09 11:37:31,126 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/57e451a7-ea68-4d9e-865f-0cb4ff2d1332 2025-04-09 11:37:31,140 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-81657573:ctest-vn-08832836', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-81657573', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3393200983749117479', 'uuid-lslong': '11170114988200707500'}, 'enable': 'true', 'created': '2025-04-09T11:37:28', 'last-modified': '2025-04-09T11:37:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.096248'} 2025-04-09 11:37:31,147 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-09 11:37:31,147 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08832836 passed 2025-04-09 11:37:31,148 - DEBUG - ====Verifying policy data for ctest-vn-08832836 in API_Server ====== 2025-04-09 11:37:31,148 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-09 11:37:31,155 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a0e2c731-5fae-4fc9-867a-34a900af99d2 2025-04-09 11:37:31,171 - DEBUG - Requesting: http://10.0.0.38:8082/project/4ce69977-83a8-42a9-8442-bdcafc55bce2 2025-04-09 11:37:31,246 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2f171251-17df-4627-9b04-386663f845ac 2025-04-09 11:37:31,259 - DEBUG - ==>Verifying data for policy with id: b3035d4b-c89c-4283-81d9-01102bd51f93, fqn: ['default-domain', 'ctest-TestBasicPolicy-81657573', 'ctest-policy-allow-all-90210249'] 2025-04-09 11:37:31,259 - INFO - VN ctest-vn-08832836 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-09 11:37:31,259 - DEBUG - Verifying the vn in opserver 2025-04-09 11:37:31,259 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-81657573:ctest-vn-08832836 virtual network link through opserver 10.0.0.38 2025-04-09 11:37:31,259 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-04-09 11:37:31,556 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-04-09 11:37:31,672 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-81657573:ctest-vn-08832836', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-81657573:ctest-vn-08832836?flat'} 2025-04-09 11:37:31,672 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-81657573:ctest-vn-08832836 is found in opserver 2025-04-09 11:37:31,687 - DEBUG - Do not have enough data to verify VN in agent 2025-04-09 11:37:31,693 - DEBUG - VRF ids for VN ctest-vn-08832836: {} 2025-04-09 11:37:31,693 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-09 11:37:31,716 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a0e2c731-5fae-4fc9-867a-34a900af99d2 2025-04-09 11:37:31,762 - DEBUG - Requesting: http://10.0.0.38:8082/project/4ce69977-83a8-42a9-8442-bdcafc55bce2 2025-04-09 11:37:31,882 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1b0d2527-ce38-4076-b887-7beb5615ab4f 2025-04-09 11:37:31,934 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1b0d2527-ce38-4076-b887-7beb5615ab4f 2025-04-09 11:37:31,947 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47cdfba2-d0ea-4598-8fef-4995eb5bb567 2025-04-09 11:37:31,965 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47cdfba2-d0ea-4598-8fef-4995eb5bb567 2025-04-09 11:37:31,981 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/89ea7b8b-676e-4179-91fd-9d815f527344 2025-04-09 11:37:31,994 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-09 11:37:31,994 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1b0d2527-ce38-4076-b887-7beb5615ab4f 2025-04-09 11:37:32,010 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47cdfba2-d0ea-4598-8fef-4995eb5bb567 2025-04-09 11:37:32,054 - INFO - Verified VN network id 10 for VN 1b0d2527-ce38-4076-b887-7beb5615ab4f 2025-04-09 11:37:32,054 - INFO - Verifications in API Server for VN ctest-vn-95080394 passed 2025-04-09 11:37:32,055 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1b0d2527-ce38-4076-b887-7beb5615ab4f 2025-04-09 11:37:32,072 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47cdfba2-d0ea-4598-8fef-4995eb5bb567 2025-04-09 11:37:32,099 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47cdfba2-d0ea-4598-8fef-4995eb5bb567 2025-04-09 11:37:32,119 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/89ea7b8b-676e-4179-91fd-9d815f527344 2025-04-09 11:37:32,139 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-81657573:ctest-vn-95080394', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-81657573', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1949255066615038070', 'uuid-lslong': '13296732675526470479'}, 'enable': 'true', 'created': '2025-04-09T11:37:29', 'last-modified': '2025-04-09T11:37:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.811026'} 2025-04-09 11:37:32,147 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-09 11:37:32,147 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95080394 passed 2025-04-09 11:37:32,147 - DEBUG - ====Verifying policy data for ctest-vn-95080394 in API_Server ====== 2025-04-09 11:37:32,147 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-09 11:37:32,163 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a0e2c731-5fae-4fc9-867a-34a900af99d2 2025-04-09 11:37:32,254 - DEBUG - Requesting: http://10.0.0.38:8082/project/4ce69977-83a8-42a9-8442-bdcafc55bce2 2025-04-09 11:37:32,399 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1b0d2527-ce38-4076-b887-7beb5615ab4f 2025-04-09 11:37:32,415 - DEBUG - ==>Verifying data for policy with id: b3035d4b-c89c-4283-81d9-01102bd51f93, fqn: ['default-domain', 'ctest-TestBasicPolicy-81657573', 'ctest-policy-allow-all-90210249'] 2025-04-09 11:37:32,415 - INFO - VN ctest-vn-95080394 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-09 11:37:32,415 - DEBUG - Verifying the vn in opserver 2025-04-09 11:37:32,415 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-81657573:ctest-vn-95080394 virtual network link through opserver 10.0.0.38 2025-04-09 11:37:32,415 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-04-09 11:37:32,439 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-81657573:ctest-vn-95080394', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-81657573:ctest-vn-95080394?flat'} 2025-04-09 11:37:32,440 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-81657573:ctest-vn-95080394 is found in opserver 2025-04-09 11:37:32,454 - DEBUG - Do not have enough data to verify VN in agent 2025-04-09 11:37:32,463 - DEBUG - VRF ids for VN ctest-vn-95080394: {} 2025-04-09 11:37:32,575 - DEBUG - Services list from nova: [, , ] 2025-04-09 11:37:33,646 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3062-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3062-1) 2025-04-09 11:37:35,103 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3062-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3062-1) 2025-04-09 11:37:35,104 - INFO - Waiting for VM ctest-TestBasicPolicy-81657573-73654308 to be up.. 2025-04-09 11:37:35,191 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-09 11:37:40,279 - DEBUG - VM is in ACTIVE state now 2025-04-09 11:37:40,279 - INFO - VM name : ctest-TestBasicPolicy-81657573-73654308 2025-04-09 11:37:40,364 - DEBUG - VM ctest-TestBasicPolicy-81657573-73654308 ID is 9bfe4a0c-a088-4cc9-8944-87d2914f059c 2025-04-09 11:37:40,387 - DEBUG - VM ctest-TestBasicPolicy-81657573-73654308 launched on Node cn-jenkins-deploy-platform-ansible-os-3062-1 2025-04-09 11:37:40,477 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/9bfe4a0c-a088-4cc9-8944-87d2914f059c 2025-04-09 11:37:40,488 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/74ed80a8-67f8-412f-a5ac-46d732f5793a 2025-04-09 11:37:43,772 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1035ms') 2025-04-09 11:37:43,773 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-81657573-73654308 failed! 2025-04-09 11:37:43,829 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-81657573:ctest-vn-08832836 is 207.65.216.65 and allocation pool is NOT set 2025-04-09 11:37:45,894 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=9.32 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.05 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 2.045/5.681/9.317/3.636 ms') 2025-04-09 11:37:45,894 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-81657573-73654308 passed 2025-04-09 11:37:46,049 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 11:37:46,049 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-81657573-73654308, IP 207.65.216.67, Port 22 2025-04-09 11:37:46,219 - DEBUG - VM ctest-TestBasicPolicy-81657573-73654308 is ready for SSH connections 2025-04-09 11:37:46,219 - INFO - Waiting for VM ctest-TestBasicPolicy-81657573-22168912 to be up.. 2025-04-09 11:37:46,311 - DEBUG - VM is in ACTIVE state now 2025-04-09 11:37:46,311 - INFO - VM name : ctest-TestBasicPolicy-81657573-22168912 2025-04-09 11:37:46,401 - DEBUG - VM ctest-TestBasicPolicy-81657573-22168912 ID is 80f43097-4604-4de7-914e-a8c3f8f300bb 2025-04-09 11:37:46,401 - DEBUG - VM ctest-TestBasicPolicy-81657573-22168912 launched on Node cn-jenkins-deploy-platform-ansible-os-3062-1 2025-04-09 11:37:46,499 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/80f43097-4604-4de7-914e-a8c3f8f300bb 2025-04-09 11:37:46,512 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/d09d837b-41ed-4c31-be28-0caee1d30f3c 2025-04-09 11:37:47,769 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=4.12 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.718 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.718/2.421/4.124/1.703 ms') 2025-04-09 11:37:47,769 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-81657573-22168912 passed 2025-04-09 11:37:47,924 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 11:37:47,925 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-81657573-22168912, IP 19.236.42.195, Port 22 2025-04-09 11:37:48,085 - DEBUG - VM ctest-TestBasicPolicy-81657573-22168912 is ready for SSH connections 2025-04-09 11:37:48,085 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 11:37:48,085 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 19.236.42.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-04-09 11:37:48,085 - DEBUG - ping -s 56 -c 3 -W 1 19.236.42.195 2025-04-09 11:37:52,257 - DEBUG - PING 19.236.42.195 (19.236.42.195): 56 data bytes 64 bytes from 19.236.42.195: seq=0 ttl=63 time=4.199 ms 64 bytes from 19.236.42.195: seq=1 ttl=63 time=1.117 ms 64 bytes from 19.236.42.195: seq=2 ttl=63 time=1.710 ms --- 19.236.42.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.117/2.342/4.199 ms 2025-04-09 11:37:52,257 - INFO - Ping to IP 19.236.42.195 from VM ctest-TestBasicPolicy-81657573-73654308 passed 2025-04-09 11:37:52,444 - DEBUG - Policy Update Response {"network-policy": {"uuid": "b3035d4b-c89c-4283-81d9-01102bd51f93", "href": "http://10.0.0.38:8082/network-policy/b3035d4b-c89c-4283-81d9-01102bd51f93"}} 2025-04-09 11:37:52,444 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 11:37:52,445 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 19.236.42.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-04-09 11:37:52,445 - DEBUG - ping -s 56 -c 3 -W 1 19.236.42.195 2025-04-09 11:37:55,658 - DEBUG - PING 19.236.42.195 (19.236.42.195): 56 data bytes 64 bytes from 19.236.42.195: seq=0 ttl=63 time=1.724 ms --- 19.236.42.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.724/1.724/1.724 ms 2025-04-09 11:37:55,658 - WARNING - Ping to IP 19.236.42.195 from VM ctest-TestBasicPolicy-81657573-73654308 failed 2025-04-09 11:37:55,658 - INFO - Deleting VM ctest-TestBasicPolicy-81657573-22168912 2025-04-09 11:37:55,745 - INFO - Deleting VM ctest-TestBasicPolicy-81657573-73654308 2025-04-09 11:37:56,211 - INFO - Deleted policy ctest-policy-allow-all-90210249 2025-04-09 11:37:56,211 - INFO - Deleting VN ctest-vn-95080394 2025-04-09 11:37:56,248 - DEBUG - VN 1b0d2527-ce38-4076-b887-7beb5615ab4f still in use: Unable to complete operation on network 1b0d2527-ce38-4076-b887-7beb5615ab4f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f846a372-d281-4956-a79c-1c70b278dc72'] 2025-04-09 11:37:56,248 - WARNING - Deleting VN ctest-vn-95080394 failed..Will retry 2025-04-09 11:37:58,379 - DEBUG - Response for deleting network () 2025-04-09 11:37:58,379 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47cdfba2-d0ea-4598-8fef-4995eb5bb567 2025-04-09 11:37:58,387 - DEBUG - Response Code: 404 2025-04-09 11:37:58,387 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-09 11:37:58,395 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a0e2c731-5fae-4fc9-867a-34a900af99d2 2025-04-09 11:37:58,452 - DEBUG - Requesting: http://10.0.0.38:8082/project/4ce69977-83a8-42a9-8442-bdcafc55bce2 2025-04-09 11:37:58,527 - INFO - Validated that VN ctest-vn-95080394 is not found in API Server 2025-04-09 11:37:58,539 - DEBUG - VN ctest-vn-95080394 is not present in Agent 10.0.0.38 2025-04-09 11:37:58,539 - INFO - Validated that VN ctest-vn-95080394 is not in any agent 2025-04-09 11:37:58,561 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-95080394 info 2025-04-09 11:37:58,561 - INFO - Deleting VN ctest-vn-08832836 2025-04-09 11:37:58,690 - DEBUG - Response for deleting network () 2025-04-09 11:37:58,690 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d314f93a-2daf-4aea-bccf-4b8f4a100159 2025-04-09 11:37:58,696 - DEBUG - Response Code: 404 2025-04-09 11:37:58,696 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-09 11:37:58,703 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a0e2c731-5fae-4fc9-867a-34a900af99d2 2025-04-09 11:37:58,759 - DEBUG - Requesting: http://10.0.0.38:8082/project/4ce69977-83a8-42a9-8442-bdcafc55bce2 2025-04-09 11:37:58,834 - INFO - Validated that VN ctest-vn-08832836 is not found in API Server 2025-04-09 11:37:58,848 - DEBUG - VN ctest-vn-08832836 is not present in Agent 10.0.0.38 2025-04-09 11:37:58,848 - INFO - Validated that VN ctest-vn-08832836 is not in any agent 2025-04-09 11:37:58,867 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-08832836 info 2025-04-09 11:37:59,129 - DEBUG - No XMPP flaps were noticed during the test
2025-04-09 11:37:59,129 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:32]
2025-04-09 11:37:59,129 - INFO - -------------------------------------------------------------------------------- 2025-04-09 11:37:59,801 - INFO - Deleted project: ctest-TestBasicPolicy-81657573, ID : 4ce69977-83a8-42a9-8442-bdcafc55bce2