2025-07-15 16:38:50,126 - INFO - Domain Default found not creating 2025-07-15 16:38:50,308 - INFO - Project ctest-TestBasicPolicy-64880594 not found, creating it 2025-07-15 16:38:50,815 - INFO - Created Project:ctest-TestBasicPolicy-64880594, ID : 12c560d6-fe31-4d2a-8b61-eb49886d1193 2025-07-15 16:38:52,370 - INFO - ================================================================================ 2025-07-15 16:38:52,370 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-07-15 16:38:52,370 - 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-07-15 16:38:52,630 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.0.0.33': '0'}} with 2025-07-15 16:38:52,631 - INFO - Initial checks done. Running the testcase now 2025-07-15 16:38:52,631 - INFO - 2025-07-15 16:38:53,171 - DEBUG - Response for create_network : {'network': {'id': 'bab3fac9-655e-48be-98bd-9e3f51ecb2b1', 'name': 'ctest-vn-59724882', 'tenant_id': '12c560d6fe314d2a8b61eb49886d1193', 'project_id': '12c560d6fe314d2a8b61eb49886d1193', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64880594', 'ctest-vn-59724882'], 'port_security_enabled': True, 'description': ''}} 2025-07-15 16:38:53,430 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dcddaf23-2f13-46ab-9fc5-fae115fd52e5', 'name': '', 'tenant_id': '12c560d6fe314d2a8b61eb49886d1193', 'network_id': 'bab3fac9-655e-48be-98bd-9e3f51ecb2b1', 'ip_version': 4, 'cidr': '194.7.129.64/26', 'allocation_pools': [{'start': '194.7.129.66', 'end': '194.7.129.126'}], 'gateway_ip': '194.7.129.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.7.129.66', 'tags': [], 'project_id': '12c560d6fe314d2a8b61eb49886d1193'}} 2025-07-15 16:38:53,452 - INFO - Created VN ctest-vn-59724882 2025-07-15 16:38:53,509 - DEBUG - VN ctest-vn-59724882 UUID is bab3fac9-655e-48be-98bd-9e3f51ecb2b1 2025-07-15 16:38:53,839 - DEBUG - Response for create_network : {'network': {'id': '3152217e-3130-4193-9879-df8909f78f1b', 'name': 'ctest-vn-91937895', 'tenant_id': '12c560d6fe314d2a8b61eb49886d1193', 'project_id': '12c560d6fe314d2a8b61eb49886d1193', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64880594', 'ctest-vn-91937895'], 'port_security_enabled': True, 'description': ''}} 2025-07-15 16:38:54,050 - DEBUG - Response for create_subnet : {'subnet': {'id': '5827efc7-d6a9-47ba-b999-2941f1f0c60f', 'name': '', 'tenant_id': '12c560d6fe314d2a8b61eb49886d1193', 'network_id': '3152217e-3130-4193-9879-df8909f78f1b', 'ip_version': 4, 'cidr': '34.244.83.64/26', 'allocation_pools': [{'start': '34.244.83.66', 'end': '34.244.83.126'}], 'gateway_ip': '34.244.83.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.244.83.66', 'tags': [], 'project_id': '12c560d6fe314d2a8b61eb49886d1193'}} 2025-07-15 16:38:54,067 - INFO - Created VN ctest-vn-91937895 2025-07-15 16:38:54,117 - DEBUG - VN ctest-vn-91937895 UUID is 3152217e-3130-4193-9879-df8909f78f1b 2025-07-15 16:38:54,269 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-64880594:ctest-vn-59724882, 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-64880594:ctest-vn-91937895, 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-07-15 16:38:54,584 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bab3fac9-655e-48be-98bd-9e3f51ecb2b1', 'name': 'ctest-vn-59724882', 'tenant_id': '12c560d6fe314d2a8b61eb49886d1193', 'project_id': '12c560d6fe314d2a8b61eb49886d1193', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dcddaf23-2f13-46ab-9fc5-fae115fd52e5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64880594', 'ctest-vn-59724882'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64880594', 'ctest-policy-allow-all-37131285']], 'subnet_ipam': [{'subnet_cidr': '194.7.129.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-15 16:38:54,862 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3152217e-3130-4193-9879-df8909f78f1b', 'name': 'ctest-vn-91937895', 'tenant_id': '12c560d6fe314d2a8b61eb49886d1193', 'project_id': '12c560d6fe314d2a8b61eb49886d1193', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5827efc7-d6a9-47ba-b999-2941f1f0c60f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64880594', 'ctest-vn-91937895'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64880594', 'ctest-policy-allow-all-37131285']], 'subnet_ipam': [{'subnet_cidr': '34.244.83.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-15 16:38:55,005 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-07-15 16:38:55,319 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-07-15 16:38:55,353 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e8181d1a-4d6b-42cc-84bd-0cfac13513ed 2025-07-15 16:38:55,367 - DEBUG - Requesting: http://10.0.0.33:8082/project/12c560d6-fe31-4d2a-8b61-eb49886d1193 2025-07-15 16:38:55,441 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bab3fac9-655e-48be-98bd-9e3f51ecb2b1 2025-07-15 16:38:55,451 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bab3fac9-655e-48be-98bd-9e3f51ecb2b1 2025-07-15 16:38:55,460 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0342c352-b94f-45a0-a843-ecf1fdeeda91 2025-07-15 16:38:55,467 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0342c352-b94f-45a0-a843-ecf1fdeeda91 2025-07-15 16:38:55,474 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/9b51e0b5-f17a-45d9-bbd8-c069ea55a44c 2025-07-15 16:38:55,481 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-15 16:38:55,481 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bab3fac9-655e-48be-98bd-9e3f51ecb2b1 2025-07-15 16:38:55,492 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0342c352-b94f-45a0-a843-ecf1fdeeda91 2025-07-15 16:38:55,508 - INFO - Verified VN network id 8 for VN bab3fac9-655e-48be-98bd-9e3f51ecb2b1 2025-07-15 16:38:55,508 - INFO - Verifications in API Server for VN ctest-vn-59724882 passed 2025-07-15 16:38:55,508 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bab3fac9-655e-48be-98bd-9e3f51ecb2b1 2025-07-15 16:38:55,517 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0342c352-b94f-45a0-a843-ecf1fdeeda91 2025-07-15 16:38:55,525 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0342c352-b94f-45a0-a843-ecf1fdeeda91 2025-07-15 16:38:55,531 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/9b51e0b5-f17a-45d9-bbd8-c069ea55a44c 2025-07-15 16:38:55,544 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64880594:ctest-vn-59724882', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64880594', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13453372254781851838', 'uuid-lslong': '11006127059157955249'}, 'enable': 'true', 'created': '2025-07-15T16:38:53', 'last-modified': '2025-07-15T16:38:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.985495'} 2025-07-15 16:38:55,549 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-15 16:38:55,549 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59724882 passed 2025-07-15 16:38:55,550 - DEBUG - ====Verifying policy data for ctest-vn-59724882 in API_Server ====== 2025-07-15 16:38:55,550 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-07-15 16:38:55,555 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e8181d1a-4d6b-42cc-84bd-0cfac13513ed 2025-07-15 16:38:55,566 - DEBUG - Requesting: http://10.0.0.33:8082/project/12c560d6-fe31-4d2a-8b61-eb49886d1193 2025-07-15 16:38:55,632 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bab3fac9-655e-48be-98bd-9e3f51ecb2b1 2025-07-15 16:38:55,641 - DEBUG - ==>Verifying data for policy with id: de0dcc5e-8a2b-43c4-890e-2493bf09b37e, fqn: ['default-domain', 'ctest-TestBasicPolicy-64880594', 'ctest-policy-allow-all-37131285'] 2025-07-15 16:38:55,641 - INFO - VN ctest-vn-59724882 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-15 16:38:55,641 - DEBUG - Verifying the vn in opserver 2025-07-15 16:38:55,642 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64880594:ctest-vn-59724882 virtual network link through opserver 10.0.0.33 2025-07-15 16:38:55,642 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-07-15 16:38:55,930 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-07-15 16:38:55,986 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64880594:ctest-vn-59724882', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64880594:ctest-vn-59724882?flat'} 2025-07-15 16:38:55,986 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64880594:ctest-vn-59724882 is found in opserver 2025-07-15 16:38:55,995 - DEBUG - Do not have enough data to verify VN in agent 2025-07-15 16:38:56,000 - DEBUG - VRF ids for VN ctest-vn-59724882: {} 2025-07-15 16:38:56,000 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-07-15 16:38:56,006 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e8181d1a-4d6b-42cc-84bd-0cfac13513ed 2025-07-15 16:38:56,018 - DEBUG - Requesting: http://10.0.0.33:8082/project/12c560d6-fe31-4d2a-8b61-eb49886d1193 2025-07-15 16:38:56,092 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3152217e-3130-4193-9879-df8909f78f1b 2025-07-15 16:38:56,104 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3152217e-3130-4193-9879-df8909f78f1b 2025-07-15 16:38:56,113 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5f6c0166-f588-471a-bd56-333946407154 2025-07-15 16:38:56,127 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5f6c0166-f588-471a-bd56-333946407154 2025-07-15 16:38:56,134 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/5614e0a6-6962-4a64-88c5-b9b6efd668ca 2025-07-15 16:38:56,142 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-15 16:38:56,142 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3152217e-3130-4193-9879-df8909f78f1b 2025-07-15 16:38:56,151 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5f6c0166-f588-471a-bd56-333946407154 2025-07-15 16:38:56,172 - INFO - Verified VN network id 9 for VN 3152217e-3130-4193-9879-df8909f78f1b 2025-07-15 16:38:56,172 - INFO - Verifications in API Server for VN ctest-vn-91937895 passed 2025-07-15 16:38:56,173 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3152217e-3130-4193-9879-df8909f78f1b 2025-07-15 16:38:56,184 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5f6c0166-f588-471a-bd56-333946407154 2025-07-15 16:38:56,191 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5f6c0166-f588-471a-bd56-333946407154 2025-07-15 16:38:56,199 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/5614e0a6-6962-4a64-88c5-b9b6efd668ca 2025-07-15 16:38:56,210 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64880594:ctest-vn-91937895', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64880594', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3553939881823584659', 'uuid-lslong': '10987058545617768219'}, 'enable': 'true', 'created': '2025-07-15T16:38:53', 'last-modified': '2025-07-15T16:38:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.416340'} 2025-07-15 16:38:56,216 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-15 16:38:56,216 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91937895 passed 2025-07-15 16:38:56,216 - DEBUG - ====Verifying policy data for ctest-vn-91937895 in API_Server ====== 2025-07-15 16:38:56,216 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-07-15 16:38:56,222 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e8181d1a-4d6b-42cc-84bd-0cfac13513ed 2025-07-15 16:38:56,237 - DEBUG - Requesting: http://10.0.0.33:8082/project/12c560d6-fe31-4d2a-8b61-eb49886d1193 2025-07-15 16:38:56,308 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3152217e-3130-4193-9879-df8909f78f1b 2025-07-15 16:38:56,317 - DEBUG - ==>Verifying data for policy with id: de0dcc5e-8a2b-43c4-890e-2493bf09b37e, fqn: ['default-domain', 'ctest-TestBasicPolicy-64880594', 'ctest-policy-allow-all-37131285'] 2025-07-15 16:38:56,318 - INFO - VN ctest-vn-91937895 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-15 16:38:56,318 - DEBUG - Verifying the vn in opserver 2025-07-15 16:38:56,318 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64880594:ctest-vn-91937895 virtual network link through opserver 10.0.0.33 2025-07-15 16:38:56,318 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-07-15 16:38:56,328 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64880594:ctest-vn-91937895', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64880594:ctest-vn-91937895?flat'} 2025-07-15 16:38:56,328 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64880594:ctest-vn-91937895 is found in opserver 2025-07-15 16:38:56,339 - DEBUG - Do not have enough data to verify VN in agent 2025-07-15 16:38:56,344 - DEBUG - VRF ids for VN ctest-vn-91937895: {} 2025-07-15 16:38:56,405 - DEBUG - Services list from nova: [, , ] 2025-07-15 16:38:57,515 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3640-30), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3640-30) 2025-07-15 16:38:58,917 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3640-30), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3640-30) 2025-07-15 16:38:58,917 - INFO - Waiting for VM ctest-TestBasicPolicy-64880594-47057085 to be up.. 2025-07-15 16:38:59,022 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-15 16:39:04,110 - DEBUG - VM is in ACTIVE state now 2025-07-15 16:39:04,110 - INFO - VM name : ctest-TestBasicPolicy-64880594-47057085 2025-07-15 16:39:04,224 - DEBUG - VM ctest-TestBasicPolicy-64880594-47057085 ID is 20f3c9bb-f3df-43ea-9c0e-fa712eb8cd7b 2025-07-15 16:39:04,255 - DEBUG - VM ctest-TestBasicPolicy-64880594-47057085 launched on Node cn-jenkins-deploy-platform-ansible-os-3640-30. 2025-07-15 16:39:04,356 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/20f3c9bb-f3df-43ea-9c0e-fa712eb8cd7b 2025-07-15 16:39:04,365 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/e6cd2674-3b31-4700-84ac-64df3f43e062 2025-07-15 16:39:07,632 - 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-07-15 16:39:07,632 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-64880594-47057085 failed! 2025-07-15 16:39:07,689 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-64880594:ctest-vn-59724882 is 194.7.129.65 and allocation pool is NOT set 2025-07-15 16:39:09,755 - 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=7.68 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.04 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 = 3.043/5.363/7.684/2.320 ms') 2025-07-15 16:39:09,755 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-64880594-47057085 passed 2025-07-15 16:39:09,909 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-15 16:39:09,909 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-64880594-47057085, IP 194.7.129.67, Port 22 2025-07-15 16:39:10,084 - DEBUG - VM ctest-TestBasicPolicy-64880594-47057085 is ready for SSH connections 2025-07-15 16:39:10,084 - INFO - Waiting for VM ctest-TestBasicPolicy-64880594-01339069 to be up.. 2025-07-15 16:39:10,169 - DEBUG - VM is in ACTIVE state now 2025-07-15 16:39:10,169 - INFO - VM name : ctest-TestBasicPolicy-64880594-01339069 2025-07-15 16:39:10,249 - DEBUG - VM ctest-TestBasicPolicy-64880594-01339069 ID is aebba91e-0375-4a37-9232-4a3b28859a2a 2025-07-15 16:39:10,249 - DEBUG - VM ctest-TestBasicPolicy-64880594-01339069 launched on Node cn-jenkins-deploy-platform-ansible-os-3640-30. 2025-07-15 16:39:10,342 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/aebba91e-0375-4a37-9232-4a3b28859a2a 2025-07-15 16:39:10,350 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/71e1b154-a3c1-400f-82e8-b66b9aab14f4 2025-07-15 16:39:11,595 - 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.74 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.20 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 = 1.195/2.966/4.737/1.771 ms') 2025-07-15 16:39:11,595 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-64880594-01339069 passed 2025-07-15 16:39:11,745 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-15 16:39:11,745 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-64880594-01339069, IP 34.244.83.67, Port 22 2025-07-15 16:39:11,815 - 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-07-15 16:39:11,920 - DEBUG - VM ctest-TestBasicPolicy-64880594-01339069 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-15 16:39:16,921 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-15 16:39:16,921 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-64880594-01339069, IP 34.244.83.67, Port 22 2025-07-15 16:39:17,076 - DEBUG - VM ctest-TestBasicPolicy-64880594-01339069 is ready for SSH connections 2025-07-15 16:39:17,077 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-15 16:39:17,077 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 34.244.83.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-07-15 16:39:17,077 - DEBUG - ping -s 56 -c 3 -W 1 34.244.83.67 2025-07-15 16:39:21,129 - DEBUG - PING 34.244.83.67 (34.244.83.67): 56 data bytes 64 bytes from 34.244.83.67: seq=0 ttl=63 time=6.802 ms 64 bytes from 34.244.83.67: seq=1 ttl=63 time=1.115 ms 64 bytes from 34.244.83.67: seq=2 ttl=63 time=1.312 ms --- 34.244.83.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.115/3.076/6.802 ms 2025-07-15 16:39:21,130 - INFO - Ping to IP 34.244.83.67 from VM ctest-TestBasicPolicy-64880594-47057085 passed 2025-07-15 16:39:21,321 - DEBUG - Policy Update Response {"network-policy": {"uuid": "de0dcc5e-8a2b-43c4-890e-2493bf09b37e", "href": "http://10.0.0.33:8082/network-policy/de0dcc5e-8a2b-43c4-890e-2493bf09b37e"}} 2025-07-15 16:39:21,321 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-15 16:39:21,321 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 34.244.83.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-07-15 16:39:21,321 - DEBUG - ping -s 56 -c 3 -W 1 34.244.83.67 2025-07-15 16:39:24,541 - DEBUG - PING 34.244.83.67 (34.244.83.67): 56 data bytes --- 34.244.83.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-07-15 16:39:24,541 - WARNING - Ping to IP 34.244.83.67 from VM ctest-TestBasicPolicy-64880594-47057085 failed 2025-07-15 16:39:24,541 - INFO - Deleting VM ctest-TestBasicPolicy-64880594-01339069 2025-07-15 16:39:24,622 - INFO - Deleting VM ctest-TestBasicPolicy-64880594-47057085 2025-07-15 16:39:25,067 - INFO - Deleted policy ctest-policy-allow-all-37131285 2025-07-15 16:39:25,067 - INFO - Deleting VN ctest-vn-91937895 2025-07-15 16:39:25,108 - DEBUG - VN 3152217e-3130-4193-9879-df8909f78f1b still in use: Unable to complete operation on network 3152217e-3130-4193-9879-df8909f78f1b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-5e3af28a-dfab-4c27-a9dc-85e8497046a7'] 2025-07-15 16:39:25,108 - WARNING - Deleting VN ctest-vn-91937895 failed..Will retry 2025-07-15 16:39:27,204 - DEBUG - Response for deleting network () 2025-07-15 16:39:27,205 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5f6c0166-f588-471a-bd56-333946407154 2025-07-15 16:39:27,210 - DEBUG - Response Code: 404 2025-07-15 16:39:27,210 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-07-15 16:39:27,217 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e8181d1a-4d6b-42cc-84bd-0cfac13513ed 2025-07-15 16:39:27,275 - DEBUG - Requesting: http://10.0.0.33:8082/project/12c560d6-fe31-4d2a-8b61-eb49886d1193 2025-07-15 16:39:27,350 - INFO - Validated that VN ctest-vn-91937895 is not found in API Server 2025-07-15 16:39:27,361 - DEBUG - VN ctest-vn-91937895 is not present in Agent 10.0.0.33 2025-07-15 16:39:27,361 - INFO - Validated that VN ctest-vn-91937895 is not in any agent 2025-07-15 16:39:27,376 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-91937895 info 2025-07-15 16:39:27,376 - INFO - Deleting VN ctest-vn-59724882 2025-07-15 16:39:27,534 - DEBUG - Response for deleting network () 2025-07-15 16:39:27,534 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0342c352-b94f-45a0-a843-ecf1fdeeda91 2025-07-15 16:39:27,541 - DEBUG - Response Code: 404 2025-07-15 16:39:27,541 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-07-15 16:39:27,547 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e8181d1a-4d6b-42cc-84bd-0cfac13513ed 2025-07-15 16:39:27,598 - DEBUG - Requesting: http://10.0.0.33:8082/project/12c560d6-fe31-4d2a-8b61-eb49886d1193 2025-07-15 16:39:27,672 - INFO - Validated that VN ctest-vn-59724882 is not found in API Server 2025-07-15 16:39:27,683 - DEBUG - VN ctest-vn-59724882 is not present in Agent 10.0.0.33 2025-07-15 16:39:27,683 - INFO - Validated that VN ctest-vn-59724882 is not in any agent 2025-07-15 16:39:27,698 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-59724882 info 2025-07-15 16:39:27,950 - DEBUG - No XMPP flaps were noticed during the test 2025-07-15 16:39:27,950 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-07-15 16:39:27,950 - INFO - -------------------------------------------------------------------------------- 2025-07-15 16:39:28,682 - INFO - Deleted project: ctest-TestBasicPolicy-64880594, ID : 12c560d6-fe31-4d2a-8b61-eb49886d1193