2024-10-19 09:06:16,054 - INFO - Domain Default found not creating 2024-10-19 09:06:16,251 - INFO - Project ctest-TestBasicPolicy-91446029 not found, creating it 2024-10-19 09:06:16,765 - INFO - Created Project:ctest-TestBasicPolicy-91446029, ID : 6ff9eb32-d108-4eb1-bec0-1be6349c63b4 2024-10-19 09:06:18,388 - INFO - ================================================================================ 2024-10-19 09:06:18,388 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-19 09:06:18,388 - 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-10-19 09:06:18,647 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.12': '0'}} with 2024-10-19 09:06:18,647 - INFO - Initial checks done. Running the testcase now 2024-10-19 09:06:18,648 - INFO - 2024-10-19 09:06:19,286 - DEBUG - Response for create_network : {'network': {'id': 'e782e152-7e0c-42b2-ba7d-cf75b7452a74', 'name': 'ctest-vn-74278288', 'tenant_id': '6ff9eb32d1084eb1bec01be6349c63b4', 'project_id': '6ff9eb32d1084eb1bec01be6349c63b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91446029', 'ctest-vn-74278288'], 'port_security_enabled': True, 'description': ''}} 2024-10-19 09:06:19,527 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ed02fc22-9795-4a99-b033-cb7f386d386a', 'name': '', 'tenant_id': '6ff9eb32d1084eb1bec01be6349c63b4', 'network_id': 'e782e152-7e0c-42b2-ba7d-cf75b7452a74', 'ip_version': 4, 'cidr': '220.188.202.128/26', 'allocation_pools': [{'start': '220.188.202.130', 'end': '220.188.202.190'}], 'gateway_ip': '220.188.202.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.188.202.130', 'tags': [], 'project_id': '6ff9eb32d1084eb1bec01be6349c63b4'}} 2024-10-19 09:06:19,549 - INFO - Created VN ctest-vn-74278288 2024-10-19 09:06:19,607 - DEBUG - VN ctest-vn-74278288 UUID is e782e152-7e0c-42b2-ba7d-cf75b7452a74 2024-10-19 09:06:19,942 - DEBUG - Response for create_network : {'network': {'id': '84a28208-2f02-493d-8fe1-68fdbe52716e', 'name': 'ctest-vn-26936667', 'tenant_id': '6ff9eb32d1084eb1bec01be6349c63b4', 'project_id': '6ff9eb32d1084eb1bec01be6349c63b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91446029', 'ctest-vn-26936667'], 'port_security_enabled': True, 'description': ''}} 2024-10-19 09:06:20,156 - DEBUG - Response for create_subnet : {'subnet': {'id': '07138db7-802b-4fd9-b8b3-1731fb4e6b7b', 'name': '', 'tenant_id': '6ff9eb32d1084eb1bec01be6349c63b4', 'network_id': '84a28208-2f02-493d-8fe1-68fdbe52716e', 'ip_version': 4, 'cidr': '84.101.52.64/26', 'allocation_pools': [{'start': '84.101.52.66', 'end': '84.101.52.126'}], 'gateway_ip': '84.101.52.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.101.52.66', 'tags': [], 'project_id': '6ff9eb32d1084eb1bec01be6349c63b4'}} 2024-10-19 09:06:20,182 - INFO - Created VN ctest-vn-26936667 2024-10-19 09:06:20,243 - DEBUG - VN ctest-vn-26936667 UUID is 84a28208-2f02-493d-8fe1-68fdbe52716e 2024-10-19 09:06:20,378 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-91446029:ctest-vn-74278288, 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-91446029:ctest-vn-26936667, 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-10-19 09:06:20,710 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e782e152-7e0c-42b2-ba7d-cf75b7452a74', 'name': 'ctest-vn-74278288', 'tenant_id': '6ff9eb32d1084eb1bec01be6349c63b4', 'project_id': '6ff9eb32d1084eb1bec01be6349c63b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ed02fc22-9795-4a99-b033-cb7f386d386a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91446029', 'ctest-vn-74278288'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91446029', 'ctest-policy-allow-all-06796046']], 'subnet_ipam': [{'subnet_cidr': '220.188.202.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-19 09:06:20,950 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '84a28208-2f02-493d-8fe1-68fdbe52716e', 'name': 'ctest-vn-26936667', 'tenant_id': '6ff9eb32d1084eb1bec01be6349c63b4', 'project_id': '6ff9eb32d1084eb1bec01be6349c63b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['07138db7-802b-4fd9-b8b3-1731fb4e6b7b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91446029', 'ctest-vn-26936667'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91446029', 'ctest-policy-allow-all-06796046']], 'subnet_ipam': [{'subnet_cidr': '84.101.52.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-19 09:06:21,127 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-10-19 09:06:21,433 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-10-19 09:06:21,471 - DEBUG - Requesting: http://10.0.0.30:8082/domain/78117453-d03f-4b02-a766-7e72cd3df68e 2024-10-19 09:06:21,487 - DEBUG - Requesting: http://10.0.0.30:8082/project/6ff9eb32-d108-4eb1-bec0-1be6349c63b4 2024-10-19 09:06:21,576 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/e782e152-7e0c-42b2-ba7d-cf75b7452a74 2024-10-19 09:06:21,593 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/e782e152-7e0c-42b2-ba7d-cf75b7452a74 2024-10-19 09:06:21,612 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/e2a200d8-a0a0-481a-9d88-47253e81c0c9 2024-10-19 09:06:21,623 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/e2a200d8-a0a0-481a-9d88-47253e81c0c9 2024-10-19 09:06:21,633 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/e1d58314-989b-495c-aaf2-d4fd697a5ce6 2024-10-19 09:06:21,641 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-19 09:06:21,641 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/e782e152-7e0c-42b2-ba7d-cf75b7452a74 2024-10-19 09:06:21,654 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/e2a200d8-a0a0-481a-9d88-47253e81c0c9 2024-10-19 09:06:21,673 - INFO - Verified VN network id 8 for VN e782e152-7e0c-42b2-ba7d-cf75b7452a74 2024-10-19 09:06:21,673 - INFO - Verifications in API Server for VN ctest-vn-74278288 passed 2024-10-19 09:06:21,673 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/e782e152-7e0c-42b2-ba7d-cf75b7452a74 2024-10-19 09:06:21,691 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/e2a200d8-a0a0-481a-9d88-47253e81c0c9 2024-10-19 09:06:21,701 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/e2a200d8-a0a0-481a-9d88-47253e81c0c9 2024-10-19 09:06:21,711 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/e1d58314-989b-495c-aaf2-d4fd697a5ce6 2024-10-19 09:06:21,726 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91446029:ctest-vn-74278288', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91446029', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16682143714152039090', 'uuid-lslong': '13438124967636314740'}, 'enable': 'true', 'created': '2024-10-19T09:06:19', 'last-modified': '2024-10-19T09:06:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.044891'} 2024-10-19 09:06:21,733 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-19 09:06:21,733 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74278288 passed 2024-10-19 09:06:21,734 - DEBUG - ====Verifying policy data for ctest-vn-74278288 in API_Server ====== 2024-10-19 09:06:21,734 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-10-19 09:06:21,741 - DEBUG - Requesting: http://10.0.0.30:8082/domain/78117453-d03f-4b02-a766-7e72cd3df68e 2024-10-19 09:06:21,755 - DEBUG - Requesting: http://10.0.0.30:8082/project/6ff9eb32-d108-4eb1-bec0-1be6349c63b4 2024-10-19 09:06:21,843 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/e782e152-7e0c-42b2-ba7d-cf75b7452a74 2024-10-19 09:06:21,858 - DEBUG - ==>Verifying data for policy with id: abf0cf98-36c2-4a40-a93c-ff434eaeba0f, fqn: ['default-domain', 'ctest-TestBasicPolicy-91446029', 'ctest-policy-allow-all-06796046'] 2024-10-19 09:06:21,858 - INFO - VN ctest-vn-74278288 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-19 09:06:21,858 - DEBUG - Verifying the vn in opserver 2024-10-19 09:06:21,858 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91446029:ctest-vn-74278288 virtual network link through opserver 10.0.0.30 2024-10-19 09:06:21,858 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2024-10-19 09:06:22,152 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2024-10-19 09:06:22,218 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91446029:ctest-vn-74278288', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91446029:ctest-vn-74278288?flat'} 2024-10-19 09:06:22,218 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91446029:ctest-vn-74278288 is found in opserver 2024-10-19 09:06:22,230 - DEBUG - Do not have enough data to verify VN in agent 2024-10-19 09:06:22,235 - DEBUG - VRF ids for VN ctest-vn-74278288: {} 2024-10-19 09:06:22,235 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-10-19 09:06:22,241 - DEBUG - Requesting: http://10.0.0.30:8082/domain/78117453-d03f-4b02-a766-7e72cd3df68e 2024-10-19 09:06:22,254 - DEBUG - Requesting: http://10.0.0.30:8082/project/6ff9eb32-d108-4eb1-bec0-1be6349c63b4 2024-10-19 09:06:22,334 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/84a28208-2f02-493d-8fe1-68fdbe52716e 2024-10-19 09:06:22,350 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/84a28208-2f02-493d-8fe1-68fdbe52716e 2024-10-19 09:06:22,363 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/c4068519-1315-4f38-ae1f-203cb3c355c1 2024-10-19 09:06:22,372 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/c4068519-1315-4f38-ae1f-203cb3c355c1 2024-10-19 09:06:22,380 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/7667c71c-56a5-4b36-867b-9b3ebb630ecc 2024-10-19 09:06:22,387 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-19 09:06:22,387 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/84a28208-2f02-493d-8fe1-68fdbe52716e 2024-10-19 09:06:22,404 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/c4068519-1315-4f38-ae1f-203cb3c355c1 2024-10-19 09:06:22,425 - INFO - Verified VN network id 9 for VN 84a28208-2f02-493d-8fe1-68fdbe52716e 2024-10-19 09:06:22,425 - INFO - Verifications in API Server for VN ctest-vn-26936667 passed 2024-10-19 09:06:22,425 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/84a28208-2f02-493d-8fe1-68fdbe52716e 2024-10-19 09:06:22,440 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/c4068519-1315-4f38-ae1f-203cb3c355c1 2024-10-19 09:06:22,450 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/c4068519-1315-4f38-ae1f-203cb3c355c1 2024-10-19 09:06:22,460 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/7667c71c-56a5-4b36-867b-9b3ebb630ecc 2024-10-19 09:06:22,475 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91446029:ctest-vn-26936667', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91446029', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9557344330893642045', 'uuid-lslong': '10367683256212681070'}, 'enable': 'true', 'created': '2024-10-19T09:06:19', 'last-modified': '2024-10-19T09:06:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.546555'} 2024-10-19 09:06:22,481 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-19 09:06:22,481 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26936667 passed 2024-10-19 09:06:22,481 - DEBUG - ====Verifying policy data for ctest-vn-26936667 in API_Server ====== 2024-10-19 09:06:22,482 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-10-19 09:06:22,488 - DEBUG - Requesting: http://10.0.0.30:8082/domain/78117453-d03f-4b02-a766-7e72cd3df68e 2024-10-19 09:06:22,505 - DEBUG - Requesting: http://10.0.0.30:8082/project/6ff9eb32-d108-4eb1-bec0-1be6349c63b4 2024-10-19 09:06:22,596 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/84a28208-2f02-493d-8fe1-68fdbe52716e 2024-10-19 09:06:22,613 - DEBUG - ==>Verifying data for policy with id: abf0cf98-36c2-4a40-a93c-ff434eaeba0f, fqn: ['default-domain', 'ctest-TestBasicPolicy-91446029', 'ctest-policy-allow-all-06796046'] 2024-10-19 09:06:22,613 - INFO - VN ctest-vn-26936667 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-19 09:06:22,614 - DEBUG - Verifying the vn in opserver 2024-10-19 09:06:22,614 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91446029:ctest-vn-26936667 virtual network link through opserver 10.0.0.30 2024-10-19 09:06:22,614 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2024-10-19 09:06:22,628 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91446029:ctest-vn-26936667', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91446029:ctest-vn-26936667?flat'} 2024-10-19 09:06:22,628 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91446029:ctest-vn-26936667 is found in opserver 2024-10-19 09:06:22,642 - DEBUG - Do not have enough data to verify VN in agent 2024-10-19 09:06:22,647 - DEBUG - VRF ids for VN ctest-vn-26936667: {} 2024-10-19 09:06:22,712 - DEBUG - Services list from nova: [, , ] 2024-10-19 09:06:23,882 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2115-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2115-1) 2024-10-19 09:06:25,073 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2115-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2115-1) 2024-10-19 09:06:25,073 - INFO - Waiting for VM ctest-TestBasicPolicy-91446029-22634508 to be up.. 2024-10-19 09:06:25,171 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-19 09:06:30,261 - DEBUG - VM is in ACTIVE state now 2024-10-19 09:06:30,261 - INFO - VM name : ctest-TestBasicPolicy-91446029-22634508 2024-10-19 09:06:30,343 - DEBUG - VM ctest-TestBasicPolicy-91446029-22634508 ID is fb53a508-b7f7-47f8-90f2-7d45eb574777 2024-10-19 09:06:30,364 - DEBUG - VM ctest-TestBasicPolicy-91446029-22634508 launched on Node cn-jenkins-deploy-platform-ansible-os-2115-1 2024-10-19 09:06:30,450 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/fb53a508-b7f7-47f8-90f2-7d45eb574777 2024-10-19 09:06:30,461 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/be1c6389-905e-477b-87ec-fd7418c69ab5 2024-10-19 09:06:33,694 - 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 1018ms') 2024-10-19 09:06:33,694 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-91446029-22634508 failed! 2024-10-19 09:06:33,760 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-91446029:ctest-vn-74278288 is 220.188.202.129 and allocation pool is NOT set 2024-10-19 09:06:35,831 - 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=5.56 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.521 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.521/3.039/5.557/2.518 ms') 2024-10-19 09:06:35,831 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-91446029-22634508 passed 2024-10-19 09:06:35,991 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-19 09:06:35,992 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-91446029-22634508, IP 220.188.202.131, Port 22 2024-10-19 09:06:36,151 - DEBUG - VM ctest-TestBasicPolicy-91446029-22634508 is ready for SSH connections 2024-10-19 09:06:36,151 - INFO - Waiting for VM ctest-TestBasicPolicy-91446029-29949579 to be up.. 2024-10-19 09:06:36,246 - DEBUG - VM is in ACTIVE state now 2024-10-19 09:06:36,246 - INFO - VM name : ctest-TestBasicPolicy-91446029-29949579 2024-10-19 09:06:36,340 - DEBUG - VM ctest-TestBasicPolicy-91446029-29949579 ID is 779be304-1ad8-41d4-85a7-a61142907d94 2024-10-19 09:06:36,340 - DEBUG - VM ctest-TestBasicPolicy-91446029-29949579 launched on Node cn-jenkins-deploy-platform-ansible-os-2115-1 2024-10-19 09:06:36,442 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/779be304-1ad8-41d4-85a7-a61142907d94 2024-10-19 09:06:36,454 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/af942e0f-42d4-45fa-8418-c28be7a80019 2024-10-19 09:06:37,725 - 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=8.37 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.921 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.921/4.644/8.367/3.723 ms') 2024-10-19 09:06:37,725 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-91446029-29949579 passed 2024-10-19 09:06:37,879 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-19 09:06:37,879 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-91446029-29949579, IP 84.101.52.67, Port 22 2024-10-19 09:06:38,035 - DEBUG - VM ctest-TestBasicPolicy-91446029-29949579 is ready for SSH connections 2024-10-19 09:06:38,035 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-19 09:06:38,036 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 84.101.52.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2024-10-19 09:06:38,036 - DEBUG - ping -s 56 -c 3 -W 1 84.101.52.67 2024-10-19 09:06:42,026 - DEBUG - PING 84.101.52.67 (84.101.52.67): 56 data bytes 64 bytes from 84.101.52.67: seq=0 ttl=63 time=6.436 ms 64 bytes from 84.101.52.67: seq=1 ttl=63 time=1.290 ms 64 bytes from 84.101.52.67: seq=2 ttl=63 time=1.160 ms --- 84.101.52.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.160/2.962/6.436 ms 2024-10-19 09:06:42,026 - INFO - Ping to IP 84.101.52.67 from VM ctest-TestBasicPolicy-91446029-22634508 passed 2024-10-19 09:06:42,219 - DEBUG - Policy Update Response {"network-policy": {"uuid": "abf0cf98-36c2-4a40-a93c-ff434eaeba0f", "href": "http://10.0.0.30:8082/network-policy/abf0cf98-36c2-4a40-a93c-ff434eaeba0f"}} 2024-10-19 09:06:42,219 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-19 09:06:42,219 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 84.101.52.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2024-10-19 09:06:42,219 - DEBUG - ping -s 56 -c 3 -W 1 84.101.52.67 2024-10-19 09:06:45,428 - DEBUG - PING 84.101.52.67 (84.101.52.67): 56 data bytes 64 bytes from 84.101.52.67: seq=0 ttl=63 time=1.598 ms --- 84.101.52.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.598/1.598/1.598 ms 2024-10-19 09:06:45,428 - WARNING - Ping to IP 84.101.52.67 from VM ctest-TestBasicPolicy-91446029-22634508 failed 2024-10-19 09:06:45,428 - INFO - Deleting VM ctest-TestBasicPolicy-91446029-29949579 2024-10-19 09:06:45,492 - INFO - Deleting VM ctest-TestBasicPolicy-91446029-22634508 2024-10-19 09:06:45,986 - INFO - Deleted policy ctest-policy-allow-all-06796046 2024-10-19 09:06:45,986 - INFO - Deleting VN ctest-vn-26936667 2024-10-19 09:06:46,031 - DEBUG - VN 84a28208-2f02-493d-8fe1-68fdbe52716e still in use: Unable to complete operation on network 84a28208-2f02-493d-8fe1-68fdbe52716e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-61a1ba71-ae41-4ed4-adbe-8e2ce3d38a98'] 2024-10-19 09:06:46,032 - WARNING - Deleting VN ctest-vn-26936667 failed..Will retry 2024-10-19 09:06:48,166 - DEBUG - Response for deleting network () 2024-10-19 09:06:48,166 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/c4068519-1315-4f38-ae1f-203cb3c355c1 2024-10-19 09:06:48,172 - DEBUG - Response Code: 404 2024-10-19 09:06:48,172 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-10-19 09:06:48,182 - DEBUG - Requesting: http://10.0.0.30:8082/domain/78117453-d03f-4b02-a766-7e72cd3df68e 2024-10-19 09:06:48,247 - DEBUG - Requesting: http://10.0.0.30:8082/project/6ff9eb32-d108-4eb1-bec0-1be6349c63b4 2024-10-19 09:06:48,341 - INFO - Validated that VN ctest-vn-26936667 is not found in API Server 2024-10-19 09:06:48,353 - DEBUG - VN ctest-vn-26936667 is not present in Agent 10.0.0.30 2024-10-19 09:06:48,353 - INFO - Validated that VN ctest-vn-26936667 is not in any agent 2024-10-19 09:06:48,370 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-26936667 info 2024-10-19 09:06:48,370 - INFO - Deleting VN ctest-vn-74278288 2024-10-19 09:06:48,496 - DEBUG - Response for deleting network () 2024-10-19 09:06:48,497 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/e2a200d8-a0a0-481a-9d88-47253e81c0c9 2024-10-19 09:06:48,503 - DEBUG - Response Code: 404 2024-10-19 09:06:48,504 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-10-19 09:06:48,511 - DEBUG - Requesting: http://10.0.0.30:8082/domain/78117453-d03f-4b02-a766-7e72cd3df68e 2024-10-19 09:06:48,566 - DEBUG - Requesting: http://10.0.0.30:8082/project/6ff9eb32-d108-4eb1-bec0-1be6349c63b4 2024-10-19 09:06:48,651 - INFO - Validated that VN ctest-vn-74278288 is not found in API Server 2024-10-19 09:06:48,663 - DEBUG - VN ctest-vn-74278288 is not present in Agent 10.0.0.30 2024-10-19 09:06:48,663 - INFO - Validated that VN ctest-vn-74278288 is not in any agent 2024-10-19 09:06:48,684 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-74278288 info 2024-10-19 09:06:48,941 - DEBUG - No XMPP flaps were noticed during the test
2024-10-19 09:06:48,941 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-10-19 09:06:48,941 - INFO - -------------------------------------------------------------------------------- 2024-10-19 09:06:49,677 - INFO - Deleted project: ctest-TestBasicPolicy-91446029, ID : 6ff9eb32-d108-4eb1-bec0-1be6349c63b4