2025-02-05 14:19:39,804 - INFO - Domain Default found not creating 2025-02-05 14:19:39,973 - INFO - Project ctest-TestBasicPolicy-50712767 not found, creating it 2025-02-05 14:19:40,463 - INFO - Created Project:ctest-TestBasicPolicy-50712767, ID : 8c0b9168-c44e-400c-9c28-6ccc35ca8eff 2025-02-05 14:19:42,037 - INFO - ================================================================================ 2025-02-05 14:19:42,037 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-02-05 14:19:42,037 - 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 2025-02-05 14:19:42,315 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.27': '0'}} with 2025-02-05 14:19:42,315 - INFO - Initial checks done. Running the testcase now 2025-02-05 14:19:42,315 - INFO - 2025-02-05 14:19:42,890 - DEBUG - Response for create_network : {'network': {'id': '57c34f34-d553-4682-b653-85caceda7ca1', 'name': 'ctest-vn-98456304', 'tenant_id': '8c0b9168c44e400c9c286ccc35ca8eff', 'project_id': '8c0b9168c44e400c9c286ccc35ca8eff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50712767', 'ctest-vn-98456304'], 'port_security_enabled': True, 'description': ''}} 2025-02-05 14:19:43,074 - DEBUG - Response for create_subnet : {'subnet': {'id': '772917f1-95e6-4b25-822d-078e27825a6b', 'name': '', 'tenant_id': '8c0b9168c44e400c9c286ccc35ca8eff', 'network_id': '57c34f34-d553-4682-b653-85caceda7ca1', 'ip_version': 4, 'cidr': '23.8.84.64/26', 'allocation_pools': [{'start': '23.8.84.66', 'end': '23.8.84.126'}], 'gateway_ip': '23.8.84.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.8.84.66', 'tags': [], 'project_id': '8c0b9168c44e400c9c286ccc35ca8eff'}} 2025-02-05 14:19:43,093 - INFO - Created VN ctest-vn-98456304 2025-02-05 14:19:43,145 - DEBUG - VN ctest-vn-98456304 UUID is 57c34f34-d553-4682-b653-85caceda7ca1 2025-02-05 14:19:43,450 - DEBUG - Response for create_network : {'network': {'id': '757f437d-37e6-4630-a330-2939e625a6da', 'name': 'ctest-vn-25497184', 'tenant_id': '8c0b9168c44e400c9c286ccc35ca8eff', 'project_id': '8c0b9168c44e400c9c286ccc35ca8eff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50712767', 'ctest-vn-25497184'], 'port_security_enabled': True, 'description': ''}} 2025-02-05 14:19:43,662 - DEBUG - Response for create_subnet : {'subnet': {'id': '791bcff2-5f7e-47dc-9050-63eb5dd3c3de', 'name': '', 'tenant_id': '8c0b9168c44e400c9c286ccc35ca8eff', 'network_id': '757f437d-37e6-4630-a330-2939e625a6da', 'ip_version': 4, 'cidr': '185.193.57.128/26', 'allocation_pools': [{'start': '185.193.57.130', 'end': '185.193.57.190'}], 'gateway_ip': '185.193.57.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.193.57.130', 'tags': [], 'project_id': '8c0b9168c44e400c9c286ccc35ca8eff'}} 2025-02-05 14:19:43,684 - INFO - Created VN ctest-vn-25497184 2025-02-05 14:19:43,741 - DEBUG - VN ctest-vn-25497184 UUID is 757f437d-37e6-4630-a330-2939e625a6da 2025-02-05 14:19:43,878 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-50712767:ctest-vn-98456304, 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-50712767:ctest-vn-25497184, 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] 2025-02-05 14:19:44,204 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '57c34f34-d553-4682-b653-85caceda7ca1', 'name': 'ctest-vn-98456304', 'tenant_id': '8c0b9168c44e400c9c286ccc35ca8eff', 'project_id': '8c0b9168c44e400c9c286ccc35ca8eff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['772917f1-95e6-4b25-822d-078e27825a6b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50712767', 'ctest-vn-98456304'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50712767', 'ctest-policy-allow-all-93643711']], 'subnet_ipam': [{'subnet_cidr': '23.8.84.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-05 14:19:44,459 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '757f437d-37e6-4630-a330-2939e625a6da', 'name': 'ctest-vn-25497184', 'tenant_id': '8c0b9168c44e400c9c286ccc35ca8eff', 'project_id': '8c0b9168c44e400c9c286ccc35ca8eff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['791bcff2-5f7e-47dc-9050-63eb5dd3c3de'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50712767', 'ctest-vn-25497184'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50712767', 'ctest-policy-allow-all-93643711']], 'subnet_ipam': [{'subnet_cidr': '185.193.57.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-05 14:19:44,641 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-02-05 14:19:44,947 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-02-05 14:19:44,982 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e48a5b24-dda3-455b-bcbc-75c157be154e 2025-02-05 14:19:44,998 - DEBUG - Requesting: http://10.0.0.38:8082/project/8c0b9168-c44e-400c-9c28-6ccc35ca8eff 2025-02-05 14:19:45,077 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/57c34f34-d553-4682-b653-85caceda7ca1 2025-02-05 14:19:45,092 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/57c34f34-d553-4682-b653-85caceda7ca1 2025-02-05 14:19:45,105 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3808883b-df67-4ee8-96f5-fa3ed1b4e434 2025-02-05 14:19:45,115 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3808883b-df67-4ee8-96f5-fa3ed1b4e434 2025-02-05 14:19:45,123 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/db456349-ce7f-4cef-bd99-435899d0e7ef 2025-02-05 14:19:45,132 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-05 14:19:45,132 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/57c34f34-d553-4682-b653-85caceda7ca1 2025-02-05 14:19:45,143 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3808883b-df67-4ee8-96f5-fa3ed1b4e434 2025-02-05 14:19:45,159 - INFO - Verified VN network id 9 for VN 57c34f34-d553-4682-b653-85caceda7ca1 2025-02-05 14:19:45,159 - INFO - Verifications in API Server for VN ctest-vn-98456304 passed 2025-02-05 14:19:45,159 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/57c34f34-d553-4682-b653-85caceda7ca1 2025-02-05 14:19:45,169 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3808883b-df67-4ee8-96f5-fa3ed1b4e434 2025-02-05 14:19:45,177 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3808883b-df67-4ee8-96f5-fa3ed1b4e434 2025-02-05 14:19:45,185 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/db456349-ce7f-4cef-bd99-435899d0e7ef 2025-02-05 14:19:45,199 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50712767:ctest-vn-98456304', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50712767', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6323985390094206594', 'uuid-lslong': '13137991644070182049'}, 'enable': 'true', 'created': '2025-02-05T14:19:42', 'last-modified': '2025-02-05T14:19:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.015546'} 2025-02-05 14:19:45,206 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-05 14:19:45,206 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98456304 passed 2025-02-05 14:19:45,206 - DEBUG - ====Verifying policy data for ctest-vn-98456304 in API_Server ====== 2025-02-05 14:19:45,206 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-02-05 14:19:45,214 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e48a5b24-dda3-455b-bcbc-75c157be154e 2025-02-05 14:19:45,229 - DEBUG - Requesting: http://10.0.0.38:8082/project/8c0b9168-c44e-400c-9c28-6ccc35ca8eff 2025-02-05 14:19:45,301 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/57c34f34-d553-4682-b653-85caceda7ca1 2025-02-05 14:19:45,313 - DEBUG - ==>Verifying data for policy with id: bca84bc5-be8c-44e9-8a3c-45af6a59eada, fqn: ['default-domain', 'ctest-TestBasicPolicy-50712767', 'ctest-policy-allow-all-93643711'] 2025-02-05 14:19:45,313 - INFO - VN ctest-vn-98456304 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-05 14:19:45,313 - DEBUG - Verifying the vn in opserver 2025-02-05 14:19:45,313 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50712767:ctest-vn-98456304 virtual network link through opserver 10.0.0.38 2025-02-05 14:19:45,314 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-02-05 14:19:45,618 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-02-05 14:19:45,686 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50712767:ctest-vn-98456304', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50712767:ctest-vn-98456304?flat'} 2025-02-05 14:19:45,686 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50712767:ctest-vn-98456304 is found in opserver 2025-02-05 14:19:45,699 - DEBUG - Do not have enough data to verify VN in agent 2025-02-05 14:19:45,706 - DEBUG - VRF ids for VN ctest-vn-98456304: {} 2025-02-05 14:19:45,706 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-02-05 14:19:45,713 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e48a5b24-dda3-455b-bcbc-75c157be154e 2025-02-05 14:19:45,725 - DEBUG - Requesting: http://10.0.0.38:8082/project/8c0b9168-c44e-400c-9c28-6ccc35ca8eff 2025-02-05 14:19:45,799 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/757f437d-37e6-4630-a330-2939e625a6da 2025-02-05 14:19:45,814 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/757f437d-37e6-4630-a330-2939e625a6da 2025-02-05 14:19:45,825 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/375e0af7-3e85-4c20-90c2-e244decb04b0 2025-02-05 14:19:45,834 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/375e0af7-3e85-4c20-90c2-e244decb04b0 2025-02-05 14:19:45,845 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3259a82f-3c73-4cad-b027-8d1d2b0549a1 2025-02-05 14:19:45,853 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-05 14:19:45,853 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/757f437d-37e6-4630-a330-2939e625a6da 2025-02-05 14:19:45,866 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/375e0af7-3e85-4c20-90c2-e244decb04b0 2025-02-05 14:19:45,885 - INFO - Verified VN network id 10 for VN 757f437d-37e6-4630-a330-2939e625a6da 2025-02-05 14:19:45,885 - INFO - Verifications in API Server for VN ctest-vn-25497184 passed 2025-02-05 14:19:45,885 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/757f437d-37e6-4630-a330-2939e625a6da 2025-02-05 14:19:45,897 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/375e0af7-3e85-4c20-90c2-e244decb04b0 2025-02-05 14:19:45,907 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/375e0af7-3e85-4c20-90c2-e244decb04b0 2025-02-05 14:19:45,917 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3259a82f-3c73-4cad-b027-8d1d2b0549a1 2025-02-05 14:19:45,933 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50712767:ctest-vn-25497184', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50712767', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8466560029567632944', 'uuid-lslong': '11758943955715466970'}, 'enable': 'true', 'created': '2025-02-05T14:19:43', 'last-modified': '2025-02-05T14:19:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.500273'} 2025-02-05 14:19:45,939 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-05 14:19:45,939 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25497184 passed 2025-02-05 14:19:45,940 - DEBUG - ====Verifying policy data for ctest-vn-25497184 in API_Server ====== 2025-02-05 14:19:45,940 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-02-05 14:19:45,946 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e48a5b24-dda3-455b-bcbc-75c157be154e 2025-02-05 14:19:45,959 - DEBUG - Requesting: http://10.0.0.38:8082/project/8c0b9168-c44e-400c-9c28-6ccc35ca8eff 2025-02-05 14:19:46,034 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/757f437d-37e6-4630-a330-2939e625a6da 2025-02-05 14:19:46,048 - DEBUG - ==>Verifying data for policy with id: bca84bc5-be8c-44e9-8a3c-45af6a59eada, fqn: ['default-domain', 'ctest-TestBasicPolicy-50712767', 'ctest-policy-allow-all-93643711'] 2025-02-05 14:19:46,048 - INFO - VN ctest-vn-25497184 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-05 14:19:46,048 - DEBUG - Verifying the vn in opserver 2025-02-05 14:19:46,048 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50712767:ctest-vn-25497184 virtual network link through opserver 10.0.0.38 2025-02-05 14:19:46,048 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-02-05 14:19:46,061 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50712767:ctest-vn-25497184', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50712767:ctest-vn-25497184?flat'} 2025-02-05 14:19:46,062 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50712767:ctest-vn-25497184 is found in opserver 2025-02-05 14:19:46,073 - DEBUG - Do not have enough data to verify VN in agent 2025-02-05 14:19:46,078 - DEBUG - VRF ids for VN ctest-vn-25497184: {} 2025-02-05 14:19:46,139 - DEBUG - Services list from nova: [, , ] 2025-02-05 14:19:47,405 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2692-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2692-1) 2025-02-05 14:19:48,569 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2692-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2692-1) 2025-02-05 14:19:48,569 - INFO - Waiting for VM ctest-TestBasicPolicy-50712767-91224877 to be up.. 2025-02-05 14:19:48,654 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-02-05 14:19:53,751 - DEBUG - VM is in ACTIVE state now 2025-02-05 14:19:53,752 - INFO - VM name : ctest-TestBasicPolicy-50712767-91224877 2025-02-05 14:19:53,865 - DEBUG - VM ctest-TestBasicPolicy-50712767-91224877 ID is 7a10b598-4269-44ac-b334-60734aeb8d28 2025-02-05 14:19:53,887 - DEBUG - VM ctest-TestBasicPolicy-50712767-91224877 launched on Node cn-jenkins-deploy-platform-ansible-os-2692-1 2025-02-05 14:19:53,972 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/7a10b598-4269-44ac-b334-60734aeb8d28 2025-02-05 14:19:53,982 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/f9d2936b-e375-4a8a-b960-b411023a9868 2025-02-05 14:19:57,217 - 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 1027ms') 2025-02-05 14:19:57,217 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-50712767-91224877 failed! 2025-02-05 14:19:57,273 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-50712767:ctest-vn-98456304 is 23.8.84.65 and allocation pool is NOT set 2025-02-05 14:19:59,342 - 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=17.3 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.87 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 = 1.868/9.561/17.254/7.693 ms') 2025-02-05 14:19:59,343 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-50712767-91224877 passed 2025-02-05 14:19:59,497 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-05 14:19:59,497 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-50712767-91224877, IP 23.8.84.67, Port 22 2025-02-05 14:19:59,653 - DEBUG - VM ctest-TestBasicPolicy-50712767-91224877 is ready for SSH connections 2025-02-05 14:19:59,653 - INFO - Waiting for VM ctest-TestBasicPolicy-50712767-65448148 to be up.. 2025-02-05 14:19:59,744 - DEBUG - VM is in ACTIVE state now 2025-02-05 14:19:59,744 - INFO - VM name : ctest-TestBasicPolicy-50712767-65448148 2025-02-05 14:19:59,829 - DEBUG - VM ctest-TestBasicPolicy-50712767-65448148 ID is bf6605c7-88f6-4042-93ad-1d4a0fa44f42 2025-02-05 14:19:59,829 - DEBUG - VM ctest-TestBasicPolicy-50712767-65448148 launched on Node cn-jenkins-deploy-platform-ansible-os-2692-1 2025-02-05 14:19:59,907 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/bf6605c7-88f6-4042-93ad-1d4a0fa44f42 2025-02-05 14:19:59,917 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/6463d984-7505-4a9a-a939-5cea474c0558 2025-02-05 14:20:01,168 - 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.10 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.33 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.326/3.713/5.100/1.387 ms') 2025-02-05 14:20:01,168 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-50712767-65448148 passed 2025-02-05 14:20:01,325 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-05 14:20:01,325 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-50712767-65448148, IP 185.193.57.131, Port 22 2025-02-05 14:20:01,380 - 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': ''} 2025-02-05 14:20:01,468 - DEBUG - VM ctest-TestBasicPolicy-50712767-65448148 is NOT ready for SSH connections, VM status: ACTIVE 2025-02-05 14:20:06,469 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-05 14:20:06,469 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-50712767-65448148, IP 185.193.57.131, Port 22 2025-02-05 14:20:06,625 - DEBUG - VM ctest-TestBasicPolicy-50712767-65448148 is ready for SSH connections 2025-02-05 14:20:06,625 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-05 14:20:06,625 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 185.193.57.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-02-05 14:20:06,625 - DEBUG - ping -s 56 -c 3 -W 1 185.193.57.131 2025-02-05 14:20:10,343 - DEBUG - PING 185.193.57.131 (185.193.57.131): 56 data bytes 64 bytes from 185.193.57.131: seq=0 ttl=63 time=4.636 ms 64 bytes from 185.193.57.131: seq=1 ttl=63 time=1.139 ms 64 bytes from 185.193.57.131: seq=2 ttl=63 time=1.107 ms --- 185.193.57.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.107/2.294/4.636 ms 2025-02-05 14:20:10,343 - INFO - Ping to IP 185.193.57.131 from VM ctest-TestBasicPolicy-50712767-91224877 passed 2025-02-05 14:20:10,529 - DEBUG - Policy Update Response {"network-policy": {"uuid": "bca84bc5-be8c-44e9-8a3c-45af6a59eada", "href": "http://10.0.0.38:8082/network-policy/bca84bc5-be8c-44e9-8a3c-45af6a59eada"}} 2025-02-05 14:20:10,529 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-05 14:20:10,529 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 185.193.57.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-02-05 14:20:10,529 - DEBUG - ping -s 56 -c 3 -W 1 185.193.57.131 2025-02-05 14:20:13,754 - DEBUG - PING 185.193.57.131 (185.193.57.131): 56 data bytes 64 bytes from 185.193.57.131: seq=0 ttl=63 time=1.759 ms --- 185.193.57.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.759/1.759/1.759 ms 2025-02-05 14:20:13,754 - WARNING - Ping to IP 185.193.57.131 from VM ctest-TestBasicPolicy-50712767-91224877 failed 2025-02-05 14:20:13,754 - INFO - Deleting VM ctest-TestBasicPolicy-50712767-65448148 2025-02-05 14:20:13,831 - INFO - Deleting VM ctest-TestBasicPolicy-50712767-91224877 2025-02-05 14:20:14,273 - INFO - Deleted policy ctest-policy-allow-all-93643711 2025-02-05 14:20:14,273 - INFO - Deleting VN ctest-vn-25497184 2025-02-05 14:20:14,316 - DEBUG - VN 757f437d-37e6-4630-a330-2939e625a6da still in use: Unable to complete operation on network 757f437d-37e6-4630-a330-2939e625a6da. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-92fc6cf0-c0a3-4c77-a990-9a4a993c34d2'] 2025-02-05 14:20:14,316 - WARNING - Deleting VN ctest-vn-25497184 failed..Will retry 2025-02-05 14:20:16,470 - DEBUG - Response for deleting network () 2025-02-05 14:20:16,470 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/375e0af7-3e85-4c20-90c2-e244decb04b0 2025-02-05 14:20:16,484 - DEBUG - Response Code: 404 2025-02-05 14:20:16,485 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-02-05 14:20:16,492 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e48a5b24-dda3-455b-bcbc-75c157be154e 2025-02-05 14:20:16,507 - DEBUG - Requesting: http://10.0.0.38:8082/project/8c0b9168-c44e-400c-9c28-6ccc35ca8eff 2025-02-05 14:20:16,585 - INFO - Validated that VN ctest-vn-25497184 is not found in API Server 2025-02-05 14:20:16,599 - DEBUG - VN ctest-vn-25497184 is not present in Agent 10.0.0.38 2025-02-05 14:20:16,599 - INFO - Validated that VN ctest-vn-25497184 is not in any agent 2025-02-05 14:20:16,620 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-25497184 info 2025-02-05 14:20:16,620 - INFO - Deleting VN ctest-vn-98456304 2025-02-05 14:20:16,751 - DEBUG - Response for deleting network () 2025-02-05 14:20:16,751 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3808883b-df67-4ee8-96f5-fa3ed1b4e434 2025-02-05 14:20:16,761 - DEBUG - Response Code: 404 2025-02-05 14:20:16,762 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-02-05 14:20:16,767 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e48a5b24-dda3-455b-bcbc-75c157be154e 2025-02-05 14:20:16,823 - DEBUG - Requesting: http://10.0.0.38:8082/project/8c0b9168-c44e-400c-9c28-6ccc35ca8eff 2025-02-05 14:20:16,904 - INFO - Validated that VN ctest-vn-98456304 is not found in API Server 2025-02-05 14:20:16,915 - DEBUG - VN ctest-vn-98456304 is not present in Agent 10.0.0.38 2025-02-05 14:20:16,915 - INFO - Validated that VN ctest-vn-98456304 is not in any agent 2025-02-05 14:20:16,931 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-98456304 info 2025-02-05 14:20:17,187 - DEBUG - No XMPP flaps were noticed during the test
2025-02-05 14:20:17,187 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-02-05 14:20:17,187 - INFO - -------------------------------------------------------------------------------- 2025-02-05 14:20:17,879 - INFO - Deleted project: ctest-TestBasicPolicy-50712767, ID : 8c0b9168-c44e-400c-9c28-6ccc35ca8eff