2024-10-26 15:06:01,202 - INFO - Domain Default found not creating 2024-10-26 15:06:01,389 - INFO - Project ctest-TestBasicPolicy-31234324 not found, creating it 2024-10-26 15:06:01,908 - INFO - Created Project:ctest-TestBasicPolicy-31234324, ID : 24b67b7c-8e07-4ac8-9970-8046d248a892 2024-10-26 15:06:03,520 - INFO - ================================================================================ 2024-10-26 15:06:03,520 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-26 15:06:03,521 - 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-10-26 15:06:03,786 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.14': '0'}} with 2024-10-26 15:06:03,786 - INFO - Initial checks done. Running the testcase now 2024-10-26 15:06:03,787 - INFO - 2024-10-26 15:06:04,384 - DEBUG - Response for create_network : {'network': {'id': '95080636-4fba-47c7-8106-036623be8f33', 'name': 'ctest-vn-41542758', 'tenant_id': '24b67b7c8e074ac899708046d248a892', 'project_id': '24b67b7c8e074ac899708046d248a892', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31234324', 'ctest-vn-41542758'], 'port_security_enabled': True, 'description': ''}} 2024-10-26 15:06:04,555 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e0d7145a-07af-466e-b7d2-b11ecdf357e0', 'name': '', 'tenant_id': '24b67b7c8e074ac899708046d248a892', 'network_id': '95080636-4fba-47c7-8106-036623be8f33', 'ip_version': 4, 'cidr': '54.24.123.0/26', 'allocation_pools': [{'start': '54.24.123.2', 'end': '54.24.123.62'}], 'gateway_ip': '54.24.123.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.24.123.2', 'tags': [], 'project_id': '24b67b7c8e074ac899708046d248a892'}} 2024-10-26 15:06:04,577 - INFO - Created VN ctest-vn-41542758 2024-10-26 15:06:04,634 - DEBUG - VN ctest-vn-41542758 UUID is 95080636-4fba-47c7-8106-036623be8f33 2024-10-26 15:06:04,965 - DEBUG - Response for create_network : {'network': {'id': '397bfe37-2ee8-4952-a234-acfc8747dcd8', 'name': 'ctest-vn-01420379', 'tenant_id': '24b67b7c8e074ac899708046d248a892', 'project_id': '24b67b7c8e074ac899708046d248a892', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31234324', 'ctest-vn-01420379'], 'port_security_enabled': True, 'description': ''}} 2024-10-26 15:06:05,170 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e1c21d1e-1a98-4330-b430-c2a073b9dc23', 'name': '', 'tenant_id': '24b67b7c8e074ac899708046d248a892', 'network_id': '397bfe37-2ee8-4952-a234-acfc8747dcd8', 'ip_version': 4, 'cidr': '38.189.123.192/26', 'allocation_pools': [{'start': '38.189.123.194', 'end': '38.189.123.254'}], 'gateway_ip': '38.189.123.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.189.123.194', 'tags': [], 'project_id': '24b67b7c8e074ac899708046d248a892'}} 2024-10-26 15:06:05,193 - INFO - Created VN ctest-vn-01420379 2024-10-26 15:06:05,262 - DEBUG - VN ctest-vn-01420379 UUID is 397bfe37-2ee8-4952-a234-acfc8747dcd8 2024-10-26 15:06:05,387 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-31234324:ctest-vn-41542758, 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-31234324:ctest-vn-01420379, 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-10-26 15:06:05,704 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '95080636-4fba-47c7-8106-036623be8f33', 'name': 'ctest-vn-41542758', 'tenant_id': '24b67b7c8e074ac899708046d248a892', 'project_id': '24b67b7c8e074ac899708046d248a892', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e0d7145a-07af-466e-b7d2-b11ecdf357e0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31234324', 'ctest-vn-41542758'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31234324', 'ctest-policy-allow-all-07572732']], 'subnet_ipam': [{'subnet_cidr': '54.24.123.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-26 15:06:05,950 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '397bfe37-2ee8-4952-a234-acfc8747dcd8', 'name': 'ctest-vn-01420379', 'tenant_id': '24b67b7c8e074ac899708046d248a892', 'project_id': '24b67b7c8e074ac899708046d248a892', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e1c21d1e-1a98-4330-b430-c2a073b9dc23'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31234324', 'ctest-vn-01420379'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31234324', 'ctest-policy-allow-all-07572732']], 'subnet_ipam': [{'subnet_cidr': '38.189.123.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-26 15:06:06,154 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-10-26 15:06:06,465 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-10-26 15:06:06,507 - DEBUG - Requesting: http://10.0.0.31:8082/domain/f3c65a15-1650-4c61-b470-715a277c134a 2024-10-26 15:06:06,529 - DEBUG - Requesting: http://10.0.0.31:8082/project/24b67b7c-8e07-4ac8-9970-8046d248a892 2024-10-26 15:06:06,621 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/95080636-4fba-47c7-8106-036623be8f33 2024-10-26 15:06:06,638 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/95080636-4fba-47c7-8106-036623be8f33 2024-10-26 15:06:06,657 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/9553f0e7-0715-42e1-b22b-d390175f0b1b 2024-10-26 15:06:06,670 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/9553f0e7-0715-42e1-b22b-d390175f0b1b 2024-10-26 15:06:06,683 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/3f081a2d-bbcf-4528-9d4f-ecdd017035fb 2024-10-26 15:06:06,693 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-26 15:06:06,693 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/95080636-4fba-47c7-8106-036623be8f33 2024-10-26 15:06:06,713 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/9553f0e7-0715-42e1-b22b-d390175f0b1b 2024-10-26 15:06:06,736 - INFO - Verified VN network id 8 for VN 95080636-4fba-47c7-8106-036623be8f33 2024-10-26 15:06:06,736 - INFO - Verifications in API Server for VN ctest-vn-41542758 passed 2024-10-26 15:06:06,736 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/95080636-4fba-47c7-8106-036623be8f33 2024-10-26 15:06:06,761 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/9553f0e7-0715-42e1-b22b-d390175f0b1b 2024-10-26 15:06:06,773 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/9553f0e7-0715-42e1-b22b-d390175f0b1b 2024-10-26 15:06:06,783 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/3f081a2d-bbcf-4528-9d4f-ecdd017035fb 2024-10-26 15:06:06,802 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31234324:ctest-vn-41542758', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31234324', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10738840141800556487', 'uuid-lslong': '9297122217974206259'}, 'enable': 'true', 'created': '2024-10-26T15:06:04', 'last-modified': '2024-10-26T15:06:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.118726'} 2024-10-26 15:06:06,809 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-26 15:06:06,809 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41542758 passed 2024-10-26 15:06:06,809 - DEBUG - ====Verifying policy data for ctest-vn-41542758 in API_Server ====== 2024-10-26 15:06:06,809 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-10-26 15:06:06,815 - DEBUG - Requesting: http://10.0.0.31:8082/domain/f3c65a15-1650-4c61-b470-715a277c134a 2024-10-26 15:06:06,829 - DEBUG - Requesting: http://10.0.0.31:8082/project/24b67b7c-8e07-4ac8-9970-8046d248a892 2024-10-26 15:06:06,915 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/95080636-4fba-47c7-8106-036623be8f33 2024-10-26 15:06:06,933 - DEBUG - ==>Verifying data for policy with id: 0a6b2c12-0d31-4592-8a5b-7fe3a0f2e3b1, fqn: ['default-domain', 'ctest-TestBasicPolicy-31234324', 'ctest-policy-allow-all-07572732'] 2024-10-26 15:06:06,933 - INFO - VN ctest-vn-41542758 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-26 15:06:06,933 - DEBUG - Verifying the vn in opserver 2024-10-26 15:06:06,933 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31234324:ctest-vn-41542758 virtual network link through opserver 10.0.0.31 2024-10-26 15:06:06,933 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-10-26 15:06:07,240 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-10-26 15:06:07,314 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31234324:ctest-vn-41542758', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31234324:ctest-vn-41542758?flat'} 2024-10-26 15:06:07,314 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31234324:ctest-vn-41542758 is found in opserver 2024-10-26 15:06:07,327 - DEBUG - Do not have enough data to verify VN in agent 2024-10-26 15:06:07,335 - DEBUG - VRF ids for VN ctest-vn-41542758: {} 2024-10-26 15:06:07,335 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-10-26 15:06:07,341 - DEBUG - Requesting: http://10.0.0.31:8082/domain/f3c65a15-1650-4c61-b470-715a277c134a 2024-10-26 15:06:07,356 - DEBUG - Requesting: http://10.0.0.31:8082/project/24b67b7c-8e07-4ac8-9970-8046d248a892 2024-10-26 15:06:07,445 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/397bfe37-2ee8-4952-a234-acfc8747dcd8 2024-10-26 15:06:07,464 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/397bfe37-2ee8-4952-a234-acfc8747dcd8 2024-10-26 15:06:07,484 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c40dec0e-e48f-414b-ba57-f96656a11262 2024-10-26 15:06:07,497 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c40dec0e-e48f-414b-ba57-f96656a11262 2024-10-26 15:06:07,508 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/0f0552e9-b0f5-4bee-b2f9-6184a5a3c551 2024-10-26 15:06:07,516 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-26 15:06:07,516 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/397bfe37-2ee8-4952-a234-acfc8747dcd8 2024-10-26 15:06:07,532 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c40dec0e-e48f-414b-ba57-f96656a11262 2024-10-26 15:06:07,558 - INFO - Verified VN network id 9 for VN 397bfe37-2ee8-4952-a234-acfc8747dcd8 2024-10-26 15:06:07,558 - INFO - Verifications in API Server for VN ctest-vn-01420379 passed 2024-10-26 15:06:07,558 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/397bfe37-2ee8-4952-a234-acfc8747dcd8 2024-10-26 15:06:07,574 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c40dec0e-e48f-414b-ba57-f96656a11262 2024-10-26 15:06:07,583 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c40dec0e-e48f-414b-ba57-f96656a11262 2024-10-26 15:06:07,592 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/0f0552e9-b0f5-4bee-b2f9-6184a5a3c551 2024-10-26 15:06:07,606 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31234324:ctest-vn-01420379', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31234324', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4142183795260934482', 'uuid-lslong': '11688157133534649560'}, 'enable': 'true', 'created': '2024-10-26T15:06:04', 'last-modified': '2024-10-26T15:06:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.682509'} 2024-10-26 15:06:07,612 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-26 15:06:07,612 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01420379 passed 2024-10-26 15:06:07,613 - DEBUG - ====Verifying policy data for ctest-vn-01420379 in API_Server ====== 2024-10-26 15:06:07,613 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-10-26 15:06:07,619 - DEBUG - Requesting: http://10.0.0.31:8082/domain/f3c65a15-1650-4c61-b470-715a277c134a 2024-10-26 15:06:07,633 - DEBUG - Requesting: http://10.0.0.31:8082/project/24b67b7c-8e07-4ac8-9970-8046d248a892 2024-10-26 15:06:07,719 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/397bfe37-2ee8-4952-a234-acfc8747dcd8 2024-10-26 15:06:07,739 - DEBUG - ==>Verifying data for policy with id: 0a6b2c12-0d31-4592-8a5b-7fe3a0f2e3b1, fqn: ['default-domain', 'ctest-TestBasicPolicy-31234324', 'ctest-policy-allow-all-07572732'] 2024-10-26 15:06:07,740 - INFO - VN ctest-vn-01420379 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-26 15:06:07,740 - DEBUG - Verifying the vn in opserver 2024-10-26 15:06:07,740 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31234324:ctest-vn-01420379 virtual network link through opserver 10.0.0.31 2024-10-26 15:06:07,740 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-10-26 15:06:07,754 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31234324:ctest-vn-01420379', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31234324:ctest-vn-01420379?flat'} 2024-10-26 15:06:07,754 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31234324:ctest-vn-01420379 is found in opserver 2024-10-26 15:06:07,767 - DEBUG - Do not have enough data to verify VN in agent 2024-10-26 15:06:07,775 - DEBUG - VRF ids for VN ctest-vn-01420379: {} 2024-10-26 15:06:07,842 - DEBUG - Services list from nova: [, , ] 2024-10-26 15:06:09,065 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2151-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2151-1) 2024-10-26 15:06:10,317 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2151-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2151-1) 2024-10-26 15:06:10,318 - INFO - Waiting for VM ctest-TestBasicPolicy-31234324-11867235 to be up.. 2024-10-26 15:06:10,422 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-26 15:06:15,520 - DEBUG - VM is in ACTIVE state now 2024-10-26 15:06:15,520 - INFO - VM name : ctest-TestBasicPolicy-31234324-11867235 2024-10-26 15:06:15,608 - DEBUG - VM ctest-TestBasicPolicy-31234324-11867235 ID is 92523d48-6f0e-4f24-8164-735e0793936d 2024-10-26 15:06:15,630 - DEBUG - VM ctest-TestBasicPolicy-31234324-11867235 launched on Node cn-jenkins-deploy-platform-ansible-os-2151-1 2024-10-26 15:06:15,709 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/92523d48-6f0e-4f24-8164-735e0793936d 2024-10-26 15:06:15,723 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/3baa28a7-1905-407d-85c4-15065b273db7 2024-10-26 15:06:19,015 - 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 1030ms') 2024-10-26 15:06:19,015 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-31234324-11867235 failed! 2024-10-26 15:06:19,082 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-31234324:ctest-vn-41542758 is 54.24.123.1 and allocation pool is NOT set 2024-10-26 15:06:21,148 - 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=10.6 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.684 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 = 0.684/5.634/10.585/4.950 ms') 2024-10-26 15:06:21,148 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-31234324-11867235 passed 2024-10-26 15:06:21,310 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 15:06:21,310 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-31234324-11867235, IP 54.24.123.3, Port 22 2024-10-26 15:06:21,480 - DEBUG - VM ctest-TestBasicPolicy-31234324-11867235 is ready for SSH connections 2024-10-26 15:06:21,480 - INFO - Waiting for VM ctest-TestBasicPolicy-31234324-30921239 to be up.. 2024-10-26 15:06:21,582 - DEBUG - VM is in ACTIVE state now 2024-10-26 15:06:21,582 - INFO - VM name : ctest-TestBasicPolicy-31234324-30921239 2024-10-26 15:06:21,681 - DEBUG - VM ctest-TestBasicPolicy-31234324-30921239 ID is 27325bff-d5be-46cb-abde-e422da2fbfd6 2024-10-26 15:06:21,681 - DEBUG - VM ctest-TestBasicPolicy-31234324-30921239 launched on Node cn-jenkins-deploy-platform-ansible-os-2151-1 2024-10-26 15:06:21,775 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/27325bff-d5be-46cb-abde-e422da2fbfd6 2024-10-26 15:06:21,789 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/d1bb8374-2ad0-45d6-b603-e418a585ee54 2024-10-26 15:06:23,051 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=3.35 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.22 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.216/2.280/3.345/1.064 ms') 2024-10-26 15:06:23,051 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-31234324-30921239 passed 2024-10-26 15:06:23,210 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 15:06:23,210 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-31234324-30921239, IP 38.189.123.195, Port 22 2024-10-26 15:06:23,275 - 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-10-26 15:06:23,359 - DEBUG - VM ctest-TestBasicPolicy-31234324-30921239 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-26 15:06:28,359 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 15:06:28,359 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-31234324-30921239, IP 38.189.123.195, Port 22 2024-10-26 15:06:28,529 - DEBUG - VM ctest-TestBasicPolicy-31234324-30921239 is ready for SSH connections 2024-10-26 15:06:28,529 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 15:06:28,530 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 38.189.123.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-10-26 15:06:28,530 - DEBUG - ping -s 56 -c 3 -W 1 38.189.123.195 2024-10-26 15:06:32,577 - DEBUG - PING 38.189.123.195 (38.189.123.195): 56 data bytes 64 bytes from 38.189.123.195: seq=0 ttl=63 time=4.402 ms 64 bytes from 38.189.123.195: seq=1 ttl=63 time=1.121 ms 64 bytes from 38.189.123.195: seq=2 ttl=63 time=1.039 ms --- 38.189.123.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.039/2.187/4.402 ms 2024-10-26 15:06:32,577 - INFO - Ping to IP 38.189.123.195 from VM ctest-TestBasicPolicy-31234324-11867235 passed 2024-10-26 15:06:32,765 - DEBUG - Policy Update Response {"network-policy": {"uuid": "0a6b2c12-0d31-4592-8a5b-7fe3a0f2e3b1", "href": "http://10.0.0.31:8082/network-policy/0a6b2c12-0d31-4592-8a5b-7fe3a0f2e3b1"}} 2024-10-26 15:06:32,766 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 15:06:32,766 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 38.189.123.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-10-26 15:06:32,766 - DEBUG - ping -s 56 -c 3 -W 1 38.189.123.195 2024-10-26 15:06:35,971 - DEBUG - PING 38.189.123.195 (38.189.123.195): 56 data bytes 64 bytes from 38.189.123.195: seq=0 ttl=63 time=1.824 ms --- 38.189.123.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.824/1.824/1.824 ms 2024-10-26 15:06:35,971 - WARNING - Ping to IP 38.189.123.195 from VM ctest-TestBasicPolicy-31234324-11867235 failed 2024-10-26 15:06:35,971 - INFO - Deleting VM ctest-TestBasicPolicy-31234324-30921239 2024-10-26 15:06:36,070 - INFO - Deleting VM ctest-TestBasicPolicy-31234324-11867235 2024-10-26 15:06:36,511 - INFO - Deleted policy ctest-policy-allow-all-07572732 2024-10-26 15:06:36,511 - INFO - Deleting VN ctest-vn-01420379 2024-10-26 15:06:36,555 - DEBUG - VN 397bfe37-2ee8-4952-a234-acfc8747dcd8 still in use: Unable to complete operation on network 397bfe37-2ee8-4952-a234-acfc8747dcd8. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-66bb0bce-e8b2-492e-af67-8abfe807d8fa'] 2024-10-26 15:06:36,555 - WARNING - Deleting VN ctest-vn-01420379 failed..Will retry 2024-10-26 15:06:38,669 - DEBUG - Response for deleting network () 2024-10-26 15:06:38,669 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c40dec0e-e48f-414b-ba57-f96656a11262 2024-10-26 15:06:38,675 - DEBUG - Response Code: 404 2024-10-26 15:06:38,676 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-10-26 15:06:38,687 - DEBUG - Requesting: http://10.0.0.31:8082/domain/f3c65a15-1650-4c61-b470-715a277c134a 2024-10-26 15:06:38,749 - DEBUG - Requesting: http://10.0.0.31:8082/project/24b67b7c-8e07-4ac8-9970-8046d248a892 2024-10-26 15:06:38,827 - INFO - Validated that VN ctest-vn-01420379 is not found in API Server 2024-10-26 15:06:38,839 - DEBUG - VN ctest-vn-01420379 is not present in Agent 10.0.0.31 2024-10-26 15:06:38,839 - INFO - Validated that VN ctest-vn-01420379 is not in any agent 2024-10-26 15:06:38,857 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-01420379 info 2024-10-26 15:06:38,857 - INFO - Deleting VN ctest-vn-41542758 2024-10-26 15:06:38,962 - DEBUG - Response for deleting network () 2024-10-26 15:06:38,962 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/9553f0e7-0715-42e1-b22b-d390175f0b1b 2024-10-26 15:06:38,970 - DEBUG - Response Code: 404 2024-10-26 15:06:38,970 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-10-26 15:06:38,976 - DEBUG - Requesting: http://10.0.0.31:8082/domain/f3c65a15-1650-4c61-b470-715a277c134a 2024-10-26 15:06:39,037 - DEBUG - Requesting: http://10.0.0.31:8082/project/24b67b7c-8e07-4ac8-9970-8046d248a892 2024-10-26 15:06:39,124 - INFO - Validated that VN ctest-vn-41542758 is not found in API Server 2024-10-26 15:06:39,136 - DEBUG - VN ctest-vn-41542758 is not present in Agent 10.0.0.31 2024-10-26 15:06:39,136 - INFO - Validated that VN ctest-vn-41542758 is not in any agent 2024-10-26 15:06:39,154 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-41542758 info 2024-10-26 15:06:39,408 - DEBUG - No XMPP flaps were noticed during the test 2024-10-26 15:06:39,408 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2024-10-26 15:06:39,408 - INFO - -------------------------------------------------------------------------------- 2024-10-26 15:06:40,105 - INFO - Deleted project: ctest-TestBasicPolicy-31234324, ID : 24b67b7c-8e07-4ac8-9970-8046d248a892