2024-11-08 11:24:10,820 - INFO - Domain Default found not creating 2024-11-08 11:24:10,995 - INFO - Project ctest-TestBasicPolicy-25667001 not found, creating it 2024-11-08 11:24:11,527 - INFO - Created Project:ctest-TestBasicPolicy-25667001, ID : 562bcdff-f892-4530-ba2a-31749145e53c 2024-11-08 11:24:13,173 - INFO - ================================================================================ 2024-11-08 11:24:13,174 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-08 11:24:13,174 - 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-11-08 11:24:13,438 - DEBUG - Nothing to compare xmpp stats {'10.0.0.46': {'10.20.0.5': '0'}} with 2024-11-08 11:24:13,439 - INFO - Initial checks done. Running the testcase now 2024-11-08 11:24:13,439 - INFO - 2024-11-08 11:24:14,082 - DEBUG - Response for create_network : {'network': {'id': '7247c3d8-1c11-4d68-a647-426b8fc8e756', 'name': 'ctest-vn-92228429', 'tenant_id': '562bcdfff8924530ba2a31749145e53c', 'project_id': '562bcdfff8924530ba2a31749145e53c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25667001', 'ctest-vn-92228429'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 11:24:14,247 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cce200ef-4dc3-48f6-8a69-c4bb6d3e4ed9', 'name': '', 'tenant_id': '562bcdfff8924530ba2a31749145e53c', 'network_id': '7247c3d8-1c11-4d68-a647-426b8fc8e756', 'ip_version': 4, 'cidr': '170.43.130.192/26', 'allocation_pools': [{'start': '170.43.130.194', 'end': '170.43.130.254'}], 'gateway_ip': '170.43.130.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.43.130.194', 'tags': [], 'project_id': '562bcdfff8924530ba2a31749145e53c'}} 2024-11-08 11:24:14,272 - INFO - Created VN ctest-vn-92228429 2024-11-08 11:24:14,332 - DEBUG - VN ctest-vn-92228429 UUID is 7247c3d8-1c11-4d68-a647-426b8fc8e756 2024-11-08 11:24:14,702 - DEBUG - Response for create_network : {'network': {'id': '35b958da-5e83-46b7-bd23-59d4f839eeb8', 'name': 'ctest-vn-18834572', 'tenant_id': '562bcdfff8924530ba2a31749145e53c', 'project_id': '562bcdfff8924530ba2a31749145e53c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25667001', 'ctest-vn-18834572'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 11:24:14,919 - DEBUG - Response for create_subnet : {'subnet': {'id': '0d989140-3557-44cf-b6c3-b9f6aace3158', 'name': '', 'tenant_id': '562bcdfff8924530ba2a31749145e53c', 'network_id': '35b958da-5e83-46b7-bd23-59d4f839eeb8', 'ip_version': 4, 'cidr': '43.78.78.192/26', 'allocation_pools': [{'start': '43.78.78.194', 'end': '43.78.78.254'}], 'gateway_ip': '43.78.78.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '43.78.78.194', 'tags': [], 'project_id': '562bcdfff8924530ba2a31749145e53c'}} 2024-11-08 11:24:14,942 - INFO - Created VN ctest-vn-18834572 2024-11-08 11:24:15,004 - DEBUG - VN ctest-vn-18834572 UUID is 35b958da-5e83-46b7-bd23-59d4f839eeb8 2024-11-08 11:24:15,142 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-25667001:ctest-vn-92228429, 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-25667001:ctest-vn-18834572, 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-11-08 11:24:15,474 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7247c3d8-1c11-4d68-a647-426b8fc8e756', 'name': 'ctest-vn-92228429', 'tenant_id': '562bcdfff8924530ba2a31749145e53c', 'project_id': '562bcdfff8924530ba2a31749145e53c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cce200ef-4dc3-48f6-8a69-c4bb6d3e4ed9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25667001', 'ctest-vn-92228429'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25667001', 'ctest-policy-allow-all-69491276']], 'subnet_ipam': [{'subnet_cidr': '170.43.130.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-08 11:24:15,711 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '35b958da-5e83-46b7-bd23-59d4f839eeb8', 'name': 'ctest-vn-18834572', 'tenant_id': '562bcdfff8924530ba2a31749145e53c', 'project_id': '562bcdfff8924530ba2a31749145e53c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0d989140-3557-44cf-b6c3-b9f6aace3158'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25667001', 'ctest-vn-18834572'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25667001', 'ctest-policy-allow-all-69491276']], 'subnet_ipam': [{'subnet_cidr': '43.78.78.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-08 11:24:15,892 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2024-11-08 11:24:16,209 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2024-11-08 11:24:16,254 - DEBUG - Requesting: http://10.0.0.46:8082/domain/1b5e77f0-428f-4cfb-992d-86c89513a3d5 2024-11-08 11:24:16,271 - DEBUG - Requesting: http://10.0.0.46:8082/project/562bcdff-f892-4530-ba2a-31749145e53c 2024-11-08 11:24:16,363 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/7247c3d8-1c11-4d68-a647-426b8fc8e756 2024-11-08 11:24:16,382 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/7247c3d8-1c11-4d68-a647-426b8fc8e756 2024-11-08 11:24:16,398 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/40943b8c-e656-4513-bd1b-73c95a3f14ae 2024-11-08 11:24:16,410 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/40943b8c-e656-4513-bd1b-73c95a3f14ae 2024-11-08 11:24:16,420 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/99ef8f36-3671-4e2d-9490-a4128cb8b6e7 2024-11-08 11:24:16,430 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-08 11:24:16,430 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/7247c3d8-1c11-4d68-a647-426b8fc8e756 2024-11-08 11:24:16,444 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/40943b8c-e656-4513-bd1b-73c95a3f14ae 2024-11-08 11:24:16,468 - INFO - Verified VN network id 8 for VN 7247c3d8-1c11-4d68-a647-426b8fc8e756 2024-11-08 11:24:16,468 - INFO - Verifications in API Server for VN ctest-vn-92228429 passed 2024-11-08 11:24:16,468 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/7247c3d8-1c11-4d68-a647-426b8fc8e756 2024-11-08 11:24:16,483 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/40943b8c-e656-4513-bd1b-73c95a3f14ae 2024-11-08 11:24:16,494 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/40943b8c-e656-4513-bd1b-73c95a3f14ae 2024-11-08 11:24:16,504 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/99ef8f36-3671-4e2d-9490-a4128cb8b6e7 2024-11-08 11:24:16,520 - DEBUG - Control-node 10.0.0.46 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25667001:ctest-vn-92228429', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25667001', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8234765776621489512', 'uuid-lslong': '11981618363383736150'}, 'enable': 'true', 'created': '2024-11-08T11:24:14', 'last-modified': '2024-11-08T11:24:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.072323'} 2024-11-08 11:24:16,527 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-08 11:24:16,527 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92228429 passed 2024-11-08 11:24:16,528 - DEBUG - ====Verifying policy data for ctest-vn-92228429 in API_Server ====== 2024-11-08 11:24:16,528 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2024-11-08 11:24:16,536 - DEBUG - Requesting: http://10.0.0.46:8082/domain/1b5e77f0-428f-4cfb-992d-86c89513a3d5 2024-11-08 11:24:16,554 - DEBUG - Requesting: http://10.0.0.46:8082/project/562bcdff-f892-4530-ba2a-31749145e53c 2024-11-08 11:24:16,640 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/7247c3d8-1c11-4d68-a647-426b8fc8e756 2024-11-08 11:24:16,656 - DEBUG - ==>Verifying data for policy with id: 73c12d93-8a0a-4342-b98e-e33b92e9fa46, fqn: ['default-domain', 'ctest-TestBasicPolicy-25667001', 'ctest-policy-allow-all-69491276'] 2024-11-08 11:24:16,656 - INFO - VN ctest-vn-92228429 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-08 11:24:16,656 - DEBUG - Verifying the vn in opserver 2024-11-08 11:24:16,656 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25667001:ctest-vn-92228429 virtual network link through opserver 10.0.0.46 2024-11-08 11:24:16,656 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks 2024-11-08 11:24:16,963 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks 2024-11-08 11:24:17,042 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25667001:ctest-vn-92228429', 'href': 'http://10.0.0.46:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25667001:ctest-vn-92228429?flat'} 2024-11-08 11:24:17,042 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25667001:ctest-vn-92228429 is found in opserver 2024-11-08 11:24:17,056 - DEBUG - Do not have enough data to verify VN in agent 2024-11-08 11:24:17,062 - DEBUG - VRF ids for VN ctest-vn-92228429: {} 2024-11-08 11:24:17,062 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2024-11-08 11:24:17,069 - DEBUG - Requesting: http://10.0.0.46:8082/domain/1b5e77f0-428f-4cfb-992d-86c89513a3d5 2024-11-08 11:24:17,086 - DEBUG - Requesting: http://10.0.0.46:8082/project/562bcdff-f892-4530-ba2a-31749145e53c 2024-11-08 11:24:17,174 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/35b958da-5e83-46b7-bd23-59d4f839eeb8 2024-11-08 11:24:17,192 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/35b958da-5e83-46b7-bd23-59d4f839eeb8 2024-11-08 11:24:17,208 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/98d8ba28-9a5a-4b95-b2e0-b45a063d3968 2024-11-08 11:24:17,218 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/98d8ba28-9a5a-4b95-b2e0-b45a063d3968 2024-11-08 11:24:17,227 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/7cedb749-7a64-493c-b4c7-c9eaeadcd614 2024-11-08 11:24:17,238 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-08 11:24:17,238 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/35b958da-5e83-46b7-bd23-59d4f839eeb8 2024-11-08 11:24:17,252 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/98d8ba28-9a5a-4b95-b2e0-b45a063d3968 2024-11-08 11:24:17,274 - INFO - Verified VN network id 9 for VN 35b958da-5e83-46b7-bd23-59d4f839eeb8 2024-11-08 11:24:17,274 - INFO - Verifications in API Server for VN ctest-vn-18834572 passed 2024-11-08 11:24:17,275 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/35b958da-5e83-46b7-bd23-59d4f839eeb8 2024-11-08 11:24:17,290 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/98d8ba28-9a5a-4b95-b2e0-b45a063d3968 2024-11-08 11:24:17,299 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/98d8ba28-9a5a-4b95-b2e0-b45a063d3968 2024-11-08 11:24:17,309 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/7cedb749-7a64-493c-b4c7-c9eaeadcd614 2024-11-08 11:24:17,328 - DEBUG - Control-node 10.0.0.46 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25667001:ctest-vn-18834572', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25667001', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3871223049613428407', 'uuid-lslong': '13628835668585737912'}, 'enable': 'true', 'created': '2024-11-08T11:24:14', 'last-modified': '2024-11-08T11:24:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.639314'} 2024-11-08 11:24:17,336 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-08 11:24:17,336 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18834572 passed 2024-11-08 11:24:17,337 - DEBUG - ====Verifying policy data for ctest-vn-18834572 in API_Server ====== 2024-11-08 11:24:17,337 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2024-11-08 11:24:17,345 - DEBUG - Requesting: http://10.0.0.46:8082/domain/1b5e77f0-428f-4cfb-992d-86c89513a3d5 2024-11-08 11:24:17,364 - DEBUG - Requesting: http://10.0.0.46:8082/project/562bcdff-f892-4530-ba2a-31749145e53c 2024-11-08 11:24:17,455 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/35b958da-5e83-46b7-bd23-59d4f839eeb8 2024-11-08 11:24:17,470 - DEBUG - ==>Verifying data for policy with id: 73c12d93-8a0a-4342-b98e-e33b92e9fa46, fqn: ['default-domain', 'ctest-TestBasicPolicy-25667001', 'ctest-policy-allow-all-69491276'] 2024-11-08 11:24:17,470 - INFO - VN ctest-vn-18834572 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-08 11:24:17,470 - DEBUG - Verifying the vn in opserver 2024-11-08 11:24:17,470 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25667001:ctest-vn-18834572 virtual network link through opserver 10.0.0.46 2024-11-08 11:24:17,470 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks 2024-11-08 11:24:17,483 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25667001:ctest-vn-18834572', 'href': 'http://10.0.0.46:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25667001:ctest-vn-18834572?flat'} 2024-11-08 11:24:17,483 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25667001:ctest-vn-18834572 is found in opserver 2024-11-08 11:24:17,497 - DEBUG - Do not have enough data to verify VN in agent 2024-11-08 11:24:17,504 - DEBUG - VRF ids for VN ctest-vn-18834572: {} 2024-11-08 11:24:17,568 - DEBUG - Services list from nova: [, , ] 2024-11-08 11:24:18,772 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2225-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2225-1) 2024-11-08 11:24:19,997 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2225-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2225-1) 2024-11-08 11:24:19,997 - INFO - Waiting for VM ctest-TestBasicPolicy-25667001-02805815 to be up.. 2024-11-08 11:24:20,095 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-08 11:24:25,192 - DEBUG - VM is in ACTIVE state now 2024-11-08 11:24:25,192 - INFO - VM name : ctest-TestBasicPolicy-25667001-02805815 2024-11-08 11:24:25,302 - DEBUG - VM ctest-TestBasicPolicy-25667001-02805815 ID is 0b3e2c6f-2914-428e-a505-b1828939c80c 2024-11-08 11:24:25,325 - DEBUG - VM ctest-TestBasicPolicy-25667001-02805815 launched on Node cn-jenkins-deploy-platform-ansible-os-2225-1 2024-11-08 11:24:25,418 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine/0b3e2c6f-2914-428e-a505-b1828939c80c 2024-11-08 11:24:25,429 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine-interface/79bef2de-864d-483a-8207-e2abe5a6eb99 2024-11-08 11:24:28,652 - 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 1002ms') 2024-11-08 11:24:28,652 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-25667001-02805815 failed! 2024-11-08 11:24:28,712 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-25667001:ctest-vn-92228429 is 170.43.130.193 and allocation pool is NOT set 2024-11-08 11:24:30,772 - 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.72 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.482 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.482/2.101/3.721/1.619 ms') 2024-11-08 11:24:30,772 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-25667001-02805815 passed 2024-11-08 11:24:30,936 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 11:24:30,936 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-25667001-02805815, IP 170.43.130.195, Port 22 2024-11-08 11:24:31,104 - DEBUG - VM ctest-TestBasicPolicy-25667001-02805815 is ready for SSH connections 2024-11-08 11:24:31,105 - INFO - Waiting for VM ctest-TestBasicPolicy-25667001-25189556 to be up.. 2024-11-08 11:24:31,203 - DEBUG - VM is in ACTIVE state now 2024-11-08 11:24:31,203 - INFO - VM name : ctest-TestBasicPolicy-25667001-25189556 2024-11-08 11:24:31,285 - DEBUG - VM ctest-TestBasicPolicy-25667001-25189556 ID is e571e75b-d562-47e1-bc26-e99da291fc59 2024-11-08 11:24:31,286 - DEBUG - VM ctest-TestBasicPolicy-25667001-25189556 launched on Node cn-jenkins-deploy-platform-ansible-os-2225-1 2024-11-08 11:24:31,372 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine/e571e75b-d562-47e1-bc26-e99da291fc59 2024-11-08 11:24:31,385 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine-interface/05e55036-56fa-4692-9753-b5ce503cc0a1 2024-11-08 11:24:32,644 - 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.68 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.453 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.453/1.567/2.681/1.114 ms') 2024-11-08 11:24:32,644 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-25667001-25189556 passed 2024-11-08 11:24:32,800 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 11:24:32,800 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-25667001-25189556, IP 43.78.78.195, Port 22 2024-11-08 11:24:32,960 - DEBUG - VM ctest-TestBasicPolicy-25667001-25189556 is ready for SSH connections 2024-11-08 11:24:32,960 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 11:24:32,960 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 43.78.78.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.46, gateway password: c0ntrail123 2024-11-08 11:24:32,960 - DEBUG - ping -s 56 -c 3 -W 1 43.78.78.195 2024-11-08 11:24:37,024 - DEBUG - PING 43.78.78.195 (43.78.78.195): 56 data bytes 64 bytes from 43.78.78.195: seq=0 ttl=63 time=3.673 ms 64 bytes from 43.78.78.195: seq=1 ttl=63 time=1.138 ms 64 bytes from 43.78.78.195: seq=2 ttl=63 time=0.993 ms --- 43.78.78.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.993/1.934/3.673 ms 2024-11-08 11:24:37,024 - INFO - Ping to IP 43.78.78.195 from VM ctest-TestBasicPolicy-25667001-02805815 passed 2024-11-08 11:24:37,216 - DEBUG - Policy Update Response {"network-policy": {"uuid": "73c12d93-8a0a-4342-b98e-e33b92e9fa46", "href": "http://10.0.0.46:8082/network-policy/73c12d93-8a0a-4342-b98e-e33b92e9fa46"}} 2024-11-08 11:24:37,216 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 11:24:37,216 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 43.78.78.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.46, gateway password: c0ntrail123 2024-11-08 11:24:37,216 - DEBUG - ping -s 56 -c 3 -W 1 43.78.78.195 2024-11-08 11:24:40,435 - DEBUG - PING 43.78.78.195 (43.78.78.195): 56 data bytes --- 43.78.78.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-11-08 11:24:40,436 - WARNING - Ping to IP 43.78.78.195 from VM ctest-TestBasicPolicy-25667001-02805815 failed 2024-11-08 11:24:40,436 - INFO - Deleting VM ctest-TestBasicPolicy-25667001-25189556 2024-11-08 11:24:40,500 - INFO - Deleting VM ctest-TestBasicPolicy-25667001-02805815 2024-11-08 11:24:40,932 - INFO - Deleted policy ctest-policy-allow-all-69491276 2024-11-08 11:24:40,932 - INFO - Deleting VN ctest-vn-18834572 2024-11-08 11:24:40,971 - DEBUG - VN 35b958da-5e83-46b7-bd23-59d4f839eeb8 still in use: Unable to complete operation on network 35b958da-5e83-46b7-bd23-59d4f839eeb8. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d4234520-7a0e-47a8-ba61-f067850c0b57'] 2024-11-08 11:24:40,971 - WARNING - Deleting VN ctest-vn-18834572 failed..Will retry 2024-11-08 11:24:43,087 - DEBUG - Response for deleting network () 2024-11-08 11:24:43,087 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/98d8ba28-9a5a-4b95-b2e0-b45a063d3968 2024-11-08 11:24:43,093 - DEBUG - Response Code: 404 2024-11-08 11:24:43,093 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2024-11-08 11:24:43,100 - DEBUG - Requesting: http://10.0.0.46:8082/domain/1b5e77f0-428f-4cfb-992d-86c89513a3d5 2024-11-08 11:24:43,154 - DEBUG - Requesting: http://10.0.0.46:8082/project/562bcdff-f892-4530-ba2a-31749145e53c 2024-11-08 11:24:43,240 - INFO - Validated that VN ctest-vn-18834572 is not found in API Server 2024-11-08 11:24:43,255 - DEBUG - VN ctest-vn-18834572 is not present in Agent 10.0.0.46 2024-11-08 11:24:43,255 - INFO - Validated that VN ctest-vn-18834572 is not in any agent 2024-11-08 11:24:43,272 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-18834572 info 2024-11-08 11:24:43,273 - INFO - Deleting VN ctest-vn-92228429 2024-11-08 11:24:43,391 - DEBUG - Response for deleting network () 2024-11-08 11:24:43,391 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/40943b8c-e656-4513-bd1b-73c95a3f14ae 2024-11-08 11:24:43,397 - DEBUG - Response Code: 404 2024-11-08 11:24:43,398 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2024-11-08 11:24:43,406 - DEBUG - Requesting: http://10.0.0.46:8082/domain/1b5e77f0-428f-4cfb-992d-86c89513a3d5 2024-11-08 11:24:43,463 - DEBUG - Requesting: http://10.0.0.46:8082/project/562bcdff-f892-4530-ba2a-31749145e53c 2024-11-08 11:24:43,546 - INFO - Validated that VN ctest-vn-92228429 is not found in API Server 2024-11-08 11:24:43,562 - DEBUG - VN ctest-vn-92228429 is not present in Agent 10.0.0.46 2024-11-08 11:24:43,562 - INFO - Validated that VN ctest-vn-92228429 is not in any agent 2024-11-08 11:24:43,580 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-92228429 info 2024-11-08 11:24:43,834 - DEBUG - No XMPP flaps were noticed during the test
2024-11-08 11:24:43,834 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-11-08 11:24:43,834 - INFO - -------------------------------------------------------------------------------- 2024-11-08 11:24:44,589 - INFO - Deleted project: ctest-TestBasicPolicy-25667001, ID : 562bcdff-f892-4530-ba2a-31749145e53c