2025-01-03 21:41:52,085 - INFO - Domain Default found not creating 2025-01-03 21:41:52,241 - INFO - Project ctest-TestBasicPolicy-26995545 not found, creating it 2025-01-03 21:41:52,695 - INFO - Created Project:ctest-TestBasicPolicy-26995545, ID : 99442d6d-40f4-4d5d-8a76-7b1bb1e8d4e9 2025-01-03 21:41:54,164 - INFO - ================================================================================ 2025-01-03 21:41:54,165 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-03 21:41:54,165 - 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 2025-01-03 21:41:54,422 - DEBUG - Nothing to compare xmpp stats {'10.0.0.52': {'10.20.0.19': '0'}} with 2025-01-03 21:41:54,422 - INFO - Initial checks done. Running the testcase now 2025-01-03 21:41:54,422 - INFO - 2025-01-03 21:41:54,976 - DEBUG - Response for create_network : {'network': {'id': '13099778-5954-4b70-8dd1-5d6660a3a3d1', 'name': 'ctest-vn-53637644', 'tenant_id': '99442d6d40f44d5d8a767b1bb1e8d4e9', 'project_id': '99442d6d40f44d5d8a767b1bb1e8d4e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26995545', 'ctest-vn-53637644'], 'port_security_enabled': True, 'description': ''}} 2025-01-03 21:41:55,197 - DEBUG - Response for create_subnet : {'subnet': {'id': '3565c1c1-aea7-4b92-9d9e-65fb7d6a85ce', 'name': '', 'tenant_id': '99442d6d40f44d5d8a767b1bb1e8d4e9', 'network_id': '13099778-5954-4b70-8dd1-5d6660a3a3d1', 'ip_version': 4, 'cidr': '59.248.129.128/26', 'allocation_pools': [{'start': '59.248.129.130', 'end': '59.248.129.190'}], 'gateway_ip': '59.248.129.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '59.248.129.130', 'tags': [], 'project_id': '99442d6d40f44d5d8a767b1bb1e8d4e9'}} 2025-01-03 21:41:55,215 - INFO - Created VN ctest-vn-53637644 2025-01-03 21:41:55,267 - DEBUG - VN ctest-vn-53637644 UUID is 13099778-5954-4b70-8dd1-5d6660a3a3d1 2025-01-03 21:41:55,555 - DEBUG - Response for create_network : {'network': {'id': 'abbc3b42-b06d-4810-b1b4-6f9123141d7c', 'name': 'ctest-vn-37593770', 'tenant_id': '99442d6d40f44d5d8a767b1bb1e8d4e9', 'project_id': '99442d6d40f44d5d8a767b1bb1e8d4e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26995545', 'ctest-vn-37593770'], 'port_security_enabled': True, 'description': ''}} 2025-01-03 21:41:55,721 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ce17e8de-d76b-41ad-81b8-69f790bf2125', 'name': '', 'tenant_id': '99442d6d40f44d5d8a767b1bb1e8d4e9', 'network_id': 'abbc3b42-b06d-4810-b1b4-6f9123141d7c', 'ip_version': 4, 'cidr': '126.182.109.0/26', 'allocation_pools': [{'start': '126.182.109.2', 'end': '126.182.109.62'}], 'gateway_ip': '126.182.109.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.182.109.2', 'tags': [], 'project_id': '99442d6d40f44d5d8a767b1bb1e8d4e9'}} 2025-01-03 21:41:55,739 - INFO - Created VN ctest-vn-37593770 2025-01-03 21:41:55,791 - DEBUG - VN ctest-vn-37593770 UUID is abbc3b42-b06d-4810-b1b4-6f9123141d7c 2025-01-03 21:41:55,906 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-26995545:ctest-vn-53637644, 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-26995545:ctest-vn-37593770, 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] 2025-01-03 21:41:56,213 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '13099778-5954-4b70-8dd1-5d6660a3a3d1', 'name': 'ctest-vn-53637644', 'tenant_id': '99442d6d40f44d5d8a767b1bb1e8d4e9', 'project_id': '99442d6d40f44d5d8a767b1bb1e8d4e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3565c1c1-aea7-4b92-9d9e-65fb7d6a85ce'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26995545', 'ctest-vn-53637644'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26995545', 'ctest-policy-allow-all-54186821']], 'subnet_ipam': [{'subnet_cidr': '59.248.129.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-03 21:41:56,463 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'abbc3b42-b06d-4810-b1b4-6f9123141d7c', 'name': 'ctest-vn-37593770', 'tenant_id': '99442d6d40f44d5d8a767b1bb1e8d4e9', 'project_id': '99442d6d40f44d5d8a767b1bb1e8d4e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ce17e8de-d76b-41ad-81b8-69f790bf2125'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26995545', 'ctest-vn-37593770'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26995545', 'ctest-policy-allow-all-54186821']], 'subnet_ipam': [{'subnet_cidr': '126.182.109.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-03 21:41:56,655 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2025-01-03 21:41:56,955 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2025-01-03 21:41:56,986 - DEBUG - Requesting: http://10.0.0.52:8082/domain/c1e8ab91-877e-45c2-abba-b4f1c80fc21f 2025-01-03 21:41:57,000 - DEBUG - Requesting: http://10.0.0.52:8082/project/99442d6d-40f4-4d5d-8a76-7b1bb1e8d4e9 2025-01-03 21:41:57,080 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/13099778-5954-4b70-8dd1-5d6660a3a3d1 2025-01-03 21:41:57,093 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/13099778-5954-4b70-8dd1-5d6660a3a3d1 2025-01-03 21:41:57,103 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/25331f4c-d4f7-46ea-b4e8-2ecf36456436 2025-01-03 21:41:57,111 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/25331f4c-d4f7-46ea-b4e8-2ecf36456436 2025-01-03 21:41:57,119 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/0c441575-c62d-489f-a596-736a9afddb28 2025-01-03 21:41:57,126 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-03 21:41:57,126 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/13099778-5954-4b70-8dd1-5d6660a3a3d1 2025-01-03 21:41:57,137 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/25331f4c-d4f7-46ea-b4e8-2ecf36456436 2025-01-03 21:41:57,153 - INFO - Verified VN network id 8 for VN 13099778-5954-4b70-8dd1-5d6660a3a3d1 2025-01-03 21:41:57,153 - INFO - Verifications in API Server for VN ctest-vn-53637644 passed 2025-01-03 21:41:57,153 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/13099778-5954-4b70-8dd1-5d6660a3a3d1 2025-01-03 21:41:57,165 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/25331f4c-d4f7-46ea-b4e8-2ecf36456436 2025-01-03 21:41:57,173 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/25331f4c-d4f7-46ea-b4e8-2ecf36456436 2025-01-03 21:41:57,186 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/0c441575-c62d-489f-a596-736a9afddb28 2025-01-03 21:41:57,205 - DEBUG - Control-node 10.0.0.52 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26995545:ctest-vn-53637644', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26995545', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1371794104661592944', 'uuid-lslong': '10219051723769750481'}, 'enable': 'true', 'created': '2025-01-03T21:41:54', 'last-modified': '2025-01-03T21:41:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.020527'} 2025-01-03 21:41:57,213 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-03 21:41:57,213 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53637644 passed 2025-01-03 21:41:57,213 - DEBUG - ====Verifying policy data for ctest-vn-53637644 in API_Server ====== 2025-01-03 21:41:57,213 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2025-01-03 21:41:57,220 - DEBUG - Requesting: http://10.0.0.52:8082/domain/c1e8ab91-877e-45c2-abba-b4f1c80fc21f 2025-01-03 21:41:57,232 - DEBUG - Requesting: http://10.0.0.52:8082/project/99442d6d-40f4-4d5d-8a76-7b1bb1e8d4e9 2025-01-03 21:41:57,311 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/13099778-5954-4b70-8dd1-5d6660a3a3d1 2025-01-03 21:41:57,323 - DEBUG - ==>Verifying data for policy with id: 3de31940-aeea-4d3e-81fc-3cdbc3a5ecd2, fqn: ['default-domain', 'ctest-TestBasicPolicy-26995545', 'ctest-policy-allow-all-54186821'] 2025-01-03 21:41:57,323 - INFO - VN ctest-vn-53637644 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-03 21:41:57,323 - DEBUG - Verifying the vn in opserver 2025-01-03 21:41:57,323 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26995545:ctest-vn-53637644 virtual network link through opserver 10.0.0.52 2025-01-03 21:41:57,323 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks 2025-01-03 21:41:57,618 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks 2025-01-03 21:41:57,676 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26995545:ctest-vn-53637644', 'href': 'http://10.0.0.52:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26995545:ctest-vn-53637644?flat'} 2025-01-03 21:41:57,676 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26995545:ctest-vn-53637644 is found in opserver 2025-01-03 21:41:57,688 - DEBUG - Do not have enough data to verify VN in agent 2025-01-03 21:41:57,694 - DEBUG - VRF ids for VN ctest-vn-53637644: {} 2025-01-03 21:41:57,694 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2025-01-03 21:41:57,700 - DEBUG - Requesting: http://10.0.0.52:8082/domain/c1e8ab91-877e-45c2-abba-b4f1c80fc21f 2025-01-03 21:41:57,713 - DEBUG - Requesting: http://10.0.0.52:8082/project/99442d6d-40f4-4d5d-8a76-7b1bb1e8d4e9 2025-01-03 21:41:57,794 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/abbc3b42-b06d-4810-b1b4-6f9123141d7c 2025-01-03 21:41:57,807 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/abbc3b42-b06d-4810-b1b4-6f9123141d7c 2025-01-03 21:41:57,817 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/a372a59a-6d2f-4694-b737-f46f5f39612a 2025-01-03 21:41:57,825 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/a372a59a-6d2f-4694-b737-f46f5f39612a 2025-01-03 21:41:57,832 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/881ae094-f0bc-4b3e-b8a7-61f48f2ec931 2025-01-03 21:41:57,839 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-03 21:41:57,839 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/abbc3b42-b06d-4810-b1b4-6f9123141d7c 2025-01-03 21:41:57,848 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/a372a59a-6d2f-4694-b737-f46f5f39612a 2025-01-03 21:41:57,864 - INFO - Verified VN network id 9 for VN abbc3b42-b06d-4810-b1b4-6f9123141d7c 2025-01-03 21:41:57,864 - INFO - Verifications in API Server for VN ctest-vn-37593770 passed 2025-01-03 21:41:57,864 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/abbc3b42-b06d-4810-b1b4-6f9123141d7c 2025-01-03 21:41:57,875 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/a372a59a-6d2f-4694-b737-f46f5f39612a 2025-01-03 21:41:57,883 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/a372a59a-6d2f-4694-b737-f46f5f39612a 2025-01-03 21:41:57,891 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/881ae094-f0bc-4b3e-b8a7-61f48f2ec931 2025-01-03 21:41:57,904 - DEBUG - Control-node 10.0.0.52 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26995545:ctest-vn-37593770', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26995545', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12374831033721112592', 'uuid-lslong': '12804982309670624636'}, 'enable': 'true', 'created': '2025-01-03T21:41:55', 'last-modified': '2025-01-03T21:41:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.467999'} 2025-01-03 21:41:57,911 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-03 21:41:57,911 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37593770 passed 2025-01-03 21:41:57,911 - DEBUG - ====Verifying policy data for ctest-vn-37593770 in API_Server ====== 2025-01-03 21:41:57,911 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2025-01-03 21:41:57,917 - DEBUG - Requesting: http://10.0.0.52:8082/domain/c1e8ab91-877e-45c2-abba-b4f1c80fc21f 2025-01-03 21:41:57,934 - DEBUG - Requesting: http://10.0.0.52:8082/project/99442d6d-40f4-4d5d-8a76-7b1bb1e8d4e9 2025-01-03 21:41:58,013 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/abbc3b42-b06d-4810-b1b4-6f9123141d7c 2025-01-03 21:41:58,025 - DEBUG - ==>Verifying data for policy with id: 3de31940-aeea-4d3e-81fc-3cdbc3a5ecd2, fqn: ['default-domain', 'ctest-TestBasicPolicy-26995545', 'ctest-policy-allow-all-54186821'] 2025-01-03 21:41:58,025 - INFO - VN ctest-vn-37593770 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-03 21:41:58,025 - DEBUG - Verifying the vn in opserver 2025-01-03 21:41:58,025 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26995545:ctest-vn-37593770 virtual network link through opserver 10.0.0.52 2025-01-03 21:41:58,025 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks 2025-01-03 21:41:58,037 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26995545:ctest-vn-37593770', 'href': 'http://10.0.0.52:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26995545:ctest-vn-37593770?flat'} 2025-01-03 21:41:58,037 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26995545:ctest-vn-37593770 is found in opserver 2025-01-03 21:41:58,051 - DEBUG - Do not have enough data to verify VN in agent 2025-01-03 21:41:58,058 - DEBUG - VRF ids for VN ctest-vn-37593770: {} 2025-01-03 21:41:58,126 - DEBUG - Services list from nova: [, , ] 2025-01-03 21:41:59,264 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2521-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2521-1) 2025-01-03 21:42:00,425 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2521-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2521-1) 2025-01-03 21:42:00,425 - INFO - Waiting for VM ctest-TestBasicPolicy-26995545-31167128 to be up.. 2025-01-03 21:42:00,512 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-03 21:42:05,597 - DEBUG - VM is in ACTIVE state now 2025-01-03 21:42:05,597 - INFO - VM name : ctest-TestBasicPolicy-26995545-31167128 2025-01-03 21:42:05,679 - DEBUG - VM ctest-TestBasicPolicy-26995545-31167128 ID is c27d3d3d-b9bb-47f5-9b5c-1d5acae67e91 2025-01-03 21:42:05,701 - DEBUG - VM ctest-TestBasicPolicy-26995545-31167128 launched on Node cn-jenkins-deploy-platform-ansible-os-2521-1 2025-01-03 21:42:05,782 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine/c27d3d3d-b9bb-47f5-9b5c-1d5acae67e91 2025-01-03 21:42:05,792 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine-interface/9e418bfe-145c-46ae-8d33-d41a8e2d1d92 2025-01-03 21:42:09,070 - 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 1022ms') 2025-01-03 21:42:09,070 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-26995545-31167128 failed! 2025-01-03 21:42:09,127 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-26995545:ctest-vn-53637644 is 59.248.129.129 and allocation pool is NOT set 2025-01-03 21:42:11,184 - 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.670 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.670/2.333/3.996/1.663 ms') 2025-01-03 21:42:11,184 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-26995545-31167128 passed 2025-01-03 21:42:11,347 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-03 21:42:11,347 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-26995545-31167128, IP 59.248.129.131, Port 22 2025-01-03 21:42:11,503 - DEBUG - VM ctest-TestBasicPolicy-26995545-31167128 is ready for SSH connections 2025-01-03 21:42:11,503 - INFO - Waiting for VM ctest-TestBasicPolicy-26995545-34641971 to be up.. 2025-01-03 21:42:11,582 - DEBUG - VM is in ACTIVE state now 2025-01-03 21:42:11,582 - INFO - VM name : ctest-TestBasicPolicy-26995545-34641971 2025-01-03 21:42:11,655 - DEBUG - VM ctest-TestBasicPolicy-26995545-34641971 ID is 16c12e2a-6eaa-42cb-b919-87100e7f2357 2025-01-03 21:42:11,655 - DEBUG - VM ctest-TestBasicPolicy-26995545-34641971 launched on Node cn-jenkins-deploy-platform-ansible-os-2521-1 2025-01-03 21:42:11,730 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine/16c12e2a-6eaa-42cb-b919-87100e7f2357 2025-01-03 21:42:11,744 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine-interface/920cf703-2858-4bfd-a31e-d8cf57698ca4 2025-01-03 21:42:12,987 - 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.86 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.561 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.561/1.709/2.857/1.148 ms') 2025-01-03 21:42:12,987 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-26995545-34641971 passed 2025-01-03 21:42:13,139 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-03 21:42:13,140 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-26995545-34641971, IP 126.182.109.3, Port 22 2025-01-03 21:42:13,291 - DEBUG - VM ctest-TestBasicPolicy-26995545-34641971 is ready for SSH connections 2025-01-03 21:42:13,291 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-03 21:42:13,292 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 126.182.109.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.52, gateway password: c0ntrail123 2025-01-03 21:42:13,292 - DEBUG - ping -s 56 -c 3 -W 1 126.182.109.3 2025-01-03 21:42:17,331 - DEBUG - PING 126.182.109.3 (126.182.109.3): 56 data bytes 64 bytes from 126.182.109.3: seq=0 ttl=63 time=3.477 ms 64 bytes from 126.182.109.3: seq=1 ttl=63 time=1.208 ms 64 bytes from 126.182.109.3: seq=2 ttl=63 time=1.256 ms --- 126.182.109.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.208/1.980/3.477 ms 2025-01-03 21:42:17,331 - INFO - Ping to IP 126.182.109.3 from VM ctest-TestBasicPolicy-26995545-31167128 passed 2025-01-03 21:42:17,515 - DEBUG - Policy Update Response {"network-policy": {"uuid": "3de31940-aeea-4d3e-81fc-3cdbc3a5ecd2", "href": "http://10.0.0.52:8082/network-policy/3de31940-aeea-4d3e-81fc-3cdbc3a5ecd2"}} 2025-01-03 21:42:17,515 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-03 21:42:17,515 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 126.182.109.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.52, gateway password: c0ntrail123 2025-01-03 21:42:17,516 - DEBUG - ping -s 56 -c 3 -W 1 126.182.109.3 2025-01-03 21:42:20,719 - DEBUG - PING 126.182.109.3 (126.182.109.3): 56 data bytes 64 bytes from 126.182.109.3: seq=0 ttl=63 time=1.438 ms --- 126.182.109.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.438/1.438/1.438 ms 2025-01-03 21:42:20,719 - WARNING - Ping to IP 126.182.109.3 from VM ctest-TestBasicPolicy-26995545-31167128 failed 2025-01-03 21:42:20,719 - INFO - Deleting VM ctest-TestBasicPolicy-26995545-34641971 2025-01-03 21:42:20,792 - INFO - Deleting VM ctest-TestBasicPolicy-26995545-31167128 2025-01-03 21:42:21,174 - INFO - Deleted policy ctest-policy-allow-all-54186821 2025-01-03 21:42:21,174 - INFO - Deleting VN ctest-vn-37593770 2025-01-03 21:42:21,213 - DEBUG - VN abbc3b42-b06d-4810-b1b4-6f9123141d7c still in use: Unable to complete operation on network abbc3b42-b06d-4810-b1b4-6f9123141d7c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-253f531d-3b74-4dc0-8a05-ea39973cd503'] 2025-01-03 21:42:21,213 - WARNING - Deleting VN ctest-vn-37593770 failed..Will retry 2025-01-03 21:42:23,338 - DEBUG - Response for deleting network () 2025-01-03 21:42:23,338 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/a372a59a-6d2f-4694-b737-f46f5f39612a 2025-01-03 21:42:23,348 - DEBUG - Response Code: 404 2025-01-03 21:42:23,348 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2025-01-03 21:42:23,356 - DEBUG - Requesting: http://10.0.0.52:8082/domain/c1e8ab91-877e-45c2-abba-b4f1c80fc21f 2025-01-03 21:42:23,413 - DEBUG - Requesting: http://10.0.0.52:8082/project/99442d6d-40f4-4d5d-8a76-7b1bb1e8d4e9 2025-01-03 21:42:23,487 - INFO - Validated that VN ctest-vn-37593770 is not found in API Server 2025-01-03 21:42:23,500 - DEBUG - VN ctest-vn-37593770 is not present in Agent 10.0.0.52 2025-01-03 21:42:23,500 - INFO - Validated that VN ctest-vn-37593770 is not in any agent 2025-01-03 21:42:23,516 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-37593770 info 2025-01-03 21:42:23,516 - INFO - Deleting VN ctest-vn-53637644 2025-01-03 21:42:23,632 - DEBUG - Response for deleting network () 2025-01-03 21:42:23,632 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/25331f4c-d4f7-46ea-b4e8-2ecf36456436 2025-01-03 21:42:23,640 - DEBUG - Response Code: 404 2025-01-03 21:42:23,641 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2025-01-03 21:42:23,646 - DEBUG - Requesting: http://10.0.0.52:8082/domain/c1e8ab91-877e-45c2-abba-b4f1c80fc21f 2025-01-03 21:42:23,701 - DEBUG - Requesting: http://10.0.0.52:8082/project/99442d6d-40f4-4d5d-8a76-7b1bb1e8d4e9 2025-01-03 21:42:23,782 - INFO - Validated that VN ctest-vn-53637644 is not found in API Server 2025-01-03 21:42:23,793 - DEBUG - VN ctest-vn-53637644 is not present in Agent 10.0.0.52 2025-01-03 21:42:23,793 - INFO - Validated that VN ctest-vn-53637644 is not in any agent 2025-01-03 21:42:23,809 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-53637644 info 2025-01-03 21:42:24,065 - DEBUG - No XMPP flaps were noticed during the test
2025-01-03 21:42:24,065 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2025-01-03 21:42:24,066 - INFO - -------------------------------------------------------------------------------- 2025-01-03 21:42:24,745 - INFO - Deleted project: ctest-TestBasicPolicy-26995545, ID : 99442d6d-40f4-4d5d-8a76-7b1bb1e8d4e9