2024-08-22 01:07:57,262 - INFO - Domain Default found not creating 2024-08-22 01:07:57,421 - INFO - Project ctest-TestBasicPolicy-56057872 not found, creating it 2024-08-22 01:07:57,889 - INFO - Created Project:ctest-TestBasicPolicy-56057872, ID : 6c15a016-ce4c-4e63-870c-ed84ada58122 2024-08-22 01:07:59,419 - INFO - ================================================================================ 2024-08-22 01:07:59,419 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-22 01:07:59,419 - 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-22 01:07:59,681 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.13': '0'}} with 2024-08-22 01:07:59,682 - INFO - Initial checks done. Running the testcase now 2024-08-22 01:07:59,682 - INFO - 2024-08-22 01:08:00,222 - DEBUG - Response for create_network : {'network': {'id': '31b05ee8-7d16-4a79-83e5-6cacfb258b19', 'name': 'ctest-vn-89707540', 'tenant_id': '6c15a016ce4c4e63870ced84ada58122', 'project_id': '6c15a016ce4c4e63870ced84ada58122', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56057872', 'ctest-vn-89707540'], 'port_security_enabled': True, 'description': ''}} 2024-08-22 01:08:00,413 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ee87c93c-a36e-47e9-bf13-ae5e29d12d29', 'name': '', 'tenant_id': '6c15a016ce4c4e63870ced84ada58122', 'network_id': '31b05ee8-7d16-4a79-83e5-6cacfb258b19', 'ip_version': 4, 'cidr': '157.207.139.128/26', 'allocation_pools': [{'start': '157.207.139.130', 'end': '157.207.139.190'}], 'gateway_ip': '157.207.139.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.207.139.130', 'tags': [], 'project_id': '6c15a016ce4c4e63870ced84ada58122'}} 2024-08-22 01:08:00,432 - INFO - Created VN ctest-vn-89707540 2024-08-22 01:08:00,484 - DEBUG - VN ctest-vn-89707540 UUID is 31b05ee8-7d16-4a79-83e5-6cacfb258b19 2024-08-22 01:08:00,763 - DEBUG - Response for create_network : {'network': {'id': '399f8b6e-b0bf-43cc-8c41-7c5fdf3f8b71', 'name': 'ctest-vn-96633741', 'tenant_id': '6c15a016ce4c4e63870ced84ada58122', 'project_id': '6c15a016ce4c4e63870ced84ada58122', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56057872', 'ctest-vn-96633741'], 'port_security_enabled': True, 'description': ''}} 2024-08-22 01:08:00,943 - DEBUG - Response for create_subnet : {'subnet': {'id': '0a7e9043-ce0a-467b-8717-d13fc45cdf1f', 'name': '', 'tenant_id': '6c15a016ce4c4e63870ced84ada58122', 'network_id': '399f8b6e-b0bf-43cc-8c41-7c5fdf3f8b71', 'ip_version': 4, 'cidr': '15.190.37.192/26', 'allocation_pools': [{'start': '15.190.37.194', 'end': '15.190.37.254'}], 'gateway_ip': '15.190.37.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.190.37.194', 'tags': [], 'project_id': '6c15a016ce4c4e63870ced84ada58122'}} 2024-08-22 01:08:00,963 - INFO - Created VN ctest-vn-96633741 2024-08-22 01:08:01,016 - DEBUG - VN ctest-vn-96633741 UUID is 399f8b6e-b0bf-43cc-8c41-7c5fdf3f8b71 2024-08-22 01:08:01,129 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56057872:ctest-vn-89707540, 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-56057872:ctest-vn-96633741, 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-22 01:08:01,422 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '31b05ee8-7d16-4a79-83e5-6cacfb258b19', 'name': 'ctest-vn-89707540', 'tenant_id': '6c15a016ce4c4e63870ced84ada58122', 'project_id': '6c15a016ce4c4e63870ced84ada58122', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ee87c93c-a36e-47e9-bf13-ae5e29d12d29'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56057872', 'ctest-vn-89707540'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56057872', 'ctest-policy-allow-all-07110224']], 'subnet_ipam': [{'subnet_cidr': '157.207.139.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-22 01:08:01,646 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '399f8b6e-b0bf-43cc-8c41-7c5fdf3f8b71', 'name': 'ctest-vn-96633741', 'tenant_id': '6c15a016ce4c4e63870ced84ada58122', 'project_id': '6c15a016ce4c4e63870ced84ada58122', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0a7e9043-ce0a-467b-8717-d13fc45cdf1f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56057872', 'ctest-vn-96633741'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56057872', 'ctest-policy-allow-all-07110224']], 'subnet_ipam': [{'subnet_cidr': '15.190.37.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-22 01:08:01,828 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-08-22 01:08:02,121 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-08-22 01:08:02,151 - DEBUG - Requesting: http://10.0.0.28:8082/domain/92c28dd7-b0a1-4f8e-8bf0-a8e02962fc59 2024-08-22 01:08:02,164 - DEBUG - Requesting: http://10.0.0.28:8082/project/6c15a016-ce4c-4e63-870c-ed84ada58122 2024-08-22 01:08:02,231 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/31b05ee8-7d16-4a79-83e5-6cacfb258b19 2024-08-22 01:08:02,241 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/31b05ee8-7d16-4a79-83e5-6cacfb258b19 2024-08-22 01:08:02,249 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/416bf1a9-ef70-4d46-8e51-b828960954ab 2024-08-22 01:08:02,256 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/416bf1a9-ef70-4d46-8e51-b828960954ab 2024-08-22 01:08:02,263 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/8659f4f6-eccd-4f97-98cf-6946a9286622 2024-08-22 01:08:02,269 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-22 01:08:02,269 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/31b05ee8-7d16-4a79-83e5-6cacfb258b19 2024-08-22 01:08:02,277 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/416bf1a9-ef70-4d46-8e51-b828960954ab 2024-08-22 01:08:02,289 - INFO - Verified VN network id 9 for VN 31b05ee8-7d16-4a79-83e5-6cacfb258b19 2024-08-22 01:08:02,289 - INFO - Verifications in API Server for VN ctest-vn-89707540 passed 2024-08-22 01:08:02,289 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/31b05ee8-7d16-4a79-83e5-6cacfb258b19 2024-08-22 01:08:02,296 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/416bf1a9-ef70-4d46-8e51-b828960954ab 2024-08-22 01:08:02,303 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/416bf1a9-ef70-4d46-8e51-b828960954ab 2024-08-22 01:08:02,309 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/8659f4f6-eccd-4f97-98cf-6946a9286622 2024-08-22 01:08:02,321 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56057872:ctest-vn-89707540', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56057872', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3580466056383580793', 'uuid-lslong': '9504122078839016217'}, 'enable': 'true', 'created': '2024-08-22T01:08:00', 'last-modified': '2024-08-22T01:08:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.923755'} 2024-08-22 01:08:02,328 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-22 01:08:02,328 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89707540 passed 2024-08-22 01:08:02,328 - DEBUG - ====Verifying policy data for ctest-vn-89707540 in API_Server ====== 2024-08-22 01:08:02,329 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-08-22 01:08:02,334 - DEBUG - Requesting: http://10.0.0.28:8082/domain/92c28dd7-b0a1-4f8e-8bf0-a8e02962fc59 2024-08-22 01:08:02,345 - DEBUG - Requesting: http://10.0.0.28:8082/project/6c15a016-ce4c-4e63-870c-ed84ada58122 2024-08-22 01:08:02,412 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/31b05ee8-7d16-4a79-83e5-6cacfb258b19 2024-08-22 01:08:02,420 - DEBUG - ==>Verifying data for policy with id: 67ff778e-64f3-4836-8666-fc9fe76e6837, fqn: ['default-domain', 'ctest-TestBasicPolicy-56057872', 'ctest-policy-allow-all-07110224'] 2024-08-22 01:08:02,420 - INFO - VN ctest-vn-89707540 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-22 01:08:02,420 - DEBUG - Verifying the vn in opserver 2024-08-22 01:08:02,420 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56057872:ctest-vn-89707540 virtual network link through opserver 10.0.0.28 2024-08-22 01:08:02,421 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2024-08-22 01:08:02,712 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2024-08-22 01:08:02,773 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56057872:ctest-vn-89707540', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56057872:ctest-vn-89707540?flat'} 2024-08-22 01:08:02,773 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56057872:ctest-vn-89707540 is found in opserver 2024-08-22 01:08:02,784 - DEBUG - Do not have enough data to verify VN in agent 2024-08-22 01:08:02,789 - DEBUG - VRF ids for VN ctest-vn-89707540: {} 2024-08-22 01:08:02,789 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-08-22 01:08:02,795 - DEBUG - Requesting: http://10.0.0.28:8082/domain/92c28dd7-b0a1-4f8e-8bf0-a8e02962fc59 2024-08-22 01:08:02,806 - DEBUG - Requesting: http://10.0.0.28:8082/project/6c15a016-ce4c-4e63-870c-ed84ada58122 2024-08-22 01:08:02,875 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/399f8b6e-b0bf-43cc-8c41-7c5fdf3f8b71 2024-08-22 01:08:02,886 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/399f8b6e-b0bf-43cc-8c41-7c5fdf3f8b71 2024-08-22 01:08:02,894 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/71ce88da-c300-44e7-b11f-7376bf2edcf4 2024-08-22 01:08:02,901 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/71ce88da-c300-44e7-b11f-7376bf2edcf4 2024-08-22 01:08:02,908 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/b716b71c-057f-4520-9f3f-4df44a3fc416 2024-08-22 01:08:02,914 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-22 01:08:02,914 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/399f8b6e-b0bf-43cc-8c41-7c5fdf3f8b71 2024-08-22 01:08:02,923 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/71ce88da-c300-44e7-b11f-7376bf2edcf4 2024-08-22 01:08:02,935 - INFO - Verified VN network id 10 for VN 399f8b6e-b0bf-43cc-8c41-7c5fdf3f8b71 2024-08-22 01:08:02,935 - INFO - Verifications in API Server for VN ctest-vn-96633741 passed 2024-08-22 01:08:02,935 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/399f8b6e-b0bf-43cc-8c41-7c5fdf3f8b71 2024-08-22 01:08:02,943 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/71ce88da-c300-44e7-b11f-7376bf2edcf4 2024-08-22 01:08:02,950 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/71ce88da-c300-44e7-b11f-7376bf2edcf4 2024-08-22 01:08:02,956 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/b716b71c-057f-4520-9f3f-4df44a3fc416 2024-08-22 01:08:02,968 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56057872:ctest-vn-96633741', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56057872', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4152190688986874828', 'uuid-lslong': '10106495790005324657'}, 'enable': 'true', 'created': '2024-08-22T01:08:00', 'last-modified': '2024-08-22T01:08:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.341534'} 2024-08-22 01:08:02,974 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-22 01:08:02,974 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96633741 passed 2024-08-22 01:08:02,975 - DEBUG - ====Verifying policy data for ctest-vn-96633741 in API_Server ====== 2024-08-22 01:08:02,975 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-08-22 01:08:02,981 - DEBUG - Requesting: http://10.0.0.28:8082/domain/92c28dd7-b0a1-4f8e-8bf0-a8e02962fc59 2024-08-22 01:08:02,993 - DEBUG - Requesting: http://10.0.0.28:8082/project/6c15a016-ce4c-4e63-870c-ed84ada58122 2024-08-22 01:08:03,066 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/399f8b6e-b0bf-43cc-8c41-7c5fdf3f8b71 2024-08-22 01:08:03,077 - DEBUG - ==>Verifying data for policy with id: 67ff778e-64f3-4836-8666-fc9fe76e6837, fqn: ['default-domain', 'ctest-TestBasicPolicy-56057872', 'ctest-policy-allow-all-07110224'] 2024-08-22 01:08:03,077 - INFO - VN ctest-vn-96633741 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-22 01:08:03,077 - DEBUG - Verifying the vn in opserver 2024-08-22 01:08:03,077 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56057872:ctest-vn-96633741 virtual network link through opserver 10.0.0.28 2024-08-22 01:08:03,077 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2024-08-22 01:08:03,089 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56057872:ctest-vn-96633741', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56057872:ctest-vn-96633741?flat'} 2024-08-22 01:08:03,089 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56057872:ctest-vn-96633741 is found in opserver 2024-08-22 01:08:03,101 - DEBUG - Do not have enough data to verify VN in agent 2024-08-22 01:08:03,106 - DEBUG - VRF ids for VN ctest-vn-96633741: {} 2024-08-22 01:08:03,164 - DEBUG - Services list from nova: [, , ] 2024-08-22 01:08:04,170 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1706-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1706-1) 2024-08-22 01:08:05,356 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1706-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1706-1) 2024-08-22 01:08:05,357 - INFO - Waiting for VM ctest-TestBasicPolicy-56057872-10737653 to be up.. 2024-08-22 01:08:05,436 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-22 01:08:10,523 - DEBUG - VM is in ACTIVE state now 2024-08-22 01:08:10,524 - INFO - VM name : ctest-TestBasicPolicy-56057872-10737653 2024-08-22 01:08:10,624 - DEBUG - VM ctest-TestBasicPolicy-56057872-10737653 ID is 6041ed83-0acc-41bd-81f6-7855d3e8feb6 2024-08-22 01:08:10,646 - DEBUG - VM ctest-TestBasicPolicy-56057872-10737653 launched on Node cn-jenkins-deploy-platform-ansible-os-1706-1 2024-08-22 01:08:10,721 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/6041ed83-0acc-41bd-81f6-7855d3e8feb6 2024-08-22 01:08:10,730 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/60de4fe2-8667-42f1-bdc8-ee01d84ca174 2024-08-22 01:08:13,988 - 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 1019ms') 2024-08-22 01:08:13,988 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-56057872-10737653 failed! 2024-08-22 01:08:14,044 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-56057872:ctest-vn-89707540 is 157.207.139.129 and allocation pool is NOT set 2024-08-22 01:08:16,106 - 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=2.63 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.374 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.374/1.503/2.633/1.129 ms') 2024-08-22 01:08:16,106 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-56057872-10737653 passed 2024-08-22 01:08:16,256 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-22 01:08:16,256 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-56057872-10737653, IP 157.207.139.131, Port 22 2024-08-22 01:08:16,408 - DEBUG - VM ctest-TestBasicPolicy-56057872-10737653 is ready for SSH connections 2024-08-22 01:08:16,408 - INFO - Waiting for VM ctest-TestBasicPolicy-56057872-75090312 to be up.. 2024-08-22 01:08:16,493 - DEBUG - VM is in ACTIVE state now 2024-08-22 01:08:16,493 - INFO - VM name : ctest-TestBasicPolicy-56057872-75090312 2024-08-22 01:08:16,574 - DEBUG - VM ctest-TestBasicPolicy-56057872-75090312 ID is a285451e-d8bf-4ff4-99e2-c00666c3a37f 2024-08-22 01:08:16,574 - DEBUG - VM ctest-TestBasicPolicy-56057872-75090312 launched on Node cn-jenkins-deploy-platform-ansible-os-1706-1 2024-08-22 01:08:16,652 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/a285451e-d8bf-4ff4-99e2-c00666c3a37f 2024-08-22 01:08:16,660 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/ab26b5dd-6e3b-4177-be82-1b3622fe1b28 2024-08-22 01:08:17,900 - 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.03 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.486 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 = 0.486/1.757/3.028/1.271 ms') 2024-08-22 01:08:17,900 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-56057872-75090312 passed 2024-08-22 01:08:18,056 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-22 01:08:18,056 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-56057872-75090312, IP 15.190.37.195, Port 22 2024-08-22 01:08:18,212 - DEBUG - VM ctest-TestBasicPolicy-56057872-75090312 is ready for SSH connections 2024-08-22 01:08:18,212 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-22 01:08:18,212 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 15.190.37.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-08-22 01:08:18,212 - DEBUG - ping -s 56 -c 3 -W 1 15.190.37.195 2024-08-22 01:08:21,874 - DEBUG - PING 15.190.37.195 (15.190.37.195): 56 data bytes 64 bytes from 15.190.37.195: seq=0 ttl=63 time=3.195 ms 64 bytes from 15.190.37.195: seq=1 ttl=63 time=0.687 ms 64 bytes from 15.190.37.195: seq=2 ttl=63 time=0.709 ms --- 15.190.37.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.687/1.530/3.195 ms 2024-08-22 01:08:21,874 - INFO - Ping to IP 15.190.37.195 from VM ctest-TestBasicPolicy-56057872-10737653 passed 2024-08-22 01:08:22,051 - DEBUG - Policy Update Response {"network-policy": {"uuid": "67ff778e-64f3-4836-8666-fc9fe76e6837", "href": "http://10.0.0.28:8082/network-policy/67ff778e-64f3-4836-8666-fc9fe76e6837"}} 2024-08-22 01:08:22,051 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-22 01:08:22,052 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 15.190.37.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-08-22 01:08:22,052 - DEBUG - ping -s 56 -c 3 -W 1 15.190.37.195 2024-08-22 01:08:25,268 - DEBUG - PING 15.190.37.195 (15.190.37.195): 56 data bytes 64 bytes from 15.190.37.195: seq=0 ttl=63 time=1.345 ms --- 15.190.37.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.345/1.345/1.345 ms 2024-08-22 01:08:25,268 - WARNING - Ping to IP 15.190.37.195 from VM ctest-TestBasicPolicy-56057872-10737653 failed 2024-08-22 01:08:25,268 - INFO - Deleting VM ctest-TestBasicPolicy-56057872-75090312 2024-08-22 01:08:25,330 - INFO - Deleting VM ctest-TestBasicPolicy-56057872-10737653 2024-08-22 01:08:25,730 - INFO - Deleted policy ctest-policy-allow-all-07110224 2024-08-22 01:08:25,730 - INFO - Deleting VN ctest-vn-96633741 2024-08-22 01:08:25,768 - DEBUG - VN 399f8b6e-b0bf-43cc-8c41-7c5fdf3f8b71 still in use: Unable to complete operation on network 399f8b6e-b0bf-43cc-8c41-7c5fdf3f8b71. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-07d5a6c4-619a-4c53-bd39-3f50db6ff8aa'] 2024-08-22 01:08:25,768 - WARNING - Deleting VN ctest-vn-96633741 failed..Will retry 2024-08-22 01:08:27,880 - DEBUG - Response for deleting network () 2024-08-22 01:08:27,880 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/71ce88da-c300-44e7-b11f-7376bf2edcf4 2024-08-22 01:08:27,886 - DEBUG - Response Code: 404 2024-08-22 01:08:27,886 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-08-22 01:08:27,891 - DEBUG - Requesting: http://10.0.0.28:8082/domain/92c28dd7-b0a1-4f8e-8bf0-a8e02962fc59 2024-08-22 01:08:27,950 - DEBUG - Requesting: http://10.0.0.28:8082/project/6c15a016-ce4c-4e63-870c-ed84ada58122 2024-08-22 01:08:28,020 - INFO - Validated that VN ctest-vn-96633741 is not found in API Server 2024-08-22 01:08:28,031 - DEBUG - VN ctest-vn-96633741 is not present in Agent 10.0.0.28 2024-08-22 01:08:28,031 - INFO - Validated that VN ctest-vn-96633741 is not in any agent 2024-08-22 01:08:28,048 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-96633741 info 2024-08-22 01:08:28,048 - INFO - Deleting VN ctest-vn-89707540 2024-08-22 01:08:28,156 - DEBUG - Response for deleting network () 2024-08-22 01:08:28,156 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/416bf1a9-ef70-4d46-8e51-b828960954ab 2024-08-22 01:08:28,161 - DEBUG - Response Code: 404 2024-08-22 01:08:28,161 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-08-22 01:08:28,170 - DEBUG - Requesting: http://10.0.0.28:8082/domain/92c28dd7-b0a1-4f8e-8bf0-a8e02962fc59 2024-08-22 01:08:28,224 - DEBUG - Requesting: http://10.0.0.28:8082/project/6c15a016-ce4c-4e63-870c-ed84ada58122 2024-08-22 01:08:28,289 - INFO - Validated that VN ctest-vn-89707540 is not found in API Server 2024-08-22 01:08:28,300 - DEBUG - VN ctest-vn-89707540 is not present in Agent 10.0.0.28 2024-08-22 01:08:28,300 - INFO - Validated that VN ctest-vn-89707540 is not in any agent 2024-08-22 01:08:28,315 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-89707540 info 2024-08-22 01:08:28,569 - DEBUG - No XMPP flaps were noticed during the test 2024-08-22 01:08:28,569 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29] 2024-08-22 01:08:28,569 - INFO - -------------------------------------------------------------------------------- 2024-08-22 01:08:29,237 - INFO - Deleted project: ctest-TestBasicPolicy-56057872, ID : 6c15a016-ce4c-4e63-870c-ed84ada58122