2025-09-21 12:49:21,753 - INFO - Domain Default found not creating 2025-09-21 12:49:21,879 - INFO - Project ctest-TestBasicPolicy-84232765 not found, creating it 2025-09-21 12:49:22,337 - INFO - Created Project:ctest-TestBasicPolicy-84232765, ID : 8a54d7a7-b19b-4910-b36f-74edf8e51d20 2025-09-21 12:49:23,700 - INFO - ================================================================================ 2025-09-21 12:49:23,700 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-09-21 12:49:23,700 - 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-09-21 12:49:23,949 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-09-21 12:49:23,949 - INFO - Initial checks done. Running the testcase now 2025-09-21 12:49:23,949 - INFO - 2025-09-21 12:49:24,451 - DEBUG - Response for create_network : {'network': {'id': 'c40afcc8-bc7b-4c72-951a-04dce2f5b68a', 'name': 'ctest-vn-89827142', 'tenant_id': '8a54d7a7b19b4910b36f74edf8e51d20', 'project_id': '8a54d7a7b19b4910b36f74edf8e51d20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84232765', 'ctest-vn-89827142'], 'port_security_enabled': True, 'description': ''}} 2025-09-21 12:49:24,640 - DEBUG - Response for create_subnet : {'subnet': {'id': '0438a891-d07f-4250-a0f1-8c080a19a8aa', 'name': '', 'tenant_id': '8a54d7a7b19b4910b36f74edf8e51d20', 'network_id': 'c40afcc8-bc7b-4c72-951a-04dce2f5b68a', 'ip_version': 4, 'cidr': '214.102.155.192/26', 'allocation_pools': [{'start': '214.102.155.194', 'end': '214.102.155.254'}], 'gateway_ip': '214.102.155.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.102.155.194', 'tags': [], 'project_id': '8a54d7a7b19b4910b36f74edf8e51d20'}} 2025-09-21 12:49:24,655 - INFO - Created VN ctest-vn-89827142 2025-09-21 12:49:24,704 - DEBUG - VN ctest-vn-89827142 UUID is c40afcc8-bc7b-4c72-951a-04dce2f5b68a 2025-09-21 12:49:25,015 - DEBUG - Response for create_network : {'network': {'id': '7d5d9ba7-6cc7-4b5b-9818-341ea3d97358', 'name': 'ctest-vn-30388571', 'tenant_id': '8a54d7a7b19b4910b36f74edf8e51d20', 'project_id': '8a54d7a7b19b4910b36f74edf8e51d20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84232765', 'ctest-vn-30388571'], 'port_security_enabled': True, 'description': ''}} 2025-09-21 12:49:25,210 - DEBUG - Response for create_subnet : {'subnet': {'id': '9b1bea70-4e45-424c-a7da-1ca1131787ab', 'name': '', 'tenant_id': '8a54d7a7b19b4910b36f74edf8e51d20', 'network_id': '7d5d9ba7-6cc7-4b5b-9818-341ea3d97358', 'ip_version': 4, 'cidr': '5.42.123.0/26', 'allocation_pools': [{'start': '5.42.123.2', 'end': '5.42.123.62'}], 'gateway_ip': '5.42.123.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.42.123.2', 'tags': [], 'project_id': '8a54d7a7b19b4910b36f74edf8e51d20'}} 2025-09-21 12:49:25,224 - INFO - Created VN ctest-vn-30388571 2025-09-21 12:49:25,276 - DEBUG - VN ctest-vn-30388571 UUID is 7d5d9ba7-6cc7-4b5b-9818-341ea3d97358 2025-09-21 12:49:25,420 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-84232765:ctest-vn-89827142, 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-84232765:ctest-vn-30388571, 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-09-21 12:49:25,698 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c40afcc8-bc7b-4c72-951a-04dce2f5b68a', 'name': 'ctest-vn-89827142', 'tenant_id': '8a54d7a7b19b4910b36f74edf8e51d20', 'project_id': '8a54d7a7b19b4910b36f74edf8e51d20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0438a891-d07f-4250-a0f1-8c080a19a8aa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84232765', 'ctest-vn-89827142'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84232765', 'ctest-policy-allow-all-45767295']], 'subnet_ipam': [{'subnet_cidr': '214.102.155.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-21 12:49:25,968 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7d5d9ba7-6cc7-4b5b-9818-341ea3d97358', 'name': 'ctest-vn-30388571', 'tenant_id': '8a54d7a7b19b4910b36f74edf8e51d20', 'project_id': '8a54d7a7b19b4910b36f74edf8e51d20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9b1bea70-4e45-424c-a7da-1ca1131787ab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84232765', 'ctest-vn-30388571'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84232765', 'ctest-policy-allow-all-45767295']], 'subnet_ipam': [{'subnet_cidr': '5.42.123.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-21 12:49:26,108 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-21 12:49:26,403 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-21 12:49:26,431 - DEBUG - Requesting: http://10.0.0.50:8082/domain/21b24c52-6d01-4772-aa3f-91d64eb69ab1 2025-09-21 12:49:26,441 - DEBUG - Requesting: http://10.0.0.50:8082/project/8a54d7a7-b19b-4910-b36f-74edf8e51d20 2025-09-21 12:49:26,512 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c40afcc8-bc7b-4c72-951a-04dce2f5b68a 2025-09-21 12:49:26,520 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c40afcc8-bc7b-4c72-951a-04dce2f5b68a 2025-09-21 12:49:26,528 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/856afbe5-cbb2-4fb1-9c88-2b8cbcf85e55 2025-09-21 12:49:26,533 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/856afbe5-cbb2-4fb1-9c88-2b8cbcf85e55 2025-09-21 12:49:26,539 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2c619bdc-24f5-435e-872d-cc5edff59fe2 2025-09-21 12:49:26,546 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-21 12:49:26,546 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c40afcc8-bc7b-4c72-951a-04dce2f5b68a 2025-09-21 12:49:26,554 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/856afbe5-cbb2-4fb1-9c88-2b8cbcf85e55 2025-09-21 12:49:26,567 - INFO - Verified VN network id 11 for VN c40afcc8-bc7b-4c72-951a-04dce2f5b68a 2025-09-21 12:49:26,568 - INFO - Verifications in API Server for VN ctest-vn-89827142 passed 2025-09-21 12:49:26,568 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c40afcc8-bc7b-4c72-951a-04dce2f5b68a 2025-09-21 12:49:26,577 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/856afbe5-cbb2-4fb1-9c88-2b8cbcf85e55 2025-09-21 12:49:26,584 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/856afbe5-cbb2-4fb1-9c88-2b8cbcf85e55 2025-09-21 12:49:26,590 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2c619bdc-24f5-435e-872d-cc5edff59fe2 2025-09-21 12:49:26,600 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84232765:ctest-vn-89827142', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84232765', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14126381120286837874', 'uuid-lslong': '10743905207792809610'}, 'enable': 'true', 'created': '2025-09-21T12:49:24', 'last-modified': '2025-09-21T12:49:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.920797'} 2025-09-21 12:49:26,604 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-21 12:49:26,605 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89827142 passed 2025-09-21 12:49:26,605 - DEBUG - ====Verifying policy data for ctest-vn-89827142 in API_Server ====== 2025-09-21 12:49:26,605 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-21 12:49:26,609 - DEBUG - Requesting: http://10.0.0.50:8082/domain/21b24c52-6d01-4772-aa3f-91d64eb69ab1 2025-09-21 12:49:26,617 - DEBUG - Requesting: http://10.0.0.50:8082/project/8a54d7a7-b19b-4910-b36f-74edf8e51d20 2025-09-21 12:49:26,689 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c40afcc8-bc7b-4c72-951a-04dce2f5b68a 2025-09-21 12:49:26,697 - DEBUG - ==>Verifying data for policy with id: 0323ba99-ddc0-4028-a11c-4c6317b9b220, fqn: ['default-domain', 'ctest-TestBasicPolicy-84232765', 'ctest-policy-allow-all-45767295'] 2025-09-21 12:49:26,697 - INFO - VN ctest-vn-89827142 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-21 12:49:26,697 - DEBUG - Verifying the vn in opserver 2025-09-21 12:49:26,697 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84232765:ctest-vn-89827142 virtual network link through opserver 10.0.0.50 2025-09-21 12:49:26,697 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-09-21 12:49:26,986 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-09-21 12:49:27,033 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84232765:ctest-vn-89827142', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84232765:ctest-vn-89827142?flat'} 2025-09-21 12:49:27,033 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84232765:ctest-vn-89827142 is found in opserver 2025-09-21 12:49:27,041 - DEBUG - Do not have enough data to verify VN in agent 2025-09-21 12:49:27,045 - DEBUG - VRF ids for VN ctest-vn-89827142: {} 2025-09-21 12:49:27,045 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-21 12:49:27,049 - DEBUG - Requesting: http://10.0.0.50:8082/domain/21b24c52-6d01-4772-aa3f-91d64eb69ab1 2025-09-21 12:49:27,058 - DEBUG - Requesting: http://10.0.0.50:8082/project/8a54d7a7-b19b-4910-b36f-74edf8e51d20 2025-09-21 12:49:27,124 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7d5d9ba7-6cc7-4b5b-9818-341ea3d97358 2025-09-21 12:49:27,135 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7d5d9ba7-6cc7-4b5b-9818-341ea3d97358 2025-09-21 12:49:27,142 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/595e03e1-d967-4c17-94c1-2e28548391f0 2025-09-21 12:49:27,148 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/595e03e1-d967-4c17-94c1-2e28548391f0 2025-09-21 12:49:27,153 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6e53c526-bedb-4d2d-a7ab-1033ed9d5a25 2025-09-21 12:49:27,159 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-21 12:49:27,159 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7d5d9ba7-6cc7-4b5b-9818-341ea3d97358 2025-09-21 12:49:27,167 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/595e03e1-d967-4c17-94c1-2e28548391f0 2025-09-21 12:49:27,178 - INFO - Verified VN network id 12 for VN 7d5d9ba7-6cc7-4b5b-9818-341ea3d97358 2025-09-21 12:49:27,178 - INFO - Verifications in API Server for VN ctest-vn-30388571 passed 2025-09-21 12:49:27,178 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7d5d9ba7-6cc7-4b5b-9818-341ea3d97358 2025-09-21 12:49:27,187 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/595e03e1-d967-4c17-94c1-2e28548391f0 2025-09-21 12:49:27,193 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/595e03e1-d967-4c17-94c1-2e28548391f0 2025-09-21 12:49:27,198 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6e53c526-bedb-4d2d-a7ab-1033ed9d5a25 2025-09-21 12:49:27,207 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84232765:ctest-vn-30388571', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84232765', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9033547570961927003', 'uuid-lslong': '10959566999408702296'}, 'enable': 'true', 'created': '2025-09-21T12:49:24', 'last-modified': '2025-09-21T12:49:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.309332'} 2025-09-21 12:49:27,212 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-21 12:49:27,212 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30388571 passed 2025-09-21 12:49:27,212 - DEBUG - ====Verifying policy data for ctest-vn-30388571 in API_Server ====== 2025-09-21 12:49:27,212 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-21 12:49:27,216 - DEBUG - Requesting: http://10.0.0.50:8082/domain/21b24c52-6d01-4772-aa3f-91d64eb69ab1 2025-09-21 12:49:27,224 - DEBUG - Requesting: http://10.0.0.50:8082/project/8a54d7a7-b19b-4910-b36f-74edf8e51d20 2025-09-21 12:49:27,295 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7d5d9ba7-6cc7-4b5b-9818-341ea3d97358 2025-09-21 12:49:27,303 - DEBUG - ==>Verifying data for policy with id: 0323ba99-ddc0-4028-a11c-4c6317b9b220, fqn: ['default-domain', 'ctest-TestBasicPolicy-84232765', 'ctest-policy-allow-all-45767295'] 2025-09-21 12:49:27,303 - INFO - VN ctest-vn-30388571 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-21 12:49:27,303 - DEBUG - Verifying the vn in opserver 2025-09-21 12:49:27,303 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84232765:ctest-vn-30388571 virtual network link through opserver 10.0.0.50 2025-09-21 12:49:27,303 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-09-21 12:49:27,311 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84232765:ctest-vn-30388571', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84232765:ctest-vn-30388571?flat'} 2025-09-21 12:49:27,311 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84232765:ctest-vn-30388571 is found in opserver 2025-09-21 12:49:27,319 - DEBUG - Do not have enough data to verify VN in agent 2025-09-21 12:49:27,323 - DEBUG - VRF ids for VN ctest-vn-30388571: {} 2025-09-21 12:49:27,369 - DEBUG - Services list from nova: [, , ] 2025-09-21 12:49:28,308 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4157-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4157-1) 2025-09-21 12:49:29,386 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4157-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4157-1) 2025-09-21 12:49:29,386 - INFO - Waiting for VM ctest-TestBasicPolicy-84232765-74961354 to be up.. 2025-09-21 12:49:29,451 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-21 12:49:34,518 - DEBUG - VM is in ACTIVE state now 2025-09-21 12:49:34,518 - INFO - VM name : ctest-TestBasicPolicy-84232765-74961354 2025-09-21 12:49:34,581 - DEBUG - VM ctest-TestBasicPolicy-84232765-74961354 ID is debd6b2a-e3bb-4e7e-b19a-1ed925a11cc7 2025-09-21 12:49:34,598 - DEBUG - VM ctest-TestBasicPolicy-84232765-74961354 launched on Node cn-jenkins-deploy-platform-ansible-os-4157-1 2025-09-21 12:49:34,660 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/debd6b2a-e3bb-4e7e-b19a-1ed925a11cc7 2025-09-21 12:49:34,667 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/93610803-10ba-4d57-9232-73f22d52d265 2025-09-21 12:49:37,920 - 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 1020ms') 2025-09-21 12:49:37,920 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-84232765-74961354 failed! 2025-09-21 12:49:37,972 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-84232765:ctest-vn-89827142 is 214.102.155.193 and allocation pool is NOT set 2025-09-21 12:49:40,033 - 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=3.40 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.433 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 = 0.433/1.914/3.395/1.481 ms') 2025-09-21 12:49:40,033 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-84232765-74961354 passed 2025-09-21 12:49:40,184 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-21 12:49:40,184 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-84232765-74961354, IP 214.102.155.195, Port 22 2025-09-21 12:49:40,336 - DEBUG - VM ctest-TestBasicPolicy-84232765-74961354 is ready for SSH connections 2025-09-21 12:49:40,336 - INFO - Waiting for VM ctest-TestBasicPolicy-84232765-52874198 to be up.. 2025-09-21 12:49:40,400 - DEBUG - VM is in ACTIVE state now 2025-09-21 12:49:40,400 - INFO - VM name : ctest-TestBasicPolicy-84232765-52874198 2025-09-21 12:49:40,462 - DEBUG - VM ctest-TestBasicPolicy-84232765-52874198 ID is 1982d434-fe5e-4891-987e-78af87b6c3f0 2025-09-21 12:49:40,462 - DEBUG - VM ctest-TestBasicPolicy-84232765-52874198 launched on Node cn-jenkins-deploy-platform-ansible-os-4157-1 2025-09-21 12:49:40,521 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/1982d434-fe5e-4891-987e-78af87b6c3f0 2025-09-21 12:49:40,528 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/cf0e6f67-a930-4662-ad39-3ead7e956d08 2025-09-21 12:49:41,763 - 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.19 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.419 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.419/1.803/3.187/1.384 ms') 2025-09-21 12:49:41,763 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-84232765-52874198 passed 2025-09-21 12:49:41,908 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-21 12:49:41,908 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-84232765-52874198, IP 5.42.123.3, Port 22 2025-09-21 12:49:42,063 - DEBUG - VM ctest-TestBasicPolicy-84232765-52874198 is ready for SSH connections 2025-09-21 12:49:42,064 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-21 12:49:42,064 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 5.42.123.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-09-21 12:49:42,064 - DEBUG - ping -s 56 -c 3 -W 1 5.42.123.3 2025-09-21 12:49:46,010 - DEBUG - PING 5.42.123.3 (5.42.123.3): 56 data bytes 64 bytes from 5.42.123.3: seq=0 ttl=63 time=3.211 ms 64 bytes from 5.42.123.3: seq=1 ttl=63 time=0.825 ms 64 bytes from 5.42.123.3: seq=2 ttl=63 time=0.757 ms --- 5.42.123.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.757/1.597/3.211 ms 2025-09-21 12:49:46,011 - INFO - Ping to IP 5.42.123.3 from VM ctest-TestBasicPolicy-84232765-74961354 passed 2025-09-21 12:49:46,180 - DEBUG - Policy Update Response {"network-policy": {"uuid": "0323ba99-ddc0-4028-a11c-4c6317b9b220", "href": "http://10.0.0.50:8082/network-policy/0323ba99-ddc0-4028-a11c-4c6317b9b220"}} 2025-09-21 12:49:46,180 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-21 12:49:46,180 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 5.42.123.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-09-21 12:49:46,180 - DEBUG - ping -s 56 -c 3 -W 1 5.42.123.3 2025-09-21 12:49:49,373 - DEBUG - PING 5.42.123.3 (5.42.123.3): 56 data bytes 64 bytes from 5.42.123.3: seq=0 ttl=63 time=1.246 ms --- 5.42.123.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.246/1.246/1.246 ms 2025-09-21 12:49:49,373 - WARNING - Ping to IP 5.42.123.3 from VM ctest-TestBasicPolicy-84232765-74961354 failed 2025-09-21 12:49:49,373 - INFO - Deleting VM ctest-TestBasicPolicy-84232765-52874198 2025-09-21 12:49:49,431 - INFO - Deleting VM ctest-TestBasicPolicy-84232765-74961354 2025-09-21 12:49:49,748 - INFO - Deleted policy ctest-policy-allow-all-45767295 2025-09-21 12:49:49,748 - INFO - Deleting VN ctest-vn-30388571 2025-09-21 12:49:49,781 - DEBUG - VN 7d5d9ba7-6cc7-4b5b-9818-341ea3d97358 still in use: Unable to complete operation on network 7d5d9ba7-6cc7-4b5b-9818-341ea3d97358. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d8cb5573-3c8c-490d-96b6-8ea8fcde4e7c'] 2025-09-21 12:49:49,781 - WARNING - Deleting VN ctest-vn-30388571 failed..Will retry 2025-09-21 12:49:51,868 - DEBUG - Response for deleting network () 2025-09-21 12:49:51,868 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/595e03e1-d967-4c17-94c1-2e28548391f0 2025-09-21 12:49:51,873 - DEBUG - Response Code: 404 2025-09-21 12:49:51,873 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-21 12:49:51,883 - DEBUG - Requesting: http://10.0.0.50:8082/domain/21b24c52-6d01-4772-aa3f-91d64eb69ab1 2025-09-21 12:49:51,936 - DEBUG - Requesting: http://10.0.0.50:8082/project/8a54d7a7-b19b-4910-b36f-74edf8e51d20 2025-09-21 12:49:52,005 - INFO - Validated that VN ctest-vn-30388571 is not found in API Server 2025-09-21 12:49:52,013 - DEBUG - VN ctest-vn-30388571 is not present in Agent 10.0.0.50 2025-09-21 12:49:52,013 - INFO - Validated that VN ctest-vn-30388571 is not in any agent 2025-09-21 12:49:52,024 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-30388571 info 2025-09-21 12:49:52,024 - INFO - Deleting VN ctest-vn-89827142 2025-09-21 12:49:52,107 - DEBUG - Response for deleting network () 2025-09-21 12:49:52,107 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/856afbe5-cbb2-4fb1-9c88-2b8cbcf85e55 2025-09-21 12:49:52,113 - DEBUG - Response Code: 404 2025-09-21 12:49:52,114 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-21 12:49:52,119 - DEBUG - Requesting: http://10.0.0.50:8082/domain/21b24c52-6d01-4772-aa3f-91d64eb69ab1 2025-09-21 12:49:52,169 - DEBUG - Requesting: http://10.0.0.50:8082/project/8a54d7a7-b19b-4910-b36f-74edf8e51d20 2025-09-21 12:49:52,235 - INFO - Validated that VN ctest-vn-89827142 is not found in API Server 2025-09-21 12:49:52,243 - DEBUG - VN ctest-vn-89827142 is not present in Agent 10.0.0.50 2025-09-21 12:49:52,243 - INFO - Validated that VN ctest-vn-89827142 is not in any agent 2025-09-21 12:49:52,254 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-89827142 info 2025-09-21 12:49:52,506 - DEBUG - No XMPP flaps were noticed during the test
2025-09-21 12:49:52,507 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29]
2025-09-21 12:49:52,507 - INFO - -------------------------------------------------------------------------------- 2025-09-21 12:49:53,142 - INFO - Deleted project: ctest-TestBasicPolicy-84232765, ID : 8a54d7a7-b19b-4910-b36f-74edf8e51d20