2024-08-21 16:30:16,033 - INFO - Domain Default found not creating 2024-08-21 16:30:16,193 - INFO - Project ctest-TestBasicPolicy-68995704 not found, creating it 2024-08-21 16:30:16,678 - INFO - Created Project:ctest-TestBasicPolicy-68995704, ID : 128354ab-1ed8-4d88-821a-4f9e2ea69725 2024-08-21 16:30:18,157 - INFO - ================================================================================ 2024-08-21 16:30:18,157 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-21 16:30:18,157 - 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-21 16:30:18,419 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.5': '0'}} with 2024-08-21 16:30:18,419 - INFO - Initial checks done. Running the testcase now 2024-08-21 16:30:18,420 - INFO - 2024-08-21 16:30:18,989 - DEBUG - Response for create_network : {'network': {'id': '824d837f-2c6a-406f-b79d-d0ddf7d4b4ce', 'name': 'ctest-vn-39585354', 'tenant_id': '128354ab1ed84d88821a4f9e2ea69725', 'project_id': '128354ab1ed84d88821a4f9e2ea69725', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68995704', 'ctest-vn-39585354'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 16:30:19,165 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c77db976-7615-4310-8996-095cf2c8161f', 'name': '', 'tenant_id': '128354ab1ed84d88821a4f9e2ea69725', 'network_id': '824d837f-2c6a-406f-b79d-d0ddf7d4b4ce', 'ip_version': 4, 'cidr': '6.204.199.64/26', 'allocation_pools': [{'start': '6.204.199.66', 'end': '6.204.199.126'}], 'gateway_ip': '6.204.199.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '6.204.199.66', 'tags': [], 'project_id': '128354ab1ed84d88821a4f9e2ea69725'}} 2024-08-21 16:30:19,185 - INFO - Created VN ctest-vn-39585354 2024-08-21 16:30:19,238 - DEBUG - VN ctest-vn-39585354 UUID is 824d837f-2c6a-406f-b79d-d0ddf7d4b4ce 2024-08-21 16:30:19,539 - DEBUG - Response for create_network : {'network': {'id': 'ac2669ab-799e-491f-97c1-f3d438474060', 'name': 'ctest-vn-97823509', 'tenant_id': '128354ab1ed84d88821a4f9e2ea69725', 'project_id': '128354ab1ed84d88821a4f9e2ea69725', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68995704', 'ctest-vn-97823509'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 16:30:19,753 - DEBUG - Response for create_subnet : {'subnet': {'id': '0a5e2e5a-ae18-468a-9a17-3c15134d05ff', 'name': '', 'tenant_id': '128354ab1ed84d88821a4f9e2ea69725', 'network_id': 'ac2669ab-799e-491f-97c1-f3d438474060', 'ip_version': 4, 'cidr': '200.107.128.192/26', 'allocation_pools': [{'start': '200.107.128.194', 'end': '200.107.128.254'}], 'gateway_ip': '200.107.128.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.107.128.194', 'tags': [], 'project_id': '128354ab1ed84d88821a4f9e2ea69725'}} 2024-08-21 16:30:19,772 - INFO - Created VN ctest-vn-97823509 2024-08-21 16:30:19,822 - DEBUG - VN ctest-vn-97823509 UUID is ac2669ab-799e-491f-97c1-f3d438474060 2024-08-21 16:30:19,931 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68995704:ctest-vn-39585354, 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-68995704:ctest-vn-97823509, 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-21 16:30:20,215 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '824d837f-2c6a-406f-b79d-d0ddf7d4b4ce', 'name': 'ctest-vn-39585354', 'tenant_id': '128354ab1ed84d88821a4f9e2ea69725', 'project_id': '128354ab1ed84d88821a4f9e2ea69725', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c77db976-7615-4310-8996-095cf2c8161f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68995704', 'ctest-vn-39585354'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68995704', 'ctest-policy-allow-all-63252661']], 'subnet_ipam': [{'subnet_cidr': '6.204.199.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-21 16:30:20,450 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ac2669ab-799e-491f-97c1-f3d438474060', 'name': 'ctest-vn-97823509', 'tenant_id': '128354ab1ed84d88821a4f9e2ea69725', 'project_id': '128354ab1ed84d88821a4f9e2ea69725', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0a5e2e5a-ae18-468a-9a17-3c15134d05ff'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68995704', 'ctest-vn-97823509'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68995704', 'ctest-policy-allow-all-63252661']], 'subnet_ipam': [{'subnet_cidr': '200.107.128.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-21 16:30:20,630 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-08-21 16:30:20,955 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-08-21 16:30:21,000 - DEBUG - Requesting: http://10.0.0.42:8082/domain/5b309771-a273-4311-af6e-ed5e0e917c96 2024-08-21 16:30:21,063 - DEBUG - Requesting: http://10.0.0.42:8082/project/128354ab-1ed8-4d88-821a-4f9e2ea69725 2024-08-21 16:30:21,172 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/824d837f-2c6a-406f-b79d-d0ddf7d4b4ce 2024-08-21 16:30:21,201 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/824d837f-2c6a-406f-b79d-d0ddf7d4b4ce 2024-08-21 16:30:21,211 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/1a56e153-7b33-444b-9419-c135d8cf48ca 2024-08-21 16:30:21,222 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/1a56e153-7b33-444b-9419-c135d8cf48ca 2024-08-21 16:30:21,232 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/fdf40d7f-aabf-408d-82ce-48bc3f6193d1 2024-08-21 16:30:21,246 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-21 16:30:21,246 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/824d837f-2c6a-406f-b79d-d0ddf7d4b4ce 2024-08-21 16:30:21,259 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/1a56e153-7b33-444b-9419-c135d8cf48ca 2024-08-21 16:30:21,283 - INFO - Verified VN network id 9 for VN 824d837f-2c6a-406f-b79d-d0ddf7d4b4ce 2024-08-21 16:30:21,283 - INFO - Verifications in API Server for VN ctest-vn-39585354 passed 2024-08-21 16:30:21,283 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/824d837f-2c6a-406f-b79d-d0ddf7d4b4ce 2024-08-21 16:30:21,291 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/1a56e153-7b33-444b-9419-c135d8cf48ca 2024-08-21 16:30:21,299 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/1a56e153-7b33-444b-9419-c135d8cf48ca 2024-08-21 16:30:21,306 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/fdf40d7f-aabf-408d-82ce-48bc3f6193d1 2024-08-21 16:30:21,325 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68995704:ctest-vn-39585354', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68995704', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9389305380366598255', 'uuid-lslong': '13230960932048647374'}, 'enable': 'true', 'created': '2024-08-21T16:30:18', 'last-modified': '2024-08-21T16:30:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.129345'} 2024-08-21 16:30:21,332 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-21 16:30:21,332 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39585354 passed 2024-08-21 16:30:21,332 - DEBUG - ====Verifying policy data for ctest-vn-39585354 in API_Server ====== 2024-08-21 16:30:21,332 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-08-21 16:30:21,338 - DEBUG - Requesting: http://10.0.0.42:8082/domain/5b309771-a273-4311-af6e-ed5e0e917c96 2024-08-21 16:30:21,352 - DEBUG - Requesting: http://10.0.0.42:8082/project/128354ab-1ed8-4d88-821a-4f9e2ea69725 2024-08-21 16:30:21,423 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/824d837f-2c6a-406f-b79d-d0ddf7d4b4ce 2024-08-21 16:30:21,439 - DEBUG - ==>Verifying data for policy with id: 8ef4df46-8432-49f8-9940-e575b289a8ab, fqn: ['default-domain', 'ctest-TestBasicPolicy-68995704', 'ctest-policy-allow-all-63252661'] 2024-08-21 16:30:21,439 - INFO - VN ctest-vn-39585354 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-21 16:30:21,439 - DEBUG - Verifying the vn in opserver 2024-08-21 16:30:21,439 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68995704:ctest-vn-39585354 virtual network link through opserver 10.0.0.42 2024-08-21 16:30:21,439 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-08-21 16:30:21,734 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-08-21 16:30:21,798 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68995704:ctest-vn-39585354', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68995704:ctest-vn-39585354?flat'} 2024-08-21 16:30:21,798 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68995704:ctest-vn-39585354 is found in opserver 2024-08-21 16:30:21,810 - DEBUG - Do not have enough data to verify VN in agent 2024-08-21 16:30:21,815 - DEBUG - VRF ids for VN ctest-vn-39585354: {} 2024-08-21 16:30:21,815 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-08-21 16:30:21,821 - DEBUG - Requesting: http://10.0.0.42:8082/domain/5b309771-a273-4311-af6e-ed5e0e917c96 2024-08-21 16:30:21,833 - DEBUG - Requesting: http://10.0.0.42:8082/project/128354ab-1ed8-4d88-821a-4f9e2ea69725 2024-08-21 16:30:21,901 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/ac2669ab-799e-491f-97c1-f3d438474060 2024-08-21 16:30:21,911 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/ac2669ab-799e-491f-97c1-f3d438474060 2024-08-21 16:30:21,919 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b7d1b20a-3154-434e-8073-5e82510d4a52 2024-08-21 16:30:21,926 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b7d1b20a-3154-434e-8073-5e82510d4a52 2024-08-21 16:30:21,933 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/8c7e5d83-7e6a-49c5-970a-688b7d3cfee2 2024-08-21 16:30:21,939 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-21 16:30:21,939 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/ac2669ab-799e-491f-97c1-f3d438474060 2024-08-21 16:30:21,947 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b7d1b20a-3154-434e-8073-5e82510d4a52 2024-08-21 16:30:21,959 - INFO - Verified VN network id 10 for VN ac2669ab-799e-491f-97c1-f3d438474060 2024-08-21 16:30:21,959 - INFO - Verifications in API Server for VN ctest-vn-97823509 passed 2024-08-21 16:30:21,960 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/ac2669ab-799e-491f-97c1-f3d438474060 2024-08-21 16:30:21,967 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b7d1b20a-3154-434e-8073-5e82510d4a52 2024-08-21 16:30:21,974 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b7d1b20a-3154-434e-8073-5e82510d4a52 2024-08-21 16:30:21,981 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/8c7e5d83-7e6a-49c5-970a-688b7d3cfee2 2024-08-21 16:30:21,994 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68995704:ctest-vn-97823509', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68995704', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12404718408839350559', 'uuid-lslong': '10935289463035084896'}, 'enable': 'true', 'created': '2024-08-21T16:30:19', 'last-modified': '2024-08-21T16:30:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.564583'} 2024-08-21 16:30:22,000 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-21 16:30:22,000 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97823509 passed 2024-08-21 16:30:22,001 - DEBUG - ====Verifying policy data for ctest-vn-97823509 in API_Server ====== 2024-08-21 16:30:22,001 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-08-21 16:30:22,007 - DEBUG - Requesting: http://10.0.0.42:8082/domain/5b309771-a273-4311-af6e-ed5e0e917c96 2024-08-21 16:30:22,018 - DEBUG - Requesting: http://10.0.0.42:8082/project/128354ab-1ed8-4d88-821a-4f9e2ea69725 2024-08-21 16:30:22,085 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/ac2669ab-799e-491f-97c1-f3d438474060 2024-08-21 16:30:22,093 - DEBUG - ==>Verifying data for policy with id: 8ef4df46-8432-49f8-9940-e575b289a8ab, fqn: ['default-domain', 'ctest-TestBasicPolicy-68995704', 'ctest-policy-allow-all-63252661'] 2024-08-21 16:30:22,093 - INFO - VN ctest-vn-97823509 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-21 16:30:22,093 - DEBUG - Verifying the vn in opserver 2024-08-21 16:30:22,093 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68995704:ctest-vn-97823509 virtual network link through opserver 10.0.0.42 2024-08-21 16:30:22,093 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-08-21 16:30:22,105 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68995704:ctest-vn-97823509', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68995704:ctest-vn-97823509?flat'} 2024-08-21 16:30:22,105 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68995704:ctest-vn-97823509 is found in opserver 2024-08-21 16:30:22,116 - DEBUG - Do not have enough data to verify VN in agent 2024-08-21 16:30:22,121 - DEBUG - VRF ids for VN ctest-vn-97823509: {} 2024-08-21 16:30:22,177 - DEBUG - Services list from nova: [, , ] 2024-08-21 16:30:23,185 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1693-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1693-1) 2024-08-21 16:30:24,381 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1693-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1693-1) 2024-08-21 16:30:24,382 - INFO - Waiting for VM ctest-TestBasicPolicy-68995704-97092470 to be up.. 2024-08-21 16:30:24,461 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-21 16:30:29,543 - DEBUG - VM is in ACTIVE state now 2024-08-21 16:30:29,543 - INFO - VM name : ctest-TestBasicPolicy-68995704-97092470 2024-08-21 16:30:29,620 - DEBUG - VM ctest-TestBasicPolicy-68995704-97092470 ID is a2f43005-dbb4-4f6d-b114-738c6fc510b3 2024-08-21 16:30:29,637 - DEBUG - VM ctest-TestBasicPolicy-68995704-97092470 launched on Node cn-jenkins-deploy-platform-ansible-os-1693-1 2024-08-21 16:30:29,713 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/a2f43005-dbb4-4f6d-b114-738c6fc510b3 2024-08-21 16:30:29,723 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/0174fdc7-1e28-4d5a-a0ac-bfdd3f0235d2 2024-08-21 16:30:32,967 - 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 1016ms') 2024-08-21 16:30:32,967 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-68995704-97092470 failed! 2024-08-21 16:30:33,026 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-68995704:ctest-vn-39585354 is 6.204.199.65 and allocation pool is NOT set 2024-08-21 16:30:35,086 - 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=7.28 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.436 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.436/3.858/7.281/3.422 ms') 2024-08-21 16:30:35,086 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-68995704-97092470 passed 2024-08-21 16:30:35,243 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 16:30:35,243 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-68995704-97092470, IP 6.204.199.67, Port 22 2024-08-21 16:30:35,416 - DEBUG - VM ctest-TestBasicPolicy-68995704-97092470 is ready for SSH connections 2024-08-21 16:30:35,416 - INFO - Waiting for VM ctest-TestBasicPolicy-68995704-07086989 to be up.. 2024-08-21 16:30:35,497 - DEBUG - VM is in ACTIVE state now 2024-08-21 16:30:35,497 - INFO - VM name : ctest-TestBasicPolicy-68995704-07086989 2024-08-21 16:30:35,569 - DEBUG - VM ctest-TestBasicPolicy-68995704-07086989 ID is df2469b4-6b1b-42bd-99cb-60045d897a4d 2024-08-21 16:30:35,569 - DEBUG - VM ctest-TestBasicPolicy-68995704-07086989 launched on Node cn-jenkins-deploy-platform-ansible-os-1693-1 2024-08-21 16:30:35,646 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/df2469b4-6b1b-42bd-99cb-60045d897a4d 2024-08-21 16:30:35,654 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/bcfb127c-1417-473f-b2f7-f225be8dc903 2024-08-21 16:30:36,891 - 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.54 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.430 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 = 0.430/1.986/3.543/1.556 ms') 2024-08-21 16:30:36,891 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-68995704-07086989 passed 2024-08-21 16:30:37,046 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 16:30:37,046 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-68995704-07086989, IP 200.107.128.195, Port 22 2024-08-21 16:30:37,205 - DEBUG - VM ctest-TestBasicPolicy-68995704-07086989 is ready for SSH connections 2024-08-21 16:30:37,206 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 16:30:37,206 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 200.107.128.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2024-08-21 16:30:37,206 - DEBUG - ping -s 56 -c 3 -W 1 200.107.128.195 2024-08-21 16:30:41,264 - DEBUG - PING 200.107.128.195 (200.107.128.195): 56 data bytes 64 bytes from 200.107.128.195: seq=0 ttl=63 time=4.201 ms 64 bytes from 200.107.128.195: seq=1 ttl=63 time=0.775 ms 64 bytes from 200.107.128.195: seq=2 ttl=63 time=0.708 ms --- 200.107.128.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.708/1.894/4.201 ms 2024-08-21 16:30:41,264 - INFO - Ping to IP 200.107.128.195 from VM ctest-TestBasicPolicy-68995704-97092470 passed 2024-08-21 16:30:41,438 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8ef4df46-8432-49f8-9940-e575b289a8ab", "href": "http://10.0.0.42:8082/network-policy/8ef4df46-8432-49f8-9940-e575b289a8ab"}} 2024-08-21 16:30:41,438 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 16:30:41,438 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 200.107.128.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2024-08-21 16:30:41,439 - DEBUG - ping -s 56 -c 3 -W 1 200.107.128.195 2024-08-21 16:30:44,638 - DEBUG - PING 200.107.128.195 (200.107.128.195): 56 data bytes --- 200.107.128.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-08-21 16:30:44,639 - WARNING - Ping to IP 200.107.128.195 from VM ctest-TestBasicPolicy-68995704-97092470 failed 2024-08-21 16:30:44,639 - INFO - Deleting VM ctest-TestBasicPolicy-68995704-07086989 2024-08-21 16:30:44,702 - INFO - Deleting VM ctest-TestBasicPolicy-68995704-97092470 2024-08-21 16:30:45,058 - INFO - Deleted policy ctest-policy-allow-all-63252661 2024-08-21 16:30:45,059 - INFO - Deleting VN ctest-vn-97823509 2024-08-21 16:30:45,099 - DEBUG - VN ac2669ab-799e-491f-97c1-f3d438474060 still in use: Unable to complete operation on network ac2669ab-799e-491f-97c1-f3d438474060. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b9104878-3058-456c-90b8-ef1322b6e83c'] 2024-08-21 16:30:45,099 - WARNING - Deleting VN ctest-vn-97823509 failed..Will retry 2024-08-21 16:30:47,207 - DEBUG - Response for deleting network () 2024-08-21 16:30:47,207 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b7d1b20a-3154-434e-8073-5e82510d4a52 2024-08-21 16:30:47,215 - DEBUG - Response Code: 404 2024-08-21 16:30:47,215 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-08-21 16:30:47,221 - DEBUG - Requesting: http://10.0.0.42:8082/domain/5b309771-a273-4311-af6e-ed5e0e917c96 2024-08-21 16:30:47,277 - DEBUG - Requesting: http://10.0.0.42:8082/project/128354ab-1ed8-4d88-821a-4f9e2ea69725 2024-08-21 16:30:47,345 - INFO - Validated that VN ctest-vn-97823509 is not found in API Server 2024-08-21 16:30:47,356 - DEBUG - VN ctest-vn-97823509 is not present in Agent 10.0.0.42 2024-08-21 16:30:47,356 - INFO - Validated that VN ctest-vn-97823509 is not in any agent 2024-08-21 16:30:47,372 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-97823509 info 2024-08-21 16:30:47,372 - INFO - Deleting VN ctest-vn-39585354 2024-08-21 16:30:47,469 - DEBUG - Response for deleting network () 2024-08-21 16:30:47,470 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/1a56e153-7b33-444b-9419-c135d8cf48ca 2024-08-21 16:30:47,476 - DEBUG - Response Code: 404 2024-08-21 16:30:47,476 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-08-21 16:30:47,481 - DEBUG - Requesting: http://10.0.0.42:8082/domain/5b309771-a273-4311-af6e-ed5e0e917c96 2024-08-21 16:30:47,535 - DEBUG - Requesting: http://10.0.0.42:8082/project/128354ab-1ed8-4d88-821a-4f9e2ea69725 2024-08-21 16:30:47,606 - INFO - Validated that VN ctest-vn-39585354 is not found in API Server 2024-08-21 16:30:47,619 - DEBUG - VN ctest-vn-39585354 is not present in Agent 10.0.0.42 2024-08-21 16:30:47,619 - INFO - Validated that VN ctest-vn-39585354 is not in any agent 2024-08-21 16:30:47,634 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-39585354 info 2024-08-21 16:30:47,888 - DEBUG - No XMPP flaps were noticed during the test 2024-08-21 16:30:47,888 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29] 2024-08-21 16:30:47,889 - INFO - -------------------------------------------------------------------------------- 2024-08-21 16:30:48,678 - INFO - Deleted project: ctest-TestBasicPolicy-68995704, ID : 128354ab-1ed8-4d88-821a-4f9e2ea69725