2025-07-31 13:26:02,575 - INFO - Domain Default found not creating 2025-07-31 13:26:02,742 - INFO - Project ctest-TestBasicPolicy-77013332 not found, creating it 2025-07-31 13:26:03,240 - INFO - Created Project:ctest-TestBasicPolicy-77013332, ID : 53529656-bde2-4e26-8d46-99521b7f164f 2025-07-31 13:26:04,874 - INFO - ================================================================================ 2025-07-31 13:26:04,874 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-07-31 13:26:04,874 - 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-31 13:26:05,140 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.0.0.38': '0'}} with 2025-07-31 13:26:05,140 - INFO - Initial checks done. Running the testcase now 2025-07-31 13:26:05,140 - INFO - 2025-07-31 13:26:05,730 - DEBUG - Response for create_network : {'network': {'id': 'b428b5f9-a86d-40cd-bd4b-60c0bf5dfb43', 'name': 'ctest-vn-08554922', 'tenant_id': '53529656bde24e268d4699521b7f164f', 'project_id': '53529656bde24e268d4699521b7f164f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77013332', 'ctest-vn-08554922'], 'port_security_enabled': True, 'description': ''}} 2025-07-31 13:26:05,926 - DEBUG - Response for create_subnet : {'subnet': {'id': '1ffa2064-3e96-4aca-88fa-9c8c6b226e33', 'name': '', 'tenant_id': '53529656bde24e268d4699521b7f164f', 'network_id': 'b428b5f9-a86d-40cd-bd4b-60c0bf5dfb43', 'ip_version': 4, 'cidr': '144.104.24.0/26', 'allocation_pools': [{'start': '144.104.24.2', 'end': '144.104.24.62'}], 'gateway_ip': '144.104.24.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.104.24.2', 'tags': [], 'project_id': '53529656bde24e268d4699521b7f164f'}} 2025-07-31 13:26:05,952 - INFO - Created VN ctest-vn-08554922 2025-07-31 13:26:06,007 - DEBUG - VN ctest-vn-08554922 UUID is b428b5f9-a86d-40cd-bd4b-60c0bf5dfb43 2025-07-31 13:26:06,341 - DEBUG - Response for create_network : {'network': {'id': '47777a23-4da4-463b-a967-45aac985ccc5', 'name': 'ctest-vn-27228151', 'tenant_id': '53529656bde24e268d4699521b7f164f', 'project_id': '53529656bde24e268d4699521b7f164f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77013332', 'ctest-vn-27228151'], 'port_security_enabled': True, 'description': ''}} 2025-07-31 13:26:06,530 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f5a13e16-26ad-4b5d-ba89-4dc017ae745b', 'name': '', 'tenant_id': '53529656bde24e268d4699521b7f164f', 'network_id': '47777a23-4da4-463b-a967-45aac985ccc5', 'ip_version': 4, 'cidr': '213.235.59.128/26', 'allocation_pools': [{'start': '213.235.59.130', 'end': '213.235.59.190'}], 'gateway_ip': '213.235.59.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.235.59.130', 'tags': [], 'project_id': '53529656bde24e268d4699521b7f164f'}} 2025-07-31 13:26:06,552 - INFO - Created VN ctest-vn-27228151 2025-07-31 13:26:06,607 - DEBUG - VN ctest-vn-27228151 UUID is 47777a23-4da4-463b-a967-45aac985ccc5 2025-07-31 13:26:06,728 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-77013332:ctest-vn-08554922, 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-77013332:ctest-vn-27228151, 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-31 13:26:07,040 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b428b5f9-a86d-40cd-bd4b-60c0bf5dfb43', 'name': 'ctest-vn-08554922', 'tenant_id': '53529656bde24e268d4699521b7f164f', 'project_id': '53529656bde24e268d4699521b7f164f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1ffa2064-3e96-4aca-88fa-9c8c6b226e33'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77013332', 'ctest-vn-08554922'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77013332', 'ctest-policy-allow-all-48228766']], 'subnet_ipam': [{'subnet_cidr': '144.104.24.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-31 13:26:07,286 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '47777a23-4da4-463b-a967-45aac985ccc5', 'name': 'ctest-vn-27228151', 'tenant_id': '53529656bde24e268d4699521b7f164f', 'project_id': '53529656bde24e268d4699521b7f164f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f5a13e16-26ad-4b5d-ba89-4dc017ae745b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77013332', 'ctest-vn-27228151'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77013332', 'ctest-policy-allow-all-48228766']], 'subnet_ipam': [{'subnet_cidr': '213.235.59.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-31 13:26:07,423 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-31 13:26:07,738 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-31 13:26:07,772 - DEBUG - Requesting: http://10.0.0.38:8082/domain/733d7848-1258-418e-a5a2-b55e8ff4f923 2025-07-31 13:26:07,787 - DEBUG - Requesting: http://10.0.0.38:8082/project/53529656-bde2-4e26-8d46-99521b7f164f 2025-07-31 13:26:07,858 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b428b5f9-a86d-40cd-bd4b-60c0bf5dfb43 2025-07-31 13:26:07,869 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b428b5f9-a86d-40cd-bd4b-60c0bf5dfb43 2025-07-31 13:26:07,879 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c737dba5-e7bc-49a1-a619-d09d4d112059 2025-07-31 13:26:07,887 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c737dba5-e7bc-49a1-a619-d09d4d112059 2025-07-31 13:26:07,893 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ce72ceb8-2ee9-4f23-a828-8631be39ca60 2025-07-31 13:26:07,900 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-31 13:26:07,900 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b428b5f9-a86d-40cd-bd4b-60c0bf5dfb43 2025-07-31 13:26:07,910 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c737dba5-e7bc-49a1-a619-d09d4d112059 2025-07-31 13:26:07,926 - INFO - Verified VN network id 12 for VN b428b5f9-a86d-40cd-bd4b-60c0bf5dfb43 2025-07-31 13:26:07,926 - INFO - Verifications in API Server for VN ctest-vn-08554922 passed 2025-07-31 13:26:07,926 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b428b5f9-a86d-40cd-bd4b-60c0bf5dfb43 2025-07-31 13:26:07,936 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c737dba5-e7bc-49a1-a619-d09d4d112059 2025-07-31 13:26:07,944 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c737dba5-e7bc-49a1-a619-d09d4d112059 2025-07-31 13:26:07,951 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ce72ceb8-2ee9-4f23-a828-8631be39ca60 2025-07-31 13:26:07,966 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77013332:ctest-vn-08554922', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77013332', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12981826009772671181', 'uuid-lslong': '13640102277382273859'}, 'enable': 'true', 'created': '2025-07-31T13:26:05', 'last-modified': '2025-07-31T13:26:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.953377'} 2025-07-31 13:26:07,973 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-31 13:26:07,973 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08554922 passed 2025-07-31 13:26:07,973 - DEBUG - ====Verifying policy data for ctest-vn-08554922 in API_Server ====== 2025-07-31 13:26:07,973 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-31 13:26:07,980 - DEBUG - Requesting: http://10.0.0.38:8082/domain/733d7848-1258-418e-a5a2-b55e8ff4f923 2025-07-31 13:26:07,995 - DEBUG - Requesting: http://10.0.0.38:8082/project/53529656-bde2-4e26-8d46-99521b7f164f 2025-07-31 13:26:08,066 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b428b5f9-a86d-40cd-bd4b-60c0bf5dfb43 2025-07-31 13:26:08,078 - DEBUG - ==>Verifying data for policy with id: d6b8a7b3-1918-410c-b372-f00ad9202329, fqn: ['default-domain', 'ctest-TestBasicPolicy-77013332', 'ctest-policy-allow-all-48228766'] 2025-07-31 13:26:08,078 - INFO - VN ctest-vn-08554922 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-31 13:26:08,079 - DEBUG - Verifying the vn in opserver 2025-07-31 13:26:08,079 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77013332:ctest-vn-08554922 virtual network link through opserver 10.0.0.38 2025-07-31 13:26:08,079 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-07-31 13:26:08,387 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-07-31 13:26:08,450 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77013332:ctest-vn-08554922', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77013332:ctest-vn-08554922?flat'} 2025-07-31 13:26:08,450 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77013332:ctest-vn-08554922 is found in opserver 2025-07-31 13:26:08,464 - DEBUG - Do not have enough data to verify VN in agent 2025-07-31 13:26:08,470 - DEBUG - VRF ids for VN ctest-vn-08554922: {} 2025-07-31 13:26:08,470 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-31 13:26:08,476 - DEBUG - Requesting: http://10.0.0.38:8082/domain/733d7848-1258-418e-a5a2-b55e8ff4f923 2025-07-31 13:26:08,488 - DEBUG - Requesting: http://10.0.0.38:8082/project/53529656-bde2-4e26-8d46-99521b7f164f 2025-07-31 13:26:08,567 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/47777a23-4da4-463b-a967-45aac985ccc5 2025-07-31 13:26:08,579 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/47777a23-4da4-463b-a967-45aac985ccc5 2025-07-31 13:26:08,591 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f0fc207e-370c-4acc-a5af-db4cca3e57ae 2025-07-31 13:26:08,599 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f0fc207e-370c-4acc-a5af-db4cca3e57ae 2025-07-31 13:26:08,608 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/bdff9979-c12f-4dc2-ad90-674cb1feaa2d 2025-07-31 13:26:08,615 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-31 13:26:08,616 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/47777a23-4da4-463b-a967-45aac985ccc5 2025-07-31 13:26:08,624 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f0fc207e-370c-4acc-a5af-db4cca3e57ae 2025-07-31 13:26:08,639 - INFO - Verified VN network id 13 for VN 47777a23-4da4-463b-a967-45aac985ccc5 2025-07-31 13:26:08,640 - INFO - Verifications in API Server for VN ctest-vn-27228151 passed 2025-07-31 13:26:08,640 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/47777a23-4da4-463b-a967-45aac985ccc5 2025-07-31 13:26:08,652 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f0fc207e-370c-4acc-a5af-db4cca3e57ae 2025-07-31 13:26:08,661 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f0fc207e-370c-4acc-a5af-db4cca3e57ae 2025-07-31 13:26:08,672 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/bdff9979-c12f-4dc2-ad90-674cb1feaa2d 2025-07-31 13:26:08,686 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77013332:ctest-vn-27228151', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77013332', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5149718990966507067', 'uuid-lslong': '12206801914838764741'}, 'enable': 'true', 'created': '2025-07-31T13:26:06', 'last-modified': '2025-07-31T13:26:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.427829'} 2025-07-31 13:26:08,693 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-31 13:26:08,693 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27228151 passed 2025-07-31 13:26:08,693 - DEBUG - ====Verifying policy data for ctest-vn-27228151 in API_Server ====== 2025-07-31 13:26:08,693 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-31 13:26:08,700 - DEBUG - Requesting: http://10.0.0.38:8082/domain/733d7848-1258-418e-a5a2-b55e8ff4f923 2025-07-31 13:26:08,713 - DEBUG - Requesting: http://10.0.0.38:8082/project/53529656-bde2-4e26-8d46-99521b7f164f 2025-07-31 13:26:08,788 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/47777a23-4da4-463b-a967-45aac985ccc5 2025-07-31 13:26:08,799 - DEBUG - ==>Verifying data for policy with id: d6b8a7b3-1918-410c-b372-f00ad9202329, fqn: ['default-domain', 'ctest-TestBasicPolicy-77013332', 'ctest-policy-allow-all-48228766'] 2025-07-31 13:26:08,799 - INFO - VN ctest-vn-27228151 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-31 13:26:08,799 - DEBUG - Verifying the vn in opserver 2025-07-31 13:26:08,799 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77013332:ctest-vn-27228151 virtual network link through opserver 10.0.0.38 2025-07-31 13:26:08,799 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-07-31 13:26:08,809 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77013332:ctest-vn-27228151', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77013332:ctest-vn-27228151?flat'} 2025-07-31 13:26:08,810 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77013332:ctest-vn-27228151 is found in opserver 2025-07-31 13:26:08,820 - DEBUG - Do not have enough data to verify VN in agent 2025-07-31 13:26:08,827 - DEBUG - VRF ids for VN ctest-vn-27228151: {} 2025-07-31 13:26:08,899 - DEBUG - Services list from nova: [, , ] 2025-07-31 13:26:10,393 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3736-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3736-1) 2025-07-31 13:26:11,714 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3736-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3736-1) 2025-07-31 13:26:11,715 - INFO - Waiting for VM ctest-TestBasicPolicy-77013332-15708602 to be up.. 2025-07-31 13:26:11,810 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-31 13:26:16,903 - DEBUG - VM is in ACTIVE state now 2025-07-31 13:26:16,903 - INFO - VM name : ctest-TestBasicPolicy-77013332-15708602 2025-07-31 13:26:17,002 - DEBUG - VM ctest-TestBasicPolicy-77013332-15708602 ID is b00c287c-8ad9-44cc-8071-f40786e4bcb9 2025-07-31 13:26:17,029 - DEBUG - VM ctest-TestBasicPolicy-77013332-15708602 launched on Node cn-jenkins-deploy-platform-ansible-os-3736-1. 2025-07-31 13:26:17,120 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/b00c287c-8ad9-44cc-8071-f40786e4bcb9 2025-07-31 13:26:17,131 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/55058f19-ebb9-4587-a304-1689bdb44f9e 2025-07-31 13:26:20,360 - 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 1019ms') 2025-07-31 13:26:20,361 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-77013332-15708602 failed! 2025-07-31 13:26:20,419 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-77013332:ctest-vn-08554922 is 144.104.24.1 and allocation pool is NOT set 2025-07-31 13:26:22,492 - 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=7.99 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=4.32 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 = 4.315/6.154/7.994/1.839 ms') 2025-07-31 13:26:22,493 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-77013332-15708602 passed 2025-07-31 13:26:22,643 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-31 13:26:22,643 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-77013332-15708602, IP 144.104.24.3, Port 22 2025-07-31 13:26:22,809 - DEBUG - VM ctest-TestBasicPolicy-77013332-15708602 is ready for SSH connections 2025-07-31 13:26:22,809 - INFO - Waiting for VM ctest-TestBasicPolicy-77013332-80892908 to be up.. 2025-07-31 13:26:22,908 - DEBUG - VM is in ACTIVE state now 2025-07-31 13:26:22,908 - INFO - VM name : ctest-TestBasicPolicy-77013332-80892908 2025-07-31 13:26:22,996 - DEBUG - VM ctest-TestBasicPolicy-77013332-80892908 ID is 46a5e8b3-9bc9-4516-a477-23e42be61ea9 2025-07-31 13:26:22,996 - DEBUG - VM ctest-TestBasicPolicy-77013332-80892908 launched on Node cn-jenkins-deploy-platform-ansible-os-3736-1. 2025-07-31 13:26:23,101 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/46a5e8b3-9bc9-4516-a477-23e42be61ea9 2025-07-31 13:26:23,111 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/3faba313-2ddf-4e54-9aae-ab70c30c322e 2025-07-31 13:26:24,360 - 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=5.30 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.45 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 1.446/3.370/5.295/1.924 ms') 2025-07-31 13:26:24,360 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-77013332-80892908 passed 2025-07-31 13:26:24,511 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-31 13:26:24,511 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-77013332-80892908, IP 213.235.59.131, Port 22 2025-07-31 13:26:24,577 - 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-07-31 13:26:24,675 - DEBUG - VM ctest-TestBasicPolicy-77013332-80892908 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-31 13:26:29,677 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-31 13:26:29,677 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-77013332-80892908, IP 213.235.59.131, Port 22 2025-07-31 13:26:29,853 - DEBUG - VM ctest-TestBasicPolicy-77013332-80892908 is ready for SSH connections 2025-07-31 13:26:29,853 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-31 13:26:29,853 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 213.235.59.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-07-31 13:26:29,854 - DEBUG - ping -s 56 -c 3 -W 1 213.235.59.131 2025-07-31 13:26:34,012 - DEBUG - PING 213.235.59.131 (213.235.59.131): 56 data bytes 64 bytes from 213.235.59.131: seq=0 ttl=63 time=6.287 ms 64 bytes from 213.235.59.131: seq=1 ttl=63 time=1.325 ms 64 bytes from 213.235.59.131: seq=2 ttl=63 time=1.228 ms --- 213.235.59.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.228/2.946/6.287 ms 2025-07-31 13:26:34,013 - INFO - Ping to IP 213.235.59.131 from VM ctest-TestBasicPolicy-77013332-15708602 passed 2025-07-31 13:26:34,195 - DEBUG - Policy Update Response {"network-policy": {"uuid": "d6b8a7b3-1918-410c-b372-f00ad9202329", "href": "http://10.0.0.38:8082/network-policy/d6b8a7b3-1918-410c-b372-f00ad9202329"}} 2025-07-31 13:26:34,195 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-31 13:26:34,195 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 213.235.59.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-07-31 13:26:34,195 - DEBUG - ping -s 56 -c 3 -W 1 213.235.59.131 2025-07-31 13:26:37,412 - DEBUG - PING 213.235.59.131 (213.235.59.131): 56 data bytes 64 bytes from 213.235.59.131: seq=0 ttl=63 time=2.470 ms --- 213.235.59.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.470/2.470/2.470 ms 2025-07-31 13:26:37,412 - WARNING - Ping to IP 213.235.59.131 from VM ctest-TestBasicPolicy-77013332-15708602 failed 2025-07-31 13:26:37,412 - INFO - Deleting VM ctest-TestBasicPolicy-77013332-80892908 2025-07-31 13:26:37,498 - INFO - Deleting VM ctest-TestBasicPolicy-77013332-15708602 2025-07-31 13:26:37,971 - INFO - Deleted policy ctest-policy-allow-all-48228766 2025-07-31 13:26:37,972 - INFO - Deleting VN ctest-vn-27228151 2025-07-31 13:26:38,015 - DEBUG - VN 47777a23-4da4-463b-a967-45aac985ccc5 still in use: Unable to complete operation on network 47777a23-4da4-463b-a967-45aac985ccc5. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6b5ea78c-337e-4da8-b78c-98d0af2c6677'] 2025-07-31 13:26:38,015 - WARNING - Deleting VN ctest-vn-27228151 failed..Will retry 2025-07-31 13:26:40,131 - DEBUG - Response for deleting network () 2025-07-31 13:26:40,131 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f0fc207e-370c-4acc-a5af-db4cca3e57ae 2025-07-31 13:26:40,138 - DEBUG - Response Code: 404 2025-07-31 13:26:40,138 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-31 13:26:40,151 - DEBUG - Requesting: http://10.0.0.38:8082/domain/733d7848-1258-418e-a5a2-b55e8ff4f923 2025-07-31 13:26:40,210 - DEBUG - Requesting: http://10.0.0.38:8082/project/53529656-bde2-4e26-8d46-99521b7f164f 2025-07-31 13:26:40,290 - INFO - Validated that VN ctest-vn-27228151 is not found in API Server 2025-07-31 13:26:40,300 - DEBUG - VN ctest-vn-27228151 is not present in Agent 10.0.0.38 2025-07-31 13:26:40,300 - INFO - Validated that VN ctest-vn-27228151 is not in any agent 2025-07-31 13:26:40,314 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-27228151 info 2025-07-31 13:26:40,314 - INFO - Deleting VN ctest-vn-08554922 2025-07-31 13:26:40,435 - DEBUG - Response for deleting network () 2025-07-31 13:26:40,435 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c737dba5-e7bc-49a1-a619-d09d4d112059 2025-07-31 13:26:40,448 - DEBUG - Response Code: 404 2025-07-31 13:26:40,448 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-31 13:26:40,454 - DEBUG - Requesting: http://10.0.0.38:8082/domain/733d7848-1258-418e-a5a2-b55e8ff4f923 2025-07-31 13:26:40,508 - DEBUG - Requesting: http://10.0.0.38:8082/project/53529656-bde2-4e26-8d46-99521b7f164f 2025-07-31 13:26:40,578 - INFO - Validated that VN ctest-vn-08554922 is not found in API Server 2025-07-31 13:26:40,591 - DEBUG - VN ctest-vn-08554922 is not present in Agent 10.0.0.38 2025-07-31 13:26:40,591 - INFO - Validated that VN ctest-vn-08554922 is not in any agent 2025-07-31 13:26:40,610 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-08554922 info 2025-07-31 13:26:40,869 - DEBUG - No XMPP flaps were noticed during the test
2025-07-31 13:26:40,869 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-07-31 13:26:40,870 - INFO - -------------------------------------------------------------------------------- 2025-07-31 13:26:41,589 - INFO - Deleted project: ctest-TestBasicPolicy-77013332, ID : 53529656-bde2-4e26-8d46-99521b7f164f