2025-07-19 07:33:10,548 - INFO - Domain Default found not creating 2025-07-19 07:33:10,706 - INFO - Project ctest-TestBasicPolicy-43416077 not found, creating it 2025-07-19 07:33:11,185 - INFO - Created Project:ctest-TestBasicPolicy-43416077, ID : f12d6711-3f0c-480d-9705-15310e8b2760 2025-07-19 07:33:12,836 - INFO - ================================================================================ 2025-07-19 07:33:12,836 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-07-19 07:33:12,836 - 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 07:33:13,096 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-07-19 07:33:13,097 - INFO - Initial checks done. Running the testcase now 2025-07-19 07:33:13,097 - INFO - 2025-07-19 07:33:13,729 - DEBUG - Response for create_network : {'network': {'id': '345cd40b-652c-4f1d-8033-3656e13600a8', 'name': 'ctest-vn-24937537', 'tenant_id': 'f12d67113f0c480d970515310e8b2760', 'project_id': 'f12d67113f0c480d970515310e8b2760', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43416077', 'ctest-vn-24937537'], 'port_security_enabled': True, 'description': ''}} 2025-07-19 07:33:13,985 - DEBUG - Response for create_subnet : {'subnet': {'id': '47de9477-de4f-4456-824e-f444660ea407', 'name': '', 'tenant_id': 'f12d67113f0c480d970515310e8b2760', 'network_id': '345cd40b-652c-4f1d-8033-3656e13600a8', 'ip_version': 4, 'cidr': '150.12.109.192/26', 'allocation_pools': [{'start': '150.12.109.194', 'end': '150.12.109.254'}], 'gateway_ip': '150.12.109.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.12.109.194', 'tags': [], 'project_id': 'f12d67113f0c480d970515310e8b2760'}} 2025-07-19 07:33:14,008 - INFO - Created VN ctest-vn-24937537 2025-07-19 07:33:14,066 - DEBUG - VN ctest-vn-24937537 UUID is 345cd40b-652c-4f1d-8033-3656e13600a8 2025-07-19 07:33:14,397 - DEBUG - Response for create_network : {'network': {'id': '068b5e9e-4fb2-4d7c-bcb4-ffd7864e6141', 'name': 'ctest-vn-84001722', 'tenant_id': 'f12d67113f0c480d970515310e8b2760', 'project_id': 'f12d67113f0c480d970515310e8b2760', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43416077', 'ctest-vn-84001722'], 'port_security_enabled': True, 'description': ''}} 2025-07-19 07:33:14,574 - DEBUG - Response for create_subnet : {'subnet': {'id': '50b3c3b3-9a7c-446f-bb5f-33f7aeb0732f', 'name': '', 'tenant_id': 'f12d67113f0c480d970515310e8b2760', 'network_id': '068b5e9e-4fb2-4d7c-bcb4-ffd7864e6141', 'ip_version': 4, 'cidr': '120.153.91.192/26', 'allocation_pools': [{'start': '120.153.91.194', 'end': '120.153.91.254'}], 'gateway_ip': '120.153.91.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.153.91.194', 'tags': [], 'project_id': 'f12d67113f0c480d970515310e8b2760'}} 2025-07-19 07:33:14,598 - INFO - Created VN ctest-vn-84001722 2025-07-19 07:33:14,658 - DEBUG - VN ctest-vn-84001722 UUID is 068b5e9e-4fb2-4d7c-bcb4-ffd7864e6141 2025-07-19 07:33:14,783 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43416077:ctest-vn-24937537, 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-43416077:ctest-vn-84001722, 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 07:33:15,138 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '345cd40b-652c-4f1d-8033-3656e13600a8', 'name': 'ctest-vn-24937537', 'tenant_id': 'f12d67113f0c480d970515310e8b2760', 'project_id': 'f12d67113f0c480d970515310e8b2760', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['47de9477-de4f-4456-824e-f444660ea407'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43416077', 'ctest-vn-24937537'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43416077', 'ctest-policy-allow-all-84886655']], 'subnet_ipam': [{'subnet_cidr': '150.12.109.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-19 07:33:15,387 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '068b5e9e-4fb2-4d7c-bcb4-ffd7864e6141', 'name': 'ctest-vn-84001722', 'tenant_id': 'f12d67113f0c480d970515310e8b2760', 'project_id': 'f12d67113f0c480d970515310e8b2760', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['50b3c3b3-9a7c-446f-bb5f-33f7aeb0732f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43416077', 'ctest-vn-84001722'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43416077', 'ctest-policy-allow-all-84886655']], 'subnet_ipam': [{'subnet_cidr': '120.153.91.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-19 07:33:15,542 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-19 07:33:15,898 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-19 07:33:15,936 - DEBUG - Requesting: http://10.0.0.254:8082/domain/33cba6ad-7709-449c-9705-23b099e75bbe 2025-07-19 07:33:15,957 - DEBUG - Requesting: http://10.0.0.254:8082/project/f12d6711-3f0c-480d-9705-15310e8b2760 2025-07-19 07:33:16,047 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/345cd40b-652c-4f1d-8033-3656e13600a8 2025-07-19 07:33:16,060 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/345cd40b-652c-4f1d-8033-3656e13600a8 2025-07-19 07:33:16,073 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ab648473-938d-414a-8b39-89b4a06a3d39 2025-07-19 07:33:16,084 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ab648473-938d-414a-8b39-89b4a06a3d39 2025-07-19 07:33:16,095 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/cd802818-7045-4434-9dcd-faae43b2e3c6 2025-07-19 07:33:16,104 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-19 07:33:16,104 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/345cd40b-652c-4f1d-8033-3656e13600a8 2025-07-19 07:33:16,118 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ab648473-938d-414a-8b39-89b4a06a3d39 2025-07-19 07:33:16,138 - INFO - Verified VN network id 8 for VN 345cd40b-652c-4f1d-8033-3656e13600a8 2025-07-19 07:33:16,138 - INFO - Verifications in API Server for VN ctest-vn-24937537 passed 2025-07-19 07:33:16,138 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/345cd40b-652c-4f1d-8033-3656e13600a8 2025-07-19 07:33:16,150 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ab648473-938d-414a-8b39-89b4a06a3d39 2025-07-19 07:33:16,159 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ab648473-938d-414a-8b39-89b4a06a3d39 2025-07-19 07:33:16,167 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/cd802818-7045-4434-9dcd-faae43b2e3c6 2025-07-19 07:33:16,184 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43416077:ctest-vn-24937537', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43416077', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3773123733236764445', 'uuid-lslong': '9237787007440519336'}, 'enable': 'true', 'created': '2025-07-19T07:33:13', 'last-modified': '2025-07-19T07:33:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.069904'} 2025-07-19 07:33:16,193 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-19 07:33:16,193 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24937537 passed 2025-07-19 07:33:16,194 - DEBUG - ====Verifying policy data for ctest-vn-24937537 in API_Server ====== 2025-07-19 07:33:16,194 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-19 07:33:16,202 - DEBUG - Requesting: http://10.0.0.254:8082/domain/33cba6ad-7709-449c-9705-23b099e75bbe 2025-07-19 07:33:16,219 - DEBUG - Requesting: http://10.0.0.254:8082/project/f12d6711-3f0c-480d-9705-15310e8b2760 2025-07-19 07:33:16,298 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/345cd40b-652c-4f1d-8033-3656e13600a8 2025-07-19 07:33:16,311 - DEBUG - ==>Verifying data for policy with id: d0ffc9dd-c775-4b9e-91ab-88b2569b6ab1, fqn: ['default-domain', 'ctest-TestBasicPolicy-43416077', 'ctest-policy-allow-all-84886655'] 2025-07-19 07:33:16,311 - INFO - VN ctest-vn-24937537 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-19 07:33:16,311 - DEBUG - Verifying the vn in opserver 2025-07-19 07:33:16,311 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43416077:ctest-vn-24937537 virtual network link through opserver 10.0.0.254 2025-07-19 07:33:16,311 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-19 07:33:16,658 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-19 07:33:16,728 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43416077:ctest-vn-24937537', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43416077:ctest-vn-24937537?flat'} 2025-07-19 07:33:16,728 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43416077:ctest-vn-24937537 is found in opserver 2025-07-19 07:33:16,742 - DEBUG - Do not have enough data to verify VN in agent 2025-07-19 07:33:16,748 - DEBUG - VRF ids for VN ctest-vn-24937537: {} 2025-07-19 07:33:16,748 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-19 07:33:16,755 - DEBUG - Requesting: http://10.0.0.254:8082/domain/33cba6ad-7709-449c-9705-23b099e75bbe 2025-07-19 07:33:16,770 - DEBUG - Requesting: http://10.0.0.254:8082/project/f12d6711-3f0c-480d-9705-15310e8b2760 2025-07-19 07:33:16,857 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/068b5e9e-4fb2-4d7c-bcb4-ffd7864e6141 2025-07-19 07:33:16,876 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/068b5e9e-4fb2-4d7c-bcb4-ffd7864e6141 2025-07-19 07:33:16,890 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e6d622f2-8393-440f-a0f0-2f83dd68f5f2 2025-07-19 07:33:16,899 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e6d622f2-8393-440f-a0f0-2f83dd68f5f2 2025-07-19 07:33:16,908 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/128cd7e1-eaa2-430c-bd27-5f7b6b92d3c3 2025-07-19 07:33:16,917 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-19 07:33:16,917 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/068b5e9e-4fb2-4d7c-bcb4-ffd7864e6141 2025-07-19 07:33:16,931 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e6d622f2-8393-440f-a0f0-2f83dd68f5f2 2025-07-19 07:33:16,953 - INFO - Verified VN network id 9 for VN 068b5e9e-4fb2-4d7c-bcb4-ffd7864e6141 2025-07-19 07:33:16,953 - INFO - Verifications in API Server for VN ctest-vn-84001722 passed 2025-07-19 07:33:16,953 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/068b5e9e-4fb2-4d7c-bcb4-ffd7864e6141 2025-07-19 07:33:16,965 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e6d622f2-8393-440f-a0f0-2f83dd68f5f2 2025-07-19 07:33:16,975 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e6d622f2-8393-440f-a0f0-2f83dd68f5f2 2025-07-19 07:33:16,985 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/128cd7e1-eaa2-430c-bd27-5f7b6b92d3c3 2025-07-19 07:33:16,999 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43416077:ctest-vn-84001722', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43416077', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '471574620025277820', 'uuid-lslong': '13597774476074705217'}, 'enable': 'true', 'created': '2025-07-19T07:33:14', 'last-modified': '2025-07-19T07:33:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.639016'} 2025-07-19 07:33:17,007 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-19 07:33:17,007 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84001722 passed 2025-07-19 07:33:17,007 - DEBUG - ====Verifying policy data for ctest-vn-84001722 in API_Server ====== 2025-07-19 07:33:17,008 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-19 07:33:17,014 - DEBUG - Requesting: http://10.0.0.254:8082/domain/33cba6ad-7709-449c-9705-23b099e75bbe 2025-07-19 07:33:17,032 - DEBUG - Requesting: http://10.0.0.254:8082/project/f12d6711-3f0c-480d-9705-15310e8b2760 2025-07-19 07:33:17,113 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/068b5e9e-4fb2-4d7c-bcb4-ffd7864e6141 2025-07-19 07:33:17,125 - DEBUG - ==>Verifying data for policy with id: d0ffc9dd-c775-4b9e-91ab-88b2569b6ab1, fqn: ['default-domain', 'ctest-TestBasicPolicy-43416077', 'ctest-policy-allow-all-84886655'] 2025-07-19 07:33:17,125 - INFO - VN ctest-vn-84001722 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-19 07:33:17,125 - DEBUG - Verifying the vn in opserver 2025-07-19 07:33:17,125 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43416077:ctest-vn-84001722 virtual network link through opserver 10.0.0.254 2025-07-19 07:33:17,125 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-19 07:33:17,137 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43416077:ctest-vn-84001722', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43416077:ctest-vn-84001722?flat'} 2025-07-19 07:33:17,137 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43416077:ctest-vn-84001722 is found in opserver 2025-07-19 07:33:17,149 - DEBUG - Do not have enough data to verify VN in agent 2025-07-19 07:33:17,156 - DEBUG - VRF ids for VN ctest-vn-84001722: {} 2025-07-19 07:33:17,219 - DEBUG - Services list from nova: [, , ] 2025-07-19 07:33:18,408 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3666-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3666-1) 2025-07-19 07:33:19,797 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3666-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3666-1) 2025-07-19 07:33:19,797 - INFO - Waiting for VM ctest-TestBasicPolicy-43416077-00258363 to be up.. 2025-07-19 07:33:19,882 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-19 07:33:24,963 - DEBUG - VM is in ACTIVE state now 2025-07-19 07:33:24,963 - INFO - VM name : ctest-TestBasicPolicy-43416077-00258363 2025-07-19 07:33:25,047 - DEBUG - VM ctest-TestBasicPolicy-43416077-00258363 ID is 2062919b-2e1a-407a-a289-a35e7240fcde 2025-07-19 07:33:25,068 - DEBUG - VM ctest-TestBasicPolicy-43416077-00258363 launched on Node cn-jenkins-deploy-platform-ansible-os-3666-1 2025-07-19 07:33:25,145 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/2062919b-2e1a-407a-a289-a35e7240fcde 2025-07-19 07:33:25,156 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/a487f6e1-c108-460f-96a2-1565a218c18a 2025-07-19 07:33:28,439 - 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 1035ms') 2025-07-19 07:33:28,440 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-43416077-00258363 failed! 2025-07-19 07:33:28,498 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-43416077:ctest-vn-24937537 is 150.12.109.193 and allocation pool is NOT set 2025-07-19 07:33:30,557 - 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=10.4 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.43 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.431/6.396/10.362/3.965 ms') 2025-07-19 07:33:30,557 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-43416077-00258363 passed 2025-07-19 07:33:30,762 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-19 07:33:30,762 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-43416077-00258363, IP 150.12.109.195, Port 22 2025-07-19 07:33:30,932 - DEBUG - VM ctest-TestBasicPolicy-43416077-00258363 is ready for SSH connections 2025-07-19 07:33:30,932 - INFO - Waiting for VM ctest-TestBasicPolicy-43416077-75578114 to be up.. 2025-07-19 07:33:31,041 - DEBUG - VM is in ACTIVE state now 2025-07-19 07:33:31,041 - INFO - VM name : ctest-TestBasicPolicy-43416077-75578114 2025-07-19 07:33:31,128 - DEBUG - VM ctest-TestBasicPolicy-43416077-75578114 ID is 36dbcc9a-fcaf-4a2e-b3ff-637a6370b108 2025-07-19 07:33:31,129 - DEBUG - VM ctest-TestBasicPolicy-43416077-75578114 launched on Node cn-jenkins-deploy-platform-ansible-os-3666-1 2025-07-19 07:33:31,215 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/36dbcc9a-fcaf-4a2e-b3ff-637a6370b108 2025-07-19 07:33:31,226 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/58b2dff8-6513-4d8d-901e-76b9435540f3 2025-07-19 07:33:32,473 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=3.15 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.605 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 = 0.605/1.878/3.151/1.273 ms') 2025-07-19 07:33:32,473 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-43416077-75578114 passed 2025-07-19 07:33:32,634 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-19 07:33:32,634 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-43416077-75578114, IP 120.153.91.195, Port 22 2025-07-19 07:33:32,794 - DEBUG - VM ctest-TestBasicPolicy-43416077-75578114 is ready for SSH connections 2025-07-19 07:33:32,794 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-19 07:33:32,794 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 120.153.91.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-07-19 07:33:32,794 - DEBUG - ping -s 56 -c 3 -W 1 120.153.91.195 2025-07-19 07:33:36,927 - DEBUG - PING 120.153.91.195 (120.153.91.195): 56 data bytes 64 bytes from 120.153.91.195: seq=0 ttl=63 time=3.885 ms 64 bytes from 120.153.91.195: seq=1 ttl=63 time=0.762 ms 64 bytes from 120.153.91.195: seq=2 ttl=63 time=0.908 ms --- 120.153.91.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.762/1.851/3.885 ms 2025-07-19 07:33:36,927 - INFO - Ping to IP 120.153.91.195 from VM ctest-TestBasicPolicy-43416077-00258363 passed 2025-07-19 07:33:37,118 - DEBUG - Policy Update Response {"network-policy": {"uuid": "d0ffc9dd-c775-4b9e-91ab-88b2569b6ab1", "href": "http://10.0.0.254:8082/network-policy/d0ffc9dd-c775-4b9e-91ab-88b2569b6ab1"}} 2025-07-19 07:33:37,118 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-19 07:33:37,118 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 120.153.91.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-07-19 07:33:37,118 - DEBUG - ping -s 56 -c 3 -W 1 120.153.91.195 2025-07-19 07:33:40,360 - DEBUG - PING 120.153.91.195 (120.153.91.195): 56 data bytes 64 bytes from 120.153.91.195: seq=0 ttl=63 time=1.369 ms --- 120.153.91.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.369/1.369/1.369 ms 2025-07-19 07:33:40,360 - WARNING - Ping to IP 120.153.91.195 from VM ctest-TestBasicPolicy-43416077-00258363 failed 2025-07-19 07:33:40,360 - INFO - Deleting VM ctest-TestBasicPolicy-43416077-75578114 2025-07-19 07:33:40,444 - INFO - Deleting VM ctest-TestBasicPolicy-43416077-00258363 2025-07-19 07:33:40,857 - INFO - Deleted policy ctest-policy-allow-all-84886655 2025-07-19 07:33:40,857 - INFO - Deleting VN ctest-vn-84001722 2025-07-19 07:33:40,896 - DEBUG - VN 068b5e9e-4fb2-4d7c-bcb4-ffd7864e6141 still in use: Unable to complete operation on network 068b5e9e-4fb2-4d7c-bcb4-ffd7864e6141. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d985619e-6a09-4c84-af65-14dd8a63ed6d'] 2025-07-19 07:33:40,897 - WARNING - Deleting VN ctest-vn-84001722 failed..Will retry 2025-07-19 07:33:43,017 - DEBUG - Response for deleting network () 2025-07-19 07:33:43,017 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e6d622f2-8393-440f-a0f0-2f83dd68f5f2 2025-07-19 07:33:43,024 - DEBUG - Response Code: 404 2025-07-19 07:33:43,024 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-19 07:33:43,034 - DEBUG - Requesting: http://10.0.0.254:8082/domain/33cba6ad-7709-449c-9705-23b099e75bbe 2025-07-19 07:33:43,089 - DEBUG - Requesting: http://10.0.0.254:8082/project/f12d6711-3f0c-480d-9705-15310e8b2760 2025-07-19 07:33:43,170 - INFO - Validated that VN ctest-vn-84001722 is not found in API Server 2025-07-19 07:33:43,182 - DEBUG - VN ctest-vn-84001722 is not present in Agent 10.0.0.254 2025-07-19 07:33:43,183 - INFO - Validated that VN ctest-vn-84001722 is not in any agent 2025-07-19 07:33:43,201 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-84001722 info 2025-07-19 07:33:43,201 - INFO - Deleting VN ctest-vn-24937537 2025-07-19 07:33:43,311 - DEBUG - Response for deleting network () 2025-07-19 07:33:43,311 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ab648473-938d-414a-8b39-89b4a06a3d39 2025-07-19 07:33:43,319 - DEBUG - Response Code: 404 2025-07-19 07:33:43,319 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-19 07:33:43,326 - DEBUG - Requesting: http://10.0.0.254:8082/domain/33cba6ad-7709-449c-9705-23b099e75bbe 2025-07-19 07:33:43,384 - DEBUG - Requesting: http://10.0.0.254:8082/project/f12d6711-3f0c-480d-9705-15310e8b2760 2025-07-19 07:33:43,466 - INFO - Validated that VN ctest-vn-24937537 is not found in API Server 2025-07-19 07:33:43,478 - DEBUG - VN ctest-vn-24937537 is not present in Agent 10.0.0.254 2025-07-19 07:33:43,478 - INFO - Validated that VN ctest-vn-24937537 is not in any agent 2025-07-19 07:33:43,497 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-24937537 info 2025-07-19 07:33:43,756 - DEBUG - No XMPP flaps were noticed during the test
2025-07-19 07:33:43,756 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2025-07-19 07:33:43,756 - INFO - -------------------------------------------------------------------------------- 2025-07-19 07:33:44,498 - INFO - Deleted project: ctest-TestBasicPolicy-43416077, ID : f12d6711-3f0c-480d-9705-15310e8b2760