2025-07-11 13:18:49,881 - INFO - Domain Default found not creating 2025-07-11 13:18:50,141 - INFO - Project ctest-TestBasicPolicy-69429056 not found, creating it 2025-07-11 13:18:51,000 - INFO - Created Project:ctest-TestBasicPolicy-69429056, ID : 3dbf9e65-e258-4851-a17e-461d1ba1f22a 2025-07-11 13:18:52,537 - INFO - ================================================================================ 2025-07-11 13:18:52,537 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-07-11 13:18:52,537 - 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-11 13:18:52,792 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2025-07-11 13:18:52,792 - INFO - Initial checks done. Running the testcase now 2025-07-11 13:18:52,792 - INFO - 2025-07-11 13:18:53,385 - DEBUG - Response for create_network : {'network': {'id': '0f34cff4-607d-4072-8d9d-84b50e6b8b30', 'name': 'ctest-vn-32001832', 'tenant_id': '3dbf9e65e2584851a17e461d1ba1f22a', 'project_id': '3dbf9e65e2584851a17e461d1ba1f22a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69429056', 'ctest-vn-32001832'], 'port_security_enabled': True, 'description': ''}} 2025-07-11 13:18:53,574 - DEBUG - Response for create_subnet : {'subnet': {'id': '931d351d-b839-4197-bb58-44436560218f', 'name': '', 'tenant_id': '3dbf9e65e2584851a17e461d1ba1f22a', 'network_id': '0f34cff4-607d-4072-8d9d-84b50e6b8b30', 'ip_version': 4, 'cidr': '176.232.226.192/26', 'allocation_pools': [{'start': '176.232.226.194', 'end': '176.232.226.254'}], 'gateway_ip': '176.232.226.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '176.232.226.194', 'tags': [], 'project_id': '3dbf9e65e2584851a17e461d1ba1f22a'}} 2025-07-11 13:18:53,596 - INFO - Created VN ctest-vn-32001832 2025-07-11 13:18:53,653 - DEBUG - VN ctest-vn-32001832 UUID is 0f34cff4-607d-4072-8d9d-84b50e6b8b30 2025-07-11 13:18:54,003 - DEBUG - Response for create_network : {'network': {'id': '6241f450-20c8-4a6d-946c-b9003d27e128', 'name': 'ctest-vn-96725864', 'tenant_id': '3dbf9e65e2584851a17e461d1ba1f22a', 'project_id': '3dbf9e65e2584851a17e461d1ba1f22a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69429056', 'ctest-vn-96725864'], 'port_security_enabled': True, 'description': ''}} 2025-07-11 13:18:54,173 - DEBUG - Response for create_subnet : {'subnet': {'id': '69e99d18-6ad7-4e11-baa1-ccf0132bd662', 'name': '', 'tenant_id': '3dbf9e65e2584851a17e461d1ba1f22a', 'network_id': '6241f450-20c8-4a6d-946c-b9003d27e128', 'ip_version': 4, 'cidr': '174.13.40.64/26', 'allocation_pools': [{'start': '174.13.40.66', 'end': '174.13.40.126'}], 'gateway_ip': '174.13.40.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.13.40.66', 'tags': [], 'project_id': '3dbf9e65e2584851a17e461d1ba1f22a'}} 2025-07-11 13:18:54,195 - INFO - Created VN ctest-vn-96725864 2025-07-11 13:18:54,249 - DEBUG - VN ctest-vn-96725864 UUID is 6241f450-20c8-4a6d-946c-b9003d27e128 2025-07-11 13:18:54,381 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-69429056:ctest-vn-32001832, 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-69429056:ctest-vn-96725864, 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-11 13:18:54,701 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0f34cff4-607d-4072-8d9d-84b50e6b8b30', 'name': 'ctest-vn-32001832', 'tenant_id': '3dbf9e65e2584851a17e461d1ba1f22a', 'project_id': '3dbf9e65e2584851a17e461d1ba1f22a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['931d351d-b839-4197-bb58-44436560218f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69429056', 'ctest-vn-32001832'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69429056', 'ctest-policy-allow-all-16895988']], 'subnet_ipam': [{'subnet_cidr': '176.232.226.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-11 13:18:55,003 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6241f450-20c8-4a6d-946c-b9003d27e128', 'name': 'ctest-vn-96725864', 'tenant_id': '3dbf9e65e2584851a17e461d1ba1f22a', 'project_id': '3dbf9e65e2584851a17e461d1ba1f22a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['69e99d18-6ad7-4e11-baa1-ccf0132bd662'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69429056', 'ctest-vn-96725864'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69429056', 'ctest-policy-allow-all-16895988']], 'subnet_ipam': [{'subnet_cidr': '174.13.40.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-11 13:18:55,168 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-11 13:18:55,607 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-11 13:18:55,650 - DEBUG - Requesting: http://10.0.0.50:8082/domain/879431a2-5076-42a8-a751-ec0849030211 2025-07-11 13:18:55,672 - DEBUG - Requesting: http://10.0.0.50:8082/project/3dbf9e65-e258-4851-a17e-461d1ba1f22a 2025-07-11 13:18:55,753 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0f34cff4-607d-4072-8d9d-84b50e6b8b30 2025-07-11 13:18:55,767 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0f34cff4-607d-4072-8d9d-84b50e6b8b30 2025-07-11 13:18:55,779 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/07fd1e5a-3e39-45b9-b429-f0d31ad12060 2025-07-11 13:18:55,789 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/07fd1e5a-3e39-45b9-b429-f0d31ad12060 2025-07-11 13:18:55,799 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/305bfed2-f1e0-4393-82bf-a0cb29aa1eac 2025-07-11 13:18:55,807 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-11 13:18:55,807 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0f34cff4-607d-4072-8d9d-84b50e6b8b30 2025-07-11 13:18:55,819 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/07fd1e5a-3e39-45b9-b429-f0d31ad12060 2025-07-11 13:18:55,836 - INFO - Verified VN network id 8 for VN 0f34cff4-607d-4072-8d9d-84b50e6b8b30 2025-07-11 13:18:55,836 - INFO - Verifications in API Server for VN ctest-vn-32001832 passed 2025-07-11 13:18:55,836 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0f34cff4-607d-4072-8d9d-84b50e6b8b30 2025-07-11 13:18:55,848 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/07fd1e5a-3e39-45b9-b429-f0d31ad12060 2025-07-11 13:18:55,858 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/07fd1e5a-3e39-45b9-b429-f0d31ad12060 2025-07-11 13:18:55,866 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/305bfed2-f1e0-4393-82bf-a0cb29aa1eac 2025-07-11 13:18:55,882 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69429056:ctest-vn-32001832', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69429056', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1095729257855664242', 'uuid-lslong': '10204458243857287984'}, 'enable': 'true', 'created': '2025-07-11T13:18:53', 'last-modified': '2025-07-11T13:18:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.206253'} 2025-07-11 13:18:55,890 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-11 13:18:55,890 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32001832 passed 2025-07-11 13:18:55,890 - DEBUG - ====Verifying policy data for ctest-vn-32001832 in API_Server ====== 2025-07-11 13:18:55,890 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-11 13:18:55,897 - DEBUG - Requesting: http://10.0.0.50:8082/domain/879431a2-5076-42a8-a751-ec0849030211 2025-07-11 13:18:55,910 - DEBUG - Requesting: http://10.0.0.50:8082/project/3dbf9e65-e258-4851-a17e-461d1ba1f22a 2025-07-11 13:18:55,992 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0f34cff4-607d-4072-8d9d-84b50e6b8b30 2025-07-11 13:18:56,005 - DEBUG - ==>Verifying data for policy with id: e9f49dea-ff43-48ad-b24e-9e8c6a214c14, fqn: ['default-domain', 'ctest-TestBasicPolicy-69429056', 'ctest-policy-allow-all-16895988'] 2025-07-11 13:18:56,006 - INFO - VN ctest-vn-32001832 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-11 13:18:56,006 - DEBUG - Verifying the vn in opserver 2025-07-11 13:18:56,006 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69429056:ctest-vn-32001832 virtual network link through opserver 10.0.0.50 2025-07-11 13:18:56,006 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-11 13:18:56,305 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-11 13:18:56,372 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69429056:ctest-vn-32001832', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69429056:ctest-vn-32001832?flat'} 2025-07-11 13:18:56,372 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69429056:ctest-vn-32001832 is found in opserver 2025-07-11 13:18:56,385 - DEBUG - Do not have enough data to verify VN in agent 2025-07-11 13:18:56,391 - DEBUG - VRF ids for VN ctest-vn-32001832: {} 2025-07-11 13:18:56,392 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-11 13:18:56,399 - DEBUG - Requesting: http://10.0.0.50:8082/domain/879431a2-5076-42a8-a751-ec0849030211 2025-07-11 13:18:56,412 - DEBUG - Requesting: http://10.0.0.50:8082/project/3dbf9e65-e258-4851-a17e-461d1ba1f22a 2025-07-11 13:18:56,488 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6241f450-20c8-4a6d-946c-b9003d27e128 2025-07-11 13:18:56,502 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6241f450-20c8-4a6d-946c-b9003d27e128 2025-07-11 13:18:56,514 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f1503b7d-d9da-4683-aaa4-f8557e1da9c0 2025-07-11 13:18:56,524 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f1503b7d-d9da-4683-aaa4-f8557e1da9c0 2025-07-11 13:18:56,534 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d006aabd-2fb9-4877-a20f-2d9d8b176c73 2025-07-11 13:18:56,543 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-11 13:18:56,543 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6241f450-20c8-4a6d-946c-b9003d27e128 2025-07-11 13:18:56,555 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f1503b7d-d9da-4683-aaa4-f8557e1da9c0 2025-07-11 13:18:56,572 - INFO - Verified VN network id 9 for VN 6241f450-20c8-4a6d-946c-b9003d27e128 2025-07-11 13:18:56,572 - INFO - Verifications in API Server for VN ctest-vn-96725864 passed 2025-07-11 13:18:56,572 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6241f450-20c8-4a6d-946c-b9003d27e128 2025-07-11 13:18:56,584 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f1503b7d-d9da-4683-aaa4-f8557e1da9c0 2025-07-11 13:18:56,593 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f1503b7d-d9da-4683-aaa4-f8557e1da9c0 2025-07-11 13:18:56,602 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d006aabd-2fb9-4877-a20f-2d9d8b176c73 2025-07-11 13:18:56,616 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69429056:ctest-vn-96725864', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69429056', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7080208714187688557', 'uuid-lslong': '10695126625775247656'}, 'enable': 'true', 'created': '2025-07-11T13:18:53', 'last-modified': '2025-07-11T13:18:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.682056'} 2025-07-11 13:18:56,623 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-11 13:18:56,623 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96725864 passed 2025-07-11 13:18:56,623 - DEBUG - ====Verifying policy data for ctest-vn-96725864 in API_Server ====== 2025-07-11 13:18:56,623 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-11 13:18:56,631 - DEBUG - Requesting: http://10.0.0.50:8082/domain/879431a2-5076-42a8-a751-ec0849030211 2025-07-11 13:18:56,644 - DEBUG - Requesting: http://10.0.0.50:8082/project/3dbf9e65-e258-4851-a17e-461d1ba1f22a 2025-07-11 13:18:56,724 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6241f450-20c8-4a6d-946c-b9003d27e128 2025-07-11 13:18:56,734 - DEBUG - ==>Verifying data for policy with id: e9f49dea-ff43-48ad-b24e-9e8c6a214c14, fqn: ['default-domain', 'ctest-TestBasicPolicy-69429056', 'ctest-policy-allow-all-16895988'] 2025-07-11 13:18:56,734 - INFO - VN ctest-vn-96725864 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-11 13:18:56,735 - DEBUG - Verifying the vn in opserver 2025-07-11 13:18:56,735 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69429056:ctest-vn-96725864 virtual network link through opserver 10.0.0.50 2025-07-11 13:18:56,735 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-11 13:18:56,747 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69429056:ctest-vn-96725864', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69429056:ctest-vn-96725864?flat'} 2025-07-11 13:18:56,747 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69429056:ctest-vn-96725864 is found in opserver 2025-07-11 13:18:56,761 - DEBUG - Do not have enough data to verify VN in agent 2025-07-11 13:18:56,767 - DEBUG - VRF ids for VN ctest-vn-96725864: {} 2025-07-11 13:18:56,832 - DEBUG - Services list from nova: [, , ] 2025-07-11 13:18:57,914 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3629-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3629-1) 2025-07-11 13:18:59,250 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3629-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3629-1) 2025-07-11 13:18:59,251 - INFO - Waiting for VM ctest-TestBasicPolicy-69429056-37912201 to be up.. 2025-07-11 13:18:59,346 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-11 13:19:04,432 - DEBUG - VM is in ACTIVE state now 2025-07-11 13:19:04,432 - INFO - VM name : ctest-TestBasicPolicy-69429056-37912201 2025-07-11 13:19:04,525 - DEBUG - VM ctest-TestBasicPolicy-69429056-37912201 ID is b1d9006c-ba4f-4087-814b-07ffc0ffdda8 2025-07-11 13:19:04,549 - DEBUG - VM ctest-TestBasicPolicy-69429056-37912201 launched on Node cn-jenkins-deploy-platform-ansible-os-3629-1 2025-07-11 13:19:04,638 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/b1d9006c-ba4f-4087-814b-07ffc0ffdda8 2025-07-11 13:19:04,652 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/74090d0c-3151-4f8f-ac88-7be29f56bd87 2025-07-11 13:19:07,927 - 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 1019ms') 2025-07-11 13:19:07,927 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-69429056-37912201 failed! 2025-07-11 13:19:07,985 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-69429056:ctest-vn-32001832 is 176.232.226.193 and allocation pool is NOT set 2025-07-11 13:19:10,050 - 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=19.4 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.760 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 = 0.760/10.094/19.428/9.334 ms') 2025-07-11 13:19:10,050 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-69429056-37912201 passed 2025-07-11 13:19:10,212 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-11 13:19:10,213 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-69429056-37912201, IP 176.232.226.195, Port 22 2025-07-11 13:19:10,368 - DEBUG - VM ctest-TestBasicPolicy-69429056-37912201 is ready for SSH connections 2025-07-11 13:19:10,368 - INFO - Waiting for VM ctest-TestBasicPolicy-69429056-20160081 to be up.. 2025-07-11 13:19:10,455 - DEBUG - VM is in ACTIVE state now 2025-07-11 13:19:10,455 - INFO - VM name : ctest-TestBasicPolicy-69429056-20160081 2025-07-11 13:19:10,536 - DEBUG - VM ctest-TestBasicPolicy-69429056-20160081 ID is 49928738-b373-4a6b-ae47-1e4d19b2c64f 2025-07-11 13:19:10,536 - DEBUG - VM ctest-TestBasicPolicy-69429056-20160081 launched on Node cn-jenkins-deploy-platform-ansible-os-3629-1 2025-07-11 13:19:10,618 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/49928738-b373-4a6b-ae47-1e4d19b2c64f 2025-07-11 13:19:10,631 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/1d2ec2bf-eb3a-41fc-822b-419ede65f7cf 2025-07-11 13:19:11,890 - 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.15 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.71 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 = 2.712/2.928/3.145/0.216 ms') 2025-07-11 13:19:11,890 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-69429056-20160081 passed 2025-07-11 13:19:12,053 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-11 13:19:12,053 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-69429056-20160081, IP 174.13.40.67, Port 22 2025-07-11 13:19:12,108 - 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-11 13:19:12,194 - DEBUG - VM ctest-TestBasicPolicy-69429056-20160081 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-11 13:19:17,194 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-11 13:19:17,195 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-69429056-20160081, IP 174.13.40.67, Port 22 2025-07-11 13:19:17,356 - DEBUG - VM ctest-TestBasicPolicy-69429056-20160081 is ready for SSH connections 2025-07-11 13:19:17,356 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-11 13:19:17,356 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 174.13.40.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-07-11 13:19:17,356 - DEBUG - ping -s 56 -c 3 -W 1 174.13.40.67 2025-07-11 13:19:21,440 - DEBUG - PING 174.13.40.67 (174.13.40.67): 56 data bytes 64 bytes from 174.13.40.67: seq=0 ttl=63 time=3.927 ms 64 bytes from 174.13.40.67: seq=1 ttl=63 time=0.973 ms 64 bytes from 174.13.40.67: seq=2 ttl=63 time=0.957 ms --- 174.13.40.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.957/1.952/3.927 ms 2025-07-11 13:19:21,440 - INFO - Ping to IP 174.13.40.67 from VM ctest-TestBasicPolicy-69429056-37912201 passed 2025-07-11 13:19:21,648 - DEBUG - Policy Update Response {"network-policy": {"uuid": "e9f49dea-ff43-48ad-b24e-9e8c6a214c14", "href": "http://10.0.0.50:8082/network-policy/e9f49dea-ff43-48ad-b24e-9e8c6a214c14"}} 2025-07-11 13:19:21,648 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-11 13:19:21,649 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 174.13.40.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-07-11 13:19:21,649 - DEBUG - ping -s 56 -c 3 -W 1 174.13.40.67 2025-07-11 13:19:24,860 - DEBUG - PING 174.13.40.67 (174.13.40.67): 56 data bytes 64 bytes from 174.13.40.67: seq=0 ttl=63 time=1.555 ms --- 174.13.40.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.555/1.555/1.555 ms 2025-07-11 13:19:24,860 - WARNING - Ping to IP 174.13.40.67 from VM ctest-TestBasicPolicy-69429056-37912201 failed 2025-07-11 13:19:24,860 - INFO - Deleting VM ctest-TestBasicPolicy-69429056-20160081 2025-07-11 13:19:24,942 - INFO - Deleting VM ctest-TestBasicPolicy-69429056-37912201 2025-07-11 13:19:25,421 - INFO - Deleted policy ctest-policy-allow-all-16895988 2025-07-11 13:19:25,421 - INFO - Deleting VN ctest-vn-96725864 2025-07-11 13:19:25,468 - DEBUG - VN 6241f450-20c8-4a6d-946c-b9003d27e128 still in use: Unable to complete operation on network 6241f450-20c8-4a6d-946c-b9003d27e128. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0293db52-0472-4583-817f-8cc3e1c89eb1'] 2025-07-11 13:19:25,469 - WARNING - Deleting VN ctest-vn-96725864 failed..Will retry 2025-07-11 13:19:27,600 - DEBUG - Response for deleting network () 2025-07-11 13:19:27,600 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f1503b7d-d9da-4683-aaa4-f8557e1da9c0 2025-07-11 13:19:27,606 - DEBUG - Response Code: 404 2025-07-11 13:19:27,606 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-11 13:19:27,619 - DEBUG - Requesting: http://10.0.0.50:8082/domain/879431a2-5076-42a8-a751-ec0849030211 2025-07-11 13:19:27,678 - DEBUG - Requesting: http://10.0.0.50:8082/project/3dbf9e65-e258-4851-a17e-461d1ba1f22a 2025-07-11 13:19:27,752 - INFO - Validated that VN ctest-vn-96725864 is not found in API Server 2025-07-11 13:19:27,764 - DEBUG - VN ctest-vn-96725864 is not present in Agent 10.0.0.50 2025-07-11 13:19:27,764 - INFO - Validated that VN ctest-vn-96725864 is not in any agent 2025-07-11 13:19:27,781 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-96725864 info 2025-07-11 13:19:27,781 - INFO - Deleting VN ctest-vn-32001832 2025-07-11 13:19:27,899 - DEBUG - Response for deleting network () 2025-07-11 13:19:27,899 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/07fd1e5a-3e39-45b9-b429-f0d31ad12060 2025-07-11 13:19:27,910 - DEBUG - Response Code: 404 2025-07-11 13:19:27,910 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-11 13:19:27,917 - DEBUG - Requesting: http://10.0.0.50:8082/domain/879431a2-5076-42a8-a751-ec0849030211 2025-07-11 13:19:27,975 - DEBUG - Requesting: http://10.0.0.50:8082/project/3dbf9e65-e258-4851-a17e-461d1ba1f22a 2025-07-11 13:19:28,050 - INFO - Validated that VN ctest-vn-32001832 is not found in API Server 2025-07-11 13:19:28,064 - DEBUG - VN ctest-vn-32001832 is not present in Agent 10.0.0.50 2025-07-11 13:19:28,065 - INFO - Validated that VN ctest-vn-32001832 is not in any agent 2025-07-11 13:19:28,088 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-32001832 info 2025-07-11 13:19:28,363 - DEBUG - No XMPP flaps were noticed during the test 2025-07-11 13:19:28,363 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2025-07-11 13:19:28,363 - INFO - -------------------------------------------------------------------------------- 2025-07-11 13:19:29,070 - INFO - Deleted project: ctest-TestBasicPolicy-69429056, ID : 3dbf9e65-e258-4851-a17e-461d1ba1f22a