2025-07-19 08:04:07,164 - INFO - Domain Default found not creating 2025-07-19 08:04:07,513 - INFO - Project ctest-TestBasicPolicy-28776157 not found, creating it 2025-07-19 08:04:08,297 - INFO - Created Project:ctest-TestBasicPolicy-28776157, ID : 986a509a-ed6a-4f65-a0b0-071a67966595 2025-07-19 08:04:10,605 - INFO - ================================================================================ 2025-07-19 08:04:10,605 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-07-19 08:04:10,606 - 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-19 08:04:10,938 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.25': '0'}} with 2025-07-19 08:04:10,938 - INFO - Initial checks done. Running the testcase now 2025-07-19 08:04:10,938 - INFO - 2025-07-19 08:04:11,851 - DEBUG - Response for create_network : {'network': {'id': '66b9210e-7440-496b-b28e-00f8edc8adcf', 'name': 'ctest-vn-01297102', 'tenant_id': '986a509aed6a4f65a0b0071a67966595', 'project_id': '986a509aed6a4f65a0b0071a67966595', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28776157', 'ctest-vn-01297102'], 'port_security_enabled': True, 'description': ''}} 2025-07-19 08:04:12,144 - DEBUG - Response for create_subnet : {'subnet': {'id': '090d73ab-eabe-4e28-84c3-6ecc68ced106', 'name': '', 'tenant_id': '986a509aed6a4f65a0b0071a67966595', 'network_id': '66b9210e-7440-496b-b28e-00f8edc8adcf', 'ip_version': 4, 'cidr': '124.161.63.0/26', 'allocation_pools': [{'start': '124.161.63.2', 'end': '124.161.63.62'}], 'gateway_ip': '124.161.63.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.161.63.2', 'tags': [], 'project_id': '986a509aed6a4f65a0b0071a67966595'}} 2025-07-19 08:04:12,192 - INFO - Created VN ctest-vn-01297102 2025-07-19 08:04:12,250 - DEBUG - VN ctest-vn-01297102 UUID is 66b9210e-7440-496b-b28e-00f8edc8adcf 2025-07-19 08:04:12,797 - DEBUG - Response for create_network : {'network': {'id': '2c1dc132-5451-43cc-ab77-d52f7f0d7699', 'name': 'ctest-vn-25550856', 'tenant_id': '986a509aed6a4f65a0b0071a67966595', 'project_id': '986a509aed6a4f65a0b0071a67966595', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28776157', 'ctest-vn-25550856'], 'port_security_enabled': True, 'description': ''}} 2025-07-19 08:04:13,085 - DEBUG - Response for create_subnet : {'subnet': {'id': '73f8520e-f04f-4a6a-bc05-22940dbb0db0', 'name': '', 'tenant_id': '986a509aed6a4f65a0b0071a67966595', 'network_id': '2c1dc132-5451-43cc-ab77-d52f7f0d7699', 'ip_version': 4, 'cidr': '124.72.180.192/26', 'allocation_pools': [{'start': '124.72.180.194', 'end': '124.72.180.254'}], 'gateway_ip': '124.72.180.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.72.180.194', 'tags': [], 'project_id': '986a509aed6a4f65a0b0071a67966595'}} 2025-07-19 08:04:13,126 - INFO - Created VN ctest-vn-25550856 2025-07-19 08:04:13,201 - DEBUG - VN ctest-vn-25550856 UUID is 2c1dc132-5451-43cc-ab77-d52f7f0d7699 2025-07-19 08:04:13,411 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-28776157:ctest-vn-01297102, 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-28776157:ctest-vn-25550856, 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-19 08:04:13,909 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '66b9210e-7440-496b-b28e-00f8edc8adcf', 'name': 'ctest-vn-01297102', 'tenant_id': '986a509aed6a4f65a0b0071a67966595', 'project_id': '986a509aed6a4f65a0b0071a67966595', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['090d73ab-eabe-4e28-84c3-6ecc68ced106'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28776157', 'ctest-vn-01297102'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28776157', 'ctest-policy-allow-all-39924497']], 'subnet_ipam': [{'subnet_cidr': '124.161.63.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-19 08:04:14,299 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2c1dc132-5451-43cc-ab77-d52f7f0d7699', 'name': 'ctest-vn-25550856', 'tenant_id': '986a509aed6a4f65a0b0071a67966595', 'project_id': '986a509aed6a4f65a0b0071a67966595', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['73f8520e-f04f-4a6a-bc05-22940dbb0db0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28776157', 'ctest-vn-25550856'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28776157', 'ctest-policy-allow-all-39924497']], 'subnet_ipam': [{'subnet_cidr': '124.72.180.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-19 08:04:14,494 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-07-19 08:04:14,880 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-07-19 08:04:14,951 - DEBUG - Requesting: http://10.0.0.137:8082/domain/e85714c0-96bb-499f-a57f-4baef17f0cda 2025-07-19 08:04:14,980 - DEBUG - Requesting: http://10.0.0.137:8082/project/986a509a-ed6a-4f65-a0b0-071a67966595 2025-07-19 08:04:15,116 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/66b9210e-7440-496b-b28e-00f8edc8adcf 2025-07-19 08:04:15,154 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/66b9210e-7440-496b-b28e-00f8edc8adcf 2025-07-19 08:04:15,190 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/b10957b3-2506-4329-9d02-b9c2e0961b1a 2025-07-19 08:04:15,211 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/b10957b3-2506-4329-9d02-b9c2e0961b1a 2025-07-19 08:04:15,230 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/b10a045c-87c7-402a-9de8-057d862ba916 2025-07-19 08:04:15,248 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-19 08:04:15,248 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/66b9210e-7440-496b-b28e-00f8edc8adcf 2025-07-19 08:04:15,275 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/b10957b3-2506-4329-9d02-b9c2e0961b1a 2025-07-19 08:04:15,317 - INFO - Verified VN network id 8 for VN 66b9210e-7440-496b-b28e-00f8edc8adcf 2025-07-19 08:04:15,318 - INFO - Verifications in API Server for VN ctest-vn-01297102 passed 2025-07-19 08:04:15,318 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/66b9210e-7440-496b-b28e-00f8edc8adcf 2025-07-19 08:04:15,346 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/b10957b3-2506-4329-9d02-b9c2e0961b1a 2025-07-19 08:04:15,366 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/b10957b3-2506-4329-9d02-b9c2e0961b1a 2025-07-19 08:04:15,390 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/b10a045c-87c7-402a-9de8-057d862ba916 2025-07-19 08:04:15,434 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28776157:ctest-vn-01297102', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28776157', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7401983808523749739', 'uuid-lslong': '12866222254585327055'}, 'enable': 'true', 'created': '2025-07-19T08:04:11', 'last-modified': '2025-07-19T08:04:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.577873'} 2025-07-19 08:04:15,453 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-19 08:04:15,453 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01297102 passed 2025-07-19 08:04:15,454 - DEBUG - ====Verifying policy data for ctest-vn-01297102 in API_Server ====== 2025-07-19 08:04:15,454 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-07-19 08:04:15,466 - DEBUG - Requesting: http://10.0.0.137:8082/domain/e85714c0-96bb-499f-a57f-4baef17f0cda 2025-07-19 08:04:15,500 - DEBUG - Requesting: http://10.0.0.137:8082/project/986a509a-ed6a-4f65-a0b0-071a67966595 2025-07-19 08:04:15,604 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/66b9210e-7440-496b-b28e-00f8edc8adcf 2025-07-19 08:04:15,632 - DEBUG - ==>Verifying data for policy with id: d322a481-d209-4b83-b4a4-2ca459c9300f, fqn: ['default-domain', 'ctest-TestBasicPolicy-28776157', 'ctest-policy-allow-all-39924497'] 2025-07-19 08:04:15,633 - INFO - VN ctest-vn-01297102 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-19 08:04:15,633 - DEBUG - Verifying the vn in opserver 2025-07-19 08:04:15,633 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28776157:ctest-vn-01297102 virtual network link through opserver 10.0.0.137 2025-07-19 08:04:15,633 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks 2025-07-19 08:04:15,979 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks 2025-07-19 08:04:16,087 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28776157:ctest-vn-01297102', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28776157:ctest-vn-01297102?flat'} 2025-07-19 08:04:16,087 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28776157:ctest-vn-01297102 is found in opserver 2025-07-19 08:04:16,129 - DEBUG - Do not have enough data to verify VN in agent 2025-07-19 08:04:16,144 - DEBUG - VRF ids for VN ctest-vn-01297102: {} 2025-07-19 08:04:16,145 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-07-19 08:04:16,161 - DEBUG - Requesting: http://10.0.0.137:8082/domain/e85714c0-96bb-499f-a57f-4baef17f0cda 2025-07-19 08:04:16,202 - DEBUG - Requesting: http://10.0.0.137:8082/project/986a509a-ed6a-4f65-a0b0-071a67966595 2025-07-19 08:04:16,322 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/2c1dc132-5451-43cc-ab77-d52f7f0d7699 2025-07-19 08:04:16,348 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/2c1dc132-5451-43cc-ab77-d52f7f0d7699 2025-07-19 08:04:16,373 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/5c835efd-ca8b-4fcc-8d04-6b156129337c 2025-07-19 08:04:16,392 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/5c835efd-ca8b-4fcc-8d04-6b156129337c 2025-07-19 08:04:16,413 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/5f279d55-a178-452c-b912-dcb70765af67 2025-07-19 08:04:16,435 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-19 08:04:16,436 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/2c1dc132-5451-43cc-ab77-d52f7f0d7699 2025-07-19 08:04:16,463 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/5c835efd-ca8b-4fcc-8d04-6b156129337c 2025-07-19 08:04:16,497 - INFO - Verified VN network id 9 for VN 2c1dc132-5451-43cc-ab77-d52f7f0d7699 2025-07-19 08:04:16,497 - INFO - Verifications in API Server for VN ctest-vn-25550856 passed 2025-07-19 08:04:16,497 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/2c1dc132-5451-43cc-ab77-d52f7f0d7699 2025-07-19 08:04:16,525 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/5c835efd-ca8b-4fcc-8d04-6b156129337c 2025-07-19 08:04:16,549 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/5c835efd-ca8b-4fcc-8d04-6b156129337c 2025-07-19 08:04:16,573 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/5f279d55-a178-452c-b912-dcb70765af67 2025-07-19 08:04:16,613 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28776157:ctest-vn-25550856', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28776157', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3178909333900575692', 'uuid-lslong': '12355578502686013081'}, 'enable': 'true', 'created': '2025-07-19T08:04:12', 'last-modified': '2025-07-19T08:04:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.387509'} 2025-07-19 08:04:16,634 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-19 08:04:16,635 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25550856 passed 2025-07-19 08:04:16,635 - DEBUG - ====Verifying policy data for ctest-vn-25550856 in API_Server ====== 2025-07-19 08:04:16,635 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-07-19 08:04:16,656 - DEBUG - Requesting: http://10.0.0.137:8082/domain/e85714c0-96bb-499f-a57f-4baef17f0cda 2025-07-19 08:04:16,697 - DEBUG - Requesting: http://10.0.0.137:8082/project/986a509a-ed6a-4f65-a0b0-071a67966595 2025-07-19 08:04:16,826 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/2c1dc132-5451-43cc-ab77-d52f7f0d7699 2025-07-19 08:04:16,856 - DEBUG - ==>Verifying data for policy with id: d322a481-d209-4b83-b4a4-2ca459c9300f, fqn: ['default-domain', 'ctest-TestBasicPolicy-28776157', 'ctest-policy-allow-all-39924497'] 2025-07-19 08:04:16,856 - INFO - VN ctest-vn-25550856 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-19 08:04:16,856 - DEBUG - Verifying the vn in opserver 2025-07-19 08:04:16,856 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28776157:ctest-vn-25550856 virtual network link through opserver 10.0.0.137 2025-07-19 08:04:16,856 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks 2025-07-19 08:04:16,886 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28776157:ctest-vn-25550856', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28776157:ctest-vn-25550856?flat'} 2025-07-19 08:04:16,886 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28776157:ctest-vn-25550856 is found in opserver 2025-07-19 08:04:16,920 - DEBUG - Do not have enough data to verify VN in agent 2025-07-19 08:04:16,936 - DEBUG - VRF ids for VN ctest-vn-25550856: {} 2025-07-19 08:04:17,088 - DEBUG - Services list from nova: [, , ] 2025-07-19 08:04:18,743 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3668-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3668-1) 2025-07-19 08:04:20,299 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3668-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3668-1) 2025-07-19 08:04:20,300 - INFO - Waiting for VM ctest-TestBasicPolicy-28776157-42213179 to be up.. 2025-07-19 08:04:20,394 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-19 08:04:25,559 - DEBUG - VM is in ACTIVE state now 2025-07-19 08:04:25,560 - INFO - VM name : ctest-TestBasicPolicy-28776157-42213179 2025-07-19 08:04:25,674 - DEBUG - VM ctest-TestBasicPolicy-28776157-42213179 ID is 2f8d82ca-c60b-4797-8680-fd1f967cd602 2025-07-19 08:04:25,702 - DEBUG - VM ctest-TestBasicPolicy-28776157-42213179 launched on Node cn-jenkins-deploy-platform-ansible-os-3668-1 2025-07-19 08:04:25,819 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine/2f8d82ca-c60b-4797-8680-fd1f967cd602 2025-07-19 08:04:25,831 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine-interface/f3bc0927-e6cc-4791-90c7-3f17215ee9d5 2025-07-19 08:04:29,153 - 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 1023ms') 2025-07-19 08:04:29,153 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-28776157-42213179 failed! 2025-07-19 08:04:29,213 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-28776157:ctest-vn-01297102 is 124.161.63.1 and allocation pool is NOT set 2025-07-19 08:04:31,293 - 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=13.5 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.06 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.059/7.269/13.479/6.210 ms') 2025-07-19 08:04:31,294 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-28776157-42213179 passed 2025-07-19 08:04:31,480 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-19 08:04:31,482 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-28776157-42213179, IP 124.161.63.3, Port 22 2025-07-19 08:04:31,648 - DEBUG - VM ctest-TestBasicPolicy-28776157-42213179 is ready for SSH connections 2025-07-19 08:04:31,648 - INFO - Waiting for VM ctest-TestBasicPolicy-28776157-96150902 to be up.. 2025-07-19 08:04:31,720 - DEBUG - VM is in ACTIVE state now 2025-07-19 08:04:31,720 - INFO - VM name : ctest-TestBasicPolicy-28776157-96150902 2025-07-19 08:04:31,802 - DEBUG - VM ctest-TestBasicPolicy-28776157-96150902 ID is 7a49f447-e5a3-4032-97d8-0263c79c71c6 2025-07-19 08:04:31,802 - DEBUG - VM ctest-TestBasicPolicy-28776157-96150902 launched on Node cn-jenkins-deploy-platform-ansible-os-3668-1 2025-07-19 08:04:31,924 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine/7a49f447-e5a3-4032-97d8-0263c79c71c6 2025-07-19 08:04:31,936 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine-interface/9197b9f8-1316-47e9-b204-2791e81eecde 2025-07-19 08:04:33,217 - 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=10.9 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.51 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.514/6.727/10.940/4.213 ms') 2025-07-19 08:04:33,218 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-28776157-96150902 passed 2025-07-19 08:04:33,390 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-19 08:04:33,390 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-28776157-96150902, IP 124.72.180.195, Port 22 2025-07-19 08:04:33,470 - 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-19 08:04:33,631 - DEBUG - VM ctest-TestBasicPolicy-28776157-96150902 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-19 08:04:38,632 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-19 08:04:38,633 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-28776157-96150902, IP 124.72.180.195, Port 22 2025-07-19 08:04:38,829 - DEBUG - VM ctest-TestBasicPolicy-28776157-96150902 is ready for SSH connections 2025-07-19 08:04:38,830 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-19 08:04:38,830 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 124.72.180.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.137, gateway password: c0ntrail123 2025-07-19 08:04:38,831 - DEBUG - ping -s 56 -c 3 -W 1 124.72.180.195 2025-07-19 08:04:43,436 - DEBUG - PING 124.72.180.195 (124.72.180.195): 56 data bytes 64 bytes from 124.72.180.195: seq=0 ttl=63 time=4.105 ms 64 bytes from 124.72.180.195: seq=1 ttl=63 time=2.309 ms 64 bytes from 124.72.180.195: seq=2 ttl=63 time=1.638 ms --- 124.72.180.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.638/2.684/4.105 ms 2025-07-19 08:04:43,437 - INFO - Ping to IP 124.72.180.195 from VM ctest-TestBasicPolicy-28776157-42213179 passed 2025-07-19 08:04:43,677 - DEBUG - Policy Update Response {"network-policy": {"uuid": "d322a481-d209-4b83-b4a4-2ca459c9300f", "href": "http://10.0.0.137:8082/network-policy/d322a481-d209-4b83-b4a4-2ca459c9300f"}} 2025-07-19 08:04:43,677 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-19 08:04:43,677 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 124.72.180.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.137, gateway password: c0ntrail123 2025-07-19 08:04:43,677 - DEBUG - ping -s 56 -c 3 -W 1 124.72.180.195 2025-07-19 08:04:46,965 - DEBUG - PING 124.72.180.195 (124.72.180.195): 56 data bytes 64 bytes from 124.72.180.195: seq=0 ttl=63 time=2.106 ms --- 124.72.180.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.106/2.106/2.106 ms 2025-07-19 08:04:46,966 - WARNING - Ping to IP 124.72.180.195 from VM ctest-TestBasicPolicy-28776157-42213179 failed 2025-07-19 08:04:46,966 - INFO - Deleting VM ctest-TestBasicPolicy-28776157-96150902 2025-07-19 08:04:47,148 - INFO - Deleting VM ctest-TestBasicPolicy-28776157-42213179 2025-07-19 08:04:47,776 - INFO - Deleted policy ctest-policy-allow-all-39924497 2025-07-19 08:04:47,776 - INFO - Deleting VN ctest-vn-25550856 2025-07-19 08:04:47,844 - DEBUG - VN 2c1dc132-5451-43cc-ab77-d52f7f0d7699 still in use: Unable to complete operation on network 2c1dc132-5451-43cc-ab77-d52f7f0d7699. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9b40f586-63f0-4428-8a74-d179e80529af'] 2025-07-19 08:04:47,844 - WARNING - Deleting VN ctest-vn-25550856 failed..Will retry 2025-07-19 08:04:50,069 - DEBUG - Response for deleting network () 2025-07-19 08:04:50,069 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/5c835efd-ca8b-4fcc-8d04-6b156129337c 2025-07-19 08:04:50,085 - DEBUG - Response Code: 404 2025-07-19 08:04:50,086 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-07-19 08:04:50,102 - DEBUG - Requesting: http://10.0.0.137:8082/domain/e85714c0-96bb-499f-a57f-4baef17f0cda 2025-07-19 08:04:50,133 - DEBUG - Requesting: http://10.0.0.137:8082/project/986a509a-ed6a-4f65-a0b0-071a67966595 2025-07-19 08:04:50,241 - INFO - Validated that VN ctest-vn-25550856 is not found in API Server 2025-07-19 08:04:50,277 - DEBUG - VN ctest-vn-25550856 is not present in Agent 10.0.0.137 2025-07-19 08:04:50,277 - INFO - Validated that VN ctest-vn-25550856 is not in any agent 2025-07-19 08:04:50,326 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-25550856 info 2025-07-19 08:04:50,326 - INFO - Deleting VN ctest-vn-01297102 2025-07-19 08:04:50,553 - DEBUG - Response for deleting network () 2025-07-19 08:04:50,554 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/b10957b3-2506-4329-9d02-b9c2e0961b1a 2025-07-19 08:04:50,567 - DEBUG - Response Code: 404 2025-07-19 08:04:50,567 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-07-19 08:04:50,587 - DEBUG - Requesting: http://10.0.0.137:8082/domain/e85714c0-96bb-499f-a57f-4baef17f0cda 2025-07-19 08:04:50,602 - DEBUG - Requesting: http://10.0.0.137:8082/project/986a509a-ed6a-4f65-a0b0-071a67966595 2025-07-19 08:04:50,725 - INFO - Validated that VN ctest-vn-01297102 is not found in API Server 2025-07-19 08:04:50,762 - DEBUG - VN ctest-vn-01297102 is not present in Agent 10.0.0.137 2025-07-19 08:04:50,762 - INFO - Validated that VN ctest-vn-01297102 is not in any agent 2025-07-19 08:04:50,801 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-01297102 info 2025-07-19 08:04:51,111 - DEBUG - No XMPP flaps were noticed during the test
2025-07-19 08:04:51,111 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:41]
2025-07-19 08:04:51,112 - INFO - -------------------------------------------------------------------------------- 2025-07-19 08:04:52,052 - INFO - Deleted project: ctest-TestBasicPolicy-28776157, ID : 986a509a-ed6a-4f65-a0b0-071a67966595