2024-09-03 13:52:09,129 - INFO - Domain Default found not creating 2024-09-03 13:52:09,290 - INFO - Project ctest-TestBasicPolicy-50622733 not found, creating it 2024-09-03 13:52:09,775 - INFO - Created Project:ctest-TestBasicPolicy-50622733, ID : fa69ff64-9b42-4caa-8465-2d55088aba50 2024-09-03 13:52:11,484 - INFO - ================================================================================ 2024-09-03 13:52:11,485 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-03 13:52:11,485 - 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-03 13:52:11,740 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.6': '0'}} with 2024-09-03 13:52:11,740 - INFO - Initial checks done. Running the testcase now 2024-09-03 13:52:11,740 - INFO - 2024-09-03 13:52:12,306 - DEBUG - Response for create_network : {'network': {'id': 'c47dcee2-8fcb-430c-92a5-de446454f60a', 'name': 'ctest-vn-46236631', 'tenant_id': 'fa69ff649b424caa84652d55088aba50', 'project_id': 'fa69ff649b424caa84652d55088aba50', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50622733', 'ctest-vn-46236631'], 'port_security_enabled': True, 'description': ''}} 2024-09-03 13:52:12,538 - DEBUG - Response for create_subnet : {'subnet': {'id': '3b7c9f41-736d-4068-acfe-a44038d09027', 'name': '', 'tenant_id': 'fa69ff649b424caa84652d55088aba50', 'network_id': 'c47dcee2-8fcb-430c-92a5-de446454f60a', 'ip_version': 4, 'cidr': '172.73.172.0/26', 'allocation_pools': [{'start': '172.73.172.2', 'end': '172.73.172.62'}], 'gateway_ip': '172.73.172.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.73.172.2', 'tags': [], 'project_id': 'fa69ff649b424caa84652d55088aba50'}} 2024-09-03 13:52:12,561 - INFO - Created VN ctest-vn-46236631 2024-09-03 13:52:12,615 - DEBUG - VN ctest-vn-46236631 UUID is c47dcee2-8fcb-430c-92a5-de446454f60a 2024-09-03 13:52:12,924 - DEBUG - Response for create_network : {'network': {'id': '8d9acadb-d0d9-4d10-9c2f-4ae1bcd11ed0', 'name': 'ctest-vn-22569911', 'tenant_id': 'fa69ff649b424caa84652d55088aba50', 'project_id': 'fa69ff649b424caa84652d55088aba50', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50622733', 'ctest-vn-22569911'], 'port_security_enabled': True, 'description': ''}} 2024-09-03 13:52:13,136 - DEBUG - Response for create_subnet : {'subnet': {'id': '444e6eae-31f0-4184-8b35-777c374ee03a', 'name': '', 'tenant_id': 'fa69ff649b424caa84652d55088aba50', 'network_id': '8d9acadb-d0d9-4d10-9c2f-4ae1bcd11ed0', 'ip_version': 4, 'cidr': '61.145.4.0/26', 'allocation_pools': [{'start': '61.145.4.2', 'end': '61.145.4.62'}], 'gateway_ip': '61.145.4.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '61.145.4.2', 'tags': [], 'project_id': 'fa69ff649b424caa84652d55088aba50'}} 2024-09-03 13:52:13,157 - INFO - Created VN ctest-vn-22569911 2024-09-03 13:52:13,207 - DEBUG - VN ctest-vn-22569911 UUID is 8d9acadb-d0d9-4d10-9c2f-4ae1bcd11ed0 2024-09-03 13:52:13,324 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-50622733:ctest-vn-46236631, 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-50622733:ctest-vn-22569911, 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-03 13:52:13,632 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c47dcee2-8fcb-430c-92a5-de446454f60a', 'name': 'ctest-vn-46236631', 'tenant_id': 'fa69ff649b424caa84652d55088aba50', 'project_id': 'fa69ff649b424caa84652d55088aba50', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3b7c9f41-736d-4068-acfe-a44038d09027'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50622733', 'ctest-vn-46236631'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50622733', 'ctest-policy-allow-all-23881736']], 'subnet_ipam': [{'subnet_cidr': '172.73.172.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-03 13:52:13,869 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8d9acadb-d0d9-4d10-9c2f-4ae1bcd11ed0', 'name': 'ctest-vn-22569911', 'tenant_id': 'fa69ff649b424caa84652d55088aba50', 'project_id': 'fa69ff649b424caa84652d55088aba50', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['444e6eae-31f0-4184-8b35-777c374ee03a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50622733', 'ctest-vn-22569911'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50622733', 'ctest-policy-allow-all-23881736']], 'subnet_ipam': [{'subnet_cidr': '61.145.4.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-03 13:52:14,019 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-09-03 13:52:14,318 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-09-03 13:52:14,348 - DEBUG - Requesting: http://10.0.0.32:8082/domain/b6293951-ea4d-42d6-9489-76284ee495fa 2024-09-03 13:52:14,362 - DEBUG - Requesting: http://10.0.0.32:8082/project/fa69ff64-9b42-4caa-8465-2d55088aba50 2024-09-03 13:52:14,433 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/c47dcee2-8fcb-430c-92a5-de446454f60a 2024-09-03 13:52:14,445 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/c47dcee2-8fcb-430c-92a5-de446454f60a 2024-09-03 13:52:14,456 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/18adab34-b7f9-45a1-b653-618e46ed00e3 2024-09-03 13:52:14,465 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/18adab34-b7f9-45a1-b653-618e46ed00e3 2024-09-03 13:52:14,474 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/de52f6cc-ab4d-4621-9885-f7c978b76988 2024-09-03 13:52:14,482 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-03 13:52:14,482 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/c47dcee2-8fcb-430c-92a5-de446454f60a 2024-09-03 13:52:14,494 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/18adab34-b7f9-45a1-b653-618e46ed00e3 2024-09-03 13:52:14,509 - INFO - Verified VN network id 9 for VN c47dcee2-8fcb-430c-92a5-de446454f60a 2024-09-03 13:52:14,509 - INFO - Verifications in API Server for VN ctest-vn-46236631 passed 2024-09-03 13:52:14,509 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/c47dcee2-8fcb-430c-92a5-de446454f60a 2024-09-03 13:52:14,520 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/18adab34-b7f9-45a1-b653-618e46ed00e3 2024-09-03 13:52:14,528 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/18adab34-b7f9-45a1-b653-618e46ed00e3 2024-09-03 13:52:14,536 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/de52f6cc-ab4d-4621-9885-f7c978b76988 2024-09-03 13:52:14,549 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50622733:ctest-vn-46236631', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50622733', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14158700275993101068', 'uuid-lslong': '10567096486017168906'}, 'enable': 'true', 'created': '2024-09-03T13:52:12', 'last-modified': '2024-09-03T13:52:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.940991'} 2024-09-03 13:52:14,558 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-03 13:52:14,558 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46236631 passed 2024-09-03 13:52:14,558 - DEBUG - ====Verifying policy data for ctest-vn-46236631 in API_Server ====== 2024-09-03 13:52:14,558 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-09-03 13:52:14,566 - DEBUG - Requesting: http://10.0.0.32:8082/domain/b6293951-ea4d-42d6-9489-76284ee495fa 2024-09-03 13:52:14,582 - DEBUG - Requesting: http://10.0.0.32:8082/project/fa69ff64-9b42-4caa-8465-2d55088aba50 2024-09-03 13:52:14,660 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/c47dcee2-8fcb-430c-92a5-de446454f60a 2024-09-03 13:52:14,671 - DEBUG - ==>Verifying data for policy with id: 760e1b9f-8abc-46a9-9d8d-75cd1872a6b8, fqn: ['default-domain', 'ctest-TestBasicPolicy-50622733', 'ctest-policy-allow-all-23881736'] 2024-09-03 13:52:14,671 - INFO - VN ctest-vn-46236631 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-03 13:52:14,671 - DEBUG - Verifying the vn in opserver 2024-09-03 13:52:14,671 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50622733:ctest-vn-46236631 virtual network link through opserver 10.0.0.32 2024-09-03 13:52:14,671 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks 2024-09-03 13:52:14,975 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks 2024-09-03 13:52:15,040 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50622733:ctest-vn-46236631', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50622733:ctest-vn-46236631?flat'} 2024-09-03 13:52:15,040 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50622733:ctest-vn-46236631 is found in opserver 2024-09-03 13:52:15,053 - DEBUG - Do not have enough data to verify VN in agent 2024-09-03 13:52:15,059 - DEBUG - VRF ids for VN ctest-vn-46236631: {} 2024-09-03 13:52:15,059 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-09-03 13:52:15,066 - DEBUG - Requesting: http://10.0.0.32:8082/domain/b6293951-ea4d-42d6-9489-76284ee495fa 2024-09-03 13:52:15,080 - DEBUG - Requesting: http://10.0.0.32:8082/project/fa69ff64-9b42-4caa-8465-2d55088aba50 2024-09-03 13:52:15,153 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/8d9acadb-d0d9-4d10-9c2f-4ae1bcd11ed0 2024-09-03 13:52:15,165 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/8d9acadb-d0d9-4d10-9c2f-4ae1bcd11ed0 2024-09-03 13:52:15,174 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/e19899d9-1884-45d2-861c-996fb1d5143f 2024-09-03 13:52:15,181 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/e19899d9-1884-45d2-861c-996fb1d5143f 2024-09-03 13:52:15,189 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/13218347-48ba-4e66-9687-f968d518e3ba 2024-09-03 13:52:15,195 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-03 13:52:15,196 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/8d9acadb-d0d9-4d10-9c2f-4ae1bcd11ed0 2024-09-03 13:52:15,204 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/e19899d9-1884-45d2-861c-996fb1d5143f 2024-09-03 13:52:15,216 - INFO - Verified VN network id 10 for VN 8d9acadb-d0d9-4d10-9c2f-4ae1bcd11ed0 2024-09-03 13:52:15,216 - INFO - Verifications in API Server for VN ctest-vn-22569911 passed 2024-09-03 13:52:15,216 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/8d9acadb-d0d9-4d10-9c2f-4ae1bcd11ed0 2024-09-03 13:52:15,225 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/e19899d9-1884-45d2-861c-996fb1d5143f 2024-09-03 13:52:15,231 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/e19899d9-1884-45d2-861c-996fb1d5143f 2024-09-03 13:52:15,237 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/13218347-48ba-4e66-9687-f968d518e3ba 2024-09-03 13:52:15,248 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50622733:ctest-vn-22569911', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50622733', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10203690951211830544', 'uuid-lslong': '11254296327218077392'}, 'enable': 'true', 'created': '2024-09-03T13:52:12', 'last-modified': '2024-09-03T13:52:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.406446'} 2024-09-03 13:52:15,255 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-03 13:52:15,255 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22569911 passed 2024-09-03 13:52:15,255 - DEBUG - ====Verifying policy data for ctest-vn-22569911 in API_Server ====== 2024-09-03 13:52:15,255 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-09-03 13:52:15,262 - DEBUG - Requesting: http://10.0.0.32:8082/domain/b6293951-ea4d-42d6-9489-76284ee495fa 2024-09-03 13:52:15,276 - DEBUG - Requesting: http://10.0.0.32:8082/project/fa69ff64-9b42-4caa-8465-2d55088aba50 2024-09-03 13:52:15,351 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/8d9acadb-d0d9-4d10-9c2f-4ae1bcd11ed0 2024-09-03 13:52:15,361 - DEBUG - ==>Verifying data for policy with id: 760e1b9f-8abc-46a9-9d8d-75cd1872a6b8, fqn: ['default-domain', 'ctest-TestBasicPolicy-50622733', 'ctest-policy-allow-all-23881736'] 2024-09-03 13:52:15,361 - INFO - VN ctest-vn-22569911 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-03 13:52:15,361 - DEBUG - Verifying the vn in opserver 2024-09-03 13:52:15,361 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50622733:ctest-vn-22569911 virtual network link through opserver 10.0.0.32 2024-09-03 13:52:15,361 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks 2024-09-03 13:52:15,375 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50622733:ctest-vn-22569911', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50622733:ctest-vn-22569911?flat'} 2024-09-03 13:52:15,375 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50622733:ctest-vn-22569911 is found in opserver 2024-09-03 13:52:15,386 - DEBUG - Do not have enough data to verify VN in agent 2024-09-03 13:52:15,392 - DEBUG - VRF ids for VN ctest-vn-22569911: {} 2024-09-03 13:52:15,451 - DEBUG - Services list from nova: [, , ] 2024-09-03 13:52:16,588 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1835-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1835-1) 2024-09-03 13:52:17,766 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1835-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1835-1) 2024-09-03 13:52:17,767 - INFO - Waiting for VM ctest-TestBasicPolicy-50622733-90819759 to be up.. 2024-09-03 13:52:17,854 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-03 13:52:22,933 - DEBUG - VM is in ACTIVE state now 2024-09-03 13:52:22,933 - INFO - VM name : ctest-TestBasicPolicy-50622733-90819759 2024-09-03 13:52:23,018 - DEBUG - VM ctest-TestBasicPolicy-50622733-90819759 ID is f38b8d92-74fe-4299-899b-6ac5a59e1ac7 2024-09-03 13:52:23,043 - DEBUG - VM ctest-TestBasicPolicy-50622733-90819759 launched on Node cn-jenkins-deploy-platform-ansible-os-1835-1 2024-09-03 13:52:23,138 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/f38b8d92-74fe-4299-899b-6ac5a59e1ac7 2024-09-03 13:52:23,148 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine-interface/5c59acb4-4562-45c7-b85e-e2a53b7161ea 2024-09-03 13:52:26,404 - 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 1023ms') 2024-09-03 13:52:26,404 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-50622733-90819759 failed! 2024-09-03 13:52:26,459 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-50622733:ctest-vn-46236631 is 172.73.172.1 and allocation pool is NOT set 2024-09-03 13:52:28,524 - 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=4.00 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.990 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.990/2.492/3.995/1.502 ms') 2024-09-03 13:52:28,524 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-50622733-90819759 passed 2024-09-03 13:52:28,675 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 13:52:28,675 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-50622733-90819759, IP 172.73.172.3, Port 22 2024-09-03 13:52:28,831 - DEBUG - VM ctest-TestBasicPolicy-50622733-90819759 is ready for SSH connections 2024-09-03 13:52:28,831 - INFO - Waiting for VM ctest-TestBasicPolicy-50622733-02681286 to be up.. 2024-09-03 13:52:28,913 - DEBUG - VM is in ACTIVE state now 2024-09-03 13:52:28,913 - INFO - VM name : ctest-TestBasicPolicy-50622733-02681286 2024-09-03 13:52:28,997 - DEBUG - VM ctest-TestBasicPolicy-50622733-02681286 ID is b54ee1bc-5d19-4a6d-ae11-79a42f4fdc81 2024-09-03 13:52:28,997 - DEBUG - VM ctest-TestBasicPolicy-50622733-02681286 launched on Node cn-jenkins-deploy-platform-ansible-os-1835-1 2024-09-03 13:52:29,080 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/b54ee1bc-5d19-4a6d-ae11-79a42f4fdc81 2024-09-03 13:52:29,090 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine-interface/2681594e-2752-4bb9-9e89-0aaeed9d1497 2024-09-03 13:52:30,328 - 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=2.98 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.336 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.336/1.657/2.978/1.321 ms') 2024-09-03 13:52:30,328 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-50622733-02681286 passed 2024-09-03 13:52:30,479 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 13:52:30,479 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-50622733-02681286, IP 61.145.4.3, Port 22 2024-09-03 13:52:30,639 - DEBUG - VM ctest-TestBasicPolicy-50622733-02681286 is ready for SSH connections 2024-09-03 13:52:30,639 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 13:52:30,640 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 61.145.4.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.32, gateway password: c0ntrail123 2024-09-03 13:52:30,640 - DEBUG - ping -s 56 -c 3 -W 1 61.145.4.3 2024-09-03 13:52:34,651 - DEBUG - PING 61.145.4.3 (61.145.4.3): 56 data bytes 64 bytes from 61.145.4.3: seq=0 ttl=63 time=4.392 ms 64 bytes from 61.145.4.3: seq=1 ttl=63 time=1.235 ms 64 bytes from 61.145.4.3: seq=2 ttl=63 time=0.862 ms --- 61.145.4.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.862/2.163/4.392 ms 2024-09-03 13:52:34,651 - INFO - Ping to IP 61.145.4.3 from VM ctest-TestBasicPolicy-50622733-90819759 passed 2024-09-03 13:52:34,842 - DEBUG - Policy Update Response {"network-policy": {"uuid": "760e1b9f-8abc-46a9-9d8d-75cd1872a6b8", "href": "http://10.0.0.32:8082/network-policy/760e1b9f-8abc-46a9-9d8d-75cd1872a6b8"}} 2024-09-03 13:52:34,843 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-03 13:52:34,843 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 61.145.4.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.32, gateway password: c0ntrail123 2024-09-03 13:52:34,843 - DEBUG - ping -s 56 -c 3 -W 1 61.145.4.3 2024-09-03 13:52:38,067 - DEBUG - PING 61.145.4.3 (61.145.4.3): 56 data bytes 64 bytes from 61.145.4.3: seq=0 ttl=63 time=2.914 ms --- 61.145.4.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.914/2.914/2.914 ms 2024-09-03 13:52:38,067 - WARNING - Ping to IP 61.145.4.3 from VM ctest-TestBasicPolicy-50622733-90819759 failed 2024-09-03 13:52:38,067 - INFO - Deleting VM ctest-TestBasicPolicy-50622733-02681286 2024-09-03 13:52:38,137 - INFO - Deleting VM ctest-TestBasicPolicy-50622733-90819759 2024-09-03 13:52:38,536 - INFO - Deleted policy ctest-policy-allow-all-23881736 2024-09-03 13:52:38,537 - INFO - Deleting VN ctest-vn-22569911 2024-09-03 13:52:38,574 - DEBUG - VN 8d9acadb-d0d9-4d10-9c2f-4ae1bcd11ed0 still in use: Unable to complete operation on network 8d9acadb-d0d9-4d10-9c2f-4ae1bcd11ed0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-cc238892-2f74-44c3-9ee2-2ed1965b3afe'] 2024-09-03 13:52:38,574 - WARNING - Deleting VN ctest-vn-22569911 failed..Will retry 2024-09-03 13:52:40,698 - DEBUG - Response for deleting network () 2024-09-03 13:52:40,698 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/e19899d9-1884-45d2-861c-996fb1d5143f 2024-09-03 13:52:40,704 - DEBUG - Response Code: 404 2024-09-03 13:52:40,704 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-09-03 13:52:40,710 - DEBUG - Requesting: http://10.0.0.32:8082/domain/b6293951-ea4d-42d6-9489-76284ee495fa 2024-09-03 13:52:40,763 - DEBUG - Requesting: http://10.0.0.32:8082/project/fa69ff64-9b42-4caa-8465-2d55088aba50 2024-09-03 13:52:40,832 - INFO - Validated that VN ctest-vn-22569911 is not found in API Server 2024-09-03 13:52:40,844 - DEBUG - VN ctest-vn-22569911 is not present in Agent 10.0.0.32 2024-09-03 13:52:40,844 - INFO - Validated that VN ctest-vn-22569911 is not in any agent 2024-09-03 13:52:40,860 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-22569911 info 2024-09-03 13:52:40,860 - INFO - Deleting VN ctest-vn-46236631 2024-09-03 13:52:40,971 - DEBUG - Response for deleting network () 2024-09-03 13:52:40,971 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/18adab34-b7f9-45a1-b653-618e46ed00e3 2024-09-03 13:52:40,981 - DEBUG - Response Code: 404 2024-09-03 13:52:40,982 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-09-03 13:52:40,988 - DEBUG - Requesting: http://10.0.0.32:8082/domain/b6293951-ea4d-42d6-9489-76284ee495fa 2024-09-03 13:52:41,043 - DEBUG - Requesting: http://10.0.0.32:8082/project/fa69ff64-9b42-4caa-8465-2d55088aba50 2024-09-03 13:52:41,118 - INFO - Validated that VN ctest-vn-46236631 is not found in API Server 2024-09-03 13:52:41,130 - DEBUG - VN ctest-vn-46236631 is not present in Agent 10.0.0.32 2024-09-03 13:52:41,130 - INFO - Validated that VN ctest-vn-46236631 is not in any agent 2024-09-03 13:52:41,146 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-46236631 info 2024-09-03 13:52:41,401 - DEBUG - No XMPP flaps were noticed during the test 2024-09-03 13:52:41,401 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2024-09-03 13:52:41,401 - INFO - -------------------------------------------------------------------------------- 2024-09-03 13:52:42,077 - INFO - Deleted project: ctest-TestBasicPolicy-50622733, ID : fa69ff64-9b42-4caa-8465-2d55088aba50