2024-09-03 17:52:59,389 - INFO - Domain Default found not creating 2024-09-03 17:52:59,604 - INFO - Project ctest-TestBasicPolicy-90490745 not found, creating it 2024-09-03 17:53:00,111 - INFO - Created Project:ctest-TestBasicPolicy-90490745, ID : 4b55b67a-b7b7-4aa1-9833-a319b6ae11ae 2024-09-03 17:53:01,887 - INFO - ================================================================================ 2024-09-03 17:53:01,887 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-03 17:53:01,887 - 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-09-03 17:53:02,162 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.5': '0'}} with 2024-09-03 17:53:02,162 - INFO - Initial checks done. Running the testcase now 2024-09-03 17:53:02,162 - INFO - 2024-09-03 17:53:02,882 - DEBUG - Response for create_network : {'network': {'id': '9056eaf1-09ea-4d57-a7e4-ba8d05234263', 'name': 'ctest-vn-28737841', 'tenant_id': '4b55b67ab7b74aa19833a319b6ae11ae', 'project_id': '4b55b67ab7b74aa19833a319b6ae11ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90490745', 'ctest-vn-28737841'], 'port_security_enabled': True, 'description': ''}} 2024-09-03 17:53:03,103 - DEBUG - Response for create_subnet : {'subnet': {'id': '4fd1fb7c-118f-49e3-94a0-6196140786b7', 'name': '', 'tenant_id': '4b55b67ab7b74aa19833a319b6ae11ae', 'network_id': '9056eaf1-09ea-4d57-a7e4-ba8d05234263', 'ip_version': 4, 'cidr': '182.91.122.128/26', 'allocation_pools': [{'start': '182.91.122.130', 'end': '182.91.122.190'}], 'gateway_ip': '182.91.122.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '182.91.122.130', 'tags': [], 'project_id': '4b55b67ab7b74aa19833a319b6ae11ae'}} 2024-09-03 17:53:03,131 - INFO - Created VN ctest-vn-28737841 2024-09-03 17:53:03,182 - DEBUG - VN ctest-vn-28737841 UUID is 9056eaf1-09ea-4d57-a7e4-ba8d05234263 2024-09-03 17:53:03,514 - DEBUG - Response for create_network : {'network': {'id': '9b234d10-52f5-4950-8b26-999880e3f39e', 'name': 'ctest-vn-46197767', 'tenant_id': '4b55b67ab7b74aa19833a319b6ae11ae', 'project_id': '4b55b67ab7b74aa19833a319b6ae11ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90490745', 'ctest-vn-46197767'], 'port_security_enabled': True, 'description': ''}} 2024-09-03 17:53:03,709 - DEBUG - Response for create_subnet : {'subnet': {'id': '7b63510a-04bb-4be6-b198-97406c3631dc', 'name': '', 'tenant_id': '4b55b67ab7b74aa19833a319b6ae11ae', 'network_id': '9b234d10-52f5-4950-8b26-999880e3f39e', 'ip_version': 4, 'cidr': '154.30.255.0/26', 'allocation_pools': [{'start': '154.30.255.2', 'end': '154.30.255.62'}], 'gateway_ip': '154.30.255.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.30.255.2', 'tags': [], 'project_id': '4b55b67ab7b74aa19833a319b6ae11ae'}} 2024-09-03 17:53:03,730 - INFO - Created VN ctest-vn-46197767 2024-09-03 17:53:03,782 - DEBUG - VN ctest-vn-46197767 UUID is 9b234d10-52f5-4950-8b26-999880e3f39e 2024-09-03 17:53:03,916 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90490745:ctest-vn-28737841, 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-90490745:ctest-vn-46197767, 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-09-03 17:53:04,236 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9056eaf1-09ea-4d57-a7e4-ba8d05234263', 'name': 'ctest-vn-28737841', 'tenant_id': '4b55b67ab7b74aa19833a319b6ae11ae', 'project_id': '4b55b67ab7b74aa19833a319b6ae11ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4fd1fb7c-118f-49e3-94a0-6196140786b7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90490745', 'ctest-vn-28737841'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90490745', 'ctest-policy-allow-all-11628210']], 'subnet_ipam': [{'subnet_cidr': '182.91.122.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-03 17:53:04,505 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b234d10-52f5-4950-8b26-999880e3f39e', 'name': 'ctest-vn-46197767', 'tenant_id': '4b55b67ab7b74aa19833a319b6ae11ae', 'project_id': '4b55b67ab7b74aa19833a319b6ae11ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7b63510a-04bb-4be6-b198-97406c3631dc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90490745', 'ctest-vn-46197767'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90490745', 'ctest-policy-allow-all-11628210']], 'subnet_ipam': [{'subnet_cidr': '154.30.255.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-03 17:53:04,670 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-09-03 17:53:05,018 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-09-03 17:53:05,053 - DEBUG - Requesting: http://10.0.0.36:8082/domain/3abda3ec-3f5d-4d25-a43d-e1e328e304ae 2024-09-03 17:53:05,068 - DEBUG - Requesting: http://10.0.0.36:8082/project/4b55b67a-b7b7-4aa1-9833-a319b6ae11ae 2024-09-03 17:53:05,143 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/9056eaf1-09ea-4d57-a7e4-ba8d05234263 2024-09-03 17:53:05,155 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/9056eaf1-09ea-4d57-a7e4-ba8d05234263 2024-09-03 17:53:05,164 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d1c05c1a-5a37-4a41-b094-3de5b1479cb1 2024-09-03 17:53:05,171 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d1c05c1a-5a37-4a41-b094-3de5b1479cb1 2024-09-03 17:53:05,178 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/e62ac04a-2c09-417a-b125-c3ad385d8fb6 2024-09-03 17:53:05,186 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-03 17:53:05,186 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/9056eaf1-09ea-4d57-a7e4-ba8d05234263 2024-09-03 17:53:05,194 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d1c05c1a-5a37-4a41-b094-3de5b1479cb1 2024-09-03 17:53:05,207 - INFO - Verified VN network id 8 for VN 9056eaf1-09ea-4d57-a7e4-ba8d05234263 2024-09-03 17:53:05,207 - INFO - Verifications in API Server for VN ctest-vn-28737841 passed 2024-09-03 17:53:05,207 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/9056eaf1-09ea-4d57-a7e4-ba8d05234263 2024-09-03 17:53:05,216 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d1c05c1a-5a37-4a41-b094-3de5b1479cb1 2024-09-03 17:53:05,224 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d1c05c1a-5a37-4a41-b094-3de5b1479cb1 2024-09-03 17:53:05,233 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/e62ac04a-2c09-417a-b125-c3ad385d8fb6 2024-09-03 17:53:05,246 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90490745:ctest-vn-28737841', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90490745', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10400758710433107287', 'uuid-lslong': '12097999613863346787'}, 'enable': 'true', 'created': '2024-09-03T17:53:02', 'last-modified': '2024-09-03T17:53:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.047741'} 2024-09-03 17:53:05,253 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-03 17:53:05,253 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28737841 passed 2024-09-03 17:53:05,253 - DEBUG - ====Verifying policy data for ctest-vn-28737841 in API_Server ====== 2024-09-03 17:53:05,254 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-09-03 17:53:05,260 - DEBUG - Requesting: http://10.0.0.36:8082/domain/3abda3ec-3f5d-4d25-a43d-e1e328e304ae 2024-09-03 17:53:05,273 - DEBUG - Requesting: http://10.0.0.36:8082/project/4b55b67a-b7b7-4aa1-9833-a319b6ae11ae 2024-09-03 17:53:05,347 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/9056eaf1-09ea-4d57-a7e4-ba8d05234263 2024-09-03 17:53:05,356 - DEBUG - ==>Verifying data for policy with id: 32239681-40db-42f8-b7eb-4ff2e815f5f0, fqn: ['default-domain', 'ctest-TestBasicPolicy-90490745', 'ctest-policy-allow-all-11628210'] 2024-09-03 17:53:05,356 - INFO - VN ctest-vn-28737841 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-03 17:53:05,356 - DEBUG - Verifying the vn in opserver 2024-09-03 17:53:05,357 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90490745:ctest-vn-28737841 virtual network link through opserver 10.0.0.36 2024-09-03 17:53:05,357 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2024-09-03 17:53:05,699 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2024-09-03 17:53:05,768 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90490745:ctest-vn-28737841', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90490745:ctest-vn-28737841?flat'} 2024-09-03 17:53:05,768 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90490745:ctest-vn-28737841 is found in opserver 2024-09-03 17:53:05,782 - DEBUG - Do not have enough data to verify VN in agent 2024-09-03 17:53:05,787 - DEBUG - VRF ids for VN ctest-vn-28737841: {} 2024-09-03 17:53:05,788 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-09-03 17:53:05,794 - DEBUG - Requesting: http://10.0.0.36:8082/domain/3abda3ec-3f5d-4d25-a43d-e1e328e304ae 2024-09-03 17:53:05,807 - DEBUG - Requesting: http://10.0.0.36:8082/project/4b55b67a-b7b7-4aa1-9833-a319b6ae11ae 2024-09-03 17:53:05,878 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/9b234d10-52f5-4950-8b26-999880e3f39e 2024-09-03 17:53:05,889 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/9b234d10-52f5-4950-8b26-999880e3f39e 2024-09-03 17:53:05,898 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/37facd2e-6ad7-44b2-90c1-0ab00a73f152 2024-09-03 17:53:05,906 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/37facd2e-6ad7-44b2-90c1-0ab00a73f152 2024-09-03 17:53:05,914 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/f137ef63-d1f7-49b4-9c0a-fa3241fc2359 2024-09-03 17:53:05,921 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-03 17:53:05,921 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/9b234d10-52f5-4950-8b26-999880e3f39e 2024-09-03 17:53:05,929 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/37facd2e-6ad7-44b2-90c1-0ab00a73f152 2024-09-03 17:53:05,942 - INFO - Verified VN network id 9 for VN 9b234d10-52f5-4950-8b26-999880e3f39e 2024-09-03 17:53:05,942 - INFO - Verifications in API Server for VN ctest-vn-46197767 passed 2024-09-03 17:53:05,942 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/9b234d10-52f5-4950-8b26-999880e3f39e 2024-09-03 17:53:05,955 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/37facd2e-6ad7-44b2-90c1-0ab00a73f152 2024-09-03 17:53:05,962 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/37facd2e-6ad7-44b2-90c1-0ab00a73f152 2024-09-03 17:53:05,970 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/f137ef63-d1f7-49b4-9c0a-fa3241fc2359 2024-09-03 17:53:05,991 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90490745:ctest-vn-46197767', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90490745', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11178863432570325328', 'uuid-lslong': '10026870500663489438'}, 'enable': 'true', 'created': '2024-09-03T17:53:03', 'last-modified': '2024-09-03T17:53:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.517253'} 2024-09-03 17:53:05,999 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-03 17:53:05,999 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46197767 passed 2024-09-03 17:53:05,999 - DEBUG - ====Verifying policy data for ctest-vn-46197767 in API_Server ====== 2024-09-03 17:53:05,999 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-09-03 17:53:06,024 - DEBUG - Requesting: http://10.0.0.36:8082/domain/3abda3ec-3f5d-4d25-a43d-e1e328e304ae 2024-09-03 17:53:06,042 - DEBUG - Requesting: http://10.0.0.36:8082/project/4b55b67a-b7b7-4aa1-9833-a319b6ae11ae 2024-09-03 17:53:06,116 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/9b234d10-52f5-4950-8b26-999880e3f39e 2024-09-03 17:53:06,126 - DEBUG - ==>Verifying data for policy with id: 32239681-40db-42f8-b7eb-4ff2e815f5f0, fqn: ['default-domain', 'ctest-TestBasicPolicy-90490745', 'ctest-policy-allow-all-11628210'] 2024-09-03 17:53:06,126 - INFO - VN ctest-vn-46197767 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-03 17:53:06,126 - DEBUG - Verifying the vn in opserver 2024-09-03 17:53:06,126 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90490745:ctest-vn-46197767 virtual network link through opserver 10.0.0.36 2024-09-03 17:53:06,126 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks 2024-09-03 17:53:06,142 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90490745:ctest-vn-46197767', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90490745:ctest-vn-46197767?flat'} 2024-09-03 17:53:06,142 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90490745:ctest-vn-46197767 is found in opserver 2024-09-03 17:53:06,157 - DEBUG - Do not have enough data to verify VN in agent 2024-09-03 17:53:06,164 - DEBUG - VRF ids for VN ctest-vn-46197767: {} 2024-09-03 17:53:06,229 - DEBUG - Services list from nova: [, , ] 2024-09-03 17:53:07,398 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1840-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1840-1) 2024-09-03 17:53:08,847 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1840-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1840-1) 2024-09-03 17:53:08,847 - INFO - Waiting for VM ctest-TestBasicPolicy-90490745-68195834 to be up.. 2024-09-03 17:53:08,971 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-03 17:53:14,067 - DEBUG - VM is in ACTIVE state now 2024-09-03 17:53:14,067 - INFO - VM name : ctest-TestBasicPolicy-90490745-68195834 2024-09-03 17:53:14,155 - DEBUG - VM ctest-TestBasicPolicy-90490745-68195834 ID is bc1382c8-7f0e-4bcf-8915-c2dd2ba3beb5 2024-09-03 17:53:14,181 - DEBUG - VM ctest-TestBasicPolicy-90490745-68195834 launched on Node cn-jenkins-deploy-platform-ansible-os-1840-1 2024-09-03 17:53:14,281 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/bc1382c8-7f0e-4bcf-8915-c2dd2ba3beb5 2024-09-03 17:53:14,292 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/dab01930-cecf-4300-914c-49fd5cccebf8 2024-09-03 17:53:17,553 - 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 1018ms') 2024-09-03 17:53:17,553 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-90490745-68195834 failed! 2024-09-03 17:53:17,606 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-90490745:ctest-vn-28737841 is 182.91.122.129 and allocation pool is NOT set 2024-09-03 17:53:19,676 - 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.57 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.87 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.874/5.223/7.573/2.349 ms') 2024-09-03 17:53:19,677 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-90490745-68195834 passed 2024-09-03 17:53:19,834 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 17:53:19,834 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-90490745-68195834, IP 182.91.122.131, Port 22 2024-09-03 17:53:19,993 - DEBUG - VM ctest-TestBasicPolicy-90490745-68195834 is ready for SSH connections 2024-09-03 17:53:19,994 - INFO - Waiting for VM ctest-TestBasicPolicy-90490745-71490529 to be up.. 2024-09-03 17:53:20,100 - DEBUG - VM is in ACTIVE state now 2024-09-03 17:53:20,100 - INFO - VM name : ctest-TestBasicPolicy-90490745-71490529 2024-09-03 17:53:20,196 - DEBUG - VM ctest-TestBasicPolicy-90490745-71490529 ID is c4d10fc5-8da4-4f38-8207-6229f49cf632 2024-09-03 17:53:20,197 - DEBUG - VM ctest-TestBasicPolicy-90490745-71490529 launched on Node cn-jenkins-deploy-platform-ansible-os-1840-1 2024-09-03 17:53:20,287 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/c4d10fc5-8da4-4f38-8207-6229f49cf632 2024-09-03 17:53:20,298 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/8e295f8f-9d4a-4d3a-8432-b9009eb2b394 2024-09-03 17:53:21,544 - 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.31 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.13 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.125/3.717/5.309/1.592 ms') 2024-09-03 17:53:21,544 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-90490745-71490529 passed 2024-09-03 17:53:21,710 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 17:53:21,711 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-90490745-71490529, IP 154.30.255.3, Port 22 2024-09-03 17:53:21,781 - 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-09-03 17:53:21,876 - DEBUG - VM ctest-TestBasicPolicy-90490745-71490529 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-03 17:53:26,877 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 17:53:26,878 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-90490745-71490529, IP 154.30.255.3, Port 22 2024-09-03 17:53:27,033 - DEBUG - VM ctest-TestBasicPolicy-90490745-71490529 is ready for SSH connections 2024-09-03 17:53:27,034 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 17:53:27,034 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 154.30.255.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-09-03 17:53:27,034 - DEBUG - ping -s 56 -c 3 -W 1 154.30.255.3 2024-09-03 17:53:30,780 - DEBUG - PING 154.30.255.3 (154.30.255.3): 56 data bytes 64 bytes from 154.30.255.3: seq=0 ttl=63 time=4.863 ms 64 bytes from 154.30.255.3: seq=1 ttl=63 time=1.137 ms 64 bytes from 154.30.255.3: seq=2 ttl=63 time=0.913 ms --- 154.30.255.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.913/2.304/4.863 ms 2024-09-03 17:53:30,780 - INFO - Ping to IP 154.30.255.3 from VM ctest-TestBasicPolicy-90490745-68195834 passed 2024-09-03 17:53:30,970 - DEBUG - Policy Update Response {"network-policy": {"uuid": "32239681-40db-42f8-b7eb-4ff2e815f5f0", "href": "http://10.0.0.36:8082/network-policy/32239681-40db-42f8-b7eb-4ff2e815f5f0"}} 2024-09-03 17:53:30,970 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 17:53:30,970 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 154.30.255.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-09-03 17:53:30,970 - DEBUG - ping -s 56 -c 3 -W 1 154.30.255.3 2024-09-03 17:53:34,190 - DEBUG - PING 154.30.255.3 (154.30.255.3): 56 data bytes 64 bytes from 154.30.255.3: seq=0 ttl=63 time=1.591 ms --- 154.30.255.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.591/1.591/1.591 ms 2024-09-03 17:53:34,190 - WARNING - Ping to IP 154.30.255.3 from VM ctest-TestBasicPolicy-90490745-68195834 failed 2024-09-03 17:53:34,191 - INFO - Deleting VM ctest-TestBasicPolicy-90490745-71490529 2024-09-03 17:53:34,269 - INFO - Deleting VM ctest-TestBasicPolicy-90490745-68195834 2024-09-03 17:53:34,733 - INFO - Deleted policy ctest-policy-allow-all-11628210 2024-09-03 17:53:34,733 - INFO - Deleting VN ctest-vn-46197767 2024-09-03 17:53:34,794 - DEBUG - VN 9b234d10-52f5-4950-8b26-999880e3f39e still in use: Unable to complete operation on network 9b234d10-52f5-4950-8b26-999880e3f39e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-12fe1d4d-f93f-4bc3-af79-c4820d6db231'] 2024-09-03 17:53:34,794 - WARNING - Deleting VN ctest-vn-46197767 failed..Will retry 2024-09-03 17:53:36,931 - DEBUG - Response for deleting network () 2024-09-03 17:53:36,931 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/37facd2e-6ad7-44b2-90c1-0ab00a73f152 2024-09-03 17:53:36,939 - DEBUG - Response Code: 404 2024-09-03 17:53:36,939 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-09-03 17:53:36,952 - DEBUG - Requesting: http://10.0.0.36:8082/domain/3abda3ec-3f5d-4d25-a43d-e1e328e304ae 2024-09-03 17:53:37,010 - DEBUG - Requesting: http://10.0.0.36:8082/project/4b55b67a-b7b7-4aa1-9833-a319b6ae11ae 2024-09-03 17:53:37,089 - INFO - Validated that VN ctest-vn-46197767 is not found in API Server 2024-09-03 17:53:37,103 - DEBUG - VN ctest-vn-46197767 is not present in Agent 10.0.0.36 2024-09-03 17:53:37,103 - INFO - Validated that VN ctest-vn-46197767 is not in any agent 2024-09-03 17:53:37,124 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-46197767 info 2024-09-03 17:53:37,124 - INFO - Deleting VN ctest-vn-28737841 2024-09-03 17:53:37,274 - DEBUG - Response for deleting network () 2024-09-03 17:53:37,274 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d1c05c1a-5a37-4a41-b094-3de5b1479cb1 2024-09-03 17:53:37,282 - DEBUG - Response Code: 404 2024-09-03 17:53:37,282 - DEBUG - Requesting: http://10.0.0.36:8082/domains 2024-09-03 17:53:37,295 - DEBUG - Requesting: http://10.0.0.36:8082/domain/3abda3ec-3f5d-4d25-a43d-e1e328e304ae 2024-09-03 17:53:37,352 - DEBUG - Requesting: http://10.0.0.36:8082/project/4b55b67a-b7b7-4aa1-9833-a319b6ae11ae 2024-09-03 17:53:37,435 - INFO - Validated that VN ctest-vn-28737841 is not found in API Server 2024-09-03 17:53:37,449 - DEBUG - VN ctest-vn-28737841 is not present in Agent 10.0.0.36 2024-09-03 17:53:37,449 - INFO - Validated that VN ctest-vn-28737841 is not in any agent 2024-09-03 17:53:37,472 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-28737841 info 2024-09-03 17:53:37,741 - DEBUG - No XMPP flaps were noticed during the test 2024-09-03 17:53:37,741 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2024-09-03 17:53:37,741 - INFO - -------------------------------------------------------------------------------- 2024-09-03 17:53:38,525 - INFO - Deleted project: ctest-TestBasicPolicy-90490745, ID : 4b55b67a-b7b7-4aa1-9833-a319b6ae11ae