2024-08-27 17:47:30,346 - INFO - Domain Default found not creating 2024-08-27 17:47:30,519 - INFO - Project ctest-TestBasicPolicy-49447663 not found, creating it 2024-08-27 17:47:31,009 - INFO - Created Project:ctest-TestBasicPolicy-49447663, ID : b3a82e9c-c867-4b32-ace5-8959a2479ca7 2024-08-27 17:47:33,258 - INFO - ================================================================================ 2024-08-27 17:47:33,258 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-27 17:47:33,258 - 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 2024-08-27 17:47:33,516 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.22': '0'}} with 2024-08-27 17:47:33,516 - INFO - Initial checks done. Running the testcase now 2024-08-27 17:47:33,516 - INFO - 2024-08-27 17:47:34,069 - DEBUG - Response for create_network : {'network': {'id': '3c1e6986-9a8b-4f90-960c-99ede9e57e0c', 'name': 'ctest-vn-58200236', 'tenant_id': 'b3a82e9cc8674b32ace58959a2479ca7', 'project_id': 'b3a82e9cc8674b32ace58959a2479ca7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49447663', 'ctest-vn-58200236'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 17:47:34,271 - DEBUG - Response for create_subnet : {'subnet': {'id': '5509f146-d1d0-4a15-ba48-96d15e30b61d', 'name': '', 'tenant_id': 'b3a82e9cc8674b32ace58959a2479ca7', 'network_id': '3c1e6986-9a8b-4f90-960c-99ede9e57e0c', 'ip_version': 4, 'cidr': '74.103.67.64/26', 'allocation_pools': [{'start': '74.103.67.66', 'end': '74.103.67.126'}], 'gateway_ip': '74.103.67.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '74.103.67.66', 'tags': [], 'project_id': 'b3a82e9cc8674b32ace58959a2479ca7'}} 2024-08-27 17:47:34,294 - INFO - Created VN ctest-vn-58200236 2024-08-27 17:47:34,344 - DEBUG - VN ctest-vn-58200236 UUID is 3c1e6986-9a8b-4f90-960c-99ede9e57e0c 2024-08-27 17:47:34,672 - DEBUG - Response for create_network : {'network': {'id': '41000a5b-104f-4fe1-b556-544fe56ef763', 'name': 'ctest-vn-46144875', 'tenant_id': 'b3a82e9cc8674b32ace58959a2479ca7', 'project_id': 'b3a82e9cc8674b32ace58959a2479ca7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49447663', 'ctest-vn-46144875'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 17:47:34,859 - DEBUG - Response for create_subnet : {'subnet': {'id': '74f865fc-96e5-4e50-be21-59e48a9fdcf5', 'name': '', 'tenant_id': 'b3a82e9cc8674b32ace58959a2479ca7', 'network_id': '41000a5b-104f-4fe1-b556-544fe56ef763', 'ip_version': 4, 'cidr': '189.147.162.0/26', 'allocation_pools': [{'start': '189.147.162.2', 'end': '189.147.162.62'}], 'gateway_ip': '189.147.162.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '189.147.162.2', 'tags': [], 'project_id': 'b3a82e9cc8674b32ace58959a2479ca7'}} 2024-08-27 17:47:34,878 - INFO - Created VN ctest-vn-46144875 2024-08-27 17:47:34,932 - DEBUG - VN ctest-vn-46144875 UUID is 41000a5b-104f-4fe1-b556-544fe56ef763 2024-08-27 17:47:35,050 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-49447663:ctest-vn-58200236, 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-49447663:ctest-vn-46144875, 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] 2024-08-27 17:47:35,355 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3c1e6986-9a8b-4f90-960c-99ede9e57e0c', 'name': 'ctest-vn-58200236', 'tenant_id': 'b3a82e9cc8674b32ace58959a2479ca7', 'project_id': 'b3a82e9cc8674b32ace58959a2479ca7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5509f146-d1d0-4a15-ba48-96d15e30b61d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49447663', 'ctest-vn-58200236'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49447663', 'ctest-policy-allow-all-00110796']], 'subnet_ipam': [{'subnet_cidr': '74.103.67.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-27 17:47:35,611 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '41000a5b-104f-4fe1-b556-544fe56ef763', 'name': 'ctest-vn-46144875', 'tenant_id': 'b3a82e9cc8674b32ace58959a2479ca7', 'project_id': 'b3a82e9cc8674b32ace58959a2479ca7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['74f865fc-96e5-4e50-be21-59e48a9fdcf5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49447663', 'ctest-vn-46144875'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49447663', 'ctest-policy-allow-all-00110796']], 'subnet_ipam': [{'subnet_cidr': '189.147.162.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-27 17:47:35,756 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2024-08-27 17:47:36,054 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2024-08-27 17:47:36,090 - DEBUG - Requesting: http://10.0.0.57:8082/domain/63d24a1a-71e9-49e9-b11a-1f253b04aa22 2024-08-27 17:47:36,106 - DEBUG - Requesting: http://10.0.0.57:8082/project/b3a82e9c-c867-4b32-ace5-8959a2479ca7 2024-08-27 17:47:36,186 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/3c1e6986-9a8b-4f90-960c-99ede9e57e0c 2024-08-27 17:47:36,196 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/3c1e6986-9a8b-4f90-960c-99ede9e57e0c 2024-08-27 17:47:36,206 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/71dfbe93-04c1-40de-9123-fb44978cb983 2024-08-27 17:47:36,214 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/71dfbe93-04c1-40de-9123-fb44978cb983 2024-08-27 17:47:36,221 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/568fae9d-1c2a-4e9b-887d-06817f12b10d 2024-08-27 17:47:36,227 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-27 17:47:36,227 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/3c1e6986-9a8b-4f90-960c-99ede9e57e0c 2024-08-27 17:47:36,235 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/71dfbe93-04c1-40de-9123-fb44978cb983 2024-08-27 17:47:36,249 - INFO - Verified VN network id 8 for VN 3c1e6986-9a8b-4f90-960c-99ede9e57e0c 2024-08-27 17:47:36,249 - INFO - Verifications in API Server for VN ctest-vn-58200236 passed 2024-08-27 17:47:36,249 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/3c1e6986-9a8b-4f90-960c-99ede9e57e0c 2024-08-27 17:47:36,261 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/71dfbe93-04c1-40de-9123-fb44978cb983 2024-08-27 17:47:36,270 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/71dfbe93-04c1-40de-9123-fb44978cb983 2024-08-27 17:47:36,278 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/568fae9d-1c2a-4e9b-887d-06817f12b10d 2024-08-27 17:47:36,293 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49447663:ctest-vn-58200236', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49447663', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4332015918416351120', 'uuid-lslong': '10812186052520148492'}, 'enable': 'true', 'created': '2024-08-27T17:47:34', 'last-modified': '2024-08-27T17:47:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.968121'} 2024-08-27 17:47:36,300 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-27 17:47:36,300 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58200236 passed 2024-08-27 17:47:36,300 - DEBUG - ====Verifying policy data for ctest-vn-58200236 in API_Server ====== 2024-08-27 17:47:36,300 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2024-08-27 17:47:36,308 - DEBUG - Requesting: http://10.0.0.57:8082/domain/63d24a1a-71e9-49e9-b11a-1f253b04aa22 2024-08-27 17:47:36,323 - DEBUG - Requesting: http://10.0.0.57:8082/project/b3a82e9c-c867-4b32-ace5-8959a2479ca7 2024-08-27 17:47:36,392 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/3c1e6986-9a8b-4f90-960c-99ede9e57e0c 2024-08-27 17:47:36,401 - DEBUG - ==>Verifying data for policy with id: 36006aa9-6d86-45d7-a443-dc7cad1fa71f, fqn: ['default-domain', 'ctest-TestBasicPolicy-49447663', 'ctest-policy-allow-all-00110796'] 2024-08-27 17:47:36,402 - INFO - VN ctest-vn-58200236 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-27 17:47:36,402 - DEBUG - Verifying the vn in opserver 2024-08-27 17:47:36,402 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49447663:ctest-vn-58200236 virtual network link through opserver 10.0.0.57 2024-08-27 17:47:36,402 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2024-08-27 17:47:36,710 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2024-08-27 17:47:36,782 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49447663:ctest-vn-58200236', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49447663:ctest-vn-58200236?flat'} 2024-08-27 17:47:36,782 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49447663:ctest-vn-58200236 is found in opserver 2024-08-27 17:47:36,795 - DEBUG - Do not have enough data to verify VN in agent 2024-08-27 17:47:36,801 - DEBUG - VRF ids for VN ctest-vn-58200236: {} 2024-08-27 17:47:36,801 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2024-08-27 17:47:36,808 - DEBUG - Requesting: http://10.0.0.57:8082/domain/63d24a1a-71e9-49e9-b11a-1f253b04aa22 2024-08-27 17:47:36,822 - DEBUG - Requesting: http://10.0.0.57:8082/project/b3a82e9c-c867-4b32-ace5-8959a2479ca7 2024-08-27 17:47:36,900 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/41000a5b-104f-4fe1-b556-544fe56ef763 2024-08-27 17:47:36,913 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/41000a5b-104f-4fe1-b556-544fe56ef763 2024-08-27 17:47:36,926 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f50dd36a-2c3d-487e-b3d6-e7d25ee78fb5 2024-08-27 17:47:36,935 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f50dd36a-2c3d-487e-b3d6-e7d25ee78fb5 2024-08-27 17:47:36,944 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/84fa1224-0b6b-4eaa-a48b-57382bcbdcc4 2024-08-27 17:47:36,953 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-27 17:47:36,953 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/41000a5b-104f-4fe1-b556-544fe56ef763 2024-08-27 17:47:36,962 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f50dd36a-2c3d-487e-b3d6-e7d25ee78fb5 2024-08-27 17:47:36,978 - INFO - Verified VN network id 9 for VN 41000a5b-104f-4fe1-b556-544fe56ef763 2024-08-27 17:47:36,978 - INFO - Verifications in API Server for VN ctest-vn-46144875 passed 2024-08-27 17:47:36,978 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/41000a5b-104f-4fe1-b556-544fe56ef763 2024-08-27 17:47:36,988 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f50dd36a-2c3d-487e-b3d6-e7d25ee78fb5 2024-08-27 17:47:36,997 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f50dd36a-2c3d-487e-b3d6-e7d25ee78fb5 2024-08-27 17:47:37,005 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/84fa1224-0b6b-4eaa-a48b-57382bcbdcc4 2024-08-27 17:47:37,022 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49447663:ctest-vn-46144875', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49447663', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4683754998697250785', 'uuid-lslong': '13066724070990477155'}, 'enable': 'true', 'created': '2024-08-27T17:47:34', 'last-modified': '2024-08-27T17:47:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.440279'} 2024-08-27 17:47:37,030 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-27 17:47:37,030 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46144875 passed 2024-08-27 17:47:37,031 - DEBUG - ====Verifying policy data for ctest-vn-46144875 in API_Server ====== 2024-08-27 17:47:37,031 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2024-08-27 17:47:37,038 - DEBUG - Requesting: http://10.0.0.57:8082/domain/63d24a1a-71e9-49e9-b11a-1f253b04aa22 2024-08-27 17:47:37,052 - DEBUG - Requesting: http://10.0.0.57:8082/project/b3a82e9c-c867-4b32-ace5-8959a2479ca7 2024-08-27 17:47:37,127 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/41000a5b-104f-4fe1-b556-544fe56ef763 2024-08-27 17:47:37,136 - DEBUG - ==>Verifying data for policy with id: 36006aa9-6d86-45d7-a443-dc7cad1fa71f, fqn: ['default-domain', 'ctest-TestBasicPolicy-49447663', 'ctest-policy-allow-all-00110796'] 2024-08-27 17:47:37,136 - INFO - VN ctest-vn-46144875 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-27 17:47:37,137 - DEBUG - Verifying the vn in opserver 2024-08-27 17:47:37,137 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49447663:ctest-vn-46144875 virtual network link through opserver 10.0.0.57 2024-08-27 17:47:37,137 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2024-08-27 17:47:37,149 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49447663:ctest-vn-46144875', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49447663:ctest-vn-46144875?flat'} 2024-08-27 17:47:37,149 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49447663:ctest-vn-46144875 is found in opserver 2024-08-27 17:47:37,162 - DEBUG - Do not have enough data to verify VN in agent 2024-08-27 17:47:37,169 - DEBUG - VRF ids for VN ctest-vn-46144875: {} 2024-08-27 17:47:37,248 - DEBUG - Services list from nova: [, , ] 2024-08-27 17:47:38,494 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1802-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1802-1) 2024-08-27 17:47:39,743 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1802-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1802-1) 2024-08-27 17:47:39,743 - INFO - Waiting for VM ctest-TestBasicPolicy-49447663-43402725 to be up.. 2024-08-27 17:47:39,830 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-27 17:47:44,935 - DEBUG - VM is in ACTIVE state now 2024-08-27 17:47:44,935 - INFO - VM name : ctest-TestBasicPolicy-49447663-43402725 2024-08-27 17:47:45,022 - DEBUG - VM ctest-TestBasicPolicy-49447663-43402725 ID is a8a24bef-3c6e-40ea-a2e8-e32970b5bbe6 2024-08-27 17:47:45,041 - DEBUG - VM ctest-TestBasicPolicy-49447663-43402725 launched on Node cn-jenkins-deploy-platform-ansible-os-1802-1 2024-08-27 17:47:45,142 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/a8a24bef-3c6e-40ea-a2e8-e32970b5bbe6 2024-08-27 17:47:45,152 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/502f8bcb-0dc9-4fd6-a4ad-6ab34fb7cb49 2024-08-27 17:47:48,432 - 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 1030ms') 2024-08-27 17:47:48,432 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-49447663-43402725 failed! 2024-08-27 17:47:48,488 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-49447663:ctest-vn-58200236 is 74.103.67.65 and allocation pool is NOT set 2024-08-27 17:47:50,551 - 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=6.13 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.540 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 = 0.540/3.337/6.134/2.797 ms') 2024-08-27 17:47:50,551 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-49447663-43402725 passed 2024-08-27 17:47:50,704 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 17:47:50,704 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-49447663-43402725, IP 74.103.67.67, Port 22 2024-08-27 17:47:50,874 - DEBUG - VM ctest-TestBasicPolicy-49447663-43402725 is ready for SSH connections 2024-08-27 17:47:50,874 - INFO - Waiting for VM ctest-TestBasicPolicy-49447663-81724169 to be up.. 2024-08-27 17:47:50,979 - DEBUG - VM is in ACTIVE state now 2024-08-27 17:47:50,979 - INFO - VM name : ctest-TestBasicPolicy-49447663-81724169 2024-08-27 17:47:51,073 - DEBUG - VM ctest-TestBasicPolicy-49447663-81724169 ID is f8493a8a-2a08-4a69-b454-18004c633ac0 2024-08-27 17:47:51,073 - DEBUG - VM ctest-TestBasicPolicy-49447663-81724169 launched on Node cn-jenkins-deploy-platform-ansible-os-1802-1 2024-08-27 17:47:51,166 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/f8493a8a-2a08-4a69-b454-18004c633ac0 2024-08-27 17:47:51,177 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/8ae8fc37-a592-49d4-b30a-865a6bc8ae8d 2024-08-27 17:47:52,424 - 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=3.42 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.667 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.667/2.041/3.416/1.374 ms') 2024-08-27 17:47:52,424 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-49447663-81724169 passed 2024-08-27 17:47:52,576 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 17:47:52,576 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-49447663-81724169, IP 189.147.162.3, Port 22 2024-08-27 17:47:52,732 - DEBUG - VM ctest-TestBasicPolicy-49447663-81724169 is ready for SSH connections 2024-08-27 17:47:52,732 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 17:47:52,732 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 189.147.162.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2024-08-27 17:47:52,732 - DEBUG - ping -s 56 -c 3 -W 1 189.147.162.3 2024-08-27 17:47:56,728 - DEBUG - PING 189.147.162.3 (189.147.162.3): 56 data bytes 64 bytes from 189.147.162.3: seq=0 ttl=63 time=4.215 ms 64 bytes from 189.147.162.3: seq=1 ttl=63 time=0.862 ms 64 bytes from 189.147.162.3: seq=2 ttl=63 time=0.888 ms --- 189.147.162.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.862/1.988/4.215 ms 2024-08-27 17:47:56,728 - INFO - Ping to IP 189.147.162.3 from VM ctest-TestBasicPolicy-49447663-43402725 passed 2024-08-27 17:47:56,932 - DEBUG - Policy Update Response {"network-policy": {"uuid": "36006aa9-6d86-45d7-a443-dc7cad1fa71f", "href": "http://10.0.0.57:8082/network-policy/36006aa9-6d86-45d7-a443-dc7cad1fa71f"}} 2024-08-27 17:47:56,932 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 17:47:56,932 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 189.147.162.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2024-08-27 17:47:56,932 - DEBUG - ping -s 56 -c 3 -W 1 189.147.162.3 2024-08-27 17:48:00,154 - DEBUG - PING 189.147.162.3 (189.147.162.3): 56 data bytes 64 bytes from 189.147.162.3: seq=0 ttl=63 time=1.546 ms --- 189.147.162.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.546/1.546/1.546 ms 2024-08-27 17:48:00,154 - WARNING - Ping to IP 189.147.162.3 from VM ctest-TestBasicPolicy-49447663-43402725 failed 2024-08-27 17:48:00,154 - INFO - Deleting VM ctest-TestBasicPolicy-49447663-81724169 2024-08-27 17:48:00,227 - INFO - Deleting VM ctest-TestBasicPolicy-49447663-43402725 2024-08-27 17:48:00,632 - INFO - Deleted policy ctest-policy-allow-all-00110796 2024-08-27 17:48:00,632 - INFO - Deleting VN ctest-vn-46144875 2024-08-27 17:48:00,671 - DEBUG - VN 41000a5b-104f-4fe1-b556-544fe56ef763 still in use: Unable to complete operation on network 41000a5b-104f-4fe1-b556-544fe56ef763. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9e42dcf7-ef2f-4eb9-9ca6-c3f25ef2c11e'] 2024-08-27 17:48:00,671 - WARNING - Deleting VN ctest-vn-46144875 failed..Will retry 2024-08-27 17:48:02,791 - DEBUG - Response for deleting network () 2024-08-27 17:48:02,791 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f50dd36a-2c3d-487e-b3d6-e7d25ee78fb5 2024-08-27 17:48:02,796 - DEBUG - Response Code: 404 2024-08-27 17:48:02,796 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2024-08-27 17:48:02,803 - DEBUG - Requesting: http://10.0.0.57:8082/domain/63d24a1a-71e9-49e9-b11a-1f253b04aa22 2024-08-27 17:48:02,866 - DEBUG - Requesting: http://10.0.0.57:8082/project/b3a82e9c-c867-4b32-ace5-8959a2479ca7 2024-08-27 17:48:02,950 - INFO - Validated that VN ctest-vn-46144875 is not found in API Server 2024-08-27 17:48:02,965 - DEBUG - VN ctest-vn-46144875 is not present in Agent 10.0.0.57 2024-08-27 17:48:02,965 - INFO - Validated that VN ctest-vn-46144875 is not in any agent 2024-08-27 17:48:02,984 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-46144875 info 2024-08-27 17:48:02,984 - INFO - Deleting VN ctest-vn-58200236 2024-08-27 17:48:03,120 - DEBUG - Response for deleting network () 2024-08-27 17:48:03,120 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/71dfbe93-04c1-40de-9123-fb44978cb983 2024-08-27 17:48:03,131 - DEBUG - Response Code: 404 2024-08-27 17:48:03,131 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2024-08-27 17:48:03,139 - DEBUG - Requesting: http://10.0.0.57:8082/domain/63d24a1a-71e9-49e9-b11a-1f253b04aa22 2024-08-27 17:48:03,193 - DEBUG - Requesting: http://10.0.0.57:8082/project/b3a82e9c-c867-4b32-ace5-8959a2479ca7 2024-08-27 17:48:03,270 - INFO - Validated that VN ctest-vn-58200236 is not found in API Server 2024-08-27 17:48:03,282 - DEBUG - VN ctest-vn-58200236 is not present in Agent 10.0.0.57 2024-08-27 17:48:03,282 - INFO - Validated that VN ctest-vn-58200236 is not in any agent 2024-08-27 17:48:03,302 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-58200236 info 2024-08-27 17:48:03,570 - DEBUG - No XMPP flaps were noticed during the test 2024-08-27 17:48:03,570 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2024-08-27 17:48:03,570 - INFO - -------------------------------------------------------------------------------- 2024-08-27 17:48:04,322 - INFO - Deleted project: ctest-TestBasicPolicy-49447663, ID : b3a82e9c-c867-4b32-ace5-8959a2479ca7