2025-03-28 20:14:50,874 - INFO - Domain Default found not creating 2025-03-28 20:14:51,029 - INFO - Project ctest-TestBasicPolicy-24182710 not found, creating it 2025-03-28 20:14:51,517 - INFO - Created Project:ctest-TestBasicPolicy-24182710, ID : 8b27dfaa-76c5-4460-b8f1-b7fb93837f9e 2025-03-28 20:14:53,121 - INFO - ================================================================================ 2025-03-28 20:14:53,121 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-28 20:14:53,121 - 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-03-28 20:14:53,376 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.12': '0'}} with 2025-03-28 20:14:53,376 - INFO - Initial checks done. Running the testcase now 2025-03-28 20:14:53,376 - INFO - 2025-03-28 20:14:53,987 - DEBUG - Response for create_network : {'network': {'id': '90c6c3cd-361a-48cd-8e53-c400748cc238', 'name': 'ctest-vn-03145868', 'tenant_id': '8b27dfaa76c54460b8f1b7fb93837f9e', 'project_id': '8b27dfaa76c54460b8f1b7fb93837f9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24182710', 'ctest-vn-03145868'], 'port_security_enabled': True, 'description': ''}} 2025-03-28 20:14:54,163 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e8eddfdd-69c5-4937-8d06-b4c7447cd8b2', 'name': '', 'tenant_id': '8b27dfaa76c54460b8f1b7fb93837f9e', 'network_id': '90c6c3cd-361a-48cd-8e53-c400748cc238', 'ip_version': 4, 'cidr': '7.78.74.64/26', 'allocation_pools': [{'start': '7.78.74.66', 'end': '7.78.74.126'}], 'gateway_ip': '7.78.74.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.78.74.66', 'tags': [], 'project_id': '8b27dfaa76c54460b8f1b7fb93837f9e'}} 2025-03-28 20:14:54,182 - INFO - Created VN ctest-vn-03145868 2025-03-28 20:14:54,237 - DEBUG - VN ctest-vn-03145868 UUID is 90c6c3cd-361a-48cd-8e53-c400748cc238 2025-03-28 20:14:54,547 - DEBUG - Response for create_network : {'network': {'id': '6bc387bf-cc89-4d1c-8ae6-50baed4b0d40', 'name': 'ctest-vn-87417948', 'tenant_id': '8b27dfaa76c54460b8f1b7fb93837f9e', 'project_id': '8b27dfaa76c54460b8f1b7fb93837f9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24182710', 'ctest-vn-87417948'], 'port_security_enabled': True, 'description': ''}} 2025-03-28 20:14:54,769 - DEBUG - Response for create_subnet : {'subnet': {'id': '8c87697d-4528-488b-b012-809574e88eb6', 'name': '', 'tenant_id': '8b27dfaa76c54460b8f1b7fb93837f9e', 'network_id': '6bc387bf-cc89-4d1c-8ae6-50baed4b0d40', 'ip_version': 4, 'cidr': '47.254.181.128/26', 'allocation_pools': [{'start': '47.254.181.130', 'end': '47.254.181.190'}], 'gateway_ip': '47.254.181.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '47.254.181.130', 'tags': [], 'project_id': '8b27dfaa76c54460b8f1b7fb93837f9e'}} 2025-03-28 20:14:54,788 - INFO - Created VN ctest-vn-87417948 2025-03-28 20:14:54,841 - DEBUG - VN ctest-vn-87417948 UUID is 6bc387bf-cc89-4d1c-8ae6-50baed4b0d40 2025-03-28 20:14:54,960 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-24182710:ctest-vn-03145868, 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-24182710:ctest-vn-87417948, 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-03-28 20:14:55,274 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '90c6c3cd-361a-48cd-8e53-c400748cc238', 'name': 'ctest-vn-03145868', 'tenant_id': '8b27dfaa76c54460b8f1b7fb93837f9e', 'project_id': '8b27dfaa76c54460b8f1b7fb93837f9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e8eddfdd-69c5-4937-8d06-b4c7447cd8b2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24182710', 'ctest-vn-03145868'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24182710', 'ctest-policy-allow-all-74120994']], 'subnet_ipam': [{'subnet_cidr': '7.78.74.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-28 20:14:55,579 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6bc387bf-cc89-4d1c-8ae6-50baed4b0d40', 'name': 'ctest-vn-87417948', 'tenant_id': '8b27dfaa76c54460b8f1b7fb93837f9e', 'project_id': '8b27dfaa76c54460b8f1b7fb93837f9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8c87697d-4528-488b-b012-809574e88eb6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24182710', 'ctest-vn-87417948'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24182710', 'ctest-policy-allow-all-74120994']], 'subnet_ipam': [{'subnet_cidr': '47.254.181.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-28 20:14:55,725 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2025-03-28 20:14:56,069 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2025-03-28 20:14:56,103 - DEBUG - Requesting: http://10.0.0.40:8082/domain/35705e6e-5b70-43d8-86f5-71c3c2412721 2025-03-28 20:14:56,120 - DEBUG - Requesting: http://10.0.0.40:8082/project/8b27dfaa-76c5-4460-b8f1-b7fb93837f9e 2025-03-28 20:14:56,198 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/90c6c3cd-361a-48cd-8e53-c400748cc238 2025-03-28 20:14:56,211 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/90c6c3cd-361a-48cd-8e53-c400748cc238 2025-03-28 20:14:56,223 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/ee9cdd74-af21-47f1-9024-37fa635cd632 2025-03-28 20:14:56,232 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/ee9cdd74-af21-47f1-9024-37fa635cd632 2025-03-28 20:14:56,240 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/614ac2f0-a770-4f52-95d2-9407be689763 2025-03-28 20:14:56,247 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-28 20:14:56,247 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/90c6c3cd-361a-48cd-8e53-c400748cc238 2025-03-28 20:14:56,259 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/ee9cdd74-af21-47f1-9024-37fa635cd632 2025-03-28 20:14:56,277 - INFO - Verified VN network id 8 for VN 90c6c3cd-361a-48cd-8e53-c400748cc238 2025-03-28 20:14:56,277 - INFO - Verifications in API Server for VN ctest-vn-03145868 passed 2025-03-28 20:14:56,277 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/90c6c3cd-361a-48cd-8e53-c400748cc238 2025-03-28 20:14:56,288 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/ee9cdd74-af21-47f1-9024-37fa635cd632 2025-03-28 20:14:56,296 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/ee9cdd74-af21-47f1-9024-37fa635cd632 2025-03-28 20:14:56,305 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/614ac2f0-a770-4f52-95d2-9407be689763 2025-03-28 20:14:56,319 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24182710:ctest-vn-03145868', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24182710', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10432240872993736909', 'uuid-lslong': '10255756282687177272'}, 'enable': 'true', 'created': '2025-03-28T20:14:53', 'last-modified': '2025-03-28T20:14:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.071252'} 2025-03-28 20:14:56,328 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-28 20:14:56,328 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03145868 passed 2025-03-28 20:14:56,328 - DEBUG - ====Verifying policy data for ctest-vn-03145868 in API_Server ====== 2025-03-28 20:14:56,328 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2025-03-28 20:14:56,334 - DEBUG - Requesting: http://10.0.0.40:8082/domain/35705e6e-5b70-43d8-86f5-71c3c2412721 2025-03-28 20:14:56,349 - DEBUG - Requesting: http://10.0.0.40:8082/project/8b27dfaa-76c5-4460-b8f1-b7fb93837f9e 2025-03-28 20:14:56,434 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/90c6c3cd-361a-48cd-8e53-c400748cc238 2025-03-28 20:14:56,449 - DEBUG - ==>Verifying data for policy with id: 4370cfea-bdf7-4848-8b0e-4f34a8a69908, fqn: ['default-domain', 'ctest-TestBasicPolicy-24182710', 'ctest-policy-allow-all-74120994'] 2025-03-28 20:14:56,449 - INFO - VN ctest-vn-03145868 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-28 20:14:56,450 - DEBUG - Verifying the vn in opserver 2025-03-28 20:14:56,450 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24182710:ctest-vn-03145868 virtual network link through opserver 10.0.0.40 2025-03-28 20:14:56,450 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2025-03-28 20:14:56,790 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2025-03-28 20:14:56,858 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24182710:ctest-vn-03145868', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24182710:ctest-vn-03145868?flat'} 2025-03-28 20:14:56,858 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24182710:ctest-vn-03145868 is found in opserver 2025-03-28 20:14:56,873 - DEBUG - Do not have enough data to verify VN in agent 2025-03-28 20:14:56,880 - DEBUG - VRF ids for VN ctest-vn-03145868: {} 2025-03-28 20:14:56,880 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2025-03-28 20:14:56,887 - DEBUG - Requesting: http://10.0.0.40:8082/domain/35705e6e-5b70-43d8-86f5-71c3c2412721 2025-03-28 20:14:56,900 - DEBUG - Requesting: http://10.0.0.40:8082/project/8b27dfaa-76c5-4460-b8f1-b7fb93837f9e 2025-03-28 20:14:56,978 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/6bc387bf-cc89-4d1c-8ae6-50baed4b0d40 2025-03-28 20:14:56,991 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/6bc387bf-cc89-4d1c-8ae6-50baed4b0d40 2025-03-28 20:14:57,002 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/c4e1f1b9-4680-4697-aa8c-266951a16df1 2025-03-28 20:14:57,011 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/c4e1f1b9-4680-4697-aa8c-266951a16df1 2025-03-28 20:14:57,018 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/648e06ac-2ffa-4ddd-a323-ebc46c30f5c9 2025-03-28 20:14:57,026 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-28 20:14:57,026 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/6bc387bf-cc89-4d1c-8ae6-50baed4b0d40 2025-03-28 20:14:57,036 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/c4e1f1b9-4680-4697-aa8c-266951a16df1 2025-03-28 20:14:57,052 - INFO - Verified VN network id 9 for VN 6bc387bf-cc89-4d1c-8ae6-50baed4b0d40 2025-03-28 20:14:57,052 - INFO - Verifications in API Server for VN ctest-vn-87417948 passed 2025-03-28 20:14:57,052 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/6bc387bf-cc89-4d1c-8ae6-50baed4b0d40 2025-03-28 20:14:57,064 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/c4e1f1b9-4680-4697-aa8c-266951a16df1 2025-03-28 20:14:57,072 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/c4e1f1b9-4680-4697-aa8c-266951a16df1 2025-03-28 20:14:57,080 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/648e06ac-2ffa-4ddd-a323-ebc46c30f5c9 2025-03-28 20:14:57,093 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24182710:ctest-vn-87417948', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24182710', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7765199440356920604', 'uuid-lslong': '10008775985652763968'}, 'enable': 'true', 'created': '2025-03-28T20:14:54', 'last-modified': '2025-03-28T20:14:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.595519'} 2025-03-28 20:14:57,101 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-28 20:14:57,101 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87417948 passed 2025-03-28 20:14:57,101 - DEBUG - ====Verifying policy data for ctest-vn-87417948 in API_Server ====== 2025-03-28 20:14:57,101 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2025-03-28 20:14:57,108 - DEBUG - Requesting: http://10.0.0.40:8082/domain/35705e6e-5b70-43d8-86f5-71c3c2412721 2025-03-28 20:14:57,121 - DEBUG - Requesting: http://10.0.0.40:8082/project/8b27dfaa-76c5-4460-b8f1-b7fb93837f9e 2025-03-28 20:14:57,203 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/6bc387bf-cc89-4d1c-8ae6-50baed4b0d40 2025-03-28 20:14:57,218 - DEBUG - ==>Verifying data for policy with id: 4370cfea-bdf7-4848-8b0e-4f34a8a69908, fqn: ['default-domain', 'ctest-TestBasicPolicy-24182710', 'ctest-policy-allow-all-74120994'] 2025-03-28 20:14:57,218 - INFO - VN ctest-vn-87417948 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-28 20:14:57,218 - DEBUG - Verifying the vn in opserver 2025-03-28 20:14:57,218 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24182710:ctest-vn-87417948 virtual network link through opserver 10.0.0.40 2025-03-28 20:14:57,218 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2025-03-28 20:14:57,231 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24182710:ctest-vn-87417948', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24182710:ctest-vn-87417948?flat'} 2025-03-28 20:14:57,231 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24182710:ctest-vn-87417948 is found in opserver 2025-03-28 20:14:57,245 - DEBUG - Do not have enough data to verify VN in agent 2025-03-28 20:14:57,251 - DEBUG - VRF ids for VN ctest-vn-87417948: {} 2025-03-28 20:14:57,313 - DEBUG - Services list from nova: [, , ] 2025-03-28 20:14:58,434 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2995-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2995-1) 2025-03-28 20:14:59,802 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2995-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2995-1) 2025-03-28 20:14:59,802 - INFO - Waiting for VM ctest-TestBasicPolicy-24182710-69940252 to be up.. 2025-03-28 20:14:59,890 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-28 20:15:04,976 - DEBUG - VM is in ACTIVE state now 2025-03-28 20:15:04,977 - INFO - VM name : ctest-TestBasicPolicy-24182710-69940252 2025-03-28 20:15:05,056 - DEBUG - VM ctest-TestBasicPolicy-24182710-69940252 ID is 2c33af7f-fd61-4428-9134-8080674e59a5 2025-03-28 20:15:05,075 - DEBUG - VM ctest-TestBasicPolicy-24182710-69940252 launched on Node cn-jenkins-deploy-platform-ansible-os-2995-1 2025-03-28 20:15:05,154 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/2c33af7f-fd61-4428-9134-8080674e59a5 2025-03-28 20:15:05,165 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/4aaf1867-4e23-4282-8157-43851f94fef1 2025-03-28 20:15:08,474 - 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 1004ms') 2025-03-28 20:15:08,474 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-24182710-69940252 failed! 2025-03-28 20:15:08,533 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-24182710:ctest-vn-03145868 is 7.78.74.65 and allocation pool is NOT set 2025-03-28 20:15:10,597 - 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.97 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.24 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.241/6.103/9.966/3.862 ms') 2025-03-28 20:15:10,597 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-24182710-69940252 passed 2025-03-28 20:15:10,761 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 20:15:10,761 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-24182710-69940252, IP 7.78.74.67, Port 22 2025-03-28 20:15:10,917 - DEBUG - VM ctest-TestBasicPolicy-24182710-69940252 is ready for SSH connections 2025-03-28 20:15:10,917 - INFO - Waiting for VM ctest-TestBasicPolicy-24182710-14523211 to be up.. 2025-03-28 20:15:11,017 - DEBUG - VM is in ACTIVE state now 2025-03-28 20:15:11,017 - INFO - VM name : ctest-TestBasicPolicy-24182710-14523211 2025-03-28 20:15:11,096 - DEBUG - VM ctest-TestBasicPolicy-24182710-14523211 ID is 961c3f25-960e-49c4-9bdc-f8475734a303 2025-03-28 20:15:11,096 - DEBUG - VM ctest-TestBasicPolicy-24182710-14523211 launched on Node cn-jenkins-deploy-platform-ansible-os-2995-1 2025-03-28 20:15:11,179 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/961c3f25-960e-49c4-9bdc-f8475734a303 2025-03-28 20:15:11,189 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/00822a75-d401-4cf5-a92f-d1c74112f02a 2025-03-28 20:15:12,445 - 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.42 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.15 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.151/2.785/4.420/1.634 ms') 2025-03-28 20:15:12,446 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-24182710-14523211 passed 2025-03-28 20:15:12,605 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 20:15:12,605 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-24182710-14523211, IP 47.254.181.131, Port 22 2025-03-28 20:15:12,760 - DEBUG - VM ctest-TestBasicPolicy-24182710-14523211 is ready for SSH connections 2025-03-28 20:15:12,761 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 20:15:12,761 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 47.254.181.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2025-03-28 20:15:12,761 - DEBUG - ping -s 56 -c 3 -W 1 47.254.181.131 2025-03-28 20:15:16,491 - DEBUG - PING 47.254.181.131 (47.254.181.131): 56 data bytes 64 bytes from 47.254.181.131: seq=0 ttl=63 time=5.742 ms 64 bytes from 47.254.181.131: seq=1 ttl=63 time=0.749 ms 64 bytes from 47.254.181.131: seq=2 ttl=63 time=0.821 ms --- 47.254.181.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.749/2.437/5.742 ms 2025-03-28 20:15:16,491 - INFO - Ping to IP 47.254.181.131 from VM ctest-TestBasicPolicy-24182710-69940252 passed 2025-03-28 20:15:16,681 - DEBUG - Policy Update Response {"network-policy": {"uuid": "4370cfea-bdf7-4848-8b0e-4f34a8a69908", "href": "http://10.0.0.40:8082/network-policy/4370cfea-bdf7-4848-8b0e-4f34a8a69908"}} 2025-03-28 20:15:16,681 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 20:15:16,681 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 47.254.181.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2025-03-28 20:15:16,681 - DEBUG - ping -s 56 -c 3 -W 1 47.254.181.131 2025-03-28 20:15:19,902 - DEBUG - PING 47.254.181.131 (47.254.181.131): 56 data bytes 64 bytes from 47.254.181.131: seq=0 ttl=63 time=1.623 ms --- 47.254.181.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.623/1.623/1.623 ms 2025-03-28 20:15:19,902 - WARNING - Ping to IP 47.254.181.131 from VM ctest-TestBasicPolicy-24182710-69940252 failed 2025-03-28 20:15:19,902 - INFO - Deleting VM ctest-TestBasicPolicy-24182710-14523211 2025-03-28 20:15:19,980 - INFO - Deleting VM ctest-TestBasicPolicy-24182710-69940252 2025-03-28 20:15:20,392 - INFO - Deleted policy ctest-policy-allow-all-74120994 2025-03-28 20:15:20,392 - INFO - Deleting VN ctest-vn-87417948 2025-03-28 20:15:20,432 - DEBUG - VN 6bc387bf-cc89-4d1c-8ae6-50baed4b0d40 still in use: Unable to complete operation on network 6bc387bf-cc89-4d1c-8ae6-50baed4b0d40. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-654fce7c-4076-4476-ac7c-59e4416d1024'] 2025-03-28 20:15:20,432 - WARNING - Deleting VN ctest-vn-87417948 failed..Will retry 2025-03-28 20:15:22,568 - DEBUG - Response for deleting network () 2025-03-28 20:15:22,568 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/c4e1f1b9-4680-4697-aa8c-266951a16df1 2025-03-28 20:15:22,579 - DEBUG - Response Code: 404 2025-03-28 20:15:22,579 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2025-03-28 20:15:22,586 - DEBUG - Requesting: http://10.0.0.40:8082/domain/35705e6e-5b70-43d8-86f5-71c3c2412721 2025-03-28 20:15:22,645 - DEBUG - Requesting: http://10.0.0.40:8082/project/8b27dfaa-76c5-4460-b8f1-b7fb93837f9e 2025-03-28 20:15:22,722 - INFO - Validated that VN ctest-vn-87417948 is not found in API Server 2025-03-28 20:15:22,734 - DEBUG - VN ctest-vn-87417948 is not present in Agent 10.0.0.40 2025-03-28 20:15:22,734 - INFO - Validated that VN ctest-vn-87417948 is not in any agent 2025-03-28 20:15:22,750 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-87417948 info 2025-03-28 20:15:22,750 - INFO - Deleting VN ctest-vn-03145868 2025-03-28 20:15:22,862 - DEBUG - Response for deleting network () 2025-03-28 20:15:22,862 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/ee9cdd74-af21-47f1-9024-37fa635cd632 2025-03-28 20:15:22,870 - DEBUG - Response Code: 404 2025-03-28 20:15:22,871 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2025-03-28 20:15:22,877 - DEBUG - Requesting: http://10.0.0.40:8082/domain/35705e6e-5b70-43d8-86f5-71c3c2412721 2025-03-28 20:15:22,931 - DEBUG - Requesting: http://10.0.0.40:8082/project/8b27dfaa-76c5-4460-b8f1-b7fb93837f9e 2025-03-28 20:15:23,006 - INFO - Validated that VN ctest-vn-03145868 is not found in API Server 2025-03-28 20:15:23,018 - DEBUG - VN ctest-vn-03145868 is not present in Agent 10.0.0.40 2025-03-28 20:15:23,018 - INFO - Validated that VN ctest-vn-03145868 is not in any agent 2025-03-28 20:15:23,035 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-03145868 info 2025-03-28 20:15:23,292 - DEBUG - No XMPP flaps were noticed during the test 2025-03-28 20:15:23,292 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2025-03-28 20:15:23,292 - INFO - -------------------------------------------------------------------------------- 2025-03-28 20:15:24,026 - INFO - Deleted project: ctest-TestBasicPolicy-24182710, ID : 8b27dfaa-76c5-4460-b8f1-b7fb93837f9e