2025-11-07 15:52:01,914 - INFO - Domain Default found not creating 2025-11-07 15:52:02,105 - INFO - Project ctest-TestBasicPolicy-64425439 not found, creating it 2025-11-07 15:52:02,587 - INFO - Created Project:ctest-TestBasicPolicy-64425439, ID : 2bf22d15-f460-432c-9f13-f4d4cba2871a 2025-11-07 15:52:04,084 - INFO - ================================================================================ 2025-11-07 15:52:04,085 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-11-07 15:52:04,085 - 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-07 15:52:04,344 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.18': '0'}} with 2025-11-07 15:52:04,344 - INFO - Initial checks done. Running the testcase now 2025-11-07 15:52:04,344 - INFO - 2025-11-07 15:52:04,947 - DEBUG - Response for create_network : {'network': {'id': 'f6a4c0f5-bb45-4ccc-83eb-f3baf82112e1', 'name': 'ctest-vn-34645086', 'tenant_id': '2bf22d15f460432c9f13f4d4cba2871a', 'project_id': '2bf22d15f460432c9f13f4d4cba2871a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64425439', 'ctest-vn-34645086'], 'port_security_enabled': True, 'description': ''}} 2025-11-07 15:52:05,163 - DEBUG - Response for create_subnet : {'subnet': {'id': '68024be5-f40e-4ca3-9c0b-1247b7944a06', 'name': '', 'tenant_id': '2bf22d15f460432c9f13f4d4cba2871a', 'network_id': 'f6a4c0f5-bb45-4ccc-83eb-f3baf82112e1', 'ip_version': 4, 'cidr': '25.176.40.0/26', 'allocation_pools': [{'start': '25.176.40.2', 'end': '25.176.40.62'}], 'gateway_ip': '25.176.40.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.176.40.2', 'tags': [], 'project_id': '2bf22d15f460432c9f13f4d4cba2871a'}} 2025-11-07 15:52:05,183 - INFO - Created VN ctest-vn-34645086 2025-11-07 15:52:05,237 - DEBUG - VN ctest-vn-34645086 UUID is f6a4c0f5-bb45-4ccc-83eb-f3baf82112e1 2025-11-07 15:52:05,552 - DEBUG - Response for create_network : {'network': {'id': 'a15d3d06-a21b-4a05-9a02-b17fd66c31db', 'name': 'ctest-vn-01866158', 'tenant_id': '2bf22d15f460432c9f13f4d4cba2871a', 'project_id': '2bf22d15f460432c9f13f4d4cba2871a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64425439', 'ctest-vn-01866158'], 'port_security_enabled': True, 'description': ''}} 2025-11-07 15:52:05,769 - DEBUG - Response for create_subnet : {'subnet': {'id': '71112839-60a8-42c9-a233-0a970557d24b', 'name': '', 'tenant_id': '2bf22d15f460432c9f13f4d4cba2871a', 'network_id': 'a15d3d06-a21b-4a05-9a02-b17fd66c31db', 'ip_version': 4, 'cidr': '130.108.189.64/26', 'allocation_pools': [{'start': '130.108.189.66', 'end': '130.108.189.126'}], 'gateway_ip': '130.108.189.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.108.189.66', 'tags': [], 'project_id': '2bf22d15f460432c9f13f4d4cba2871a'}} 2025-11-07 15:52:05,789 - INFO - Created VN ctest-vn-01866158 2025-11-07 15:52:05,841 - DEBUG - VN ctest-vn-01866158 UUID is a15d3d06-a21b-4a05-9a02-b17fd66c31db 2025-11-07 15:52:05,968 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-64425439:ctest-vn-34645086, 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-64425439:ctest-vn-01866158, 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-07 15:52:06,288 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f6a4c0f5-bb45-4ccc-83eb-f3baf82112e1', 'name': 'ctest-vn-34645086', 'tenant_id': '2bf22d15f460432c9f13f4d4cba2871a', 'project_id': '2bf22d15f460432c9f13f4d4cba2871a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['68024be5-f40e-4ca3-9c0b-1247b7944a06'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64425439', 'ctest-vn-34645086'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64425439', 'ctest-policy-allow-all-34640669']], 'subnet_ipam': [{'subnet_cidr': '25.176.40.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-07 15:52:06,529 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a15d3d06-a21b-4a05-9a02-b17fd66c31db', 'name': 'ctest-vn-01866158', 'tenant_id': '2bf22d15f460432c9f13f4d4cba2871a', 'project_id': '2bf22d15f460432c9f13f4d4cba2871a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['71112839-60a8-42c9-a233-0a970557d24b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64425439', 'ctest-vn-01866158'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64425439', 'ctest-policy-allow-all-34640669']], 'subnet_ipam': [{'subnet_cidr': '130.108.189.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-07 15:52:06,677 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-07 15:52:06,981 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-07 15:52:07,012 - DEBUG - Requesting: http://10.0.0.242:8082/domain/860d3f7d-0152-4986-8a9b-26dbb8901334 2025-11-07 15:52:07,025 - DEBUG - Requesting: http://10.0.0.242:8082/project/2bf22d15-f460-432c-9f13-f4d4cba2871a 2025-11-07 15:52:07,104 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/f6a4c0f5-bb45-4ccc-83eb-f3baf82112e1 2025-11-07 15:52:07,116 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/f6a4c0f5-bb45-4ccc-83eb-f3baf82112e1 2025-11-07 15:52:07,128 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/f8854450-8a5a-495b-ae1a-fad3fa6bc86b 2025-11-07 15:52:07,137 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/f8854450-8a5a-495b-ae1a-fad3fa6bc86b 2025-11-07 15:52:07,146 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/6e974d79-66fc-49e8-89fd-7bcfbd0fade8 2025-11-07 15:52:07,153 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-07 15:52:07,153 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/f6a4c0f5-bb45-4ccc-83eb-f3baf82112e1 2025-11-07 15:52:07,165 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/f8854450-8a5a-495b-ae1a-fad3fa6bc86b 2025-11-07 15:52:07,180 - INFO - Verified VN network id 11 for VN f6a4c0f5-bb45-4ccc-83eb-f3baf82112e1 2025-11-07 15:52:07,180 - INFO - Verifications in API Server for VN ctest-vn-34645086 passed 2025-11-07 15:52:07,180 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/f6a4c0f5-bb45-4ccc-83eb-f3baf82112e1 2025-11-07 15:52:07,191 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/f8854450-8a5a-495b-ae1a-fad3fa6bc86b 2025-11-07 15:52:07,202 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/f8854450-8a5a-495b-ae1a-fad3fa6bc86b 2025-11-07 15:52:07,211 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/6e974d79-66fc-49e8-89fd-7bcfbd0fade8 2025-11-07 15:52:07,224 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64425439:ctest-vn-34645086', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64425439', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17772542191152221388', 'uuid-lslong': '9505959422847947489'}, 'enable': 'true', 'created': '2025-11-07T15:52:04', 'last-modified': '2025-11-07T15:52:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.965775'} 2025-11-07 15:52:07,232 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-07 15:52:07,232 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34645086 passed 2025-11-07 15:52:07,232 - DEBUG - ====Verifying policy data for ctest-vn-34645086 in API_Server ====== 2025-11-07 15:52:07,232 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-07 15:52:07,238 - DEBUG - Requesting: http://10.0.0.242:8082/domain/860d3f7d-0152-4986-8a9b-26dbb8901334 2025-11-07 15:52:07,249 - DEBUG - Requesting: http://10.0.0.242:8082/project/2bf22d15-f460-432c-9f13-f4d4cba2871a 2025-11-07 15:52:07,318 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/f6a4c0f5-bb45-4ccc-83eb-f3baf82112e1 2025-11-07 15:52:07,333 - DEBUG - ==>Verifying data for policy with id: 8879c735-bdfd-4265-bec7-773ec2a217f5, fqn: ['default-domain', 'ctest-TestBasicPolicy-64425439', 'ctest-policy-allow-all-34640669'] 2025-11-07 15:52:07,333 - INFO - VN ctest-vn-34645086 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-07 15:52:07,333 - DEBUG - Verifying the vn in opserver 2025-11-07 15:52:07,333 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64425439:ctest-vn-34645086 virtual network link through opserver 10.0.0.242 2025-11-07 15:52:07,333 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-11-07 15:52:07,632 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-11-07 15:52:07,724 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64425439:ctest-vn-34645086', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64425439:ctest-vn-34645086?flat'} 2025-11-07 15:52:07,724 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64425439:ctest-vn-34645086 is found in opserver 2025-11-07 15:52:07,740 - DEBUG - Do not have enough data to verify VN in agent 2025-11-07 15:52:07,746 - DEBUG - VRF ids for VN ctest-vn-34645086: {} 2025-11-07 15:52:07,746 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-07 15:52:07,754 - DEBUG - Requesting: http://10.0.0.242:8082/domain/860d3f7d-0152-4986-8a9b-26dbb8901334 2025-11-07 15:52:07,767 - DEBUG - Requesting: http://10.0.0.242:8082/project/2bf22d15-f460-432c-9f13-f4d4cba2871a 2025-11-07 15:52:07,850 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a15d3d06-a21b-4a05-9a02-b17fd66c31db 2025-11-07 15:52:07,863 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a15d3d06-a21b-4a05-9a02-b17fd66c31db 2025-11-07 15:52:07,873 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7748a146-9e05-4fbc-9333-be03cf7999c1 2025-11-07 15:52:07,880 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7748a146-9e05-4fbc-9333-be03cf7999c1 2025-11-07 15:52:07,888 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/bf2e0f49-ff36-4d68-b80a-104a3784a9f4 2025-11-07 15:52:07,895 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-07 15:52:07,895 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a15d3d06-a21b-4a05-9a02-b17fd66c31db 2025-11-07 15:52:07,904 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7748a146-9e05-4fbc-9333-be03cf7999c1 2025-11-07 15:52:07,920 - INFO - Verified VN network id 12 for VN a15d3d06-a21b-4a05-9a02-b17fd66c31db 2025-11-07 15:52:07,920 - INFO - Verifications in API Server for VN ctest-vn-01866158 passed 2025-11-07 15:52:07,920 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a15d3d06-a21b-4a05-9a02-b17fd66c31db 2025-11-07 15:52:07,930 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7748a146-9e05-4fbc-9333-be03cf7999c1 2025-11-07 15:52:07,939 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7748a146-9e05-4fbc-9333-be03cf7999c1 2025-11-07 15:52:07,948 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/bf2e0f49-ff36-4d68-b80a-104a3784a9f4 2025-11-07 15:52:07,961 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64425439:ctest-vn-01866158', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64425439', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11627516911639284229', 'uuid-lslong': '11097627594410701275'}, 'enable': 'true', 'created': '2025-11-07T15:52:05', 'last-modified': '2025-11-07T15:52:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.458941'} 2025-11-07 15:52:07,968 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-07 15:52:07,968 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01866158 passed 2025-11-07 15:52:07,968 - DEBUG - ====Verifying policy data for ctest-vn-01866158 in API_Server ====== 2025-11-07 15:52:07,968 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-07 15:52:07,975 - DEBUG - Requesting: http://10.0.0.242:8082/domain/860d3f7d-0152-4986-8a9b-26dbb8901334 2025-11-07 15:52:07,988 - DEBUG - Requesting: http://10.0.0.242:8082/project/2bf22d15-f460-432c-9f13-f4d4cba2871a 2025-11-07 15:52:08,061 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a15d3d06-a21b-4a05-9a02-b17fd66c31db 2025-11-07 15:52:08,073 - DEBUG - ==>Verifying data for policy with id: 8879c735-bdfd-4265-bec7-773ec2a217f5, fqn: ['default-domain', 'ctest-TestBasicPolicy-64425439', 'ctest-policy-allow-all-34640669'] 2025-11-07 15:52:08,073 - INFO - VN ctest-vn-01866158 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-07 15:52:08,074 - DEBUG - Verifying the vn in opserver 2025-11-07 15:52:08,074 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64425439:ctest-vn-01866158 virtual network link through opserver 10.0.0.242 2025-11-07 15:52:08,074 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-11-07 15:52:08,085 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64425439:ctest-vn-01866158', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64425439:ctest-vn-01866158?flat'} 2025-11-07 15:52:08,085 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64425439:ctest-vn-01866158 is found in opserver 2025-11-07 15:52:08,096 - DEBUG - Do not have enough data to verify VN in agent 2025-11-07 15:52:08,103 - DEBUG - VRF ids for VN ctest-vn-01866158: {} 2025-11-07 15:52:08,170 - DEBUG - Services list from nova: [, , ] 2025-11-07 15:52:09,261 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4670-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4670-1) 2025-11-07 15:52:10,477 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4670-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4670-1) 2025-11-07 15:52:10,478 - INFO - Waiting for VM ctest-TestBasicPolicy-64425439-97843696 to be up.. 2025-11-07 15:52:10,580 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-07 15:52:15,693 - DEBUG - VM is in ACTIVE state now 2025-11-07 15:52:15,693 - INFO - VM name : ctest-TestBasicPolicy-64425439-97843696 2025-11-07 15:52:15,775 - DEBUG - VM ctest-TestBasicPolicy-64425439-97843696 ID is 704a9029-3ea4-4a32-8252-eed85e83ad62 2025-11-07 15:52:15,796 - DEBUG - VM ctest-TestBasicPolicy-64425439-97843696 launched on Node cn-jenkins-deploy-platform-ansible-os-4670-1 2025-11-07 15:52:15,889 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine/704a9029-3ea4-4a32-8252-eed85e83ad62 2025-11-07 15:52:15,897 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine-interface/6421c84d-ecff-4582-a65c-65a737a491dd 2025-11-07 15:52:19,140 - 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-07 15:52:19,140 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-64425439-97843696 failed! 2025-11-07 15:52:19,197 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-64425439:ctest-vn-34645086 is 25.176.40.1 and allocation pool is NOT set 2025-11-07 15:52:21,261 - 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=9.34 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.08 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 2.084/5.710/9.336/3.626 ms') 2025-11-07 15:52:21,261 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-64425439-97843696 passed 2025-11-07 15:52:21,409 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-07 15:52:21,409 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-64425439-97843696, IP 25.176.40.3, Port 22 2025-11-07 15:52:21,565 - DEBUG - VM ctest-TestBasicPolicy-64425439-97843696 is ready for SSH connections 2025-11-07 15:52:21,565 - INFO - Waiting for VM ctest-TestBasicPolicy-64425439-60243949 to be up.. 2025-11-07 15:52:21,646 - DEBUG - VM is in ACTIVE state now 2025-11-07 15:52:21,646 - INFO - VM name : ctest-TestBasicPolicy-64425439-60243949 2025-11-07 15:52:21,722 - DEBUG - VM ctest-TestBasicPolicy-64425439-60243949 ID is 53639150-549c-4845-a348-15f8800ca71d 2025-11-07 15:52:21,722 - DEBUG - VM ctest-TestBasicPolicy-64425439-60243949 launched on Node cn-jenkins-deploy-platform-ansible-os-4670-1 2025-11-07 15:52:21,800 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine/53639150-549c-4845-a348-15f8800ca71d 2025-11-07 15:52:21,809 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine-interface/206798e9-c503-4f8d-9784-1819d50c291e 2025-11-07 15:52:23,055 - 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.10 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.39 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.391/2.745/4.100/1.354 ms') 2025-11-07 15:52:23,055 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-64425439-60243949 passed 2025-11-07 15:52:23,209 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-07 15:52:23,209 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-64425439-60243949, IP 130.108.189.67, Port 22 2025-11-07 15:52:23,275 - 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-07 15:52:23,359 - DEBUG - VM ctest-TestBasicPolicy-64425439-60243949 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-07 15:52:28,360 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-07 15:52:28,360 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-64425439-60243949, IP 130.108.189.67, Port 22 2025-11-07 15:52:28,517 - DEBUG - VM ctest-TestBasicPolicy-64425439-60243949 is ready for SSH connections 2025-11-07 15:52:28,517 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-07 15:52:28,517 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 130.108.189.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.242, gateway password: c0ntrail123 2025-11-07 15:52:28,517 - DEBUG - ping -s 56 -c 3 -W 1 130.108.189.67 2025-11-07 15:52:32,229 - DEBUG - PING 130.108.189.67 (130.108.189.67): 56 data bytes 64 bytes from 130.108.189.67: seq=0 ttl=63 time=4.175 ms 64 bytes from 130.108.189.67: seq=1 ttl=63 time=1.384 ms 64 bytes from 130.108.189.67: seq=2 ttl=63 time=1.531 ms --- 130.108.189.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.384/2.363/4.175 ms 2025-11-07 15:52:32,230 - INFO - Ping to IP 130.108.189.67 from VM ctest-TestBasicPolicy-64425439-97843696 passed 2025-11-07 15:52:32,409 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8879c735-bdfd-4265-bec7-773ec2a217f5", "href": "http://10.0.0.242:8082/network-policy/8879c735-bdfd-4265-bec7-773ec2a217f5"}} 2025-11-07 15:52:32,409 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-07 15:52:32,409 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 130.108.189.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.242, gateway password: c0ntrail123 2025-11-07 15:52:32,410 - DEBUG - ping -s 56 -c 3 -W 1 130.108.189.67 2025-11-07 15:52:35,667 - DEBUG - PING 130.108.189.67 (130.108.189.67): 56 data bytes --- 130.108.189.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-11-07 15:52:35,667 - WARNING - Ping to IP 130.108.189.67 from VM ctest-TestBasicPolicy-64425439-97843696 failed 2025-11-07 15:52:35,667 - INFO - Deleting VM ctest-TestBasicPolicy-64425439-60243949 2025-11-07 15:52:35,748 - INFO - Deleting VM ctest-TestBasicPolicy-64425439-97843696 2025-11-07 15:52:36,151 - INFO - Deleted policy ctest-policy-allow-all-34640669 2025-11-07 15:52:36,151 - INFO - Deleting VN ctest-vn-01866158 2025-11-07 15:52:36,195 - DEBUG - VN a15d3d06-a21b-4a05-9a02-b17fd66c31db still in use: Unable to complete operation on network a15d3d06-a21b-4a05-9a02-b17fd66c31db. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c5f9d787-d1bc-468f-900b-22160c990bbe'] 2025-11-07 15:52:36,195 - WARNING - Deleting VN ctest-vn-01866158 failed..Will retry 2025-11-07 15:52:38,295 - DEBUG - Response for deleting network () 2025-11-07 15:52:38,295 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7748a146-9e05-4fbc-9333-be03cf7999c1 2025-11-07 15:52:38,301 - DEBUG - Response Code: 404 2025-11-07 15:52:38,301 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-07 15:52:38,306 - DEBUG - Requesting: http://10.0.0.242:8082/domain/860d3f7d-0152-4986-8a9b-26dbb8901334 2025-11-07 15:52:38,359 - DEBUG - Requesting: http://10.0.0.242:8082/project/2bf22d15-f460-432c-9f13-f4d4cba2871a 2025-11-07 15:52:38,434 - INFO - Validated that VN ctest-vn-01866158 is not found in API Server 2025-11-07 15:52:38,444 - DEBUG - VN ctest-vn-01866158 is not present in Agent 10.0.0.242 2025-11-07 15:52:38,444 - INFO - Validated that VN ctest-vn-01866158 is not in any agent 2025-11-07 15:52:38,460 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-01866158 info 2025-11-07 15:52:38,460 - INFO - Deleting VN ctest-vn-34645086 2025-11-07 15:52:38,577 - DEBUG - Response for deleting network () 2025-11-07 15:52:38,577 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/f8854450-8a5a-495b-ae1a-fad3fa6bc86b 2025-11-07 15:52:38,586 - DEBUG - Response Code: 404 2025-11-07 15:52:38,587 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-07 15:52:38,593 - DEBUG - Requesting: http://10.0.0.242:8082/domain/860d3f7d-0152-4986-8a9b-26dbb8901334 2025-11-07 15:52:38,648 - DEBUG - Requesting: http://10.0.0.242:8082/project/2bf22d15-f460-432c-9f13-f4d4cba2871a 2025-11-07 15:52:38,724 - INFO - Validated that VN ctest-vn-34645086 is not found in API Server 2025-11-07 15:52:38,736 - DEBUG - VN ctest-vn-34645086 is not present in Agent 10.0.0.242 2025-11-07 15:52:38,736 - INFO - Validated that VN ctest-vn-34645086 is not in any agent 2025-11-07 15:52:38,750 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-34645086 info 2025-11-07 15:52:39,025 - DEBUG - No XMPP flaps were noticed during the test 2025-11-07 15:52:39,025 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-11-07 15:52:39,025 - INFO - -------------------------------------------------------------------------------- 2025-11-07 15:52:39,716 - INFO - Deleted project: ctest-TestBasicPolicy-64425439, ID : 2bf22d15-f460-432c-9f13-f4d4cba2871a