2025-10-21 06:21:51,056 - INFO - Domain Default found not creating 2025-10-21 06:21:51,229 - INFO - Project ctest-TestBasicPolicy-17523289 not found, creating it 2025-10-21 06:21:51,773 - INFO - Created Project:ctest-TestBasicPolicy-17523289, ID : ea4021b0-a46c-4daa-965b-91af2f68ef31 2025-10-21 06:21:53,235 - INFO - ================================================================================ 2025-10-21 06:21:53,235 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-21 06:21:53,235 - 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-10-21 06:21:53,492 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2025-10-21 06:21:53,492 - INFO - Initial checks done. Running the testcase now 2025-10-21 06:21:53,492 - INFO - 2025-10-21 06:21:54,041 - DEBUG - Response for create_network : {'network': {'id': 'a1159ff3-1a67-44b5-8b5a-76ec9f5903e5', 'name': 'ctest-vn-58475930', 'tenant_id': 'ea4021b0a46c4daa965b91af2f68ef31', 'project_id': 'ea4021b0a46c4daa965b91af2f68ef31', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17523289', 'ctest-vn-58475930'], 'port_security_enabled': True, 'description': ''}} 2025-10-21 06:21:54,239 - DEBUG - Response for create_subnet : {'subnet': {'id': '79b4f743-3853-48e3-9472-4275e6c5577c', 'name': '', 'tenant_id': 'ea4021b0a46c4daa965b91af2f68ef31', 'network_id': 'a1159ff3-1a67-44b5-8b5a-76ec9f5903e5', 'ip_version': 4, 'cidr': '27.200.116.128/26', 'allocation_pools': [{'start': '27.200.116.130', 'end': '27.200.116.190'}], 'gateway_ip': '27.200.116.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.200.116.130', 'tags': [], 'project_id': 'ea4021b0a46c4daa965b91af2f68ef31'}} 2025-10-21 06:21:54,256 - INFO - Created VN ctest-vn-58475930 2025-10-21 06:21:54,310 - DEBUG - VN ctest-vn-58475930 UUID is a1159ff3-1a67-44b5-8b5a-76ec9f5903e5 2025-10-21 06:21:54,638 - DEBUG - Response for create_network : {'network': {'id': 'a5ce97d8-6a5c-46bd-88cd-d182b4c38bd3', 'name': 'ctest-vn-06853146', 'tenant_id': 'ea4021b0a46c4daa965b91af2f68ef31', 'project_id': 'ea4021b0a46c4daa965b91af2f68ef31', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17523289', 'ctest-vn-06853146'], 'port_security_enabled': True, 'description': ''}} 2025-10-21 06:21:54,789 - DEBUG - Response for create_subnet : {'subnet': {'id': '364ece42-60ea-47b1-acdc-a53aab63fa5f', 'name': '', 'tenant_id': 'ea4021b0a46c4daa965b91af2f68ef31', 'network_id': 'a5ce97d8-6a5c-46bd-88cd-d182b4c38bd3', 'ip_version': 4, 'cidr': '15.59.13.192/26', 'allocation_pools': [{'start': '15.59.13.194', 'end': '15.59.13.254'}], 'gateway_ip': '15.59.13.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.59.13.194', 'tags': [], 'project_id': 'ea4021b0a46c4daa965b91af2f68ef31'}} 2025-10-21 06:21:54,804 - INFO - Created VN ctest-vn-06853146 2025-10-21 06:21:54,857 - DEBUG - VN ctest-vn-06853146 UUID is a5ce97d8-6a5c-46bd-88cd-d182b4c38bd3 2025-10-21 06:21:55,009 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-17523289:ctest-vn-58475930, 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-17523289:ctest-vn-06853146, 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-10-21 06:21:55,295 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a1159ff3-1a67-44b5-8b5a-76ec9f5903e5', 'name': 'ctest-vn-58475930', 'tenant_id': 'ea4021b0a46c4daa965b91af2f68ef31', 'project_id': 'ea4021b0a46c4daa965b91af2f68ef31', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['79b4f743-3853-48e3-9472-4275e6c5577c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17523289', 'ctest-vn-58475930'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17523289', 'ctest-policy-allow-all-03324270']], 'subnet_ipam': [{'subnet_cidr': '27.200.116.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-21 06:21:55,519 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a5ce97d8-6a5c-46bd-88cd-d182b4c38bd3', 'name': 'ctest-vn-06853146', 'tenant_id': 'ea4021b0a46c4daa965b91af2f68ef31', 'project_id': 'ea4021b0a46c4daa965b91af2f68ef31', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['364ece42-60ea-47b1-acdc-a53aab63fa5f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17523289', 'ctest-vn-06853146'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17523289', 'ctest-policy-allow-all-03324270']], 'subnet_ipam': [{'subnet_cidr': '15.59.13.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-21 06:21:55,676 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-21 06:21:55,981 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-21 06:21:56,010 - DEBUG - Requesting: http://10.0.0.141:8082/domain/9f2d736b-8d19-4b08-a555-b7341c3ce19a 2025-10-21 06:21:56,022 - DEBUG - Requesting: http://10.0.0.141:8082/project/ea4021b0-a46c-4daa-965b-91af2f68ef31 2025-10-21 06:21:56,098 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/a1159ff3-1a67-44b5-8b5a-76ec9f5903e5 2025-10-21 06:21:56,109 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/a1159ff3-1a67-44b5-8b5a-76ec9f5903e5 2025-10-21 06:21:56,121 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2ddb2cfb-edc8-40bc-9242-b8733b7148d2 2025-10-21 06:21:56,129 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2ddb2cfb-edc8-40bc-9242-b8733b7148d2 2025-10-21 06:21:56,135 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/d5fe8ef5-5127-4074-925b-c8a64492c657 2025-10-21 06:21:56,141 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-21 06:21:56,142 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/a1159ff3-1a67-44b5-8b5a-76ec9f5903e5 2025-10-21 06:21:56,150 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2ddb2cfb-edc8-40bc-9242-b8733b7148d2 2025-10-21 06:21:56,165 - INFO - Verified VN network id 11 for VN a1159ff3-1a67-44b5-8b5a-76ec9f5903e5 2025-10-21 06:21:56,165 - INFO - Verifications in API Server for VN ctest-vn-58475930 passed 2025-10-21 06:21:56,165 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/a1159ff3-1a67-44b5-8b5a-76ec9f5903e5 2025-10-21 06:21:56,174 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2ddb2cfb-edc8-40bc-9242-b8733b7148d2 2025-10-21 06:21:56,181 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2ddb2cfb-edc8-40bc-9242-b8733b7148d2 2025-10-21 06:21:56,188 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/d5fe8ef5-5127-4074-925b-c8a64492c657 2025-10-21 06:21:56,200 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17523289:ctest-vn-58475930', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17523289', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11607359481086166197', 'uuid-lslong': '10041469077833712613'}, 'enable': 'true', 'created': '2025-10-21T06:21:54', 'last-modified': '2025-10-21T06:21:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.925837'} 2025-10-21 06:21:56,206 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-21 06:21:56,206 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58475930 passed 2025-10-21 06:21:56,206 - DEBUG - ====Verifying policy data for ctest-vn-58475930 in API_Server ====== 2025-10-21 06:21:56,206 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-21 06:21:56,212 - DEBUG - Requesting: http://10.0.0.141:8082/domain/9f2d736b-8d19-4b08-a555-b7341c3ce19a 2025-10-21 06:21:56,223 - DEBUG - Requesting: http://10.0.0.141:8082/project/ea4021b0-a46c-4daa-965b-91af2f68ef31 2025-10-21 06:21:56,289 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/a1159ff3-1a67-44b5-8b5a-76ec9f5903e5 2025-10-21 06:21:56,299 - DEBUG - ==>Verifying data for policy with id: 82d810d2-eb3b-43dc-929f-8055a07a5eae, fqn: ['default-domain', 'ctest-TestBasicPolicy-17523289', 'ctest-policy-allow-all-03324270'] 2025-10-21 06:21:56,299 - INFO - VN ctest-vn-58475930 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-21 06:21:56,299 - DEBUG - Verifying the vn in opserver 2025-10-21 06:21:56,299 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17523289:ctest-vn-58475930 virtual network link through opserver 10.0.0.141 2025-10-21 06:21:56,299 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-21 06:21:56,590 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-21 06:21:56,644 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17523289:ctest-vn-58475930', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17523289:ctest-vn-58475930?flat'} 2025-10-21 06:21:56,644 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17523289:ctest-vn-58475930 is found in opserver 2025-10-21 06:21:56,653 - DEBUG - Do not have enough data to verify VN in agent 2025-10-21 06:21:56,660 - DEBUG - VRF ids for VN ctest-vn-58475930: {} 2025-10-21 06:21:56,660 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-21 06:21:56,667 - DEBUG - Requesting: http://10.0.0.141:8082/domain/9f2d736b-8d19-4b08-a555-b7341c3ce19a 2025-10-21 06:21:56,678 - DEBUG - Requesting: http://10.0.0.141:8082/project/ea4021b0-a46c-4daa-965b-91af2f68ef31 2025-10-21 06:21:56,757 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/a5ce97d8-6a5c-46bd-88cd-d182b4c38bd3 2025-10-21 06:21:56,768 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/a5ce97d8-6a5c-46bd-88cd-d182b4c38bd3 2025-10-21 06:21:56,779 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/13eb9433-baae-46de-be72-16559c82c4c0 2025-10-21 06:21:56,788 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/13eb9433-baae-46de-be72-16559c82c4c0 2025-10-21 06:21:56,795 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/319ebb5c-d131-4daa-b65e-035b3f6410ed 2025-10-21 06:21:56,801 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-21 06:21:56,801 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/a5ce97d8-6a5c-46bd-88cd-d182b4c38bd3 2025-10-21 06:21:56,810 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/13eb9433-baae-46de-be72-16559c82c4c0 2025-10-21 06:21:56,825 - INFO - Verified VN network id 12 for VN a5ce97d8-6a5c-46bd-88cd-d182b4c38bd3 2025-10-21 06:21:56,826 - INFO - Verifications in API Server for VN ctest-vn-06853146 passed 2025-10-21 06:21:56,826 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/a5ce97d8-6a5c-46bd-88cd-d182b4c38bd3 2025-10-21 06:21:56,836 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/13eb9433-baae-46de-be72-16559c82c4c0 2025-10-21 06:21:56,842 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/13eb9433-baae-46de-be72-16559c82c4c0 2025-10-21 06:21:56,849 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/319ebb5c-d131-4daa-b65e-035b3f6410ed 2025-10-21 06:21:56,862 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17523289:ctest-vn-06853146', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17523289', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11947653817213667005', 'uuid-lslong': '9857765518692551635'}, 'enable': 'true', 'created': '2025-10-21T06:21:54', 'last-modified': '2025-10-21T06:21:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.358757'} 2025-10-21 06:21:56,867 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-21 06:21:56,867 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06853146 passed 2025-10-21 06:21:56,867 - DEBUG - ====Verifying policy data for ctest-vn-06853146 in API_Server ====== 2025-10-21 06:21:56,867 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-21 06:21:56,873 - DEBUG - Requesting: http://10.0.0.141:8082/domain/9f2d736b-8d19-4b08-a555-b7341c3ce19a 2025-10-21 06:21:56,883 - DEBUG - Requesting: http://10.0.0.141:8082/project/ea4021b0-a46c-4daa-965b-91af2f68ef31 2025-10-21 06:21:56,948 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/a5ce97d8-6a5c-46bd-88cd-d182b4c38bd3 2025-10-21 06:21:56,957 - DEBUG - ==>Verifying data for policy with id: 82d810d2-eb3b-43dc-929f-8055a07a5eae, fqn: ['default-domain', 'ctest-TestBasicPolicy-17523289', 'ctest-policy-allow-all-03324270'] 2025-10-21 06:21:56,957 - INFO - VN ctest-vn-06853146 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-21 06:21:56,957 - DEBUG - Verifying the vn in opserver 2025-10-21 06:21:56,957 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17523289:ctest-vn-06853146 virtual network link through opserver 10.0.0.141 2025-10-21 06:21:56,957 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-21 06:21:56,967 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17523289:ctest-vn-06853146', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17523289:ctest-vn-06853146?flat'} 2025-10-21 06:21:56,967 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17523289:ctest-vn-06853146 is found in opserver 2025-10-21 06:21:56,976 - DEBUG - Do not have enough data to verify VN in agent 2025-10-21 06:21:56,980 - DEBUG - VRF ids for VN ctest-vn-06853146: {} 2025-10-21 06:21:57,037 - DEBUG - Services list from nova: [, , ] 2025-10-21 06:21:58,048 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4389-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4389-1) 2025-10-21 06:21:59,151 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4389-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4389-1) 2025-10-21 06:21:59,152 - INFO - Waiting for VM ctest-TestBasicPolicy-17523289-16841658 to be up.. 2025-10-21 06:21:59,229 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-21 06:22:04,323 - DEBUG - VM is in ACTIVE state now 2025-10-21 06:22:04,323 - INFO - VM name : ctest-TestBasicPolicy-17523289-16841658 2025-10-21 06:22:04,404 - DEBUG - VM ctest-TestBasicPolicy-17523289-16841658 ID is a5429d79-9d1b-4ae3-a4c4-5f9a9fa42e6c 2025-10-21 06:22:04,427 - DEBUG - VM ctest-TestBasicPolicy-17523289-16841658 launched on Node cn-jenkins-deploy-platform-ansible-os-4389-1 2025-10-21 06:22:04,504 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine/a5429d79-9d1b-4ae3-a4c4-5f9a9fa42e6c 2025-10-21 06:22:04,513 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine-interface/0ba76e9b-0355-498e-8729-af9bdeeda9a9 2025-10-21 06:22:07,753 - 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 1001ms') 2025-10-21 06:22:07,754 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-17523289-16841658 failed! 2025-10-21 06:22:07,810 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-17523289:ctest-vn-58475930 is 27.200.116.129 and allocation pool is NOT set 2025-10-21 06:22:09,869 - 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=6.82 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.66 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 = 2.655/4.736/6.818/2.081 ms') 2025-10-21 06:22:09,869 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-17523289-16841658 passed 2025-10-21 06:22:10,018 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-21 06:22:10,018 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-17523289-16841658, IP 27.200.116.131, Port 22 2025-10-21 06:22:10,183 - DEBUG - VM ctest-TestBasicPolicy-17523289-16841658 is ready for SSH connections 2025-10-21 06:22:10,183 - INFO - Waiting for VM ctest-TestBasicPolicy-17523289-50551748 to be up.. 2025-10-21 06:22:10,269 - DEBUG - VM is in ACTIVE state now 2025-10-21 06:22:10,269 - INFO - VM name : ctest-TestBasicPolicy-17523289-50551748 2025-10-21 06:22:10,356 - DEBUG - VM ctest-TestBasicPolicy-17523289-50551748 ID is 9b4d7917-0aba-4fbd-b14d-29da4eaecc8d 2025-10-21 06:22:10,357 - DEBUG - VM ctest-TestBasicPolicy-17523289-50551748 launched on Node cn-jenkins-deploy-platform-ansible-os-4389-1 2025-10-21 06:22:10,452 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine/9b4d7917-0aba-4fbd-b14d-29da4eaecc8d 2025-10-21 06:22:10,461 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine-interface/60374bae-7503-4c87-b5de-ccbb3600f542 2025-10-21 06:22:11,702 - 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.92 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.46 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 = 1.464/3.191/4.919/1.727 ms') 2025-10-21 06:22:11,702 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-17523289-50551748 passed 2025-10-21 06:22:11,850 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-21 06:22:11,850 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-17523289-50551748, IP 15.59.13.195, Port 22 2025-10-21 06:22:12,006 - DEBUG - VM ctest-TestBasicPolicy-17523289-50551748 is ready for SSH connections 2025-10-21 06:22:12,006 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-21 06:22:12,006 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 15.59.13.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.141, gateway password: c0ntrail123 2025-10-21 06:22:12,006 - DEBUG - ping -s 56 -c 3 -W 1 15.59.13.195 2025-10-21 06:22:16,066 - DEBUG - PING 15.59.13.195 (15.59.13.195): 56 data bytes 64 bytes from 15.59.13.195: seq=0 ttl=63 time=4.202 ms 64 bytes from 15.59.13.195: seq=1 ttl=63 time=1.094 ms 64 bytes from 15.59.13.195: seq=2 ttl=63 time=1.075 ms --- 15.59.13.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.075/2.123/4.202 ms 2025-10-21 06:22:16,066 - INFO - Ping to IP 15.59.13.195 from VM ctest-TestBasicPolicy-17523289-16841658 passed 2025-10-21 06:22:16,245 - DEBUG - Policy Update Response {"network-policy": {"uuid": "82d810d2-eb3b-43dc-929f-8055a07a5eae", "href": "http://10.0.0.141:8082/network-policy/82d810d2-eb3b-43dc-929f-8055a07a5eae"}} 2025-10-21 06:22:16,246 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-21 06:22:16,246 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 15.59.13.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.141, gateway password: c0ntrail123 2025-10-21 06:22:16,246 - DEBUG - ping -s 56 -c 3 -W 1 15.59.13.195 2025-10-21 06:22:19,449 - DEBUG - PING 15.59.13.195 (15.59.13.195): 56 data bytes --- 15.59.13.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-10-21 06:22:19,449 - WARNING - Ping to IP 15.59.13.195 from VM ctest-TestBasicPolicy-17523289-16841658 failed 2025-10-21 06:22:19,450 - INFO - Deleting VM ctest-TestBasicPolicy-17523289-50551748 2025-10-21 06:22:19,528 - INFO - Deleting VM ctest-TestBasicPolicy-17523289-16841658 2025-10-21 06:22:19,903 - INFO - Deleted policy ctest-policy-allow-all-03324270 2025-10-21 06:22:19,903 - INFO - Deleting VN ctest-vn-06853146 2025-10-21 06:22:19,952 - DEBUG - VN a5ce97d8-6a5c-46bd-88cd-d182b4c38bd3 still in use: Unable to complete operation on network a5ce97d8-6a5c-46bd-88cd-d182b4c38bd3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-054c8f4a-052b-40eb-8b0a-caf0c45ef0ea'] 2025-10-21 06:22:19,953 - WARNING - Deleting VN ctest-vn-06853146 failed..Will retry 2025-10-21 06:22:22,069 - DEBUG - Response for deleting network () 2025-10-21 06:22:22,069 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/13eb9433-baae-46de-be72-16559c82c4c0 2025-10-21 06:22:22,080 - DEBUG - Response Code: 404 2025-10-21 06:22:22,080 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-21 06:22:22,085 - DEBUG - Requesting: http://10.0.0.141:8082/domain/9f2d736b-8d19-4b08-a555-b7341c3ce19a 2025-10-21 06:22:22,139 - DEBUG - Requesting: http://10.0.0.141:8082/project/ea4021b0-a46c-4daa-965b-91af2f68ef31 2025-10-21 06:22:22,211 - INFO - Validated that VN ctest-vn-06853146 is not found in API Server 2025-10-21 06:22:22,221 - DEBUG - VN ctest-vn-06853146 is not present in Agent 10.0.0.141 2025-10-21 06:22:22,221 - INFO - Validated that VN ctest-vn-06853146 is not in any agent 2025-10-21 06:22:22,241 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-06853146 info 2025-10-21 06:22:22,241 - INFO - Deleting VN ctest-vn-58475930 2025-10-21 06:22:22,340 - DEBUG - Response for deleting network () 2025-10-21 06:22:22,340 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2ddb2cfb-edc8-40bc-9242-b8733b7148d2 2025-10-21 06:22:22,349 - DEBUG - Response Code: 404 2025-10-21 06:22:22,349 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-21 06:22:22,355 - DEBUG - Requesting: http://10.0.0.141:8082/domain/9f2d736b-8d19-4b08-a555-b7341c3ce19a 2025-10-21 06:22:22,407 - DEBUG - Requesting: http://10.0.0.141:8082/project/ea4021b0-a46c-4daa-965b-91af2f68ef31 2025-10-21 06:22:22,482 - INFO - Validated that VN ctest-vn-58475930 is not found in API Server 2025-10-21 06:22:22,492 - DEBUG - VN ctest-vn-58475930 is not present in Agent 10.0.0.141 2025-10-21 06:22:22,492 - INFO - Validated that VN ctest-vn-58475930 is not in any agent 2025-10-21 06:22:22,508 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-58475930 info 2025-10-21 06:22:22,763 - DEBUG - No XMPP flaps were noticed during the test
2025-10-21 06:22:22,763 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29]
2025-10-21 06:22:22,763 - INFO - -------------------------------------------------------------------------------- 2025-10-21 06:22:23,455 - INFO - Deleted project: ctest-TestBasicPolicy-17523289, ID : ea4021b0-a46c-4daa-965b-91af2f68ef31