2024-09-16 22:16:54,061 - INFO - Domain Default found not creating 2024-09-16 22:16:54,242 - INFO - Project ctest-TestBasicPolicy-17293622 not found, creating it 2024-09-16 22:16:54,765 - INFO - Created Project:ctest-TestBasicPolicy-17293622, ID : 024b7281-0a7f-4ffb-9d57-c8f32a7a8a9e 2024-09-16 22:16:56,557 - INFO - ================================================================================ 2024-09-16 22:16:56,557 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-16 22:16:56,557 - 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-16 22:16:56,817 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.19': '0'}} with 2024-09-16 22:16:56,817 - INFO - Initial checks done. Running the testcase now 2024-09-16 22:16:56,817 - INFO - 2024-09-16 22:16:57,468 - DEBUG - Response for create_network : {'network': {'id': 'e8e173c6-09c2-4027-a876-3748d784aae9', 'name': 'ctest-vn-53679716', 'tenant_id': '024b72810a7f4ffb9d57c8f32a7a8a9e', 'project_id': '024b72810a7f4ffb9d57c8f32a7a8a9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17293622', 'ctest-vn-53679716'], 'port_security_enabled': True, 'description': ''}} 2024-09-16 22:16:57,664 - DEBUG - Response for create_subnet : {'subnet': {'id': '1631e857-3ea5-4a12-b878-41a566e0c21e', 'name': '', 'tenant_id': '024b72810a7f4ffb9d57c8f32a7a8a9e', 'network_id': 'e8e173c6-09c2-4027-a876-3748d784aae9', 'ip_version': 4, 'cidr': '16.112.153.128/26', 'allocation_pools': [{'start': '16.112.153.130', 'end': '16.112.153.190'}], 'gateway_ip': '16.112.153.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.112.153.130', 'tags': [], 'project_id': '024b72810a7f4ffb9d57c8f32a7a8a9e'}} 2024-09-16 22:16:57,689 - INFO - Created VN ctest-vn-53679716 2024-09-16 22:16:57,750 - DEBUG - VN ctest-vn-53679716 UUID is e8e173c6-09c2-4027-a876-3748d784aae9 2024-09-16 22:16:58,278 - DEBUG - Response for create_network : {'network': {'id': 'c9776aa1-09a6-4421-ab07-ac28ba32b173', 'name': 'ctest-vn-23511694', 'tenant_id': '024b72810a7f4ffb9d57c8f32a7a8a9e', 'project_id': '024b72810a7f4ffb9d57c8f32a7a8a9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17293622', 'ctest-vn-23511694'], 'port_security_enabled': True, 'description': ''}} 2024-09-16 22:16:58,538 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c8154563-1a4a-4843-9010-80c754af5a27', 'name': '', 'tenant_id': '024b72810a7f4ffb9d57c8f32a7a8a9e', 'network_id': 'c9776aa1-09a6-4421-ab07-ac28ba32b173', 'ip_version': 4, 'cidr': '84.169.116.128/26', 'allocation_pools': [{'start': '84.169.116.130', 'end': '84.169.116.190'}], 'gateway_ip': '84.169.116.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.169.116.130', 'tags': [], 'project_id': '024b72810a7f4ffb9d57c8f32a7a8a9e'}} 2024-09-16 22:16:58,560 - INFO - Created VN ctest-vn-23511694 2024-09-16 22:16:58,618 - DEBUG - VN ctest-vn-23511694 UUID is c9776aa1-09a6-4421-ab07-ac28ba32b173 2024-09-16 22:16:58,754 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-17293622:ctest-vn-53679716, 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-17293622:ctest-vn-23511694, 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-16 22:16:59,088 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e8e173c6-09c2-4027-a876-3748d784aae9', 'name': 'ctest-vn-53679716', 'tenant_id': '024b72810a7f4ffb9d57c8f32a7a8a9e', 'project_id': '024b72810a7f4ffb9d57c8f32a7a8a9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1631e857-3ea5-4a12-b878-41a566e0c21e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17293622', 'ctest-vn-53679716'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17293622', 'ctest-policy-allow-all-95094734']], 'subnet_ipam': [{'subnet_cidr': '16.112.153.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-16 22:16:59,355 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c9776aa1-09a6-4421-ab07-ac28ba32b173', 'name': 'ctest-vn-23511694', 'tenant_id': '024b72810a7f4ffb9d57c8f32a7a8a9e', 'project_id': '024b72810a7f4ffb9d57c8f32a7a8a9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c8154563-1a4a-4843-9010-80c754af5a27'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17293622', 'ctest-vn-23511694'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17293622', 'ctest-policy-allow-all-95094734']], 'subnet_ipam': [{'subnet_cidr': '84.169.116.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-16 22:16:59,534 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-09-16 22:16:59,870 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-09-16 22:16:59,908 - DEBUG - Requesting: http://10.0.0.42:8082/domain/4838420c-ae20-429f-a9c5-f54babaff45b 2024-09-16 22:16:59,926 - DEBUG - Requesting: http://10.0.0.42:8082/project/024b7281-0a7f-4ffb-9d57-c8f32a7a8a9e 2024-09-16 22:17:00,022 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e8e173c6-09c2-4027-a876-3748d784aae9 2024-09-16 22:17:00,040 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e8e173c6-09c2-4027-a876-3748d784aae9 2024-09-16 22:17:00,058 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b9c2f8f1-e739-46cb-8928-ace2d47f6961 2024-09-16 22:17:00,068 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b9c2f8f1-e739-46cb-8928-ace2d47f6961 2024-09-16 22:17:00,077 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/407dfe3b-4267-4877-8f54-b434a58baa19 2024-09-16 22:17:00,084 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-16 22:17:00,084 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e8e173c6-09c2-4027-a876-3748d784aae9 2024-09-16 22:17:00,098 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b9c2f8f1-e739-46cb-8928-ace2d47f6961 2024-09-16 22:17:00,119 - INFO - Verified VN network id 8 for VN e8e173c6-09c2-4027-a876-3748d784aae9 2024-09-16 22:17:00,119 - INFO - Verifications in API Server for VN ctest-vn-53679716 passed 2024-09-16 22:17:00,120 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e8e173c6-09c2-4027-a876-3748d784aae9 2024-09-16 22:17:00,135 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b9c2f8f1-e739-46cb-8928-ace2d47f6961 2024-09-16 22:17:00,144 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b9c2f8f1-e739-46cb-8928-ace2d47f6961 2024-09-16 22:17:00,156 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/407dfe3b-4267-4877-8f54-b434a58baa19 2024-09-16 22:17:00,171 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17293622:ctest-vn-53679716', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17293622', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16780820980963622951', 'uuid-lslong': '12138950631616719593'}, 'enable': 'true', 'created': '2024-09-16T22:16:57', 'last-modified': '2024-09-16T22:16:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.111596'} 2024-09-16 22:17:00,178 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-16 22:17:00,179 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53679716 passed 2024-09-16 22:17:00,179 - DEBUG - ====Verifying policy data for ctest-vn-53679716 in API_Server ====== 2024-09-16 22:17:00,179 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-09-16 22:17:00,185 - DEBUG - Requesting: http://10.0.0.42:8082/domain/4838420c-ae20-429f-a9c5-f54babaff45b 2024-09-16 22:17:00,202 - DEBUG - Requesting: http://10.0.0.42:8082/project/024b7281-0a7f-4ffb-9d57-c8f32a7a8a9e 2024-09-16 22:17:00,288 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e8e173c6-09c2-4027-a876-3748d784aae9 2024-09-16 22:17:00,304 - DEBUG - ==>Verifying data for policy with id: b5a4c22b-2609-4315-9ffe-357b3a9bda7e, fqn: ['default-domain', 'ctest-TestBasicPolicy-17293622', 'ctest-policy-allow-all-95094734'] 2024-09-16 22:17:00,304 - INFO - VN ctest-vn-53679716 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-16 22:17:00,304 - DEBUG - Verifying the vn in opserver 2024-09-16 22:17:00,304 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17293622:ctest-vn-53679716 virtual network link through opserver 10.0.0.42 2024-09-16 22:17:00,304 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-09-16 22:17:00,639 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-09-16 22:17:00,712 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17293622:ctest-vn-53679716', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17293622:ctest-vn-53679716?flat'} 2024-09-16 22:17:00,712 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17293622:ctest-vn-53679716 is found in opserver 2024-09-16 22:17:00,728 - DEBUG - Do not have enough data to verify VN in agent 2024-09-16 22:17:00,734 - DEBUG - VRF ids for VN ctest-vn-53679716: {} 2024-09-16 22:17:00,734 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-09-16 22:17:00,741 - DEBUG - Requesting: http://10.0.0.42:8082/domain/4838420c-ae20-429f-a9c5-f54babaff45b 2024-09-16 22:17:00,756 - DEBUG - Requesting: http://10.0.0.42:8082/project/024b7281-0a7f-4ffb-9d57-c8f32a7a8a9e 2024-09-16 22:17:00,836 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/c9776aa1-09a6-4421-ab07-ac28ba32b173 2024-09-16 22:17:00,853 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/c9776aa1-09a6-4421-ab07-ac28ba32b173 2024-09-16 22:17:00,868 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/28037f36-8630-4789-8b81-ff3f6d1c264a 2024-09-16 22:17:00,878 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/28037f36-8630-4789-8b81-ff3f6d1c264a 2024-09-16 22:17:00,888 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/9ead0fb1-9301-42c0-83a1-65102a5ab088 2024-09-16 22:17:00,897 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-16 22:17:00,897 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/c9776aa1-09a6-4421-ab07-ac28ba32b173 2024-09-16 22:17:00,913 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/28037f36-8630-4789-8b81-ff3f6d1c264a 2024-09-16 22:17:00,950 - INFO - Verified VN network id 9 for VN c9776aa1-09a6-4421-ab07-ac28ba32b173 2024-09-16 22:17:00,950 - INFO - Verifications in API Server for VN ctest-vn-23511694 passed 2024-09-16 22:17:00,950 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/c9776aa1-09a6-4421-ab07-ac28ba32b173 2024-09-16 22:17:00,967 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/28037f36-8630-4789-8b81-ff3f6d1c264a 2024-09-16 22:17:00,980 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/28037f36-8630-4789-8b81-ff3f6d1c264a 2024-09-16 22:17:00,990 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/9ead0fb1-9301-42c0-83a1-65102a5ab088 2024-09-16 22:17:01,007 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17293622:ctest-vn-23511694', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17293622', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14517189163736253473', 'uuid-lslong': '12324008196245205363'}, 'enable': 'true', 'created': '2024-09-16T22:16:58', 'last-modified': '2024-09-16T22:16:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.690197'} 2024-09-16 22:17:01,014 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-16 22:17:01,014 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23511694 passed 2024-09-16 22:17:01,015 - DEBUG - ====Verifying policy data for ctest-vn-23511694 in API_Server ====== 2024-09-16 22:17:01,015 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-09-16 22:17:01,021 - DEBUG - Requesting: http://10.0.0.42:8082/domain/4838420c-ae20-429f-a9c5-f54babaff45b 2024-09-16 22:17:01,036 - DEBUG - Requesting: http://10.0.0.42:8082/project/024b7281-0a7f-4ffb-9d57-c8f32a7a8a9e 2024-09-16 22:17:01,120 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/c9776aa1-09a6-4421-ab07-ac28ba32b173 2024-09-16 22:17:01,137 - DEBUG - ==>Verifying data for policy with id: b5a4c22b-2609-4315-9ffe-357b3a9bda7e, fqn: ['default-domain', 'ctest-TestBasicPolicy-17293622', 'ctest-policy-allow-all-95094734'] 2024-09-16 22:17:01,137 - INFO - VN ctest-vn-23511694 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-16 22:17:01,137 - DEBUG - Verifying the vn in opserver 2024-09-16 22:17:01,137 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17293622:ctest-vn-23511694 virtual network link through opserver 10.0.0.42 2024-09-16 22:17:01,137 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-09-16 22:17:01,150 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17293622:ctest-vn-23511694', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17293622:ctest-vn-23511694?flat'} 2024-09-16 22:17:01,150 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17293622:ctest-vn-23511694 is found in opserver 2024-09-16 22:17:01,162 - DEBUG - Do not have enough data to verify VN in agent 2024-09-16 22:17:01,168 - DEBUG - VRF ids for VN ctest-vn-23511694: {} 2024-09-16 22:17:01,234 - DEBUG - Services list from nova: [, , ] 2024-09-16 22:17:02,414 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1949-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1949-1) 2024-09-16 22:17:03,878 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1949-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1949-1) 2024-09-16 22:17:03,878 - INFO - Waiting for VM ctest-TestBasicPolicy-17293622-18232427 to be up.. 2024-09-16 22:17:04,016 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-16 22:17:09,112 - DEBUG - VM is in ACTIVE state now 2024-09-16 22:17:09,112 - INFO - VM name : ctest-TestBasicPolicy-17293622-18232427 2024-09-16 22:17:09,205 - DEBUG - VM ctest-TestBasicPolicy-17293622-18232427 ID is ad66f4c6-3b43-4ea0-9348-3d3869205c80 2024-09-16 22:17:09,229 - DEBUG - VM ctest-TestBasicPolicy-17293622-18232427 launched on Node cn-jenkins-deploy-platform-ansible-os-1949-1 2024-09-16 22:17:09,318 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/ad66f4c6-3b43-4ea0-9348-3d3869205c80 2024-09-16 22:17:09,331 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/3260f300-611a-43ad-8b87-3a1077dc43a3 2024-09-16 22:17:12,619 - 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-09-16 22:17:12,619 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-17293622-18232427 failed! 2024-09-16 22:17:12,698 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-17293622:ctest-vn-53679716 is 16.112.153.129 and allocation pool is NOT set 2024-09-16 22:17:14,770 - 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.10 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.06 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 = 3.061/4.078/5.095/1.017 ms') 2024-09-16 22:17:14,771 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-17293622-18232427 passed 2024-09-16 22:17:14,941 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-16 22:17:14,941 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-17293622-18232427, IP 16.112.153.131, Port 22 2024-09-16 22:17:15,098 - DEBUG - VM ctest-TestBasicPolicy-17293622-18232427 is ready for SSH connections 2024-09-16 22:17:15,098 - INFO - Waiting for VM ctest-TestBasicPolicy-17293622-32410022 to be up.. 2024-09-16 22:17:15,193 - DEBUG - VM is in ACTIVE state now 2024-09-16 22:17:15,194 - INFO - VM name : ctest-TestBasicPolicy-17293622-32410022 2024-09-16 22:17:15,283 - DEBUG - VM ctest-TestBasicPolicy-17293622-32410022 ID is 6ceda9ee-c788-4175-81c6-b88553c4573c 2024-09-16 22:17:15,283 - DEBUG - VM ctest-TestBasicPolicy-17293622-32410022 launched on Node cn-jenkins-deploy-platform-ansible-os-1949-1 2024-09-16 22:17:15,373 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/6ceda9ee-c788-4175-81c6-b88553c4573c 2024-09-16 22:17:15,385 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/801c189d-ba58-4d31-977b-26fb5ce9ff4b 2024-09-16 22:17:16,648 - 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=6.79 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.28 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 = 2.283/4.535/6.787/2.252 ms') 2024-09-16 22:17:16,648 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-17293622-32410022 passed 2024-09-16 22:17:16,806 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-16 22:17:16,806 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-17293622-32410022, IP 84.169.116.131, Port 22 2024-09-16 22:17:16,862 - 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-16 22:17:16,949 - DEBUG - VM ctest-TestBasicPolicy-17293622-32410022 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-16 22:17:21,950 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-16 22:17:21,950 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-17293622-32410022, IP 84.169.116.131, Port 22 2024-09-16 22:17:22,116 - DEBUG - VM ctest-TestBasicPolicy-17293622-32410022 is ready for SSH connections 2024-09-16 22:17:22,116 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-16 22:17:22,116 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 84.169.116.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2024-09-16 22:17:22,116 - DEBUG - ping -s 56 -c 3 -W 1 84.169.116.131 2024-09-16 22:17:25,879 - DEBUG - PING 84.169.116.131 (84.169.116.131): 56 data bytes 64 bytes from 84.169.116.131: seq=0 ttl=63 time=4.131 ms 64 bytes from 84.169.116.131: seq=1 ttl=63 time=0.951 ms 64 bytes from 84.169.116.131: seq=2 ttl=63 time=0.975 ms --- 84.169.116.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.951/2.019/4.131 ms 2024-09-16 22:17:25,879 - INFO - Ping to IP 84.169.116.131 from VM ctest-TestBasicPolicy-17293622-18232427 passed 2024-09-16 22:17:26,082 - DEBUG - Policy Update Response {"network-policy": {"uuid": "b5a4c22b-2609-4315-9ffe-357b3a9bda7e", "href": "http://10.0.0.42:8082/network-policy/b5a4c22b-2609-4315-9ffe-357b3a9bda7e"}} 2024-09-16 22:17:26,082 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-16 22:17:26,082 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 84.169.116.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2024-09-16 22:17:26,082 - DEBUG - ping -s 56 -c 3 -W 1 84.169.116.131 2024-09-16 22:17:29,307 - DEBUG - PING 84.169.116.131 (84.169.116.131): 56 data bytes 64 bytes from 84.169.116.131: seq=0 ttl=63 time=1.637 ms --- 84.169.116.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.637/1.637/1.637 ms 2024-09-16 22:17:29,307 - WARNING - Ping to IP 84.169.116.131 from VM ctest-TestBasicPolicy-17293622-18232427 failed 2024-09-16 22:17:29,307 - INFO - Deleting VM ctest-TestBasicPolicy-17293622-32410022 2024-09-16 22:17:29,409 - INFO - Deleting VM ctest-TestBasicPolicy-17293622-18232427 2024-09-16 22:17:29,904 - INFO - Deleted policy ctest-policy-allow-all-95094734 2024-09-16 22:17:29,905 - INFO - Deleting VN ctest-vn-23511694 2024-09-16 22:17:29,958 - DEBUG - VN c9776aa1-09a6-4421-ab07-ac28ba32b173 still in use: Unable to complete operation on network c9776aa1-09a6-4421-ab07-ac28ba32b173. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-70862580-548e-467d-9701-1a775a845803'] 2024-09-16 22:17:29,959 - WARNING - Deleting VN ctest-vn-23511694 failed..Will retry 2024-09-16 22:17:32,082 - DEBUG - Response for deleting network () 2024-09-16 22:17:32,082 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/28037f36-8630-4789-8b81-ff3f6d1c264a 2024-09-16 22:17:32,089 - DEBUG - Response Code: 404 2024-09-16 22:17:32,090 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-09-16 22:17:32,097 - DEBUG - Requesting: http://10.0.0.42:8082/domain/4838420c-ae20-429f-a9c5-f54babaff45b 2024-09-16 22:17:32,162 - DEBUG - Requesting: http://10.0.0.42:8082/project/024b7281-0a7f-4ffb-9d57-c8f32a7a8a9e 2024-09-16 22:17:32,250 - INFO - Validated that VN ctest-vn-23511694 is not found in API Server 2024-09-16 22:17:32,262 - DEBUG - VN ctest-vn-23511694 is not present in Agent 10.0.0.42 2024-09-16 22:17:32,262 - INFO - Validated that VN ctest-vn-23511694 is not in any agent 2024-09-16 22:17:32,279 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-23511694 info 2024-09-16 22:17:32,279 - INFO - Deleting VN ctest-vn-53679716 2024-09-16 22:17:32,413 - DEBUG - Response for deleting network () 2024-09-16 22:17:32,413 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b9c2f8f1-e739-46cb-8928-ace2d47f6961 2024-09-16 22:17:32,424 - DEBUG - Response Code: 404 2024-09-16 22:17:32,425 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-09-16 22:17:32,430 - DEBUG - Requesting: http://10.0.0.42:8082/domain/4838420c-ae20-429f-a9c5-f54babaff45b 2024-09-16 22:17:32,489 - DEBUG - Requesting: http://10.0.0.42:8082/project/024b7281-0a7f-4ffb-9d57-c8f32a7a8a9e 2024-09-16 22:17:32,585 - INFO - Validated that VN ctest-vn-53679716 is not found in API Server 2024-09-16 22:17:32,601 - DEBUG - VN ctest-vn-53679716 is not present in Agent 10.0.0.42 2024-09-16 22:17:32,602 - INFO - Validated that VN ctest-vn-53679716 is not in any agent 2024-09-16 22:17:32,621 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-53679716 info 2024-09-16 22:17:32,876 - DEBUG - No XMPP flaps were noticed during the test
2024-09-16 22:17:32,877 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2024-09-16 22:17:32,877 - INFO - -------------------------------------------------------------------------------- 2024-09-16 22:17:33,659 - INFO - Deleted project: ctest-TestBasicPolicy-17293622, ID : 024b7281-0a7f-4ffb-9d57-c8f32a7a8a9e