2024-11-11 01:48:33,420 - INFO - Domain Default found not creating 2024-11-11 01:48:33,582 - INFO - Project ctest-TestBasicPolicy-46445482 not found, creating it 2024-11-11 01:48:34,094 - INFO - Created Project:ctest-TestBasicPolicy-46445482, ID : 020eb88f-ae09-40d8-879f-7de8197e65b0 2024-11-11 01:48:35,730 - INFO - ================================================================================ 2024-11-11 01:48:35,730 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-11 01:48:35,730 - 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 2024-11-11 01:48:35,992 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.34': '0'}} with 2024-11-11 01:48:35,992 - INFO - Initial checks done. Running the testcase now 2024-11-11 01:48:35,992 - INFO - 2024-11-11 01:48:36,644 - DEBUG - Response for create_network : {'network': {'id': 'e8717d46-def4-475a-b0de-4a42b9d742c7', 'name': 'ctest-vn-40313836', 'tenant_id': '020eb88fae0940d8879f7de8197e65b0', 'project_id': '020eb88fae0940d8879f7de8197e65b0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46445482', 'ctest-vn-40313836'], 'port_security_enabled': True, 'description': ''}} 2024-11-11 01:48:36,800 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a78849d3-04c7-40e1-9a50-a63e2335548d', 'name': '', 'tenant_id': '020eb88fae0940d8879f7de8197e65b0', 'network_id': 'e8717d46-def4-475a-b0de-4a42b9d742c7', 'ip_version': 4, 'cidr': '190.146.135.128/26', 'allocation_pools': [{'start': '190.146.135.130', 'end': '190.146.135.190'}], 'gateway_ip': '190.146.135.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '190.146.135.130', 'tags': [], 'project_id': '020eb88fae0940d8879f7de8197e65b0'}} 2024-11-11 01:48:36,821 - INFO - Created VN ctest-vn-40313836 2024-11-11 01:48:36,882 - DEBUG - VN ctest-vn-40313836 UUID is e8717d46-def4-475a-b0de-4a42b9d742c7 2024-11-11 01:48:37,221 - DEBUG - Response for create_network : {'network': {'id': '04978707-2c6d-42df-bc87-3d2c63205be4', 'name': 'ctest-vn-17388436', 'tenant_id': '020eb88fae0940d8879f7de8197e65b0', 'project_id': '020eb88fae0940d8879f7de8197e65b0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46445482', 'ctest-vn-17388436'], 'port_security_enabled': True, 'description': ''}} 2024-11-11 01:48:37,418 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fb2c0d09-24b9-4061-8d4d-b7f258805e4c', 'name': '', 'tenant_id': '020eb88fae0940d8879f7de8197e65b0', 'network_id': '04978707-2c6d-42df-bc87-3d2c63205be4', 'ip_version': 4, 'cidr': '26.142.11.192/26', 'allocation_pools': [{'start': '26.142.11.194', 'end': '26.142.11.254'}], 'gateway_ip': '26.142.11.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26.142.11.194', 'tags': [], 'project_id': '020eb88fae0940d8879f7de8197e65b0'}} 2024-11-11 01:48:37,438 - INFO - Created VN ctest-vn-17388436 2024-11-11 01:48:37,498 - DEBUG - VN ctest-vn-17388436 UUID is 04978707-2c6d-42df-bc87-3d2c63205be4 2024-11-11 01:48:37,621 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-46445482:ctest-vn-40313836, 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-46445482:ctest-vn-17388436, 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] 2024-11-11 01:48:37,940 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e8717d46-def4-475a-b0de-4a42b9d742c7', 'name': 'ctest-vn-40313836', 'tenant_id': '020eb88fae0940d8879f7de8197e65b0', 'project_id': '020eb88fae0940d8879f7de8197e65b0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a78849d3-04c7-40e1-9a50-a63e2335548d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46445482', 'ctest-vn-40313836'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46445482', 'ctest-policy-allow-all-61828627']], 'subnet_ipam': [{'subnet_cidr': '190.146.135.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-11 01:48:38,199 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '04978707-2c6d-42df-bc87-3d2c63205be4', 'name': 'ctest-vn-17388436', 'tenant_id': '020eb88fae0940d8879f7de8197e65b0', 'project_id': '020eb88fae0940d8879f7de8197e65b0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fb2c0d09-24b9-4061-8d4d-b7f258805e4c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46445482', 'ctest-vn-17388436'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46445482', 'ctest-policy-allow-all-61828627']], 'subnet_ipam': [{'subnet_cidr': '26.142.11.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-11 01:48:38,378 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-11-11 01:48:38,753 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-11-11 01:48:38,823 - DEBUG - Requesting: http://10.0.0.32:8082/domain/d3147976-a1a0-4ade-8575-85d3c25a1f83 2024-11-11 01:48:38,861 - DEBUG - Requesting: http://10.0.0.32:8082/project/020eb88f-ae09-40d8-879f-7de8197e65b0 2024-11-11 01:48:38,979 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/e8717d46-def4-475a-b0de-4a42b9d742c7 2024-11-11 01:48:39,003 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/e8717d46-def4-475a-b0de-4a42b9d742c7 2024-11-11 01:48:39,034 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/87cc612b-dbfe-43a0-9b31-ba4ded3de396 2024-11-11 01:48:39,063 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/87cc612b-dbfe-43a0-9b31-ba4ded3de396 2024-11-11 01:48:39,090 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/496f2ac1-5341-4971-9d72-b51cb3dffde6 2024-11-11 01:48:39,106 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-11 01:48:39,106 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/e8717d46-def4-475a-b0de-4a42b9d742c7 2024-11-11 01:48:39,127 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/87cc612b-dbfe-43a0-9b31-ba4ded3de396 2024-11-11 01:48:39,160 - INFO - Verified VN network id 9 for VN e8717d46-def4-475a-b0de-4a42b9d742c7 2024-11-11 01:48:39,160 - INFO - Verifications in API Server for VN ctest-vn-40313836 passed 2024-11-11 01:48:39,161 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/e8717d46-def4-475a-b0de-4a42b9d742c7 2024-11-11 01:48:39,191 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/87cc612b-dbfe-43a0-9b31-ba4ded3de396 2024-11-11 01:48:39,212 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/87cc612b-dbfe-43a0-9b31-ba4ded3de396 2024-11-11 01:48:39,226 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/496f2ac1-5341-4971-9d72-b51cb3dffde6 2024-11-11 01:48:39,244 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46445482:ctest-vn-40313836', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46445482', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16749306232509319002', 'uuid-lslong': '12744705645951271623'}, 'enable': 'true', 'created': '2024-11-11T01:48:36', 'last-modified': '2024-11-11T01:48:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.326355'} 2024-11-11 01:48:39,252 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-11 01:48:39,252 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40313836 passed 2024-11-11 01:48:39,253 - DEBUG - ====Verifying policy data for ctest-vn-40313836 in API_Server ====== 2024-11-11 01:48:39,253 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-11-11 01:48:39,268 - DEBUG - Requesting: http://10.0.0.32:8082/domain/d3147976-a1a0-4ade-8575-85d3c25a1f83 2024-11-11 01:48:39,293 - DEBUG - Requesting: http://10.0.0.32:8082/project/020eb88f-ae09-40d8-879f-7de8197e65b0 2024-11-11 01:48:39,395 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/e8717d46-def4-475a-b0de-4a42b9d742c7 2024-11-11 01:48:39,414 - DEBUG - ==>Verifying data for policy with id: dabd7b17-a86a-49d4-8fd1-eac01373d201, fqn: ['default-domain', 'ctest-TestBasicPolicy-46445482', 'ctest-policy-allow-all-61828627'] 2024-11-11 01:48:39,414 - INFO - VN ctest-vn-40313836 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-11 01:48:39,414 - DEBUG - Verifying the vn in opserver 2024-11-11 01:48:39,414 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46445482:ctest-vn-40313836 virtual network link through opserver 10.0.0.32 2024-11-11 01:48:39,414 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks 2024-11-11 01:48:39,849 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks 2024-11-11 01:48:39,934 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46445482:ctest-vn-40313836', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46445482:ctest-vn-40313836?flat'} 2024-11-11 01:48:39,934 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46445482:ctest-vn-40313836 is found in opserver 2024-11-11 01:48:39,946 - DEBUG - Do not have enough data to verify VN in agent 2024-11-11 01:48:39,951 - DEBUG - VRF ids for VN ctest-vn-40313836: {} 2024-11-11 01:48:39,951 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-11-11 01:48:39,957 - DEBUG - Requesting: http://10.0.0.32:8082/domain/d3147976-a1a0-4ade-8575-85d3c25a1f83 2024-11-11 01:48:39,972 - DEBUG - Requesting: http://10.0.0.32:8082/project/020eb88f-ae09-40d8-879f-7de8197e65b0 2024-11-11 01:48:40,059 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/04978707-2c6d-42df-bc87-3d2c63205be4 2024-11-11 01:48:40,078 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/04978707-2c6d-42df-bc87-3d2c63205be4 2024-11-11 01:48:40,094 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/6bf0de34-be84-4611-bf7e-858cbf23c724 2024-11-11 01:48:40,104 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/6bf0de34-be84-4611-bf7e-858cbf23c724 2024-11-11 01:48:40,115 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/ecfcb2c2-f70e-4fe9-a786-a354a5859d2f 2024-11-11 01:48:40,123 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-11 01:48:40,123 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/04978707-2c6d-42df-bc87-3d2c63205be4 2024-11-11 01:48:40,144 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/6bf0de34-be84-4611-bf7e-858cbf23c724 2024-11-11 01:48:40,167 - INFO - Verified VN network id 10 for VN 04978707-2c6d-42df-bc87-3d2c63205be4 2024-11-11 01:48:40,167 - INFO - Verifications in API Server for VN ctest-vn-17388436 passed 2024-11-11 01:48:40,167 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/04978707-2c6d-42df-bc87-3d2c63205be4 2024-11-11 01:48:40,186 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/6bf0de34-be84-4611-bf7e-858cbf23c724 2024-11-11 01:48:40,196 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/6bf0de34-be84-4611-bf7e-858cbf23c724 2024-11-11 01:48:40,207 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/ecfcb2c2-f70e-4fe9-a786-a354a5859d2f 2024-11-11 01:48:40,223 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46445482:ctest-vn-17388436', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46445482', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '330881562514899679', 'uuid-lslong': '13584894061837310948'}, 'enable': 'true', 'created': '2024-11-11T01:48:37', 'last-modified': '2024-11-11T01:48:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.056384'} 2024-11-11 01:48:40,231 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-11 01:48:40,231 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17388436 passed 2024-11-11 01:48:40,231 - DEBUG - ====Verifying policy data for ctest-vn-17388436 in API_Server ====== 2024-11-11 01:48:40,231 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-11-11 01:48:40,238 - DEBUG - Requesting: http://10.0.0.32:8082/domain/d3147976-a1a0-4ade-8575-85d3c25a1f83 2024-11-11 01:48:40,288 - DEBUG - Requesting: http://10.0.0.32:8082/project/020eb88f-ae09-40d8-879f-7de8197e65b0 2024-11-11 01:48:40,340 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/04978707-2c6d-42df-bc87-3d2c63205be4 2024-11-11 01:48:40,356 - DEBUG - ==>Verifying data for policy with id: dabd7b17-a86a-49d4-8fd1-eac01373d201, fqn: ['default-domain', 'ctest-TestBasicPolicy-46445482', 'ctest-policy-allow-all-61828627'] 2024-11-11 01:48:40,356 - INFO - VN ctest-vn-17388436 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-11 01:48:40,356 - DEBUG - Verifying the vn in opserver 2024-11-11 01:48:40,356 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46445482:ctest-vn-17388436 virtual network link through opserver 10.0.0.32 2024-11-11 01:48:40,356 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks 2024-11-11 01:48:40,368 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46445482:ctest-vn-17388436', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46445482:ctest-vn-17388436?flat'} 2024-11-11 01:48:40,368 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46445482:ctest-vn-17388436 is found in opserver 2024-11-11 01:48:40,379 - DEBUG - Do not have enough data to verify VN in agent 2024-11-11 01:48:40,385 - DEBUG - VRF ids for VN ctest-vn-17388436: {} 2024-11-11 01:48:40,442 - DEBUG - Services list from nova: [, , ] 2024-11-11 01:48:41,633 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2270-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2270-1) 2024-11-11 01:48:43,167 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2270-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2270-1) 2024-11-11 01:48:43,168 - INFO - Waiting for VM ctest-TestBasicPolicy-46445482-10142109 to be up.. 2024-11-11 01:48:43,266 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-11 01:48:48,399 - DEBUG - VM is in ACTIVE state now 2024-11-11 01:48:48,400 - INFO - VM name : ctest-TestBasicPolicy-46445482-10142109 2024-11-11 01:48:48,539 - DEBUG - VM ctest-TestBasicPolicy-46445482-10142109 ID is 08c74e6c-352f-4b60-ac13-23ed4ee2bbd1 2024-11-11 01:48:48,558 - DEBUG - VM ctest-TestBasicPolicy-46445482-10142109 launched on Node cn-jenkins-deploy-platform-ansible-os-2270-1 2024-11-11 01:48:48,656 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/08c74e6c-352f-4b60-ac13-23ed4ee2bbd1 2024-11-11 01:48:48,671 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine-interface/252904fd-635e-438f-9df3-48bf0369da49 2024-11-11 01:48:51,953 - 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 1022ms') 2024-11-11 01:48:51,953 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-46445482-10142109 failed! 2024-11-11 01:48:52,014 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-46445482:ctest-vn-40313836 is 190.146.135.129 and allocation pool is NOT set 2024-11-11 01:48:54,077 - 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.56 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.914 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.914/4.237/7.560/3.323 ms') 2024-11-11 01:48:54,077 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-46445482-10142109 passed 2024-11-11 01:48:54,250 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-11 01:48:54,250 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-46445482-10142109, IP 190.146.135.131, Port 22 2024-11-11 01:48:54,420 - DEBUG - VM ctest-TestBasicPolicy-46445482-10142109 is ready for SSH connections 2024-11-11 01:48:54,420 - INFO - Waiting for VM ctest-TestBasicPolicy-46445482-43222119 to be up.. 2024-11-11 01:48:54,509 - DEBUG - VM is in ACTIVE state now 2024-11-11 01:48:54,509 - INFO - VM name : ctest-TestBasicPolicy-46445482-43222119 2024-11-11 01:48:54,597 - DEBUG - VM ctest-TestBasicPolicy-46445482-43222119 ID is de6d9f1b-e8b7-4a22-b400-5c1f12633c47 2024-11-11 01:48:54,597 - DEBUG - VM ctest-TestBasicPolicy-46445482-43222119 launched on Node cn-jenkins-deploy-platform-ansible-os-2270-1 2024-11-11 01:48:54,684 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/de6d9f1b-e8b7-4a22-b400-5c1f12633c47 2024-11-11 01:48:54,699 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine-interface/d5f529f7-e172-4ec2-aed6-d1eb311491eb 2024-11-11 01:48:55,953 - 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.87 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.24 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.242/3.058/4.874/1.816 ms') 2024-11-11 01:48:55,953 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-46445482-43222119 passed 2024-11-11 01:48:56,118 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-11 01:48:56,118 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-46445482-43222119, IP 26.142.11.195, Port 22 2024-11-11 01:48:56,173 - 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': ''} 2024-11-11 01:48:56,286 - DEBUG - VM ctest-TestBasicPolicy-46445482-43222119 is NOT ready for SSH connections, VM status: ACTIVE 2024-11-11 01:49:01,287 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-11 01:49:01,287 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-46445482-43222119, IP 26.142.11.195, Port 22 2024-11-11 01:49:01,441 - DEBUG - VM ctest-TestBasicPolicy-46445482-43222119 is ready for SSH connections 2024-11-11 01:49:01,441 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-11 01:49:01,441 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 26.142.11.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.32, gateway password: c0ntrail123 2024-11-11 01:49:01,442 - DEBUG - ping -s 56 -c 3 -W 1 26.142.11.195 2024-11-11 01:49:05,503 - DEBUG - PING 26.142.11.195 (26.142.11.195): 56 data bytes 64 bytes from 26.142.11.195: seq=0 ttl=63 time=3.953 ms 64 bytes from 26.142.11.195: seq=1 ttl=63 time=0.874 ms 64 bytes from 26.142.11.195: seq=2 ttl=63 time=0.931 ms --- 26.142.11.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.874/1.919/3.953 ms 2024-11-11 01:49:05,503 - INFO - Ping to IP 26.142.11.195 from VM ctest-TestBasicPolicy-46445482-10142109 passed 2024-11-11 01:49:05,706 - DEBUG - Policy Update Response {"network-policy": {"uuid": "dabd7b17-a86a-49d4-8fd1-eac01373d201", "href": "http://10.0.0.32:8082/network-policy/dabd7b17-a86a-49d4-8fd1-eac01373d201"}} 2024-11-11 01:49:05,706 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-11 01:49:05,706 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 26.142.11.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.32, gateway password: c0ntrail123 2024-11-11 01:49:05,706 - DEBUG - ping -s 56 -c 3 -W 1 26.142.11.195 2024-11-11 01:49:08,930 - DEBUG - PING 26.142.11.195 (26.142.11.195): 56 data bytes --- 26.142.11.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-11-11 01:49:08,930 - WARNING - Ping to IP 26.142.11.195 from VM ctest-TestBasicPolicy-46445482-10142109 failed 2024-11-11 01:49:08,931 - INFO - Deleting VM ctest-TestBasicPolicy-46445482-43222119 2024-11-11 01:49:09,011 - INFO - Deleting VM ctest-TestBasicPolicy-46445482-10142109 2024-11-11 01:49:09,559 - INFO - Deleted policy ctest-policy-allow-all-61828627 2024-11-11 01:49:09,560 - INFO - Deleting VN ctest-vn-17388436 2024-11-11 01:49:09,622 - DEBUG - VN 04978707-2c6d-42df-bc87-3d2c63205be4 still in use: Unable to complete operation on network 04978707-2c6d-42df-bc87-3d2c63205be4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0c617ac5-dfbe-4616-8365-357f4ad0312c'] 2024-11-11 01:49:09,622 - WARNING - Deleting VN ctest-vn-17388436 failed..Will retry 2024-11-11 01:49:11,760 - DEBUG - Response for deleting network () 2024-11-11 01:49:11,760 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/6bf0de34-be84-4611-bf7e-858cbf23c724 2024-11-11 01:49:11,766 - DEBUG - Response Code: 404 2024-11-11 01:49:11,766 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-11-11 01:49:11,772 - DEBUG - Requesting: http://10.0.0.32:8082/domain/d3147976-a1a0-4ade-8575-85d3c25a1f83 2024-11-11 01:49:11,829 - DEBUG - Requesting: http://10.0.0.32:8082/project/020eb88f-ae09-40d8-879f-7de8197e65b0 2024-11-11 01:49:11,916 - INFO - Validated that VN ctest-vn-17388436 is not found in API Server 2024-11-11 01:49:11,927 - DEBUG - VN ctest-vn-17388436 is not present in Agent 10.0.0.32 2024-11-11 01:49:11,927 - INFO - Validated that VN ctest-vn-17388436 is not in any agent 2024-11-11 01:49:11,944 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-17388436 info 2024-11-11 01:49:11,944 - INFO - Deleting VN ctest-vn-40313836 2024-11-11 01:49:12,079 - DEBUG - Response for deleting network () 2024-11-11 01:49:12,079 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/87cc612b-dbfe-43a0-9b31-ba4ded3de396 2024-11-11 01:49:12,085 - DEBUG - Response Code: 404 2024-11-11 01:49:12,085 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-11-11 01:49:12,094 - DEBUG - Requesting: http://10.0.0.32:8082/domain/d3147976-a1a0-4ade-8575-85d3c25a1f83 2024-11-11 01:49:12,150 - DEBUG - Requesting: http://10.0.0.32:8082/project/020eb88f-ae09-40d8-879f-7de8197e65b0 2024-11-11 01:49:12,252 - INFO - Validated that VN ctest-vn-40313836 is not found in API Server 2024-11-11 01:49:12,265 - DEBUG - VN ctest-vn-40313836 is not present in Agent 10.0.0.32 2024-11-11 01:49:12,265 - INFO - Validated that VN ctest-vn-40313836 is not in any agent 2024-11-11 01:49:12,282 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-40313836 info 2024-11-11 01:49:12,548 - DEBUG - No XMPP flaps were noticed during the test 2024-11-11 01:49:12,548 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37] 2024-11-11 01:49:12,548 - INFO - -------------------------------------------------------------------------------- 2024-11-11 01:49:13,295 - INFO - Deleted project: ctest-TestBasicPolicy-46445482, ID : 020eb88f-ae09-40d8-879f-7de8197e65b0