2025-04-09 07:45:02,111 - INFO - Domain Default found not creating 2025-04-09 07:45:02,284 - INFO - Project ctest-TestBasicPolicy-25321039 not found, creating it 2025-04-09 07:45:02,774 - INFO - Created Project:ctest-TestBasicPolicy-25321039, ID : 8b3ac79f-a68f-4882-a27d-6fdc13f951aa 2025-04-09 07:45:04,334 - INFO - ================================================================================ 2025-04-09 07:45:04,335 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-09 07:45:04,335 - 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 07:45:04,617 - DEBUG - Nothing to compare xmpp stats {'10.0.0.52': {'10.20.0.20': '0'}} with 2025-04-09 07:45:04,617 - INFO - Initial checks done. Running the testcase now 2025-04-09 07:45:04,617 - INFO - 2025-04-09 07:45:05,167 - DEBUG - Response for create_network : {'network': {'id': '4e7f1aa7-d379-4c9a-bab6-9d79aec9aef3', 'name': 'ctest-vn-41830581', 'tenant_id': '8b3ac79fa68f4882a27d6fdc13f951aa', 'project_id': '8b3ac79fa68f4882a27d6fdc13f951aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25321039', 'ctest-vn-41830581'], 'port_security_enabled': True, 'description': ''}} 2025-04-09 07:45:05,380 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bcdaab49-4bfd-4def-8cfe-5f4d2f6dca84', 'name': '', 'tenant_id': '8b3ac79fa68f4882a27d6fdc13f951aa', 'network_id': '4e7f1aa7-d379-4c9a-bab6-9d79aec9aef3', 'ip_version': 4, 'cidr': '97.7.92.192/26', 'allocation_pools': [{'start': '97.7.92.194', 'end': '97.7.92.254'}], 'gateway_ip': '97.7.92.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.7.92.194', 'tags': [], 'project_id': '8b3ac79fa68f4882a27d6fdc13f951aa'}} 2025-04-09 07:45:05,399 - INFO - Created VN ctest-vn-41830581 2025-04-09 07:45:05,452 - DEBUG - VN ctest-vn-41830581 UUID is 4e7f1aa7-d379-4c9a-bab6-9d79aec9aef3 2025-04-09 07:45:05,747 - DEBUG - Response for create_network : {'network': {'id': '8bebda1e-3a1d-4220-b94d-235ea0066639', 'name': 'ctest-vn-16137812', 'tenant_id': '8b3ac79fa68f4882a27d6fdc13f951aa', 'project_id': '8b3ac79fa68f4882a27d6fdc13f951aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25321039', 'ctest-vn-16137812'], 'port_security_enabled': True, 'description': ''}} 2025-04-09 07:45:05,938 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c3e13e5e-e024-4dfa-a184-324edb7ece37', 'name': '', 'tenant_id': '8b3ac79fa68f4882a27d6fdc13f951aa', 'network_id': '8bebda1e-3a1d-4220-b94d-235ea0066639', 'ip_version': 4, 'cidr': '60.11.203.128/26', 'allocation_pools': [{'start': '60.11.203.130', 'end': '60.11.203.190'}], 'gateway_ip': '60.11.203.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.11.203.130', 'tags': [], 'project_id': '8b3ac79fa68f4882a27d6fdc13f951aa'}} 2025-04-09 07:45:05,958 - INFO - Created VN ctest-vn-16137812 2025-04-09 07:45:06,008 - DEBUG - VN ctest-vn-16137812 UUID is 8bebda1e-3a1d-4220-b94d-235ea0066639 2025-04-09 07:45:06,147 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-25321039:ctest-vn-41830581, 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-25321039:ctest-vn-16137812, 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 07:45:06,496 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4e7f1aa7-d379-4c9a-bab6-9d79aec9aef3', 'name': 'ctest-vn-41830581', 'tenant_id': '8b3ac79fa68f4882a27d6fdc13f951aa', 'project_id': '8b3ac79fa68f4882a27d6fdc13f951aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bcdaab49-4bfd-4def-8cfe-5f4d2f6dca84'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25321039', 'ctest-vn-41830581'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25321039', 'ctest-policy-allow-all-06006257']], 'subnet_ipam': [{'subnet_cidr': '97.7.92.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-09 07:45:06,762 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8bebda1e-3a1d-4220-b94d-235ea0066639', 'name': 'ctest-vn-16137812', 'tenant_id': '8b3ac79fa68f4882a27d6fdc13f951aa', 'project_id': '8b3ac79fa68f4882a27d6fdc13f951aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c3e13e5e-e024-4dfa-a184-324edb7ece37'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25321039', 'ctest-vn-16137812'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25321039', 'ctest-policy-allow-all-06006257']], 'subnet_ipam': [{'subnet_cidr': '60.11.203.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-09 07:45:06,969 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2025-04-09 07:45:07,307 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2025-04-09 07:45:07,337 - DEBUG - Requesting: http://10.0.0.52:8082/domain/4aed1765-ad63-4c49-b45e-d6877c8c66a9 2025-04-09 07:45:07,354 - DEBUG - Requesting: http://10.0.0.52:8082/project/8b3ac79f-a68f-4882-a27d-6fdc13f951aa 2025-04-09 07:45:07,429 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/4e7f1aa7-d379-4c9a-bab6-9d79aec9aef3 2025-04-09 07:45:07,441 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/4e7f1aa7-d379-4c9a-bab6-9d79aec9aef3 2025-04-09 07:45:07,452 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/f65ad0a4-b857-4921-8d3e-f37c83b90b44 2025-04-09 07:45:07,461 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/f65ad0a4-b857-4921-8d3e-f37c83b90b44 2025-04-09 07:45:07,468 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/447e4b46-f81e-4b65-bf73-3997bdbbefd8 2025-04-09 07:45:07,475 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-09 07:45:07,476 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/4e7f1aa7-d379-4c9a-bab6-9d79aec9aef3 2025-04-09 07:45:07,488 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/f65ad0a4-b857-4921-8d3e-f37c83b90b44 2025-04-09 07:45:07,509 - INFO - Verified VN network id 7 for VN 4e7f1aa7-d379-4c9a-bab6-9d79aec9aef3 2025-04-09 07:45:07,509 - INFO - Verifications in API Server for VN ctest-vn-41830581 passed 2025-04-09 07:45:07,509 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/4e7f1aa7-d379-4c9a-bab6-9d79aec9aef3 2025-04-09 07:45:07,520 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/f65ad0a4-b857-4921-8d3e-f37c83b90b44 2025-04-09 07:45:07,529 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/f65ad0a4-b857-4921-8d3e-f37c83b90b44 2025-04-09 07:45:07,540 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/447e4b46-f81e-4b65-bf73-3997bdbbefd8 2025-04-09 07:45:07,553 - DEBUG - Control-node 10.0.0.52 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25321039:ctest-vn-41830581', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25321039', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5656268965110434970', 'uuid-lslong': '13454114082764992243'}, 'enable': 'true', 'created': '2025-04-09T07:45:05', 'last-modified': '2025-04-09T07:45:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.085233'} 2025-04-09 07:45:07,561 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-09 07:45:07,561 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41830581 passed 2025-04-09 07:45:07,562 - DEBUG - ====Verifying policy data for ctest-vn-41830581 in API_Server ====== 2025-04-09 07:45:07,562 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2025-04-09 07:45:07,570 - DEBUG - Requesting: http://10.0.0.52:8082/domain/4aed1765-ad63-4c49-b45e-d6877c8c66a9 2025-04-09 07:45:07,586 - DEBUG - Requesting: http://10.0.0.52:8082/project/8b3ac79f-a68f-4882-a27d-6fdc13f951aa 2025-04-09 07:45:07,666 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/4e7f1aa7-d379-4c9a-bab6-9d79aec9aef3 2025-04-09 07:45:07,681 - DEBUG - ==>Verifying data for policy with id: fa9c76d7-b643-4b54-bf5d-6b1495f744e8, fqn: ['default-domain', 'ctest-TestBasicPolicy-25321039', 'ctest-policy-allow-all-06006257'] 2025-04-09 07:45:07,681 - INFO - VN ctest-vn-41830581 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-09 07:45:07,681 - DEBUG - Verifying the vn in opserver 2025-04-09 07:45:07,681 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25321039:ctest-vn-41830581 virtual network link through opserver 10.0.0.52 2025-04-09 07:45:07,681 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks 2025-04-09 07:45:07,978 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks 2025-04-09 07:45:08,055 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25321039:ctest-vn-41830581', 'href': 'http://10.0.0.52:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25321039:ctest-vn-41830581?flat'} 2025-04-09 07:45:08,055 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25321039:ctest-vn-41830581 is found in opserver 2025-04-09 07:45:08,067 - DEBUG - Do not have enough data to verify VN in agent 2025-04-09 07:45:08,074 - DEBUG - VRF ids for VN ctest-vn-41830581: {} 2025-04-09 07:45:08,074 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2025-04-09 07:45:08,083 - DEBUG - Requesting: http://10.0.0.52:8082/domain/4aed1765-ad63-4c49-b45e-d6877c8c66a9 2025-04-09 07:45:08,100 - DEBUG - Requesting: http://10.0.0.52:8082/project/8b3ac79f-a68f-4882-a27d-6fdc13f951aa 2025-04-09 07:45:08,184 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/8bebda1e-3a1d-4220-b94d-235ea0066639 2025-04-09 07:45:08,202 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/8bebda1e-3a1d-4220-b94d-235ea0066639 2025-04-09 07:45:08,215 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/b1cddcfc-cc45-4fbf-9f18-5ff07396efcf 2025-04-09 07:45:08,227 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/b1cddcfc-cc45-4fbf-9f18-5ff07396efcf 2025-04-09 07:45:08,239 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/3eb4e485-a8c8-4b63-b0d4-17b172a43945 2025-04-09 07:45:08,249 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-09 07:45:08,249 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/8bebda1e-3a1d-4220-b94d-235ea0066639 2025-04-09 07:45:08,262 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/b1cddcfc-cc45-4fbf-9f18-5ff07396efcf 2025-04-09 07:45:08,283 - INFO - Verified VN network id 8 for VN 8bebda1e-3a1d-4220-b94d-235ea0066639 2025-04-09 07:45:08,284 - INFO - Verifications in API Server for VN ctest-vn-16137812 passed 2025-04-09 07:45:08,284 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/8bebda1e-3a1d-4220-b94d-235ea0066639 2025-04-09 07:45:08,302 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/b1cddcfc-cc45-4fbf-9f18-5ff07396efcf 2025-04-09 07:45:08,312 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/b1cddcfc-cc45-4fbf-9f18-5ff07396efcf 2025-04-09 07:45:08,322 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/3eb4e485-a8c8-4b63-b0d4-17b172a43945 2025-04-09 07:45:08,339 - DEBUG - Control-node 10.0.0.52 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25321039:ctest-vn-16137812', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25321039', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10082392014157857312', 'uuid-lslong': '13352367359542060601'}, 'enable': 'true', 'created': '2025-04-09T07:45:05', 'last-modified': '2025-04-09T07:45:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.598680'} 2025-04-09 07:45:08,347 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-09 07:45:08,348 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16137812 passed 2025-04-09 07:45:08,348 - DEBUG - ====Verifying policy data for ctest-vn-16137812 in API_Server ====== 2025-04-09 07:45:08,348 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2025-04-09 07:45:08,356 - DEBUG - Requesting: http://10.0.0.52:8082/domain/4aed1765-ad63-4c49-b45e-d6877c8c66a9 2025-04-09 07:45:08,373 - DEBUG - Requesting: http://10.0.0.52:8082/project/8b3ac79f-a68f-4882-a27d-6fdc13f951aa 2025-04-09 07:45:08,458 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/8bebda1e-3a1d-4220-b94d-235ea0066639 2025-04-09 07:45:08,471 - DEBUG - ==>Verifying data for policy with id: fa9c76d7-b643-4b54-bf5d-6b1495f744e8, fqn: ['default-domain', 'ctest-TestBasicPolicy-25321039', 'ctest-policy-allow-all-06006257'] 2025-04-09 07:45:08,471 - INFO - VN ctest-vn-16137812 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-09 07:45:08,471 - DEBUG - Verifying the vn in opserver 2025-04-09 07:45:08,471 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25321039:ctest-vn-16137812 virtual network link through opserver 10.0.0.52 2025-04-09 07:45:08,471 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks 2025-04-09 07:45:08,483 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25321039:ctest-vn-16137812', 'href': 'http://10.0.0.52:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25321039:ctest-vn-16137812?flat'} 2025-04-09 07:45:08,483 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25321039:ctest-vn-16137812 is found in opserver 2025-04-09 07:45:08,496 - DEBUG - Do not have enough data to verify VN in agent 2025-04-09 07:45:08,502 - DEBUG - VRF ids for VN ctest-vn-16137812: {} 2025-04-09 07:45:08,563 - DEBUG - Services list from nova: [, , ] 2025-04-09 07:45:09,845 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3060-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3060-1) 2025-04-09 07:45:11,093 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3060-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3060-1) 2025-04-09 07:45:11,093 - INFO - Waiting for VM ctest-TestBasicPolicy-25321039-89010489 to be up.. 2025-04-09 07:45:11,187 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-09 07:45:16,272 - DEBUG - VM is in ACTIVE state now 2025-04-09 07:45:16,273 - INFO - VM name : ctest-TestBasicPolicy-25321039-89010489 2025-04-09 07:45:16,353 - DEBUG - VM ctest-TestBasicPolicy-25321039-89010489 ID is 7ae04464-8ce1-4a16-996d-46bb0f7a5aee 2025-04-09 07:45:16,376 - DEBUG - VM ctest-TestBasicPolicy-25321039-89010489 launched on Node cn-jenkins-deploy-platform-ansible-os-3060-1 2025-04-09 07:45:16,486 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine/7ae04464-8ce1-4a16-996d-46bb0f7a5aee 2025-04-09 07:45:16,498 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine-interface/90e696b4-fec4-4efe-b1f2-57c7d56e93ab 2025-04-09 07:45:19,771 - 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 1021ms') 2025-04-09 07:45:19,771 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-25321039-89010489 failed! 2025-04-09 07:45:19,828 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-25321039:ctest-vn-41830581 is 97.7.92.193 and allocation pool is NOT set 2025-04-09 07:45:21,887 - 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=3.70 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.50 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 2.498/3.100/3.702/0.602 ms') 2025-04-09 07:45:21,887 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-25321039-89010489 passed 2025-04-09 07:45:22,040 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 07:45:22,041 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-25321039-89010489, IP 97.7.92.195, Port 22 2025-04-09 07:45:22,196 - DEBUG - VM ctest-TestBasicPolicy-25321039-89010489 is ready for SSH connections 2025-04-09 07:45:22,196 - INFO - Waiting for VM ctest-TestBasicPolicy-25321039-13609900 to be up.. 2025-04-09 07:45:22,278 - DEBUG - VM is in ACTIVE state now 2025-04-09 07:45:22,279 - INFO - VM name : ctest-TestBasicPolicy-25321039-13609900 2025-04-09 07:45:22,358 - DEBUG - VM ctest-TestBasicPolicy-25321039-13609900 ID is fc19a370-757c-4656-a087-1c41668c788f 2025-04-09 07:45:22,359 - DEBUG - VM ctest-TestBasicPolicy-25321039-13609900 launched on Node cn-jenkins-deploy-platform-ansible-os-3060-1 2025-04-09 07:45:22,432 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine/fc19a370-757c-4656-a087-1c41668c788f 2025-04-09 07:45:22,441 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine-interface/cde512c6-26ed-409b-81d8-71692a69f1c3 2025-04-09 07:45:23,689 - 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.32 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.509 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.509/1.915/3.321/1.406 ms') 2025-04-09 07:45:23,689 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-25321039-13609900 passed 2025-04-09 07:45:23,844 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 07:45:23,845 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-25321039-13609900, IP 60.11.203.131, Port 22 2025-04-09 07:45:24,019 - DEBUG - VM ctest-TestBasicPolicy-25321039-13609900 is ready for SSH connections 2025-04-09 07:45:24,019 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 07:45:24,019 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 60.11.203.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.52, gateway password: c0ntrail123 2025-04-09 07:45:24,020 - DEBUG - ping -s 56 -c 3 -W 1 60.11.203.131 2025-04-09 07:45:27,758 - DEBUG - PING 60.11.203.131 (60.11.203.131): 56 data bytes 64 bytes from 60.11.203.131: seq=0 ttl=63 time=3.797 ms 64 bytes from 60.11.203.131: seq=1 ttl=63 time=0.847 ms 64 bytes from 60.11.203.131: seq=2 ttl=63 time=1.061 ms --- 60.11.203.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.847/1.901/3.797 ms 2025-04-09 07:45:27,759 - INFO - Ping to IP 60.11.203.131 from VM ctest-TestBasicPolicy-25321039-89010489 passed 2025-04-09 07:45:27,952 - DEBUG - Policy Update Response {"network-policy": {"uuid": "fa9c76d7-b643-4b54-bf5d-6b1495f744e8", "href": "http://10.0.0.52:8082/network-policy/fa9c76d7-b643-4b54-bf5d-6b1495f744e8"}} 2025-04-09 07:45:27,952 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 07:45:27,952 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 60.11.203.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.52, gateway password: c0ntrail123 2025-04-09 07:45:27,952 - DEBUG - ping -s 56 -c 3 -W 1 60.11.203.131 2025-04-09 07:45:31,183 - DEBUG - PING 60.11.203.131 (60.11.203.131): 56 data bytes 64 bytes from 60.11.203.131: seq=0 ttl=63 time=1.504 ms --- 60.11.203.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.504/1.504/1.504 ms 2025-04-09 07:45:31,183 - WARNING - Ping to IP 60.11.203.131 from VM ctest-TestBasicPolicy-25321039-89010489 failed 2025-04-09 07:45:31,183 - INFO - Deleting VM ctest-TestBasicPolicy-25321039-13609900 2025-04-09 07:45:31,253 - INFO - Deleting VM ctest-TestBasicPolicy-25321039-89010489 2025-04-09 07:45:31,659 - INFO - Deleted policy ctest-policy-allow-all-06006257 2025-04-09 07:45:31,659 - INFO - Deleting VN ctest-vn-16137812 2025-04-09 07:45:31,698 - DEBUG - VN 8bebda1e-3a1d-4220-b94d-235ea0066639 still in use: Unable to complete operation on network 8bebda1e-3a1d-4220-b94d-235ea0066639. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d37c9941-385d-4ff1-ba8e-52783e35c021'] 2025-04-09 07:45:31,698 - WARNING - Deleting VN ctest-vn-16137812 failed..Will retry 2025-04-09 07:45:33,822 - DEBUG - Response for deleting network () 2025-04-09 07:45:33,822 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/b1cddcfc-cc45-4fbf-9f18-5ff07396efcf 2025-04-09 07:45:33,829 - DEBUG - Response Code: 404 2025-04-09 07:45:33,829 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2025-04-09 07:45:33,843 - DEBUG - Requesting: http://10.0.0.52:8082/domain/4aed1765-ad63-4c49-b45e-d6877c8c66a9 2025-04-09 07:45:33,898 - DEBUG - Requesting: http://10.0.0.52:8082/project/8b3ac79f-a68f-4882-a27d-6fdc13f951aa 2025-04-09 07:45:33,975 - INFO - Validated that VN ctest-vn-16137812 is not found in API Server 2025-04-09 07:45:33,989 - DEBUG - VN ctest-vn-16137812 is not present in Agent 10.0.0.52 2025-04-09 07:45:33,989 - INFO - Validated that VN ctest-vn-16137812 is not in any agent 2025-04-09 07:45:34,006 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-16137812 info 2025-04-09 07:45:34,007 - INFO - Deleting VN ctest-vn-41830581 2025-04-09 07:45:34,123 - DEBUG - Response for deleting network () 2025-04-09 07:45:34,123 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/f65ad0a4-b857-4921-8d3e-f37c83b90b44 2025-04-09 07:45:34,130 - DEBUG - Response Code: 404 2025-04-09 07:45:34,130 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2025-04-09 07:45:34,140 - DEBUG - Requesting: http://10.0.0.52:8082/domain/4aed1765-ad63-4c49-b45e-d6877c8c66a9 2025-04-09 07:45:34,194 - DEBUG - Requesting: http://10.0.0.52:8082/project/8b3ac79f-a68f-4882-a27d-6fdc13f951aa 2025-04-09 07:45:34,270 - INFO - Validated that VN ctest-vn-41830581 is not found in API Server 2025-04-09 07:45:34,282 - DEBUG - VN ctest-vn-41830581 is not present in Agent 10.0.0.52 2025-04-09 07:45:34,282 - INFO - Validated that VN ctest-vn-41830581 is not in any agent 2025-04-09 07:45:34,300 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-41830581 info 2025-04-09 07:45:34,570 - DEBUG - No XMPP flaps were noticed during the test 2025-04-09 07:45:34,570 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2025-04-09 07:45:34,570 - INFO - -------------------------------------------------------------------------------- 2025-04-09 07:45:35,260 - INFO - Deleted project: ctest-TestBasicPolicy-25321039, ID : 8b3ac79f-a68f-4882-a27d-6fdc13f951aa