2024-10-28 16:31:09,501 - INFO - Domain Default found not creating 2024-10-28 16:31:09,687 - INFO - Project ctest-TestBasicPolicy-44007831 not found, creating it 2024-10-28 16:31:10,250 - INFO - Created Project:ctest-TestBasicPolicy-44007831, ID : 498c77dc-71a7-4284-8637-5c3240ab72f6 2024-10-28 16:31:11,854 - INFO - ================================================================================ 2024-10-28 16:31:11,854 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-28 16:31:11,854 - 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-28 16:31:12,115 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.31': '0'}} with 2024-10-28 16:31:12,115 - INFO - Initial checks done. Running the testcase now 2024-10-28 16:31:12,115 - INFO - 2024-10-28 16:31:12,795 - DEBUG - Response for create_network : {'network': {'id': '62f67b78-ecd1-4194-a912-56fdfd489d95', 'name': 'ctest-vn-86494652', 'tenant_id': '498c77dc71a7428486375c3240ab72f6', 'project_id': '498c77dc71a7428486375c3240ab72f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44007831', 'ctest-vn-86494652'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 16:31:12,967 - DEBUG - Response for create_subnet : {'subnet': {'id': '55080487-c395-4e36-a06a-b1552d815f84', 'name': '', 'tenant_id': '498c77dc71a7428486375c3240ab72f6', 'network_id': '62f67b78-ecd1-4194-a912-56fdfd489d95', 'ip_version': 4, 'cidr': '167.255.29.64/26', 'allocation_pools': [{'start': '167.255.29.66', 'end': '167.255.29.126'}], 'gateway_ip': '167.255.29.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.255.29.66', 'tags': [], 'project_id': '498c77dc71a7428486375c3240ab72f6'}} 2024-10-28 16:31:12,990 - INFO - Created VN ctest-vn-86494652 2024-10-28 16:31:13,048 - DEBUG - VN ctest-vn-86494652 UUID is 62f67b78-ecd1-4194-a912-56fdfd489d95 2024-10-28 16:31:13,399 - DEBUG - Response for create_network : {'network': {'id': '077d091c-2cdc-4256-b4d2-fd6f44e1ff12', 'name': 'ctest-vn-56783079', 'tenant_id': '498c77dc71a7428486375c3240ab72f6', 'project_id': '498c77dc71a7428486375c3240ab72f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44007831', 'ctest-vn-56783079'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 16:31:13,607 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b0267271-b525-40e8-ae2f-50a33488593d', 'name': '', 'tenant_id': '498c77dc71a7428486375c3240ab72f6', 'network_id': '077d091c-2cdc-4256-b4d2-fd6f44e1ff12', 'ip_version': 4, 'cidr': '79.18.142.128/26', 'allocation_pools': [{'start': '79.18.142.130', 'end': '79.18.142.190'}], 'gateway_ip': '79.18.142.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.18.142.130', 'tags': [], 'project_id': '498c77dc71a7428486375c3240ab72f6'}} 2024-10-28 16:31:13,631 - INFO - Created VN ctest-vn-56783079 2024-10-28 16:31:13,692 - DEBUG - VN ctest-vn-56783079 UUID is 077d091c-2cdc-4256-b4d2-fd6f44e1ff12 2024-10-28 16:31:13,833 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-44007831:ctest-vn-86494652, 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-44007831:ctest-vn-56783079, 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-28 16:31:14,166 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '62f67b78-ecd1-4194-a912-56fdfd489d95', 'name': 'ctest-vn-86494652', 'tenant_id': '498c77dc71a7428486375c3240ab72f6', 'project_id': '498c77dc71a7428486375c3240ab72f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['55080487-c395-4e36-a06a-b1552d815f84'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44007831', 'ctest-vn-86494652'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44007831', 'ctest-policy-allow-all-07915570']], 'subnet_ipam': [{'subnet_cidr': '167.255.29.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-28 16:31:14,420 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '077d091c-2cdc-4256-b4d2-fd6f44e1ff12', 'name': 'ctest-vn-56783079', 'tenant_id': '498c77dc71a7428486375c3240ab72f6', 'project_id': '498c77dc71a7428486375c3240ab72f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b0267271-b525-40e8-ae2f-50a33488593d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44007831', 'ctest-vn-56783079'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44007831', 'ctest-policy-allow-all-07915570']], 'subnet_ipam': [{'subnet_cidr': '79.18.142.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-28 16:31:14,564 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-10-28 16:31:14,886 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-10-28 16:31:14,921 - DEBUG - Requesting: http://10.0.0.40:8082/domain/5274d552-d800-4c4f-90d0-debc9940531b 2024-10-28 16:31:14,938 - DEBUG - Requesting: http://10.0.0.40:8082/project/498c77dc-71a7-4284-8637-5c3240ab72f6 2024-10-28 16:31:15,034 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/62f67b78-ecd1-4194-a912-56fdfd489d95 2024-10-28 16:31:15,052 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/62f67b78-ecd1-4194-a912-56fdfd489d95 2024-10-28 16:31:15,069 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/bfacfe90-1dc6-45ba-8b9e-2bd77f69646c 2024-10-28 16:31:15,081 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/bfacfe90-1dc6-45ba-8b9e-2bd77f69646c 2024-10-28 16:31:15,091 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/4906fc3b-cd48-4aa3-8cd6-5ace149aab65 2024-10-28 16:31:15,103 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-28 16:31:15,103 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/62f67b78-ecd1-4194-a912-56fdfd489d95 2024-10-28 16:31:15,120 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/bfacfe90-1dc6-45ba-8b9e-2bd77f69646c 2024-10-28 16:31:15,141 - INFO - Verified VN network id 8 for VN 62f67b78-ecd1-4194-a912-56fdfd489d95 2024-10-28 16:31:15,142 - INFO - Verifications in API Server for VN ctest-vn-86494652 passed 2024-10-28 16:31:15,142 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/62f67b78-ecd1-4194-a912-56fdfd489d95 2024-10-28 16:31:15,157 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/bfacfe90-1dc6-45ba-8b9e-2bd77f69646c 2024-10-28 16:31:15,169 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/bfacfe90-1dc6-45ba-8b9e-2bd77f69646c 2024-10-28 16:31:15,178 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/4906fc3b-cd48-4aa3-8cd6-5ace149aab65 2024-10-28 16:31:15,193 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44007831:ctest-vn-86494652', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44007831', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7131022819287187860', 'uuid-lslong': '12182895590866722197'}, 'enable': 'true', 'created': '2024-10-28T16:31:12', 'last-modified': '2024-10-28T16:31:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.057718'} 2024-10-28 16:31:15,201 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-28 16:31:15,202 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86494652 passed 2024-10-28 16:31:15,202 - DEBUG - ====Verifying policy data for ctest-vn-86494652 in API_Server ====== 2024-10-28 16:31:15,202 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-10-28 16:31:15,208 - DEBUG - Requesting: http://10.0.0.40:8082/domain/5274d552-d800-4c4f-90d0-debc9940531b 2024-10-28 16:31:15,222 - DEBUG - Requesting: http://10.0.0.40:8082/project/498c77dc-71a7-4284-8637-5c3240ab72f6 2024-10-28 16:31:15,307 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/62f67b78-ecd1-4194-a912-56fdfd489d95 2024-10-28 16:31:15,327 - DEBUG - ==>Verifying data for policy with id: 3e38998f-5bf3-4e49-b643-baa4b4128d7a, fqn: ['default-domain', 'ctest-TestBasicPolicy-44007831', 'ctest-policy-allow-all-07915570'] 2024-10-28 16:31:15,328 - INFO - VN ctest-vn-86494652 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-28 16:31:15,329 - DEBUG - Verifying the vn in opserver 2024-10-28 16:31:15,329 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44007831:ctest-vn-86494652 virtual network link through opserver 10.0.0.40 2024-10-28 16:31:15,329 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2024-10-28 16:31:15,631 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2024-10-28 16:31:15,700 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44007831:ctest-vn-86494652', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44007831:ctest-vn-86494652?flat'} 2024-10-28 16:31:15,700 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44007831:ctest-vn-86494652 is found in opserver 2024-10-28 16:31:15,712 - DEBUG - Do not have enough data to verify VN in agent 2024-10-28 16:31:15,717 - DEBUG - VRF ids for VN ctest-vn-86494652: {} 2024-10-28 16:31:15,718 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-10-28 16:31:15,724 - DEBUG - Requesting: http://10.0.0.40:8082/domain/5274d552-d800-4c4f-90d0-debc9940531b 2024-10-28 16:31:15,740 - DEBUG - Requesting: http://10.0.0.40:8082/project/498c77dc-71a7-4284-8637-5c3240ab72f6 2024-10-28 16:31:15,828 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/077d091c-2cdc-4256-b4d2-fd6f44e1ff12 2024-10-28 16:31:15,856 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/077d091c-2cdc-4256-b4d2-fd6f44e1ff12 2024-10-28 16:31:15,871 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/bb680454-ab56-47a0-a1b9-6b6bd3deb4f8 2024-10-28 16:31:15,881 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/bb680454-ab56-47a0-a1b9-6b6bd3deb4f8 2024-10-28 16:31:15,891 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/504cda9c-f276-4014-b337-ebc3d52dcc1a 2024-10-28 16:31:15,901 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-28 16:31:15,901 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/077d091c-2cdc-4256-b4d2-fd6f44e1ff12 2024-10-28 16:31:15,916 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/bb680454-ab56-47a0-a1b9-6b6bd3deb4f8 2024-10-28 16:31:15,943 - INFO - Verified VN network id 9 for VN 077d091c-2cdc-4256-b4d2-fd6f44e1ff12 2024-10-28 16:31:15,943 - INFO - Verifications in API Server for VN ctest-vn-56783079 passed 2024-10-28 16:31:15,943 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/077d091c-2cdc-4256-b4d2-fd6f44e1ff12 2024-10-28 16:31:15,961 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/bb680454-ab56-47a0-a1b9-6b6bd3deb4f8 2024-10-28 16:31:15,970 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/bb680454-ab56-47a0-a1b9-6b6bd3deb4f8 2024-10-28 16:31:15,980 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/504cda9c-f276-4014-b337-ebc3d52dcc1a 2024-10-28 16:31:15,996 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44007831:ctest-vn-56783079', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44007831', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '539597546970694230', 'uuid-lslong': '13029755326275125010'}, 'enable': 'true', 'created': '2024-10-28T16:31:13', 'last-modified': '2024-10-28T16:31:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.599349'} 2024-10-28 16:31:16,002 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-28 16:31:16,002 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56783079 passed 2024-10-28 16:31:16,003 - DEBUG - ====Verifying policy data for ctest-vn-56783079 in API_Server ====== 2024-10-28 16:31:16,003 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-10-28 16:31:16,009 - DEBUG - Requesting: http://10.0.0.40:8082/domain/5274d552-d800-4c4f-90d0-debc9940531b 2024-10-28 16:31:16,023 - DEBUG - Requesting: http://10.0.0.40:8082/project/498c77dc-71a7-4284-8637-5c3240ab72f6 2024-10-28 16:31:16,110 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/077d091c-2cdc-4256-b4d2-fd6f44e1ff12 2024-10-28 16:31:16,124 - DEBUG - ==>Verifying data for policy with id: 3e38998f-5bf3-4e49-b643-baa4b4128d7a, fqn: ['default-domain', 'ctest-TestBasicPolicy-44007831', 'ctest-policy-allow-all-07915570'] 2024-10-28 16:31:16,124 - INFO - VN ctest-vn-56783079 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-28 16:31:16,124 - DEBUG - Verifying the vn in opserver 2024-10-28 16:31:16,124 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44007831:ctest-vn-56783079 virtual network link through opserver 10.0.0.40 2024-10-28 16:31:16,124 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2024-10-28 16:31:16,136 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44007831:ctest-vn-56783079', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44007831:ctest-vn-56783079?flat'} 2024-10-28 16:31:16,136 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44007831:ctest-vn-56783079 is found in opserver 2024-10-28 16:31:16,148 - DEBUG - Do not have enough data to verify VN in agent 2024-10-28 16:31:16,155 - DEBUG - VRF ids for VN ctest-vn-56783079: {} 2024-10-28 16:31:16,221 - DEBUG - Services list from nova: [, , ] 2024-10-28 16:31:17,448 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2168-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2168-1) 2024-10-28 16:31:18,687 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2168-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2168-1) 2024-10-28 16:31:18,687 - INFO - Waiting for VM ctest-TestBasicPolicy-44007831-47740980 to be up.. 2024-10-28 16:31:18,805 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-28 16:31:23,900 - DEBUG - VM is in ACTIVE state now 2024-10-28 16:31:23,900 - INFO - VM name : ctest-TestBasicPolicy-44007831-47740980 2024-10-28 16:31:24,004 - DEBUG - VM ctest-TestBasicPolicy-44007831-47740980 ID is 63ae2477-65bb-4f42-803d-f8ce8239a3bc 2024-10-28 16:31:24,027 - DEBUG - VM ctest-TestBasicPolicy-44007831-47740980 launched on Node cn-jenkins-deploy-platform-ansible-os-2168-1 2024-10-28 16:31:24,125 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/63ae2477-65bb-4f42-803d-f8ce8239a3bc 2024-10-28 16:31:24,137 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/e6a26349-58f2-4e94-867c-c6bff12eac7b 2024-10-28 16:31:27,443 - 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-28 16:31:27,443 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-44007831-47740980 failed! 2024-10-28 16:31:27,508 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-44007831:ctest-vn-86494652 is 167.255.29.65 and allocation pool is NOT set 2024-10-28 16:31:29,575 - 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.72 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.450 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.450/3.084/5.718/2.634 ms') 2024-10-28 16:31:29,575 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-44007831-47740980 passed 2024-10-28 16:31:29,740 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 16:31:29,740 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-44007831-47740980, IP 167.255.29.67, Port 22 2024-10-28 16:31:29,917 - DEBUG - VM ctest-TestBasicPolicy-44007831-47740980 is ready for SSH connections 2024-10-28 16:31:29,918 - INFO - Waiting for VM ctest-TestBasicPolicy-44007831-52123653 to be up.. 2024-10-28 16:31:30,011 - DEBUG - VM is in ACTIVE state now 2024-10-28 16:31:30,011 - INFO - VM name : ctest-TestBasicPolicy-44007831-52123653 2024-10-28 16:31:30,099 - DEBUG - VM ctest-TestBasicPolicy-44007831-52123653 ID is 7c3cac06-d8cc-49d3-9067-5c29a835f09c 2024-10-28 16:31:30,099 - DEBUG - VM ctest-TestBasicPolicy-44007831-52123653 launched on Node cn-jenkins-deploy-platform-ansible-os-2168-1 2024-10-28 16:31:30,183 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/7c3cac06-d8cc-49d3-9067-5c29a835f09c 2024-10-28 16:31:30,194 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/98138b60-0747-4eb4-b99a-28396195b345 2024-10-28 16:31:31,456 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=3.64 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.982 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.982/2.312/3.642/1.330 ms') 2024-10-28 16:31:31,457 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-44007831-52123653 passed 2024-10-28 16:31:31,616 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 16:31:31,616 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-44007831-52123653, IP 79.18.142.131, Port 22 2024-10-28 16:31:31,783 - DEBUG - VM ctest-TestBasicPolicy-44007831-52123653 is ready for SSH connections 2024-10-28 16:31:31,783 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 16:31:31,783 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 79.18.142.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2024-10-28 16:31:31,783 - DEBUG - ping -s 56 -c 3 -W 1 79.18.142.131 2024-10-28 16:31:35,842 - DEBUG - PING 79.18.142.131 (79.18.142.131): 56 data bytes 64 bytes from 79.18.142.131: seq=0 ttl=63 time=3.889 ms 64 bytes from 79.18.142.131: seq=1 ttl=63 time=0.911 ms 64 bytes from 79.18.142.131: seq=2 ttl=63 time=1.279 ms --- 79.18.142.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.911/2.026/3.889 ms 2024-10-28 16:31:35,842 - INFO - Ping to IP 79.18.142.131 from VM ctest-TestBasicPolicy-44007831-47740980 passed 2024-10-28 16:31:36,044 - DEBUG - Policy Update Response {"network-policy": {"uuid": "3e38998f-5bf3-4e49-b643-baa4b4128d7a", "href": "http://10.0.0.40:8082/network-policy/3e38998f-5bf3-4e49-b643-baa4b4128d7a"}} 2024-10-28 16:31:36,044 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 16:31:36,044 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 79.18.142.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2024-10-28 16:31:36,044 - DEBUG - ping -s 56 -c 3 -W 1 79.18.142.131 2024-10-28 16:31:39,255 - DEBUG - PING 79.18.142.131 (79.18.142.131): 56 data bytes 64 bytes from 79.18.142.131: seq=0 ttl=63 time=1.502 ms --- 79.18.142.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.502/1.502/1.502 ms 2024-10-28 16:31:39,255 - WARNING - Ping to IP 79.18.142.131 from VM ctest-TestBasicPolicy-44007831-47740980 failed 2024-10-28 16:31:39,255 - INFO - Deleting VM ctest-TestBasicPolicy-44007831-52123653 2024-10-28 16:31:39,368 - INFO - Deleting VM ctest-TestBasicPolicy-44007831-47740980 2024-10-28 16:31:39,850 - INFO - Deleted policy ctest-policy-allow-all-07915570 2024-10-28 16:31:39,850 - INFO - Deleting VN ctest-vn-56783079 2024-10-28 16:31:39,902 - DEBUG - VN 077d091c-2cdc-4256-b4d2-fd6f44e1ff12 still in use: Unable to complete operation on network 077d091c-2cdc-4256-b4d2-fd6f44e1ff12. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-283d8a34-8962-4099-a8b0-e92ddbfae9d4'] 2024-10-28 16:31:39,902 - WARNING - Deleting VN ctest-vn-56783079 failed..Will retry 2024-10-28 16:31:42,025 - DEBUG - Response for deleting network () 2024-10-28 16:31:42,025 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/bb680454-ab56-47a0-a1b9-6b6bd3deb4f8 2024-10-28 16:31:42,032 - DEBUG - Response Code: 404 2024-10-28 16:31:42,032 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-10-28 16:31:42,038 - DEBUG - Requesting: http://10.0.0.40:8082/domain/5274d552-d800-4c4f-90d0-debc9940531b 2024-10-28 16:31:42,097 - DEBUG - Requesting: http://10.0.0.40:8082/project/498c77dc-71a7-4284-8637-5c3240ab72f6 2024-10-28 16:31:42,182 - INFO - Validated that VN ctest-vn-56783079 is not found in API Server 2024-10-28 16:31:42,196 - DEBUG - VN ctest-vn-56783079 is not present in Agent 10.0.0.40 2024-10-28 16:31:42,196 - INFO - Validated that VN ctest-vn-56783079 is not in any agent 2024-10-28 16:31:42,213 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-56783079 info 2024-10-28 16:31:42,213 - INFO - Deleting VN ctest-vn-86494652 2024-10-28 16:31:42,334 - DEBUG - Response for deleting network () 2024-10-28 16:31:42,334 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/bfacfe90-1dc6-45ba-8b9e-2bd77f69646c 2024-10-28 16:31:42,342 - DEBUG - Response Code: 404 2024-10-28 16:31:42,342 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-10-28 16:31:42,349 - DEBUG - Requesting: http://10.0.0.40:8082/domain/5274d552-d800-4c4f-90d0-debc9940531b 2024-10-28 16:31:42,411 - DEBUG - Requesting: http://10.0.0.40:8082/project/498c77dc-71a7-4284-8637-5c3240ab72f6 2024-10-28 16:31:42,489 - INFO - Validated that VN ctest-vn-86494652 is not found in API Server 2024-10-28 16:31:42,501 - DEBUG - VN ctest-vn-86494652 is not present in Agent 10.0.0.40 2024-10-28 16:31:42,501 - INFO - Validated that VN ctest-vn-86494652 is not in any agent 2024-10-28 16:31:42,520 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-86494652 info 2024-10-28 16:31:42,778 - DEBUG - No XMPP flaps were noticed during the test
2024-10-28 16:31:42,778 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2024-10-28 16:31:42,778 - INFO - -------------------------------------------------------------------------------- 2024-10-28 16:31:43,503 - INFO - Deleted project: ctest-TestBasicPolicy-44007831, ID : 498c77dc-71a7-4284-8637-5c3240ab72f6