2025-09-11 08:29:22,221 - INFO - Domain Default found not creating 2025-09-11 08:29:22,396 - INFO - Project ctest-TestBasicPolicy-38664389 not found, creating it 2025-09-11 08:29:22,846 - INFO - Created Project:ctest-TestBasicPolicy-38664389, ID : da3d440b-0ce4-40a2-8b24-79fc5bb6f768 2025-09-11 08:29:24,279 - INFO - ================================================================================ 2025-09-11 08:29:24,279 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-09-11 08:29:24,280 - 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-11 08:29:24,538 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.254': '0'}} with 2025-09-11 08:29:24,538 - INFO - Initial checks done. Running the testcase now 2025-09-11 08:29:24,538 - INFO - 2025-09-11 08:29:25,060 - DEBUG - Response for create_network : {'network': {'id': '65908a0b-8007-41b9-b784-97dc72d5c310', 'name': 'ctest-vn-76897793', 'tenant_id': 'da3d440b0ce440a28b2479fc5bb6f768', 'project_id': 'da3d440b0ce440a28b2479fc5bb6f768', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38664389', 'ctest-vn-76897793'], 'port_security_enabled': True, 'description': ''}} 2025-09-11 08:29:25,261 - DEBUG - Response for create_subnet : {'subnet': {'id': '97a3cf33-47b5-4504-9bc5-d07d233f0f72', 'name': '', 'tenant_id': 'da3d440b0ce440a28b2479fc5bb6f768', 'network_id': '65908a0b-8007-41b9-b784-97dc72d5c310', 'ip_version': 4, 'cidr': '147.140.190.192/26', 'allocation_pools': [{'start': '147.140.190.194', 'end': '147.140.190.254'}], 'gateway_ip': '147.140.190.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.140.190.194', 'tags': [], 'project_id': 'da3d440b0ce440a28b2479fc5bb6f768'}} 2025-09-11 08:29:25,277 - INFO - Created VN ctest-vn-76897793 2025-09-11 08:29:25,329 - DEBUG - VN ctest-vn-76897793 UUID is 65908a0b-8007-41b9-b784-97dc72d5c310 2025-09-11 08:29:25,639 - DEBUG - Response for create_network : {'network': {'id': '8b85bcc4-1f2f-46de-9a5f-e1e3fe394e90', 'name': 'ctest-vn-14010452', 'tenant_id': 'da3d440b0ce440a28b2479fc5bb6f768', 'project_id': 'da3d440b0ce440a28b2479fc5bb6f768', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38664389', 'ctest-vn-14010452'], 'port_security_enabled': True, 'description': ''}} 2025-09-11 08:29:25,839 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e53677a1-81fe-472c-83e0-ec6372067edd', 'name': '', 'tenant_id': 'da3d440b0ce440a28b2479fc5bb6f768', 'network_id': '8b85bcc4-1f2f-46de-9a5f-e1e3fe394e90', 'ip_version': 4, 'cidr': '16.3.208.192/26', 'allocation_pools': [{'start': '16.3.208.194', 'end': '16.3.208.254'}], 'gateway_ip': '16.3.208.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.3.208.194', 'tags': [], 'project_id': 'da3d440b0ce440a28b2479fc5bb6f768'}} 2025-09-11 08:29:25,856 - INFO - Created VN ctest-vn-14010452 2025-09-11 08:29:25,908 - DEBUG - VN ctest-vn-14010452 UUID is 8b85bcc4-1f2f-46de-9a5f-e1e3fe394e90 2025-09-11 08:29:26,020 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38664389:ctest-vn-76897793, 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-38664389:ctest-vn-14010452, 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-11 08:29:26,313 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '65908a0b-8007-41b9-b784-97dc72d5c310', 'name': 'ctest-vn-76897793', 'tenant_id': 'da3d440b0ce440a28b2479fc5bb6f768', 'project_id': 'da3d440b0ce440a28b2479fc5bb6f768', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['97a3cf33-47b5-4504-9bc5-d07d233f0f72'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38664389', 'ctest-vn-76897793'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38664389', 'ctest-policy-allow-all-31978435']], 'subnet_ipam': [{'subnet_cidr': '147.140.190.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-11 08:29:26,528 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8b85bcc4-1f2f-46de-9a5f-e1e3fe394e90', 'name': 'ctest-vn-14010452', 'tenant_id': 'da3d440b0ce440a28b2479fc5bb6f768', 'project_id': 'da3d440b0ce440a28b2479fc5bb6f768', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e53677a1-81fe-472c-83e0-ec6372067edd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38664389', 'ctest-vn-14010452'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38664389', 'ctest-policy-allow-all-31978435']], 'subnet_ipam': [{'subnet_cidr': '16.3.208.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-11 08:29:26,677 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-09-11 08:29:26,984 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-09-11 08:29:27,016 - DEBUG - Requesting: http://10.0.0.41:8082/domain/e072b703-418e-4901-9c4d-98757ad64e07 2025-09-11 08:29:27,026 - DEBUG - Requesting: http://10.0.0.41:8082/project/da3d440b-0ce4-40a2-8b24-79fc5bb6f768 2025-09-11 08:29:27,093 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/65908a0b-8007-41b9-b784-97dc72d5c310 2025-09-11 08:29:27,102 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/65908a0b-8007-41b9-b784-97dc72d5c310 2025-09-11 08:29:27,110 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/6e8b880d-ccf9-4a11-89b0-63b7cf8321ef 2025-09-11 08:29:27,116 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/6e8b880d-ccf9-4a11-89b0-63b7cf8321ef 2025-09-11 08:29:27,122 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/005ba40c-63b0-4895-b823-6f2ea8238032 2025-09-11 08:29:27,127 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 08:29:27,127 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/65908a0b-8007-41b9-b784-97dc72d5c310 2025-09-11 08:29:27,134 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/6e8b880d-ccf9-4a11-89b0-63b7cf8321ef 2025-09-11 08:29:27,146 - INFO - Verified VN network id 11 for VN 65908a0b-8007-41b9-b784-97dc72d5c310 2025-09-11 08:29:27,146 - INFO - Verifications in API Server for VN ctest-vn-76897793 passed 2025-09-11 08:29:27,146 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/65908a0b-8007-41b9-b784-97dc72d5c310 2025-09-11 08:29:27,154 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/6e8b880d-ccf9-4a11-89b0-63b7cf8321ef 2025-09-11 08:29:27,159 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/6e8b880d-ccf9-4a11-89b0-63b7cf8321ef 2025-09-11 08:29:27,164 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/005ba40c-63b0-4895-b823-6f2ea8238032 2025-09-11 08:29:27,176 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38664389:ctest-vn-76897793', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38664389', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7318501176474288569', 'uuid-lslong': '13223861378941829904'}, 'enable': 'true', 'created': '2025-09-11T08:29:25', 'last-modified': '2025-09-11T08:29:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.880893'} 2025-09-11 08:29:27,183 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 08:29:27,183 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76897793 passed 2025-09-11 08:29:27,183 - DEBUG - ====Verifying policy data for ctest-vn-76897793 in API_Server ====== 2025-09-11 08:29:27,183 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-09-11 08:29:27,189 - DEBUG - Requesting: http://10.0.0.41:8082/domain/e072b703-418e-4901-9c4d-98757ad64e07 2025-09-11 08:29:27,198 - DEBUG - Requesting: http://10.0.0.41:8082/project/da3d440b-0ce4-40a2-8b24-79fc5bb6f768 2025-09-11 08:29:27,264 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/65908a0b-8007-41b9-b784-97dc72d5c310 2025-09-11 08:29:27,273 - DEBUG - ==>Verifying data for policy with id: 78831858-5b4b-42bb-b375-20a90da72a0b, fqn: ['default-domain', 'ctest-TestBasicPolicy-38664389', 'ctest-policy-allow-all-31978435'] 2025-09-11 08:29:27,273 - INFO - VN ctest-vn-76897793 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-11 08:29:27,273 - DEBUG - Verifying the vn in opserver 2025-09-11 08:29:27,274 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38664389:ctest-vn-76897793 virtual network link through opserver 10.0.0.41 2025-09-11 08:29:27,274 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-09-11 08:29:27,561 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-09-11 08:29:27,611 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38664389:ctest-vn-76897793', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38664389:ctest-vn-76897793?flat'} 2025-09-11 08:29:27,611 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38664389:ctest-vn-76897793 is found in opserver 2025-09-11 08:29:27,622 - DEBUG - Do not have enough data to verify VN in agent 2025-09-11 08:29:27,627 - DEBUG - VRF ids for VN ctest-vn-76897793: {} 2025-09-11 08:29:27,627 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-09-11 08:29:27,632 - DEBUG - Requesting: http://10.0.0.41:8082/domain/e072b703-418e-4901-9c4d-98757ad64e07 2025-09-11 08:29:27,643 - DEBUG - Requesting: http://10.0.0.41:8082/project/da3d440b-0ce4-40a2-8b24-79fc5bb6f768 2025-09-11 08:29:27,724 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/8b85bcc4-1f2f-46de-9a5f-e1e3fe394e90 2025-09-11 08:29:27,734 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/8b85bcc4-1f2f-46de-9a5f-e1e3fe394e90 2025-09-11 08:29:27,742 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7347e472-7a68-44f4-822f-586ee9f33960 2025-09-11 08:29:27,749 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7347e472-7a68-44f4-822f-586ee9f33960 2025-09-11 08:29:27,756 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/363925a1-64c6-49a2-a5e5-e9cc1e982664 2025-09-11 08:29:27,762 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-11 08:29:27,762 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/8b85bcc4-1f2f-46de-9a5f-e1e3fe394e90 2025-09-11 08:29:27,772 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7347e472-7a68-44f4-822f-586ee9f33960 2025-09-11 08:29:27,787 - INFO - Verified VN network id 12 for VN 8b85bcc4-1f2f-46de-9a5f-e1e3fe394e90 2025-09-11 08:29:27,787 - INFO - Verifications in API Server for VN ctest-vn-14010452 passed 2025-09-11 08:29:27,787 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/8b85bcc4-1f2f-46de-9a5f-e1e3fe394e90 2025-09-11 08:29:27,798 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7347e472-7a68-44f4-822f-586ee9f33960 2025-09-11 08:29:27,808 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7347e472-7a68-44f4-822f-586ee9f33960 2025-09-11 08:29:27,814 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/363925a1-64c6-49a2-a5e5-e9cc1e982664 2025-09-11 08:29:27,825 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38664389:ctest-vn-14010452', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38664389', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10053649293697304286', 'uuid-lslong': '11123857973967408784'}, 'enable': 'true', 'created': '2025-09-11T08:29:25', 'last-modified': '2025-09-11T08:29:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.313621'} 2025-09-11 08:29:27,831 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-11 08:29:27,831 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14010452 passed 2025-09-11 08:29:27,831 - DEBUG - ====Verifying policy data for ctest-vn-14010452 in API_Server ====== 2025-09-11 08:29:27,831 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-09-11 08:29:27,837 - DEBUG - Requesting: http://10.0.0.41:8082/domain/e072b703-418e-4901-9c4d-98757ad64e07 2025-09-11 08:29:27,846 - DEBUG - Requesting: http://10.0.0.41:8082/project/da3d440b-0ce4-40a2-8b24-79fc5bb6f768 2025-09-11 08:29:27,914 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/8b85bcc4-1f2f-46de-9a5f-e1e3fe394e90 2025-09-11 08:29:27,924 - DEBUG - ==>Verifying data for policy with id: 78831858-5b4b-42bb-b375-20a90da72a0b, fqn: ['default-domain', 'ctest-TestBasicPolicy-38664389', 'ctest-policy-allow-all-31978435'] 2025-09-11 08:29:27,924 - INFO - VN ctest-vn-14010452 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-11 08:29:27,924 - DEBUG - Verifying the vn in opserver 2025-09-11 08:29:27,924 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38664389:ctest-vn-14010452 virtual network link through opserver 10.0.0.41 2025-09-11 08:29:27,924 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-09-11 08:29:27,934 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38664389:ctest-vn-14010452', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38664389:ctest-vn-14010452?flat'} 2025-09-11 08:29:27,934 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38664389:ctest-vn-14010452 is found in opserver 2025-09-11 08:29:27,943 - DEBUG - Do not have enough data to verify VN in agent 2025-09-11 08:29:27,947 - DEBUG - VRF ids for VN ctest-vn-14010452: {} 2025-09-11 08:29:28,015 - DEBUG - Services list from nova: [, , ] 2025-09-11 08:29:29,034 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4083-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4083-1) 2025-09-11 08:29:30,086 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4083-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4083-1) 2025-09-11 08:29:30,086 - INFO - Waiting for VM ctest-TestBasicPolicy-38664389-33113751 to be up.. 2025-09-11 08:29:30,162 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-11 08:29:35,236 - DEBUG - VM is in ACTIVE state now 2025-09-11 08:29:35,236 - INFO - VM name : ctest-TestBasicPolicy-38664389-33113751 2025-09-11 08:29:35,311 - DEBUG - VM ctest-TestBasicPolicy-38664389-33113751 ID is 787bc9ba-50e4-4c29-a1ad-42f19dd931b9 2025-09-11 08:29:35,331 - DEBUG - VM ctest-TestBasicPolicy-38664389-33113751 launched on Node cn-jenkins-deploy-platform-ansible-os-4083-1 2025-09-11 08:29:35,411 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/787bc9ba-50e4-4c29-a1ad-42f19dd931b9 2025-09-11 08:29:35,419 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/4e5b7d6f-e3af-4b87-9988-1ac515b0181d 2025-09-11 08:29:38,654 - 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 1002ms') 2025-09-11 08:29:38,655 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38664389-33113751 failed! 2025-09-11 08:29:38,709 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38664389:ctest-vn-76897793 is 147.140.190.193 and allocation pool is NOT set 2025-09-11 08:29:40,766 - 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=4.03 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.389 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.389/2.207/4.026/1.818 ms') 2025-09-11 08:29:40,766 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38664389-33113751 passed 2025-09-11 08:29:40,917 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-11 08:29:40,917 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38664389-33113751, IP 147.140.190.195, Port 22 2025-09-11 08:29:41,072 - DEBUG - VM ctest-TestBasicPolicy-38664389-33113751 is ready for SSH connections 2025-09-11 08:29:41,072 - INFO - Waiting for VM ctest-TestBasicPolicy-38664389-19959605 to be up.. 2025-09-11 08:29:41,142 - DEBUG - VM is in ACTIVE state now 2025-09-11 08:29:41,142 - INFO - VM name : ctest-TestBasicPolicy-38664389-19959605 2025-09-11 08:29:41,212 - DEBUG - VM ctest-TestBasicPolicy-38664389-19959605 ID is 93fab0d6-62a6-404c-82ad-7af354959594 2025-09-11 08:29:41,212 - DEBUG - VM ctest-TestBasicPolicy-38664389-19959605 launched on Node cn-jenkins-deploy-platform-ansible-os-4083-1 2025-09-11 08:29:41,300 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/93fab0d6-62a6-404c-82ad-7af354959594 2025-09-11 08:29:41,320 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/a1c1b87c-bacd-45c8-bd19-ab942da9e2e4 2025-09-11 08:29:42,556 - 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.17 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.53 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 = 2.532/2.850/3.169/0.318 ms') 2025-09-11 08:29:42,557 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-38664389-19959605 passed 2025-09-11 08:29:42,705 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-11 08:29:42,705 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38664389-19959605, IP 16.3.208.195, Port 22 2025-09-11 08:29:42,764 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-09-11 08:29:42,835 - DEBUG - VM ctest-TestBasicPolicy-38664389-19959605 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-11 08:29:47,836 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-11 08:29:47,836 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38664389-19959605, IP 16.3.208.195, Port 22 2025-09-11 08:29:47,992 - DEBUG - VM ctest-TestBasicPolicy-38664389-19959605 is ready for SSH connections 2025-09-11 08:29:47,992 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-11 08:29:47,992 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 16.3.208.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2025-09-11 08:29:47,992 - DEBUG - ping -s 56 -c 3 -W 1 16.3.208.195 2025-09-11 08:29:52,089 - DEBUG - PING 16.3.208.195 (16.3.208.195): 56 data bytes 64 bytes from 16.3.208.195: seq=0 ttl=63 time=4.510 ms 64 bytes from 16.3.208.195: seq=1 ttl=63 time=0.947 ms 64 bytes from 16.3.208.195: seq=2 ttl=63 time=1.076 ms --- 16.3.208.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.947/2.177/4.510 ms 2025-09-11 08:29:52,089 - INFO - Ping to IP 16.3.208.195 from VM ctest-TestBasicPolicy-38664389-33113751 passed 2025-09-11 08:29:52,268 - DEBUG - Policy Update Response {"network-policy": {"uuid": "78831858-5b4b-42bb-b375-20a90da72a0b", "href": "http://10.0.0.41:8082/network-policy/78831858-5b4b-42bb-b375-20a90da72a0b"}} 2025-09-11 08:29:52,268 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-11 08:29:52,269 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 16.3.208.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2025-09-11 08:29:52,269 - DEBUG - ping -s 56 -c 3 -W 1 16.3.208.195 2025-09-11 08:29:55,494 - DEBUG - PING 16.3.208.195 (16.3.208.195): 56 data bytes --- 16.3.208.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-09-11 08:29:55,494 - WARNING - Ping to IP 16.3.208.195 from VM ctest-TestBasicPolicy-38664389-33113751 failed 2025-09-11 08:29:55,494 - INFO - Deleting VM ctest-TestBasicPolicy-38664389-19959605 2025-09-11 08:29:55,560 - INFO - Deleting VM ctest-TestBasicPolicy-38664389-33113751 2025-09-11 08:29:55,893 - INFO - Deleted policy ctest-policy-allow-all-31978435 2025-09-11 08:29:55,893 - INFO - Deleting VN ctest-vn-14010452 2025-09-11 08:29:55,927 - DEBUG - VN 8b85bcc4-1f2f-46de-9a5f-e1e3fe394e90 still in use: Unable to complete operation on network 8b85bcc4-1f2f-46de-9a5f-e1e3fe394e90. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9cfd2e72-c3cb-4ff1-b53b-9788b6a3502d'] 2025-09-11 08:29:55,927 - WARNING - Deleting VN ctest-vn-14010452 failed..Will retry 2025-09-11 08:29:58,022 - DEBUG - Response for deleting network () 2025-09-11 08:29:58,022 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7347e472-7a68-44f4-822f-586ee9f33960 2025-09-11 08:29:58,028 - DEBUG - Response Code: 404 2025-09-11 08:29:58,028 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-09-11 08:29:58,033 - DEBUG - Requesting: http://10.0.0.41:8082/domain/e072b703-418e-4901-9c4d-98757ad64e07 2025-09-11 08:29:58,085 - DEBUG - Requesting: http://10.0.0.41:8082/project/da3d440b-0ce4-40a2-8b24-79fc5bb6f768 2025-09-11 08:29:58,154 - INFO - Validated that VN ctest-vn-14010452 is not found in API Server 2025-09-11 08:29:58,162 - DEBUG - VN ctest-vn-14010452 is not present in Agent 10.0.0.41 2025-09-11 08:29:58,163 - INFO - Validated that VN ctest-vn-14010452 is not in any agent 2025-09-11 08:29:58,174 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-14010452 info 2025-09-11 08:29:58,174 - INFO - Deleting VN ctest-vn-76897793 2025-09-11 08:29:58,261 - DEBUG - Response for deleting network () 2025-09-11 08:29:58,261 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/6e8b880d-ccf9-4a11-89b0-63b7cf8321ef 2025-09-11 08:29:58,267 - DEBUG - Response Code: 404 2025-09-11 08:29:58,267 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-09-11 08:29:58,273 - DEBUG - Requesting: http://10.0.0.41:8082/domain/e072b703-418e-4901-9c4d-98757ad64e07 2025-09-11 08:29:58,325 - DEBUG - Requesting: http://10.0.0.41:8082/project/da3d440b-0ce4-40a2-8b24-79fc5bb6f768 2025-09-11 08:29:58,394 - INFO - Validated that VN ctest-vn-76897793 is not found in API Server 2025-09-11 08:29:58,402 - DEBUG - VN ctest-vn-76897793 is not present in Agent 10.0.0.41 2025-09-11 08:29:58,402 - INFO - Validated that VN ctest-vn-76897793 is not in any agent 2025-09-11 08:29:58,414 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-76897793 info 2025-09-11 08:29:58,666 - DEBUG - No XMPP flaps were noticed during the test
2025-09-11 08:29:58,666 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:34]
2025-09-11 08:29:58,666 - INFO - -------------------------------------------------------------------------------- 2025-09-11 08:29:59,322 - INFO - Deleted project: ctest-TestBasicPolicy-38664389, ID : da3d440b-0ce4-40a2-8b24-79fc5bb6f768