2024-08-21 21:33:50,239 - INFO - Domain Default found not creating 2024-08-21 21:33:50,393 - INFO - Project ctest-TestBasicPolicy-83914328 not found, creating it 2024-08-21 21:33:50,856 - INFO - Created Project:ctest-TestBasicPolicy-83914328, ID : 9a2da3a2-8bc9-4f73-bdb4-47b505b51938 2024-08-21 21:33:52,391 - INFO - ================================================================================ 2024-08-21 21:33:52,391 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-21 21:33:52,391 - 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 21:33:52,648 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.5': '0'}} with 2024-08-21 21:33:52,648 - INFO - Initial checks done. Running the testcase now 2024-08-21 21:33:52,648 - INFO - 2024-08-21 21:33:53,238 - DEBUG - Response for create_network : {'network': {'id': 'cae37396-7bd5-433e-a318-e00c0417c7f0', 'name': 'ctest-vn-89369230', 'tenant_id': '9a2da3a28bc94f73bdb447b505b51938', 'project_id': '9a2da3a28bc94f73bdb447b505b51938', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83914328', 'ctest-vn-89369230'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 21:33:53,455 - DEBUG - Response for create_subnet : {'subnet': {'id': '739b0dab-af87-409f-8990-55e24a8f57bb', 'name': '', 'tenant_id': '9a2da3a28bc94f73bdb447b505b51938', 'network_id': 'cae37396-7bd5-433e-a318-e00c0417c7f0', 'ip_version': 4, 'cidr': '114.97.136.64/26', 'allocation_pools': [{'start': '114.97.136.66', 'end': '114.97.136.126'}], 'gateway_ip': '114.97.136.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.97.136.66', 'tags': [], 'project_id': '9a2da3a28bc94f73bdb447b505b51938'}} 2024-08-21 21:33:53,482 - INFO - Created VN ctest-vn-89369230 2024-08-21 21:33:53,537 - DEBUG - VN ctest-vn-89369230 UUID is cae37396-7bd5-433e-a318-e00c0417c7f0 2024-08-21 21:33:53,840 - DEBUG - Response for create_network : {'network': {'id': '3e77c9f2-1371-48ee-9dd6-23e6a20b6db4', 'name': 'ctest-vn-36330802', 'tenant_id': '9a2da3a28bc94f73bdb447b505b51938', 'project_id': '9a2da3a28bc94f73bdb447b505b51938', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83914328', 'ctest-vn-36330802'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 21:33:53,999 - DEBUG - Response for create_subnet : {'subnet': {'id': '23196b39-00a3-48a1-a17f-c9bb7a69e218', 'name': '', 'tenant_id': '9a2da3a28bc94f73bdb447b505b51938', 'network_id': '3e77c9f2-1371-48ee-9dd6-23e6a20b6db4', 'ip_version': 4, 'cidr': '217.130.163.128/26', 'allocation_pools': [{'start': '217.130.163.130', 'end': '217.130.163.190'}], 'gateway_ip': '217.130.163.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '217.130.163.130', 'tags': [], 'project_id': '9a2da3a28bc94f73bdb447b505b51938'}} 2024-08-21 21:33:54,020 - INFO - Created VN ctest-vn-36330802 2024-08-21 21:33:54,073 - DEBUG - VN ctest-vn-36330802 UUID is 3e77c9f2-1371-48ee-9dd6-23e6a20b6db4 2024-08-21 21:33:54,189 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-83914328:ctest-vn-89369230, 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-83914328:ctest-vn-36330802, 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 21:33:54,487 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cae37396-7bd5-433e-a318-e00c0417c7f0', 'name': 'ctest-vn-89369230', 'tenant_id': '9a2da3a28bc94f73bdb447b505b51938', 'project_id': '9a2da3a28bc94f73bdb447b505b51938', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['739b0dab-af87-409f-8990-55e24a8f57bb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83914328', 'ctest-vn-89369230'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83914328', 'ctest-policy-allow-all-06528750']], 'subnet_ipam': [{'subnet_cidr': '114.97.136.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-21 21:33:54,736 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3e77c9f2-1371-48ee-9dd6-23e6a20b6db4', 'name': 'ctest-vn-36330802', 'tenant_id': '9a2da3a28bc94f73bdb447b505b51938', 'project_id': '9a2da3a28bc94f73bdb447b505b51938', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['23196b39-00a3-48a1-a17f-c9bb7a69e218'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83914328', 'ctest-vn-36330802'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83914328', 'ctest-policy-allow-all-06528750']], 'subnet_ipam': [{'subnet_cidr': '217.130.163.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-21 21:33:54,917 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-08-21 21:33:55,214 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-08-21 21:33:55,245 - DEBUG - Requesting: http://10.0.0.31:8082/domain/e12885d5-7ed5-401a-b9eb-5067464c8071 2024-08-21 21:33:55,259 - DEBUG - Requesting: http://10.0.0.31:8082/project/9a2da3a2-8bc9-4f73-bdb4-47b505b51938 2024-08-21 21:33:55,333 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/cae37396-7bd5-433e-a318-e00c0417c7f0 2024-08-21 21:33:55,344 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/cae37396-7bd5-433e-a318-e00c0417c7f0 2024-08-21 21:33:55,353 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/739edd24-d9bf-451e-b555-8dbf637a1f79 2024-08-21 21:33:55,361 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/739edd24-d9bf-451e-b555-8dbf637a1f79 2024-08-21 21:33:55,368 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/0fba4c74-5e52-4612-ad6f-b6a9007fa855 2024-08-21 21:33:55,375 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-21 21:33:55,375 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/cae37396-7bd5-433e-a318-e00c0417c7f0 2024-08-21 21:33:55,383 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/739edd24-d9bf-451e-b555-8dbf637a1f79 2024-08-21 21:33:55,395 - INFO - Verified VN network id 9 for VN cae37396-7bd5-433e-a318-e00c0417c7f0 2024-08-21 21:33:55,395 - INFO - Verifications in API Server for VN ctest-vn-89369230 passed 2024-08-21 21:33:55,395 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/cae37396-7bd5-433e-a318-e00c0417c7f0 2024-08-21 21:33:55,403 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/739edd24-d9bf-451e-b555-8dbf637a1f79 2024-08-21 21:33:55,410 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/739edd24-d9bf-451e-b555-8dbf637a1f79 2024-08-21 21:33:55,417 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/0fba4c74-5e52-4612-ad6f-b6a9007fa855 2024-08-21 21:33:55,430 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83914328:ctest-vn-89369230', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83914328', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14619655905534624574', 'uuid-lslong': '11752389569836206064'}, 'enable': 'true', 'created': '2024-08-21T21:33:53', 'last-modified': '2024-08-21T21:33:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.967360'} 2024-08-21 21:33:55,437 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-21 21:33:55,437 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89369230 passed 2024-08-21 21:33:55,437 - DEBUG - ====Verifying policy data for ctest-vn-89369230 in API_Server ====== 2024-08-21 21:33:55,438 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-08-21 21:33:55,444 - DEBUG - Requesting: http://10.0.0.31:8082/domain/e12885d5-7ed5-401a-b9eb-5067464c8071 2024-08-21 21:33:55,457 - DEBUG - Requesting: http://10.0.0.31:8082/project/9a2da3a2-8bc9-4f73-bdb4-47b505b51938 2024-08-21 21:33:55,526 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/cae37396-7bd5-433e-a318-e00c0417c7f0 2024-08-21 21:33:55,534 - DEBUG - ==>Verifying data for policy with id: a97637a4-d953-493e-94e7-22d69e693af7, fqn: ['default-domain', 'ctest-TestBasicPolicy-83914328', 'ctest-policy-allow-all-06528750'] 2024-08-21 21:33:55,534 - INFO - VN ctest-vn-89369230 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-21 21:33:55,534 - DEBUG - Verifying the vn in opserver 2024-08-21 21:33:55,534 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83914328:ctest-vn-89369230 virtual network link through opserver 10.0.0.31 2024-08-21 21:33:55,534 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-08-21 21:33:55,823 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-08-21 21:33:55,883 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83914328:ctest-vn-89369230', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83914328:ctest-vn-89369230?flat'} 2024-08-21 21:33:55,883 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83914328:ctest-vn-89369230 is found in opserver 2024-08-21 21:33:55,895 - DEBUG - Do not have enough data to verify VN in agent 2024-08-21 21:33:55,900 - DEBUG - VRF ids for VN ctest-vn-89369230: {} 2024-08-21 21:33:55,900 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-08-21 21:33:55,906 - DEBUG - Requesting: http://10.0.0.31:8082/domain/e12885d5-7ed5-401a-b9eb-5067464c8071 2024-08-21 21:33:55,919 - DEBUG - Requesting: http://10.0.0.31:8082/project/9a2da3a2-8bc9-4f73-bdb4-47b505b51938 2024-08-21 21:33:55,988 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/3e77c9f2-1371-48ee-9dd6-23e6a20b6db4 2024-08-21 21:33:55,998 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/3e77c9f2-1371-48ee-9dd6-23e6a20b6db4 2024-08-21 21:33:56,006 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/925d69ed-128f-497a-87f7-b513520ddead 2024-08-21 21:33:56,012 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/925d69ed-128f-497a-87f7-b513520ddead 2024-08-21 21:33:56,019 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/baabe3ed-32f8-4a81-81c1-61c511d9eb15 2024-08-21 21:33:56,025 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-21 21:33:56,025 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/3e77c9f2-1371-48ee-9dd6-23e6a20b6db4 2024-08-21 21:33:56,033 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/925d69ed-128f-497a-87f7-b513520ddead 2024-08-21 21:33:56,045 - INFO - Verified VN network id 10 for VN 3e77c9f2-1371-48ee-9dd6-23e6a20b6db4 2024-08-21 21:33:56,045 - INFO - Verifications in API Server for VN ctest-vn-36330802 passed 2024-08-21 21:33:56,045 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/3e77c9f2-1371-48ee-9dd6-23e6a20b6db4 2024-08-21 21:33:56,055 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/925d69ed-128f-497a-87f7-b513520ddead 2024-08-21 21:33:56,061 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/925d69ed-128f-497a-87f7-b513520ddead 2024-08-21 21:33:56,068 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/baabe3ed-32f8-4a81-81c1-61c511d9eb15 2024-08-21 21:33:56,079 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83914328:ctest-vn-36330802', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83914328', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4501288394125560046', 'uuid-lslong': '11373317382438874548'}, 'enable': 'true', 'created': '2024-08-21T21:33:53', 'last-modified': '2024-08-21T21:33:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.371297'} 2024-08-21 21:33:56,086 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-21 21:33:56,086 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36330802 passed 2024-08-21 21:33:56,086 - DEBUG - ====Verifying policy data for ctest-vn-36330802 in API_Server ====== 2024-08-21 21:33:56,086 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-08-21 21:33:56,092 - DEBUG - Requesting: http://10.0.0.31:8082/domain/e12885d5-7ed5-401a-b9eb-5067464c8071 2024-08-21 21:33:56,105 - DEBUG - Requesting: http://10.0.0.31:8082/project/9a2da3a2-8bc9-4f73-bdb4-47b505b51938 2024-08-21 21:33:56,174 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/3e77c9f2-1371-48ee-9dd6-23e6a20b6db4 2024-08-21 21:33:56,184 - DEBUG - ==>Verifying data for policy with id: a97637a4-d953-493e-94e7-22d69e693af7, fqn: ['default-domain', 'ctest-TestBasicPolicy-83914328', 'ctest-policy-allow-all-06528750'] 2024-08-21 21:33:56,184 - INFO - VN ctest-vn-36330802 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-21 21:33:56,184 - DEBUG - Verifying the vn in opserver 2024-08-21 21:33:56,184 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83914328:ctest-vn-36330802 virtual network link through opserver 10.0.0.31 2024-08-21 21:33:56,184 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-08-21 21:33:56,195 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83914328:ctest-vn-36330802', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83914328:ctest-vn-36330802?flat'} 2024-08-21 21:33:56,195 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83914328:ctest-vn-36330802 is found in opserver 2024-08-21 21:33:56,206 - DEBUG - Do not have enough data to verify VN in agent 2024-08-21 21:33:56,211 - DEBUG - VRF ids for VN ctest-vn-36330802: {} 2024-08-21 21:33:56,277 - DEBUG - Services list from nova: [, , ] 2024-08-21 21:33:57,369 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1702-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1702-1) 2024-08-21 21:33:58,577 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1702-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1702-1) 2024-08-21 21:33:58,577 - INFO - Waiting for VM ctest-TestBasicPolicy-83914328-28609215 to be up.. 2024-08-21 21:33:58,676 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-21 21:34:03,762 - DEBUG - VM is in ACTIVE state now 2024-08-21 21:34:03,763 - INFO - VM name : ctest-TestBasicPolicy-83914328-28609215 2024-08-21 21:34:03,849 - DEBUG - VM ctest-TestBasicPolicy-83914328-28609215 ID is ecb62396-6932-4fd2-af24-58290176710a 2024-08-21 21:34:03,867 - DEBUG - VM ctest-TestBasicPolicy-83914328-28609215 launched on Node cn-jenkins-deploy-platform-ansible-os-1702-1 2024-08-21 21:34:03,946 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/ecb62396-6932-4fd2-af24-58290176710a 2024-08-21 21:34:03,955 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/63a9e696-6d71-411d-9bb9-16e2718b789b 2024-08-21 21:34:07,198 - 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 1007ms') 2024-08-21 21:34:07,198 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-83914328-28609215 failed! 2024-08-21 21:34:07,253 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-83914328:ctest-vn-89369230 is 114.97.136.65 and allocation pool is NOT set 2024-08-21 21:34:09,317 - 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=3.87 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.14 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 = 2.136/3.004/3.872/0.868 ms') 2024-08-21 21:34:09,317 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-83914328-28609215 passed 2024-08-21 21:34:09,469 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 21:34:09,469 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-83914328-28609215, IP 114.97.136.67, Port 22 2024-08-21 21:34:09,625 - DEBUG - VM ctest-TestBasicPolicy-83914328-28609215 is ready for SSH connections 2024-08-21 21:34:09,625 - INFO - Waiting for VM ctest-TestBasicPolicy-83914328-37934550 to be up.. 2024-08-21 21:34:09,700 - DEBUG - VM is in ACTIVE state now 2024-08-21 21:34:09,700 - INFO - VM name : ctest-TestBasicPolicy-83914328-37934550 2024-08-21 21:34:09,771 - DEBUG - VM ctest-TestBasicPolicy-83914328-37934550 ID is 7679fe54-dac8-4f97-ab29-1d4b19e731d7 2024-08-21 21:34:09,772 - DEBUG - VM ctest-TestBasicPolicy-83914328-37934550 launched on Node cn-jenkins-deploy-platform-ansible-os-1702-1 2024-08-21 21:34:09,844 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/7679fe54-dac8-4f97-ab29-1d4b19e731d7 2024-08-21 21:34:09,854 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/c5bca43b-d4b0-47c3-8fbb-24d7fe469f4d 2024-08-21 21:34:11,090 - 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=4.34 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.926 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.926/2.632/4.339/1.706 ms') 2024-08-21 21:34:11,090 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-83914328-37934550 passed 2024-08-21 21:34:11,241 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 21:34:11,241 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-83914328-37934550, IP 217.130.163.131, Port 22 2024-08-21 21:34:11,393 - DEBUG - VM ctest-TestBasicPolicy-83914328-37934550 is ready for SSH connections 2024-08-21 21:34:11,393 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 21:34:11,393 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 217.130.163.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-08-21 21:34:11,393 - DEBUG - ping -s 56 -c 3 -W 1 217.130.163.131 2024-08-21 21:34:15,052 - DEBUG - PING 217.130.163.131 (217.130.163.131): 56 data bytes 64 bytes from 217.130.163.131: seq=0 ttl=63 time=3.248 ms 64 bytes from 217.130.163.131: seq=1 ttl=63 time=0.774 ms 64 bytes from 217.130.163.131: seq=2 ttl=63 time=0.720 ms --- 217.130.163.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.720/1.580/3.248 ms 2024-08-21 21:34:15,052 - INFO - Ping to IP 217.130.163.131 from VM ctest-TestBasicPolicy-83914328-28609215 passed 2024-08-21 21:34:15,229 - DEBUG - Policy Update Response {"network-policy": {"uuid": "a97637a4-d953-493e-94e7-22d69e693af7", "href": "http://10.0.0.31:8082/network-policy/a97637a4-d953-493e-94e7-22d69e693af7"}} 2024-08-21 21:34:15,229 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 21:34:15,229 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 217.130.163.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-08-21 21:34:15,229 - DEBUG - ping -s 56 -c 3 -W 1 217.130.163.131 2024-08-21 21:34:18,431 - DEBUG - PING 217.130.163.131 (217.130.163.131): 56 data bytes 64 bytes from 217.130.163.131: seq=0 ttl=63 time=1.343 ms --- 217.130.163.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.343/1.343/1.343 ms 2024-08-21 21:34:18,431 - WARNING - Ping to IP 217.130.163.131 from VM ctest-TestBasicPolicy-83914328-28609215 failed 2024-08-21 21:34:18,431 - INFO - Deleting VM ctest-TestBasicPolicy-83914328-37934550 2024-08-21 21:34:18,497 - INFO - Deleting VM ctest-TestBasicPolicy-83914328-28609215 2024-08-21 21:34:18,844 - INFO - Deleted policy ctest-policy-allow-all-06528750 2024-08-21 21:34:18,844 - INFO - Deleting VN ctest-vn-36330802 2024-08-21 21:34:18,884 - DEBUG - VN 3e77c9f2-1371-48ee-9dd6-23e6a20b6db4 still in use: Unable to complete operation on network 3e77c9f2-1371-48ee-9dd6-23e6a20b6db4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-5f0dff22-c127-4a56-a160-1dc31307aff1'] 2024-08-21 21:34:18,884 - WARNING - Deleting VN ctest-vn-36330802 failed..Will retry 2024-08-21 21:34:20,992 - DEBUG - Response for deleting network () 2024-08-21 21:34:20,992 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/925d69ed-128f-497a-87f7-b513520ddead 2024-08-21 21:34:21,002 - DEBUG - Response Code: 404 2024-08-21 21:34:21,002 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-08-21 21:34:21,007 - DEBUG - Requesting: http://10.0.0.31:8082/domain/e12885d5-7ed5-401a-b9eb-5067464c8071 2024-08-21 21:34:21,063 - DEBUG - Requesting: http://10.0.0.31:8082/project/9a2da3a2-8bc9-4f73-bdb4-47b505b51938 2024-08-21 21:34:21,132 - INFO - Validated that VN ctest-vn-36330802 is not found in API Server 2024-08-21 21:34:21,143 - DEBUG - VN ctest-vn-36330802 is not present in Agent 10.0.0.31 2024-08-21 21:34:21,143 - INFO - Validated that VN ctest-vn-36330802 is not in any agent 2024-08-21 21:34:21,159 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-36330802 info 2024-08-21 21:34:21,159 - INFO - Deleting VN ctest-vn-89369230 2024-08-21 21:34:21,267 - DEBUG - Response for deleting network () 2024-08-21 21:34:21,267 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/739edd24-d9bf-451e-b555-8dbf637a1f79 2024-08-21 21:34:21,274 - DEBUG - Response Code: 404 2024-08-21 21:34:21,274 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-08-21 21:34:21,280 - DEBUG - Requesting: http://10.0.0.31:8082/domain/e12885d5-7ed5-401a-b9eb-5067464c8071 2024-08-21 21:34:21,334 - DEBUG - Requesting: http://10.0.0.31:8082/project/9a2da3a2-8bc9-4f73-bdb4-47b505b51938 2024-08-21 21:34:21,405 - INFO - Validated that VN ctest-vn-89369230 is not found in API Server 2024-08-21 21:34:21,415 - DEBUG - VN ctest-vn-89369230 is not present in Agent 10.0.0.31 2024-08-21 21:34:21,415 - INFO - Validated that VN ctest-vn-89369230 is not in any agent 2024-08-21 21:34:21,430 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-89369230 info 2024-08-21 21:34:21,683 - DEBUG - No XMPP flaps were noticed during the test 2024-08-21 21:34:21,683 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29] 2024-08-21 21:34:21,683 - INFO - -------------------------------------------------------------------------------- 2024-08-21 21:34:22,352 - INFO - Deleted project: ctest-TestBasicPolicy-83914328, ID : 9a2da3a2-8bc9-4f73-bdb4-47b505b51938