2025-11-10 16:13:11,370 - INFO - Domain Default found not creating 2025-11-10 16:13:11,648 - INFO - Project ctest-TestBasicPolicy-30824854 not found, creating it 2025-11-10 16:13:12,361 - INFO - Created Project:ctest-TestBasicPolicy-30824854, ID : d9354fa9-ca18-46be-a2e5-dfd150fe1b9f 2025-11-10 16:13:14,490 - INFO - ================================================================================ 2025-11-10 16:13:14,490 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-11-10 16:13:14,491 - 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-11-10 16:13:14,795 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.254': '0'}} with 2025-11-10 16:13:14,796 - INFO - Initial checks done. Running the testcase now 2025-11-10 16:13:14,796 - INFO - 2025-11-10 16:13:15,556 - DEBUG - Response for create_network : {'network': {'id': 'bd369597-944c-4c7e-8d53-36c57e3cc008', 'name': 'ctest-vn-93788310', 'tenant_id': 'd9354fa9ca1846bea2e5dfd150fe1b9f', 'project_id': 'd9354fa9ca1846bea2e5dfd150fe1b9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30824854', 'ctest-vn-93788310'], 'port_security_enabled': True, 'description': ''}} 2025-11-10 16:13:15,777 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cb0e1304-16b6-4907-b8f1-811931647d3c', 'name': '', 'tenant_id': 'd9354fa9ca1846bea2e5dfd150fe1b9f', 'network_id': 'bd369597-944c-4c7e-8d53-36c57e3cc008', 'ip_version': 4, 'cidr': '5.218.246.128/26', 'allocation_pools': [{'start': '5.218.246.130', 'end': '5.218.246.190'}], 'gateway_ip': '5.218.246.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.218.246.130', 'tags': [], 'project_id': 'd9354fa9ca1846bea2e5dfd150fe1b9f'}} 2025-11-10 16:13:15,798 - INFO - Created VN ctest-vn-93788310 2025-11-10 16:13:15,850 - DEBUG - VN ctest-vn-93788310 UUID is bd369597-944c-4c7e-8d53-36c57e3cc008 2025-11-10 16:13:16,299 - DEBUG - Response for create_network : {'network': {'id': 'f8396c3f-7e41-4181-8cf2-6cf9148df1de', 'name': 'ctest-vn-81399785', 'tenant_id': 'd9354fa9ca1846bea2e5dfd150fe1b9f', 'project_id': 'd9354fa9ca1846bea2e5dfd150fe1b9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30824854', 'ctest-vn-81399785'], 'port_security_enabled': True, 'description': ''}} 2025-11-10 16:13:16,536 - DEBUG - Response for create_subnet : {'subnet': {'id': '7785d257-da8c-4b84-8364-8018fa246baa', 'name': '', 'tenant_id': 'd9354fa9ca1846bea2e5dfd150fe1b9f', 'network_id': 'f8396c3f-7e41-4181-8cf2-6cf9148df1de', 'ip_version': 4, 'cidr': '120.107.13.0/26', 'allocation_pools': [{'start': '120.107.13.2', 'end': '120.107.13.62'}], 'gateway_ip': '120.107.13.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.107.13.2', 'tags': [], 'project_id': 'd9354fa9ca1846bea2e5dfd150fe1b9f'}} 2025-11-10 16:13:16,564 - INFO - Created VN ctest-vn-81399785 2025-11-10 16:13:16,618 - DEBUG - VN ctest-vn-81399785 UUID is f8396c3f-7e41-4181-8cf2-6cf9148df1de 2025-11-10 16:13:16,742 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-30824854:ctest-vn-93788310, 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-30824854:ctest-vn-81399785, 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-11-10 16:13:17,112 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bd369597-944c-4c7e-8d53-36c57e3cc008', 'name': 'ctest-vn-93788310', 'tenant_id': 'd9354fa9ca1846bea2e5dfd150fe1b9f', 'project_id': 'd9354fa9ca1846bea2e5dfd150fe1b9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cb0e1304-16b6-4907-b8f1-811931647d3c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30824854', 'ctest-vn-93788310'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30824854', 'ctest-policy-allow-all-39428122']], 'subnet_ipam': [{'subnet_cidr': '5.218.246.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-10 16:13:17,385 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f8396c3f-7e41-4181-8cf2-6cf9148df1de', 'name': 'ctest-vn-81399785', 'tenant_id': 'd9354fa9ca1846bea2e5dfd150fe1b9f', 'project_id': 'd9354fa9ca1846bea2e5dfd150fe1b9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7785d257-da8c-4b84-8364-8018fa246baa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30824854', 'ctest-vn-81399785'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30824854', 'ctest-policy-allow-all-39428122']], 'subnet_ipam': [{'subnet_cidr': '120.107.13.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-10 16:13:17,574 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-11-10 16:13:17,875 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-11-10 16:13:17,944 - DEBUG - Requesting: http://10.0.0.27:8082/domain/1dbc2da7-f6b7-4e72-a5de-730a43c64aa6 2025-11-10 16:13:17,977 - DEBUG - Requesting: http://10.0.0.27:8082/project/d9354fa9-ca18-46be-a2e5-dfd150fe1b9f 2025-11-10 16:13:18,106 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/bd369597-944c-4c7e-8d53-36c57e3cc008 2025-11-10 16:13:18,123 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/bd369597-944c-4c7e-8d53-36c57e3cc008 2025-11-10 16:13:18,140 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0b5e6717-ec1e-45a9-b74c-122d144448b0 2025-11-10 16:13:18,154 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0b5e6717-ec1e-45a9-b74c-122d144448b0 2025-11-10 16:13:18,166 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/a9d99534-a994-4945-87a8-16d544e9224b 2025-11-10 16:13:18,177 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 16:13:18,177 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/bd369597-944c-4c7e-8d53-36c57e3cc008 2025-11-10 16:13:18,194 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0b5e6717-ec1e-45a9-b74c-122d144448b0 2025-11-10 16:13:18,218 - INFO - Verified VN network id 11 for VN bd369597-944c-4c7e-8d53-36c57e3cc008 2025-11-10 16:13:18,219 - INFO - Verifications in API Server for VN ctest-vn-93788310 passed 2025-11-10 16:13:18,219 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/bd369597-944c-4c7e-8d53-36c57e3cc008 2025-11-10 16:13:18,234 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0b5e6717-ec1e-45a9-b74c-122d144448b0 2025-11-10 16:13:18,246 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0b5e6717-ec1e-45a9-b74c-122d144448b0 2025-11-10 16:13:18,260 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/a9d99534-a994-4945-87a8-16d544e9224b 2025-11-10 16:13:18,282 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30824854:ctest-vn-93788310', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30824854', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13634249400171383934', 'uuid-lslong': '10183543404269191176'}, 'enable': 'true', 'created': '2025-11-10T16:13:15', 'last-modified': '2025-11-10T16:13:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.207231'} 2025-11-10 16:13:18,295 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 16:13:18,295 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93788310 passed 2025-11-10 16:13:18,296 - DEBUG - ====Verifying policy data for ctest-vn-93788310 in API_Server ====== 2025-11-10 16:13:18,296 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-11-10 16:13:18,306 - DEBUG - Requesting: http://10.0.0.27:8082/domain/1dbc2da7-f6b7-4e72-a5de-730a43c64aa6 2025-11-10 16:13:18,328 - DEBUG - Requesting: http://10.0.0.27:8082/project/d9354fa9-ca18-46be-a2e5-dfd150fe1b9f 2025-11-10 16:13:18,430 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/bd369597-944c-4c7e-8d53-36c57e3cc008 2025-11-10 16:13:18,454 - DEBUG - ==>Verifying data for policy with id: acf6f537-2b55-479f-a4ac-cfe153985a17, fqn: ['default-domain', 'ctest-TestBasicPolicy-30824854', 'ctest-policy-allow-all-39428122'] 2025-11-10 16:13:18,454 - INFO - VN ctest-vn-93788310 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-10 16:13:18,454 - DEBUG - Verifying the vn in opserver 2025-11-10 16:13:18,454 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30824854:ctest-vn-93788310 virtual network link through opserver 10.0.0.27 2025-11-10 16:13:18,455 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-11-10 16:13:18,759 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-11-10 16:13:18,856 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30824854:ctest-vn-93788310', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30824854:ctest-vn-93788310?flat'} 2025-11-10 16:13:18,856 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30824854:ctest-vn-93788310 is found in opserver 2025-11-10 16:13:18,875 - DEBUG - Do not have enough data to verify VN in agent 2025-11-10 16:13:18,884 - DEBUG - VRF ids for VN ctest-vn-93788310: {} 2025-11-10 16:13:18,884 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-11-10 16:13:18,895 - DEBUG - Requesting: http://10.0.0.27:8082/domain/1dbc2da7-f6b7-4e72-a5de-730a43c64aa6 2025-11-10 16:13:18,920 - DEBUG - Requesting: http://10.0.0.27:8082/project/d9354fa9-ca18-46be-a2e5-dfd150fe1b9f 2025-11-10 16:13:19,007 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f8396c3f-7e41-4181-8cf2-6cf9148df1de 2025-11-10 16:13:19,024 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f8396c3f-7e41-4181-8cf2-6cf9148df1de 2025-11-10 16:13:19,042 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4adfaa7b-7597-4928-ab84-560c191ab630 2025-11-10 16:13:19,059 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4adfaa7b-7597-4928-ab84-560c191ab630 2025-11-10 16:13:19,071 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/5cb687a0-0119-4227-abdb-ee9b7167d124 2025-11-10 16:13:19,082 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-10 16:13:19,083 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f8396c3f-7e41-4181-8cf2-6cf9148df1de 2025-11-10 16:13:19,100 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4adfaa7b-7597-4928-ab84-560c191ab630 2025-11-10 16:13:19,137 - INFO - Verified VN network id 12 for VN f8396c3f-7e41-4181-8cf2-6cf9148df1de 2025-11-10 16:13:19,137 - INFO - Verifications in API Server for VN ctest-vn-81399785 passed 2025-11-10 16:13:19,137 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f8396c3f-7e41-4181-8cf2-6cf9148df1de 2025-11-10 16:13:19,159 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4adfaa7b-7597-4928-ab84-560c191ab630 2025-11-10 16:13:19,172 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4adfaa7b-7597-4928-ab84-560c191ab630 2025-11-10 16:13:19,190 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/5cb687a0-0119-4227-abdb-ee9b7167d124 2025-11-10 16:13:19,218 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30824854:ctest-vn-81399785', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30824854', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17886446415035580801', 'uuid-lslong': '10156299926721393118'}, 'enable': 'true', 'created': '2025-11-10T16:13:16', 'last-modified': '2025-11-10T16:13:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.863234'} 2025-11-10 16:13:19,231 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-10 16:13:19,231 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81399785 passed 2025-11-10 16:13:19,232 - DEBUG - ====Verifying policy data for ctest-vn-81399785 in API_Server ====== 2025-11-10 16:13:19,232 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-11-10 16:13:19,246 - DEBUG - Requesting: http://10.0.0.27:8082/domain/1dbc2da7-f6b7-4e72-a5de-730a43c64aa6 2025-11-10 16:13:19,263 - DEBUG - Requesting: http://10.0.0.27:8082/project/d9354fa9-ca18-46be-a2e5-dfd150fe1b9f 2025-11-10 16:13:19,351 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f8396c3f-7e41-4181-8cf2-6cf9148df1de 2025-11-10 16:13:19,369 - DEBUG - ==>Verifying data for policy with id: acf6f537-2b55-479f-a4ac-cfe153985a17, fqn: ['default-domain', 'ctest-TestBasicPolicy-30824854', 'ctest-policy-allow-all-39428122'] 2025-11-10 16:13:19,370 - INFO - VN ctest-vn-81399785 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-10 16:13:19,370 - DEBUG - Verifying the vn in opserver 2025-11-10 16:13:19,370 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30824854:ctest-vn-81399785 virtual network link through opserver 10.0.0.27 2025-11-10 16:13:19,370 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-11-10 16:13:19,387 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30824854:ctest-vn-81399785', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30824854:ctest-vn-81399785?flat'} 2025-11-10 16:13:19,387 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30824854:ctest-vn-81399785 is found in opserver 2025-11-10 16:13:19,402 - DEBUG - Do not have enough data to verify VN in agent 2025-11-10 16:13:19,407 - DEBUG - VRF ids for VN ctest-vn-81399785: {} 2025-11-10 16:13:19,495 - DEBUG - Services list from nova: [, , ] 2025-11-10 16:13:20,878 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4681-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4681-1) 2025-11-10 16:13:22,196 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4681-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4681-1) 2025-11-10 16:13:22,196 - INFO - Waiting for VM ctest-TestBasicPolicy-30824854-52944262 to be up.. 2025-11-10 16:13:22,325 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-10 16:13:27,457 - DEBUG - VM is in ACTIVE state now 2025-11-10 16:13:27,457 - INFO - VM name : ctest-TestBasicPolicy-30824854-52944262 2025-11-10 16:13:27,549 - DEBUG - VM ctest-TestBasicPolicy-30824854-52944262 ID is cad221e3-7f46-442d-8b27-519e33c8ea1e 2025-11-10 16:13:27,574 - DEBUG - VM ctest-TestBasicPolicy-30824854-52944262 launched on Node cn-jenkins-deploy-platform-ansible-os-4681-1 2025-11-10 16:13:27,656 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/cad221e3-7f46-442d-8b27-519e33c8ea1e 2025-11-10 16:13:27,665 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/cd3e29e1-4f41-4d5d-ae5b-533843469420 2025-11-10 16:13:30,934 - 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 1009ms') 2025-11-10 16:13:30,934 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-30824854-52944262 failed! 2025-11-10 16:13:30,999 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-30824854:ctest-vn-93788310 is 5.218.246.129 and allocation pool is NOT set 2025-11-10 16:13:33,076 - 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=5.57 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.64 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 = 1.636/3.602/5.568/1.966 ms') 2025-11-10 16:13:33,076 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-30824854-52944262 passed 2025-11-10 16:13:33,251 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-10 16:13:33,251 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-30824854-52944262, IP 5.218.246.131, Port 22 2025-11-10 16:13:33,453 - DEBUG - VM ctest-TestBasicPolicy-30824854-52944262 is ready for SSH connections 2025-11-10 16:13:33,453 - INFO - Waiting for VM ctest-TestBasicPolicy-30824854-60696378 to be up.. 2025-11-10 16:13:33,607 - DEBUG - VM is in ACTIVE state now 2025-11-10 16:13:33,607 - INFO - VM name : ctest-TestBasicPolicy-30824854-60696378 2025-11-10 16:13:33,742 - DEBUG - VM ctest-TestBasicPolicy-30824854-60696378 ID is 4bbdec9d-7a5b-466e-9193-1c16a4a07f1b 2025-11-10 16:13:33,742 - DEBUG - VM ctest-TestBasicPolicy-30824854-60696378 launched on Node cn-jenkins-deploy-platform-ansible-os-4681-1 2025-11-10 16:13:33,862 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/4bbdec9d-7a5b-466e-9193-1c16a4a07f1b 2025-11-10 16:13:33,871 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/537db8d8-93f0-4ac0-9384-2e54eb69a6c9 2025-11-10 16:13:35,158 - 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=8.52 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.79 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 = 1.787/5.152/8.518/3.365 ms') 2025-11-10 16:13:35,158 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-30824854-60696378 passed 2025-11-10 16:13:35,314 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-10 16:13:35,315 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-30824854-60696378, IP 120.107.13.3, Port 22 2025-11-10 16:13:35,385 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-11-10 16:13:35,526 - DEBUG - VM ctest-TestBasicPolicy-30824854-60696378 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-10 16:13:40,526 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-10 16:13:40,527 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-30824854-60696378, IP 120.107.13.3, Port 22 2025-11-10 16:13:40,707 - DEBUG - VM ctest-TestBasicPolicy-30824854-60696378 is ready for SSH connections 2025-11-10 16:13:40,707 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-10 16:13:40,708 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 120.107.13.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-11-10 16:13:40,708 - DEBUG - ping -s 56 -c 3 -W 1 120.107.13.3 2025-11-10 16:13:45,093 - DEBUG - PING 120.107.13.3 (120.107.13.3): 56 data bytes 64 bytes from 120.107.13.3: seq=0 ttl=63 time=4.401 ms 64 bytes from 120.107.13.3: seq=1 ttl=63 time=2.468 ms 64 bytes from 120.107.13.3: seq=2 ttl=63 time=2.471 ms --- 120.107.13.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 2.468/3.113/4.401 ms 2025-11-10 16:13:45,093 - INFO - Ping to IP 120.107.13.3 from VM ctest-TestBasicPolicy-30824854-52944262 passed 2025-11-10 16:13:45,342 - DEBUG - Policy Update Response {"network-policy": {"uuid": "acf6f537-2b55-479f-a4ac-cfe153985a17", "href": "http://10.0.0.27:8082/network-policy/acf6f537-2b55-479f-a4ac-cfe153985a17"}} 2025-11-10 16:13:45,343 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-10 16:13:45,343 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 120.107.13.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-11-10 16:13:45,343 - DEBUG - ping -s 56 -c 3 -W 1 120.107.13.3 2025-11-10 16:13:48,655 - DEBUG - PING 120.107.13.3 (120.107.13.3): 56 data bytes --- 120.107.13.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-11-10 16:13:48,655 - WARNING - Ping to IP 120.107.13.3 from VM ctest-TestBasicPolicy-30824854-52944262 failed 2025-11-10 16:13:48,655 - INFO - Deleting VM ctest-TestBasicPolicy-30824854-60696378 2025-11-10 16:13:48,829 - INFO - Deleting VM ctest-TestBasicPolicy-30824854-52944262 2025-11-10 16:13:49,356 - INFO - Deleted policy ctest-policy-allow-all-39428122 2025-11-10 16:13:49,357 - INFO - Deleting VN ctest-vn-81399785 2025-11-10 16:13:49,398 - DEBUG - VN f8396c3f-7e41-4181-8cf2-6cf9148df1de still in use: Unable to complete operation on network f8396c3f-7e41-4181-8cf2-6cf9148df1de. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-4f495379-790b-4547-8ef5-9216d18b3da0'] 2025-11-10 16:13:49,398 - WARNING - Deleting VN ctest-vn-81399785 failed..Will retry 2025-11-10 16:13:51,521 - DEBUG - Response for deleting network () 2025-11-10 16:13:51,521 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4adfaa7b-7597-4928-ab84-560c191ab630 2025-11-10 16:13:51,528 - DEBUG - Response Code: 404 2025-11-10 16:13:51,528 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-11-10 16:13:51,533 - DEBUG - Requesting: http://10.0.0.27:8082/domain/1dbc2da7-f6b7-4e72-a5de-730a43c64aa6 2025-11-10 16:13:51,594 - DEBUG - Requesting: http://10.0.0.27:8082/project/d9354fa9-ca18-46be-a2e5-dfd150fe1b9f 2025-11-10 16:13:51,693 - INFO - Validated that VN ctest-vn-81399785 is not found in API Server 2025-11-10 16:13:51,720 - DEBUG - VN ctest-vn-81399785 is not present in Agent 10.0.0.27 2025-11-10 16:13:51,720 - INFO - Validated that VN ctest-vn-81399785 is not in any agent 2025-11-10 16:13:51,761 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-81399785 info 2025-11-10 16:13:51,761 - INFO - Deleting VN ctest-vn-93788310 2025-11-10 16:13:51,976 - DEBUG - Response for deleting network () 2025-11-10 16:13:51,976 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0b5e6717-ec1e-45a9-b74c-122d144448b0 2025-11-10 16:13:51,984 - DEBUG - Response Code: 404 2025-11-10 16:13:51,984 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-11-10 16:13:51,990 - DEBUG - Requesting: http://10.0.0.27:8082/domain/1dbc2da7-f6b7-4e72-a5de-730a43c64aa6 2025-11-10 16:13:52,051 - DEBUG - Requesting: http://10.0.0.27:8082/project/d9354fa9-ca18-46be-a2e5-dfd150fe1b9f 2025-11-10 16:13:52,147 - INFO - Validated that VN ctest-vn-93788310 is not found in API Server 2025-11-10 16:13:52,172 - DEBUG - VN ctest-vn-93788310 is not present in Agent 10.0.0.27 2025-11-10 16:13:52,172 - INFO - Validated that VN ctest-vn-93788310 is not in any agent 2025-11-10 16:13:52,199 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-93788310 info 2025-11-10 16:13:52,522 - DEBUG - No XMPP flaps were noticed during the test 2025-11-10 16:13:52,522 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:38] 2025-11-10 16:13:52,522 - INFO - -------------------------------------------------------------------------------- 2025-11-10 16:13:53,429 - INFO - Deleted project: ctest-TestBasicPolicy-30824854, ID : d9354fa9-ca18-46be-a2e5-dfd150fe1b9f