2024-08-29 17:09:11,513 - INFO - Domain Default found not creating 2024-08-29 17:09:11,709 - INFO - Project ctest-TestBasicPolicy-36228391 not found, creating it 2024-08-29 17:09:12,250 - INFO - Created Project:ctest-TestBasicPolicy-36228391, ID : f3ff59f0-8d3f-4a09-8482-91d56adbd94d 2024-08-29 17:09:13,922 - INFO - ================================================================================ 2024-08-29 17:09:13,922 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-29 17:09:13,922 - 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-08-29 17:09:14,205 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.39': '0'}} with 2024-08-29 17:09:14,205 - INFO - Initial checks done. Running the testcase now 2024-08-29 17:09:14,205 - INFO - 2024-08-29 17:09:14,834 - DEBUG - Response for create_network : {'network': {'id': '06f01242-219b-4daf-9452-7f2ef40af611', 'name': 'ctest-vn-99712578', 'tenant_id': 'f3ff59f08d3f4a09848291d56adbd94d', 'project_id': 'f3ff59f08d3f4a09848291d56adbd94d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36228391', 'ctest-vn-99712578'], 'port_security_enabled': True, 'description': ''}} 2024-08-29 17:09:15,050 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c64ad6f2-6657-43f8-a834-4e82432a7226', 'name': '', 'tenant_id': 'f3ff59f08d3f4a09848291d56adbd94d', 'network_id': '06f01242-219b-4daf-9452-7f2ef40af611', 'ip_version': 4, 'cidr': '54.125.26.0/26', 'allocation_pools': [{'start': '54.125.26.2', 'end': '54.125.26.62'}], 'gateway_ip': '54.125.26.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.125.26.2', 'tags': [], 'project_id': 'f3ff59f08d3f4a09848291d56adbd94d'}} 2024-08-29 17:09:15,072 - INFO - Created VN ctest-vn-99712578 2024-08-29 17:09:15,127 - DEBUG - VN ctest-vn-99712578 UUID is 06f01242-219b-4daf-9452-7f2ef40af611 2024-08-29 17:09:15,459 - DEBUG - Response for create_network : {'network': {'id': '503d6f8d-f8b9-4c6b-91cf-7ab317791f14', 'name': 'ctest-vn-52817147', 'tenant_id': 'f3ff59f08d3f4a09848291d56adbd94d', 'project_id': 'f3ff59f08d3f4a09848291d56adbd94d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36228391', 'ctest-vn-52817147'], 'port_security_enabled': True, 'description': ''}} 2024-08-29 17:09:15,698 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fb733bc1-7b8a-477d-9609-d9e28df4c279', 'name': '', 'tenant_id': 'f3ff59f08d3f4a09848291d56adbd94d', 'network_id': '503d6f8d-f8b9-4c6b-91cf-7ab317791f14', 'ip_version': 4, 'cidr': '164.96.81.0/26', 'allocation_pools': [{'start': '164.96.81.2', 'end': '164.96.81.62'}], 'gateway_ip': '164.96.81.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '164.96.81.2', 'tags': [], 'project_id': 'f3ff59f08d3f4a09848291d56adbd94d'}} 2024-08-29 17:09:15,719 - INFO - Created VN ctest-vn-52817147 2024-08-29 17:09:15,771 - DEBUG - VN ctest-vn-52817147 UUID is 503d6f8d-f8b9-4c6b-91cf-7ab317791f14 2024-08-29 17:09:15,882 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-36228391:ctest-vn-99712578, 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-36228391:ctest-vn-52817147, 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-08-29 17:09:16,229 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '06f01242-219b-4daf-9452-7f2ef40af611', 'name': 'ctest-vn-99712578', 'tenant_id': 'f3ff59f08d3f4a09848291d56adbd94d', 'project_id': 'f3ff59f08d3f4a09848291d56adbd94d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c64ad6f2-6657-43f8-a834-4e82432a7226'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36228391', 'ctest-vn-99712578'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36228391', 'ctest-policy-allow-all-55559596']], 'subnet_ipam': [{'subnet_cidr': '54.125.26.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-29 17:09:16,484 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '503d6f8d-f8b9-4c6b-91cf-7ab317791f14', 'name': 'ctest-vn-52817147', 'tenant_id': 'f3ff59f08d3f4a09848291d56adbd94d', 'project_id': 'f3ff59f08d3f4a09848291d56adbd94d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fb733bc1-7b8a-477d-9609-d9e28df4c279'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36228391', 'ctest-vn-52817147'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36228391', 'ctest-policy-allow-all-55559596']], 'subnet_ipam': [{'subnet_cidr': '164.96.81.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-29 17:09:16,656 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-08-29 17:09:16,982 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-08-29 17:09:17,019 - DEBUG - Requesting: http://10.0.0.29:8082/domain/90e08836-a64c-4e78-8958-ae5c95a41caf 2024-08-29 17:09:17,033 - DEBUG - Requesting: http://10.0.0.29:8082/project/f3ff59f0-8d3f-4a09-8482-91d56adbd94d 2024-08-29 17:09:17,122 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/06f01242-219b-4daf-9452-7f2ef40af611 2024-08-29 17:09:17,132 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/06f01242-219b-4daf-9452-7f2ef40af611 2024-08-29 17:09:17,147 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/cdb0958b-9567-4003-ac93-cca7a20f4f9d 2024-08-29 17:09:17,156 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/cdb0958b-9567-4003-ac93-cca7a20f4f9d 2024-08-29 17:09:17,163 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/c31e7444-c168-450e-9f65-6d8a8bbbdba4 2024-08-29 17:09:17,171 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-29 17:09:17,171 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/06f01242-219b-4daf-9452-7f2ef40af611 2024-08-29 17:09:17,180 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/cdb0958b-9567-4003-ac93-cca7a20f4f9d 2024-08-29 17:09:17,201 - INFO - Verified VN network id 7 for VN 06f01242-219b-4daf-9452-7f2ef40af611 2024-08-29 17:09:17,201 - INFO - Verifications in API Server for VN ctest-vn-99712578 passed 2024-08-29 17:09:17,201 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/06f01242-219b-4daf-9452-7f2ef40af611 2024-08-29 17:09:17,211 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/cdb0958b-9567-4003-ac93-cca7a20f4f9d 2024-08-29 17:09:17,219 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/cdb0958b-9567-4003-ac93-cca7a20f4f9d 2024-08-29 17:09:17,227 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/c31e7444-c168-450e-9f65-6d8a8bbbdba4 2024-08-29 17:09:17,240 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36228391:ctest-vn-99712578', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36228391', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '499919633879092655', 'uuid-lslong': '10687744705343190545'}, 'enable': 'true', 'created': '2024-08-29T17:09:14', 'last-modified': '2024-08-29T17:09:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.052383'} 2024-08-29 17:09:17,246 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-29 17:09:17,247 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99712578 passed 2024-08-29 17:09:17,247 - DEBUG - ====Verifying policy data for ctest-vn-99712578 in API_Server ====== 2024-08-29 17:09:17,247 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-08-29 17:09:17,254 - DEBUG - Requesting: http://10.0.0.29:8082/domain/90e08836-a64c-4e78-8958-ae5c95a41caf 2024-08-29 17:09:17,266 - DEBUG - Requesting: http://10.0.0.29:8082/project/f3ff59f0-8d3f-4a09-8482-91d56adbd94d 2024-08-29 17:09:17,345 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/06f01242-219b-4daf-9452-7f2ef40af611 2024-08-29 17:09:17,354 - DEBUG - ==>Verifying data for policy with id: b9f321d3-a655-47ad-8b34-e97bd4a2844a, fqn: ['default-domain', 'ctest-TestBasicPolicy-36228391', 'ctest-policy-allow-all-55559596'] 2024-08-29 17:09:17,354 - INFO - VN ctest-vn-99712578 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-29 17:09:17,354 - DEBUG - Verifying the vn in opserver 2024-08-29 17:09:17,354 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36228391:ctest-vn-99712578 virtual network link through opserver 10.0.0.29 2024-08-29 17:09:17,355 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-08-29 17:09:17,755 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-08-29 17:09:17,825 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36228391:ctest-vn-99712578', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36228391:ctest-vn-99712578?flat'} 2024-08-29 17:09:17,826 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36228391:ctest-vn-99712578 is found in opserver 2024-08-29 17:09:17,842 - DEBUG - Do not have enough data to verify VN in agent 2024-08-29 17:09:17,850 - DEBUG - VRF ids for VN ctest-vn-99712578: {} 2024-08-29 17:09:17,850 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-08-29 17:09:17,857 - DEBUG - Requesting: http://10.0.0.29:8082/domain/90e08836-a64c-4e78-8958-ae5c95a41caf 2024-08-29 17:09:17,872 - DEBUG - Requesting: http://10.0.0.29:8082/project/f3ff59f0-8d3f-4a09-8482-91d56adbd94d 2024-08-29 17:09:17,956 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/503d6f8d-f8b9-4c6b-91cf-7ab317791f14 2024-08-29 17:09:17,967 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/503d6f8d-f8b9-4c6b-91cf-7ab317791f14 2024-08-29 17:09:17,975 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/62000dc1-5361-46ab-8358-db1860d40594 2024-08-29 17:09:17,982 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/62000dc1-5361-46ab-8358-db1860d40594 2024-08-29 17:09:17,989 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/deb60bf4-8d9e-4788-8626-7849c92feed0 2024-08-29 17:09:17,996 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-29 17:09:17,996 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/503d6f8d-f8b9-4c6b-91cf-7ab317791f14 2024-08-29 17:09:18,003 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/62000dc1-5361-46ab-8358-db1860d40594 2024-08-29 17:09:18,016 - INFO - Verified VN network id 8 for VN 503d6f8d-f8b9-4c6b-91cf-7ab317791f14 2024-08-29 17:09:18,016 - INFO - Verifications in API Server for VN ctest-vn-52817147 passed 2024-08-29 17:09:18,016 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/503d6f8d-f8b9-4c6b-91cf-7ab317791f14 2024-08-29 17:09:18,025 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/62000dc1-5361-46ab-8358-db1860d40594 2024-08-29 17:09:18,032 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/62000dc1-5361-46ab-8358-db1860d40594 2024-08-29 17:09:18,039 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/deb60bf4-8d9e-4788-8626-7849c92feed0 2024-08-29 17:09:18,052 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36228391:ctest-vn-52817147', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36228391', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5781900152167550059', 'uuid-lslong': '10506751365290204948'}, 'enable': 'true', 'created': '2024-08-29T17:09:15', 'last-modified': '2024-08-29T17:09:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.594839'} 2024-08-29 17:09:18,058 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-29 17:09:18,058 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52817147 passed 2024-08-29 17:09:18,058 - DEBUG - ====Verifying policy data for ctest-vn-52817147 in API_Server ====== 2024-08-29 17:09:18,058 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-08-29 17:09:18,065 - DEBUG - Requesting: http://10.0.0.29:8082/domain/90e08836-a64c-4e78-8958-ae5c95a41caf 2024-08-29 17:09:18,078 - DEBUG - Requesting: http://10.0.0.29:8082/project/f3ff59f0-8d3f-4a09-8482-91d56adbd94d 2024-08-29 17:09:18,159 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/503d6f8d-f8b9-4c6b-91cf-7ab317791f14 2024-08-29 17:09:18,168 - DEBUG - ==>Verifying data for policy with id: b9f321d3-a655-47ad-8b34-e97bd4a2844a, fqn: ['default-domain', 'ctest-TestBasicPolicy-36228391', 'ctest-policy-allow-all-55559596'] 2024-08-29 17:09:18,168 - INFO - VN ctest-vn-52817147 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-29 17:09:18,168 - DEBUG - Verifying the vn in opserver 2024-08-29 17:09:18,168 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36228391:ctest-vn-52817147 virtual network link through opserver 10.0.0.29 2024-08-29 17:09:18,168 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-08-29 17:09:18,180 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36228391:ctest-vn-52817147', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36228391:ctest-vn-52817147?flat'} 2024-08-29 17:09:18,180 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36228391:ctest-vn-52817147 is found in opserver 2024-08-29 17:09:18,201 - DEBUG - Do not have enough data to verify VN in agent 2024-08-29 17:09:18,208 - DEBUG - VRF ids for VN ctest-vn-52817147: {} 2024-08-29 17:09:18,281 - DEBUG - Services list from nova: [, , ] 2024-08-29 17:09:19,509 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1812-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1812-1) 2024-08-29 17:09:21,203 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1812-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1812-1) 2024-08-29 17:09:21,203 - INFO - Waiting for VM ctest-TestBasicPolicy-36228391-11702218 to be up.. 2024-08-29 17:09:21,319 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-29 17:09:26,426 - DEBUG - VM is in ACTIVE state now 2024-08-29 17:09:26,427 - INFO - VM name : ctest-TestBasicPolicy-36228391-11702218 2024-08-29 17:09:26,518 - DEBUG - VM ctest-TestBasicPolicy-36228391-11702218 ID is 71e56f5e-da6e-4b0c-875e-4cb233038436 2024-08-29 17:09:26,545 - DEBUG - VM ctest-TestBasicPolicy-36228391-11702218 launched on Node cn-jenkins-deploy-platform-ansible-os-1812-1 2024-08-29 17:09:26,638 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/71e56f5e-da6e-4b0c-875e-4cb233038436 2024-08-29 17:09:26,647 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/c14c47b2-d12b-43dd-874f-6f44f2f8b158 2024-08-29 17:09:29,874 - 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 1026ms') 2024-08-29 17:09:29,874 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-36228391-11702218 failed! 2024-08-29 17:09:29,927 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-36228391:ctest-vn-99712578 is 54.125.26.1 and allocation pool is NOT set 2024-08-29 17:09:31,998 - 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=5.82 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.343 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.343/3.082/5.821/2.739 ms') 2024-08-29 17:09:31,998 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-36228391-11702218 passed 2024-08-29 17:09:32,163 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 17:09:32,163 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-36228391-11702218, IP 54.125.26.3, Port 22 2024-08-29 17:09:32,318 - DEBUG - VM ctest-TestBasicPolicy-36228391-11702218 is ready for SSH connections 2024-08-29 17:09:32,318 - INFO - Waiting for VM ctest-TestBasicPolicy-36228391-08647357 to be up.. 2024-08-29 17:09:32,411 - DEBUG - VM is in ACTIVE state now 2024-08-29 17:09:32,411 - INFO - VM name : ctest-TestBasicPolicy-36228391-08647357 2024-08-29 17:09:32,506 - DEBUG - VM ctest-TestBasicPolicy-36228391-08647357 ID is e2f9a6f9-b68c-4e2c-82ae-6f230ab470b8 2024-08-29 17:09:32,507 - DEBUG - VM ctest-TestBasicPolicy-36228391-08647357 launched on Node cn-jenkins-deploy-platform-ansible-os-1812-1 2024-08-29 17:09:32,618 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/e2f9a6f9-b68c-4e2c-82ae-6f230ab470b8 2024-08-29 17:09:32,632 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/165cc8f4-f84e-46b0-a251-dc9f7a45d81a 2024-08-29 17:09:33,889 - 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.51 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.44 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.439/2.974/4.509/1.535 ms') 2024-08-29 17:09:33,889 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-36228391-08647357 passed 2024-08-29 17:09:34,039 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 17:09:34,039 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-36228391-08647357, IP 164.96.81.3, Port 22 2024-08-29 17:09:34,095 - 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-08-29 17:09:34,187 - DEBUG - VM ctest-TestBasicPolicy-36228391-08647357 is NOT ready for SSH connections, VM status: ACTIVE 2024-08-29 17:09:39,188 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 17:09:39,188 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-36228391-08647357, IP 164.96.81.3, Port 22 2024-08-29 17:09:39,351 - DEBUG - VM ctest-TestBasicPolicy-36228391-08647357 is ready for SSH connections 2024-08-29 17:09:39,351 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 17:09:39,351 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 164.96.81.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-08-29 17:09:39,351 - DEBUG - ping -s 56 -c 3 -W 1 164.96.81.3 2024-08-29 17:09:43,423 - DEBUG - PING 164.96.81.3 (164.96.81.3): 56 data bytes 64 bytes from 164.96.81.3: seq=0 ttl=63 time=3.817 ms 64 bytes from 164.96.81.3: seq=1 ttl=63 time=1.370 ms 64 bytes from 164.96.81.3: seq=2 ttl=63 time=0.977 ms --- 164.96.81.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.977/2.054/3.817 ms 2024-08-29 17:09:43,423 - INFO - Ping to IP 164.96.81.3 from VM ctest-TestBasicPolicy-36228391-11702218 passed 2024-08-29 17:09:43,611 - DEBUG - Policy Update Response {"network-policy": {"uuid": "b9f321d3-a655-47ad-8b34-e97bd4a2844a", "href": "http://10.0.0.29:8082/network-policy/b9f321d3-a655-47ad-8b34-e97bd4a2844a"}} 2024-08-29 17:09:43,611 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-29 17:09:43,611 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 164.96.81.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-08-29 17:09:43,611 - DEBUG - ping -s 56 -c 3 -W 1 164.96.81.3 2024-08-29 17:09:46,823 - DEBUG - PING 164.96.81.3 (164.96.81.3): 56 data bytes 64 bytes from 164.96.81.3: seq=0 ttl=63 time=2.031 ms --- 164.96.81.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.031/2.031/2.031 ms 2024-08-29 17:09:46,823 - WARNING - Ping to IP 164.96.81.3 from VM ctest-TestBasicPolicy-36228391-11702218 failed 2024-08-29 17:09:46,823 - INFO - Deleting VM ctest-TestBasicPolicy-36228391-08647357 2024-08-29 17:09:46,907 - INFO - Deleting VM ctest-TestBasicPolicy-36228391-11702218 2024-08-29 17:09:47,334 - INFO - Deleted policy ctest-policy-allow-all-55559596 2024-08-29 17:09:47,334 - INFO - Deleting VN ctest-vn-52817147 2024-08-29 17:09:47,381 - DEBUG - VN 503d6f8d-f8b9-4c6b-91cf-7ab317791f14 still in use: Unable to complete operation on network 503d6f8d-f8b9-4c6b-91cf-7ab317791f14. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-90a4ade8-7a64-416d-b5ca-6f5dd941943a'] 2024-08-29 17:09:47,381 - WARNING - Deleting VN ctest-vn-52817147 failed..Will retry 2024-08-29 17:09:49,516 - DEBUG - Response for deleting network () 2024-08-29 17:09:49,516 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/62000dc1-5361-46ab-8358-db1860d40594 2024-08-29 17:09:49,525 - DEBUG - Response Code: 404 2024-08-29 17:09:49,525 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-08-29 17:09:49,530 - DEBUG - Requesting: http://10.0.0.29:8082/domain/90e08836-a64c-4e78-8958-ae5c95a41caf 2024-08-29 17:09:49,586 - DEBUG - Requesting: http://10.0.0.29:8082/project/f3ff59f0-8d3f-4a09-8482-91d56adbd94d 2024-08-29 17:09:49,658 - INFO - Validated that VN ctest-vn-52817147 is not found in API Server 2024-08-29 17:09:49,669 - DEBUG - VN ctest-vn-52817147 is not present in Agent 10.0.0.29 2024-08-29 17:09:49,669 - INFO - Validated that VN ctest-vn-52817147 is not in any agent 2024-08-29 17:09:49,684 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-52817147 info 2024-08-29 17:09:49,684 - INFO - Deleting VN ctest-vn-99712578 2024-08-29 17:09:50,017 - DEBUG - Response for deleting network () 2024-08-29 17:09:50,017 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/cdb0958b-9567-4003-ac93-cca7a20f4f9d 2024-08-29 17:09:50,023 - DEBUG - Response Code: 404 2024-08-29 17:09:50,023 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-08-29 17:09:50,030 - DEBUG - Requesting: http://10.0.0.29:8082/domain/90e08836-a64c-4e78-8958-ae5c95a41caf 2024-08-29 17:09:50,042 - DEBUG - Requesting: http://10.0.0.29:8082/project/f3ff59f0-8d3f-4a09-8482-91d56adbd94d 2024-08-29 17:09:50,125 - INFO - Validated that VN ctest-vn-99712578 is not found in API Server 2024-08-29 17:09:50,136 - DEBUG - VN ctest-vn-99712578 is not present in Agent 10.0.0.29 2024-08-29 17:09:50,136 - INFO - Validated that VN ctest-vn-99712578 is not in any agent 2024-08-29 17:09:50,155 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-99712578 info 2024-08-29 17:09:50,412 - DEBUG - No XMPP flaps were noticed during the test
2024-08-29 17:09:50,412 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37]
2024-08-29 17:09:50,412 - INFO - -------------------------------------------------------------------------------- 2024-08-29 17:09:51,145 - INFO - Deleted project: ctest-TestBasicPolicy-36228391, ID : f3ff59f0-8d3f-4a09-8482-91d56adbd94d