2025-04-28 15:57:06,763 - INFO - Domain Default found not creating 2025-04-28 15:57:06,894 - INFO - Project ctest-TestBasicPolicy-16626645 not found, creating it 2025-04-28 15:57:07,342 - INFO - Created Project:ctest-TestBasicPolicy-16626645, ID : ab021495-9f7d-4a0f-9120-f22b91c0b3cb 2025-04-28 15:57:08,723 - INFO - ================================================================================ 2025-04-28 15:57:08,723 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-28 15:57:08,723 - 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-04-28 15:57:08,978 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.193': '0'}} with 2025-04-28 15:57:08,979 - INFO - Initial checks done. Running the testcase now 2025-04-28 15:57:08,979 - INFO - 2025-04-28 15:57:09,517 - DEBUG - Response for create_network : {'network': {'id': '0d734435-7c7c-43bf-8be1-78363124f328', 'name': 'ctest-vn-72263443', 'tenant_id': 'ab0214959f7d4a0f9120f22b91c0b3cb', 'project_id': 'ab0214959f7d4a0f9120f22b91c0b3cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16626645', 'ctest-vn-72263443'], 'port_security_enabled': True, 'description': ''}} 2025-04-28 15:57:09,700 - DEBUG - Response for create_subnet : {'subnet': {'id': '62176c43-269c-4dc3-9062-7405b8edd97e', 'name': '', 'tenant_id': 'ab0214959f7d4a0f9120f22b91c0b3cb', 'network_id': '0d734435-7c7c-43bf-8be1-78363124f328', 'ip_version': 4, 'cidr': '79.49.239.0/26', 'allocation_pools': [{'start': '79.49.239.2', 'end': '79.49.239.62'}], 'gateway_ip': '79.49.239.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.49.239.2', 'tags': [], 'project_id': 'ab0214959f7d4a0f9120f22b91c0b3cb'}} 2025-04-28 15:57:09,718 - INFO - Created VN ctest-vn-72263443 2025-04-28 15:57:09,773 - DEBUG - VN ctest-vn-72263443 UUID is 0d734435-7c7c-43bf-8be1-78363124f328 2025-04-28 15:57:10,101 - DEBUG - Response for create_network : {'network': {'id': '93544357-83ee-42af-9215-680bbc41e975', 'name': 'ctest-vn-64901461', 'tenant_id': 'ab0214959f7d4a0f9120f22b91c0b3cb', 'project_id': 'ab0214959f7d4a0f9120f22b91c0b3cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16626645', 'ctest-vn-64901461'], 'port_security_enabled': True, 'description': ''}} 2025-04-28 15:57:10,316 - DEBUG - Response for create_subnet : {'subnet': {'id': '84f3b484-b381-48fe-9d95-173ad458362f', 'name': '', 'tenant_id': 'ab0214959f7d4a0f9120f22b91c0b3cb', 'network_id': '93544357-83ee-42af-9215-680bbc41e975', 'ip_version': 4, 'cidr': '27.118.223.192/26', 'allocation_pools': [{'start': '27.118.223.194', 'end': '27.118.223.254'}], 'gateway_ip': '27.118.223.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.118.223.194', 'tags': [], 'project_id': 'ab0214959f7d4a0f9120f22b91c0b3cb'}} 2025-04-28 15:57:10,335 - INFO - Created VN ctest-vn-64901461 2025-04-28 15:57:10,388 - DEBUG - VN ctest-vn-64901461 UUID is 93544357-83ee-42af-9215-680bbc41e975 2025-04-28 15:57:10,544 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-16626645:ctest-vn-72263443, 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-16626645:ctest-vn-64901461, 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-04-28 15:57:10,847 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0d734435-7c7c-43bf-8be1-78363124f328', 'name': 'ctest-vn-72263443', 'tenant_id': 'ab0214959f7d4a0f9120f22b91c0b3cb', 'project_id': 'ab0214959f7d4a0f9120f22b91c0b3cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['62176c43-269c-4dc3-9062-7405b8edd97e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16626645', 'ctest-vn-72263443'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16626645', 'ctest-policy-allow-all-09833959']], 'subnet_ipam': [{'subnet_cidr': '79.49.239.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-28 15:57:11,084 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '93544357-83ee-42af-9215-680bbc41e975', 'name': 'ctest-vn-64901461', 'tenant_id': 'ab0214959f7d4a0f9120f22b91c0b3cb', 'project_id': 'ab0214959f7d4a0f9120f22b91c0b3cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['84f3b484-b381-48fe-9d95-173ad458362f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16626645', 'ctest-vn-64901461'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16626645', 'ctest-policy-allow-all-09833959']], 'subnet_ipam': [{'subnet_cidr': '27.118.223.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-28 15:57:11,236 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-28 15:57:11,540 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-28 15:57:11,567 - DEBUG - Requesting: http://10.0.0.38:8082/domain/99df3b47-5330-4d4d-8cf0-b645018e5df9 2025-04-28 15:57:11,582 - DEBUG - Requesting: http://10.0.0.38:8082/project/ab021495-9f7d-4a0f-9120-f22b91c0b3cb 2025-04-28 15:57:11,658 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0d734435-7c7c-43bf-8be1-78363124f328 2025-04-28 15:57:11,669 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0d734435-7c7c-43bf-8be1-78363124f328 2025-04-28 15:57:11,678 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bbd20585-bc6e-4c3b-806a-6550e5cab2e3 2025-04-28 15:57:11,687 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bbd20585-bc6e-4c3b-806a-6550e5cab2e3 2025-04-28 15:57:11,694 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6a690a6d-1b5c-49c8-b994-85b672e3bb1a 2025-04-28 15:57:11,701 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-28 15:57:11,701 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0d734435-7c7c-43bf-8be1-78363124f328 2025-04-28 15:57:11,711 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bbd20585-bc6e-4c3b-806a-6550e5cab2e3 2025-04-28 15:57:11,725 - INFO - Verified VN network id 8 for VN 0d734435-7c7c-43bf-8be1-78363124f328 2025-04-28 15:57:11,726 - INFO - Verifications in API Server for VN ctest-vn-72263443 passed 2025-04-28 15:57:11,726 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0d734435-7c7c-43bf-8be1-78363124f328 2025-04-28 15:57:11,735 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bbd20585-bc6e-4c3b-806a-6550e5cab2e3 2025-04-28 15:57:11,742 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bbd20585-bc6e-4c3b-806a-6550e5cab2e3 2025-04-28 15:57:11,748 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6a690a6d-1b5c-49c8-b994-85b672e3bb1a 2025-04-28 15:57:11,759 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16626645:ctest-vn-72263443', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16626645', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '969193341327262655', 'uuid-lslong': '10079469615179952936'}, 'enable': 'true', 'created': '2025-04-28T15:57:09', 'last-modified': '2025-04-28T15:57:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.933195'} 2025-04-28 15:57:11,766 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-28 15:57:11,766 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72263443 passed 2025-04-28 15:57:11,766 - DEBUG - ====Verifying policy data for ctest-vn-72263443 in API_Server ====== 2025-04-28 15:57:11,766 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-28 15:57:11,772 - DEBUG - Requesting: http://10.0.0.38:8082/domain/99df3b47-5330-4d4d-8cf0-b645018e5df9 2025-04-28 15:57:11,783 - DEBUG - Requesting: http://10.0.0.38:8082/project/ab021495-9f7d-4a0f-9120-f22b91c0b3cb 2025-04-28 15:57:11,853 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0d734435-7c7c-43bf-8be1-78363124f328 2025-04-28 15:57:11,865 - DEBUG - ==>Verifying data for policy with id: 4d59b65c-36f7-4f89-b91f-a4d4ef7b44db, fqn: ['default-domain', 'ctest-TestBasicPolicy-16626645', 'ctest-policy-allow-all-09833959'] 2025-04-28 15:57:11,866 - INFO - VN ctest-vn-72263443 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-28 15:57:11,866 - DEBUG - Verifying the vn in opserver 2025-04-28 15:57:11,866 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16626645:ctest-vn-72263443 virtual network link through opserver 10.0.0.38 2025-04-28 15:57:11,866 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-04-28 15:57:12,158 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-04-28 15:57:12,224 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16626645:ctest-vn-72263443', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16626645:ctest-vn-72263443?flat'} 2025-04-28 15:57:12,224 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16626645:ctest-vn-72263443 is found in opserver 2025-04-28 15:57:12,234 - DEBUG - Do not have enough data to verify VN in agent 2025-04-28 15:57:12,239 - DEBUG - VRF ids for VN ctest-vn-72263443: {} 2025-04-28 15:57:12,239 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-28 15:57:12,246 - DEBUG - Requesting: http://10.0.0.38:8082/domain/99df3b47-5330-4d4d-8cf0-b645018e5df9 2025-04-28 15:57:12,258 - DEBUG - Requesting: http://10.0.0.38:8082/project/ab021495-9f7d-4a0f-9120-f22b91c0b3cb 2025-04-28 15:57:12,328 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/93544357-83ee-42af-9215-680bbc41e975 2025-04-28 15:57:12,340 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/93544357-83ee-42af-9215-680bbc41e975 2025-04-28 15:57:12,350 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ccc37b4e-af5f-443f-8dc0-c60df17d4825 2025-04-28 15:57:12,359 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ccc37b4e-af5f-443f-8dc0-c60df17d4825 2025-04-28 15:57:12,366 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/47b25a16-aa42-4466-930b-e0a6a07716f3 2025-04-28 15:57:12,373 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-28 15:57:12,373 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/93544357-83ee-42af-9215-680bbc41e975 2025-04-28 15:57:12,382 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ccc37b4e-af5f-443f-8dc0-c60df17d4825 2025-04-28 15:57:12,397 - INFO - Verified VN network id 9 for VN 93544357-83ee-42af-9215-680bbc41e975 2025-04-28 15:57:12,397 - INFO - Verifications in API Server for VN ctest-vn-64901461 passed 2025-04-28 15:57:12,397 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/93544357-83ee-42af-9215-680bbc41e975 2025-04-28 15:57:12,407 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ccc37b4e-af5f-443f-8dc0-c60df17d4825 2025-04-28 15:57:12,414 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ccc37b4e-af5f-443f-8dc0-c60df17d4825 2025-04-28 15:57:12,422 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/47b25a16-aa42-4466-930b-e0a6a07716f3 2025-04-28 15:57:12,434 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16626645:ctest-vn-64901461', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16626645', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10616184264773747375', 'uuid-lslong': '10526434103660767605'}, 'enable': 'true', 'created': '2025-04-28T15:57:10', 'last-modified': '2025-04-28T15:57:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.371969'} 2025-04-28 15:57:12,441 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-28 15:57:12,441 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64901461 passed 2025-04-28 15:57:12,441 - DEBUG - ====Verifying policy data for ctest-vn-64901461 in API_Server ====== 2025-04-28 15:57:12,441 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-28 15:57:12,447 - DEBUG - Requesting: http://10.0.0.38:8082/domain/99df3b47-5330-4d4d-8cf0-b645018e5df9 2025-04-28 15:57:12,458 - DEBUG - Requesting: http://10.0.0.38:8082/project/ab021495-9f7d-4a0f-9120-f22b91c0b3cb 2025-04-28 15:57:12,528 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/93544357-83ee-42af-9215-680bbc41e975 2025-04-28 15:57:12,538 - DEBUG - ==>Verifying data for policy with id: 4d59b65c-36f7-4f89-b91f-a4d4ef7b44db, fqn: ['default-domain', 'ctest-TestBasicPolicy-16626645', 'ctest-policy-allow-all-09833959'] 2025-04-28 15:57:12,538 - INFO - VN ctest-vn-64901461 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-28 15:57:12,538 - DEBUG - Verifying the vn in opserver 2025-04-28 15:57:12,538 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16626645:ctest-vn-64901461 virtual network link through opserver 10.0.0.38 2025-04-28 15:57:12,538 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-04-28 15:57:12,549 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16626645:ctest-vn-64901461', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16626645:ctest-vn-64901461?flat'} 2025-04-28 15:57:12,549 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16626645:ctest-vn-64901461 is found in opserver 2025-04-28 15:57:12,560 - DEBUG - Do not have enough data to verify VN in agent 2025-04-28 15:57:12,565 - DEBUG - VRF ids for VN ctest-vn-64901461: {} 2025-04-28 15:57:12,621 - DEBUG - Services list from nova: [, , ] 2025-04-28 15:57:13,599 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3242-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3242-1) 2025-04-28 15:57:14,815 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3242-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3242-1) 2025-04-28 15:57:14,816 - INFO - Waiting for VM ctest-TestBasicPolicy-16626645-78847620 to be up.. 2025-04-28 15:57:14,891 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-28 15:57:19,963 - DEBUG - VM is in ACTIVE state now 2025-04-28 15:57:19,964 - INFO - VM name : ctest-TestBasicPolicy-16626645-78847620 2025-04-28 15:57:20,037 - DEBUG - VM ctest-TestBasicPolicy-16626645-78847620 ID is 28e0475e-1b49-4255-96ff-360dd559a4fb 2025-04-28 15:57:20,055 - DEBUG - VM ctest-TestBasicPolicy-16626645-78847620 launched on Node cn-jenkins-deploy-platform-ansible-os-3242-1 2025-04-28 15:57:20,127 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/28e0475e-1b49-4255-96ff-360dd559a4fb 2025-04-28 15:57:20,135 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/65adca34-7c2c-45c9-a7f6-2161ff38cbfe 2025-04-28 15:57:23,404 - 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 1031ms') 2025-04-28 15:57:23,405 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16626645-78847620 failed! 2025-04-28 15:57:23,461 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-16626645:ctest-vn-72263443 is 79.49.239.1 and allocation pool is NOT set 2025-04-28 15:57:25,521 - 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=2.77 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.550 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.550/1.659/2.768/1.109 ms') 2025-04-28 15:57:25,522 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-16626645-78847620 passed 2025-04-28 15:57:25,673 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-28 15:57:25,673 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-16626645-78847620, IP 79.49.239.3, Port 22 2025-04-28 15:57:25,825 - DEBUG - VM ctest-TestBasicPolicy-16626645-78847620 is ready for SSH connections 2025-04-28 15:57:25,825 - INFO - Waiting for VM ctest-TestBasicPolicy-16626645-22596615 to be up.. 2025-04-28 15:57:25,901 - DEBUG - VM is in ACTIVE state now 2025-04-28 15:57:25,901 - INFO - VM name : ctest-TestBasicPolicy-16626645-22596615 2025-04-28 15:57:25,982 - DEBUG - VM ctest-TestBasicPolicy-16626645-22596615 ID is 5efdd92c-8888-497b-ad1f-12ef060eeae5 2025-04-28 15:57:25,982 - DEBUG - VM ctest-TestBasicPolicy-16626645-22596615 launched on Node cn-jenkins-deploy-platform-ansible-os-3242-1 2025-04-28 15:57:26,052 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/5efdd92c-8888-497b-ad1f-12ef060eeae5 2025-04-28 15:57:26,060 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/8d2c32de-9bef-410f-933e-d23dabc45f2e 2025-04-28 15:57:27,295 - 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=2.75 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.434 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 = 0.434/1.591/2.749/1.157 ms') 2025-04-28 15:57:27,296 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-16626645-22596615 passed 2025-04-28 15:57:27,445 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-28 15:57:27,445 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-16626645-22596615, IP 27.118.223.195, Port 22 2025-04-28 15:57:27,604 - DEBUG - VM ctest-TestBasicPolicy-16626645-22596615 is ready for SSH connections 2025-04-28 15:57:27,604 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-28 15:57:27,604 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 27.118.223.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-04-28 15:57:27,605 - DEBUG - ping -s 56 -c 3 -W 1 27.118.223.195 2025-04-28 15:57:31,271 - DEBUG - PING 27.118.223.195 (27.118.223.195): 56 data bytes 64 bytes from 27.118.223.195: seq=0 ttl=63 time=3.179 ms 64 bytes from 27.118.223.195: seq=1 ttl=63 time=0.790 ms 64 bytes from 27.118.223.195: seq=2 ttl=63 time=0.908 ms --- 27.118.223.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.790/1.625/3.179 ms 2025-04-28 15:57:31,271 - INFO - Ping to IP 27.118.223.195 from VM ctest-TestBasicPolicy-16626645-78847620 passed 2025-04-28 15:57:31,460 - DEBUG - Policy Update Response {"network-policy": {"uuid": "4d59b65c-36f7-4f89-b91f-a4d4ef7b44db", "href": "http://10.0.0.38:8082/network-policy/4d59b65c-36f7-4f89-b91f-a4d4ef7b44db"}} 2025-04-28 15:57:31,460 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-28 15:57:31,461 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 27.118.223.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-04-28 15:57:31,461 - DEBUG - ping -s 56 -c 3 -W 1 27.118.223.195 2025-04-28 15:57:34,677 - DEBUG - PING 27.118.223.195 (27.118.223.195): 56 data bytes 64 bytes from 27.118.223.195: seq=0 ttl=63 time=1.435 ms --- 27.118.223.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.435/1.435/1.435 ms 2025-04-28 15:57:34,677 - WARNING - Ping to IP 27.118.223.195 from VM ctest-TestBasicPolicy-16626645-78847620 failed 2025-04-28 15:57:34,677 - INFO - Deleting VM ctest-TestBasicPolicy-16626645-22596615 2025-04-28 15:57:34,739 - INFO - Deleting VM ctest-TestBasicPolicy-16626645-78847620 2025-04-28 15:57:35,098 - INFO - Deleted policy ctest-policy-allow-all-09833959 2025-04-28 15:57:35,098 - INFO - Deleting VN ctest-vn-64901461 2025-04-28 15:57:35,138 - DEBUG - VN 93544357-83ee-42af-9215-680bbc41e975 still in use: Unable to complete operation on network 93544357-83ee-42af-9215-680bbc41e975. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-64b288d2-1632-4872-8227-8e27cc7fcb3f'] 2025-04-28 15:57:35,138 - WARNING - Deleting VN ctest-vn-64901461 failed..Will retry 2025-04-28 15:57:37,238 - DEBUG - Response for deleting network () 2025-04-28 15:57:37,238 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ccc37b4e-af5f-443f-8dc0-c60df17d4825 2025-04-28 15:57:37,246 - DEBUG - Response Code: 404 2025-04-28 15:57:37,246 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-28 15:57:37,252 - DEBUG - Requesting: http://10.0.0.38:8082/domain/99df3b47-5330-4d4d-8cf0-b645018e5df9 2025-04-28 15:57:37,310 - DEBUG - Requesting: http://10.0.0.38:8082/project/ab021495-9f7d-4a0f-9120-f22b91c0b3cb 2025-04-28 15:57:37,385 - INFO - Validated that VN ctest-vn-64901461 is not found in API Server 2025-04-28 15:57:37,396 - DEBUG - VN ctest-vn-64901461 is not present in Agent 10.0.0.38 2025-04-28 15:57:37,396 - INFO - Validated that VN ctest-vn-64901461 is not in any agent 2025-04-28 15:57:37,412 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-64901461 info 2025-04-28 15:57:37,412 - INFO - Deleting VN ctest-vn-72263443 2025-04-28 15:57:37,518 - DEBUG - Response for deleting network () 2025-04-28 15:57:37,518 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bbd20585-bc6e-4c3b-806a-6550e5cab2e3 2025-04-28 15:57:37,524 - DEBUG - Response Code: 404 2025-04-28 15:57:37,524 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-28 15:57:37,529 - DEBUG - Requesting: http://10.0.0.38:8082/domain/99df3b47-5330-4d4d-8cf0-b645018e5df9 2025-04-28 15:57:37,582 - DEBUG - Requesting: http://10.0.0.38:8082/project/ab021495-9f7d-4a0f-9120-f22b91c0b3cb 2025-04-28 15:57:37,654 - INFO - Validated that VN ctest-vn-72263443 is not found in API Server 2025-04-28 15:57:37,665 - DEBUG - VN ctest-vn-72263443 is not present in Agent 10.0.0.38 2025-04-28 15:57:37,665 - INFO - Validated that VN ctest-vn-72263443 is not in any agent 2025-04-28 15:57:37,679 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-72263443 info 2025-04-28 15:57:37,938 - DEBUG - No XMPP flaps were noticed during the test 2025-04-28 15:57:37,938 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29] 2025-04-28 15:57:37,938 - INFO - -------------------------------------------------------------------------------- 2025-04-28 15:57:38,600 - INFO - Deleted project: ctest-TestBasicPolicy-16626645, ID : ab021495-9f7d-4a0f-9120-f22b91c0b3cb