2025-04-09 14:16:44,790 - INFO - Domain Default found not creating 2025-04-09 14:16:44,953 - INFO - Project ctest-TestBasicPolicy-49227628 not found, creating it 2025-04-09 14:16:45,424 - INFO - Created Project:ctest-TestBasicPolicy-49227628, ID : 4be8301d-6ba8-4fe8-8d33-1bfac85e20bb 2025-04-09 14:16:46,863 - INFO - ================================================================================ 2025-04-09 14:16:46,863 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-09 14:16:46,864 - 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-04-09 14:16:47,118 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with 2025-04-09 14:16:47,118 - INFO - Initial checks done. Running the testcase now 2025-04-09 14:16:47,118 - INFO - 2025-04-09 14:16:47,658 - DEBUG - Response for create_network : {'network': {'id': '98bc5b60-7463-4858-855a-d213aefd0115', 'name': 'ctest-vn-47038400', 'tenant_id': '4be8301d6ba84fe88d331bfac85e20bb', 'project_id': '4be8301d6ba84fe88d331bfac85e20bb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49227628', 'ctest-vn-47038400'], 'port_security_enabled': True, 'description': ''}} 2025-04-09 14:16:47,875 - DEBUG - Response for create_subnet : {'subnet': {'id': 'da2b04c1-127a-43f1-bae7-ba78b2b06c51', 'name': '', 'tenant_id': '4be8301d6ba84fe88d331bfac85e20bb', 'network_id': '98bc5b60-7463-4858-855a-d213aefd0115', 'ip_version': 4, 'cidr': '89.183.16.192/26', 'allocation_pools': [{'start': '89.183.16.194', 'end': '89.183.16.254'}], 'gateway_ip': '89.183.16.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '89.183.16.194', 'tags': [], 'project_id': '4be8301d6ba84fe88d331bfac85e20bb'}} 2025-04-09 14:16:47,893 - INFO - Created VN ctest-vn-47038400 2025-04-09 14:16:47,945 - DEBUG - VN ctest-vn-47038400 UUID is 98bc5b60-7463-4858-855a-d213aefd0115 2025-04-09 14:16:48,248 - DEBUG - Response for create_network : {'network': {'id': '9f279213-def4-4150-8324-31a71b85cfb3', 'name': 'ctest-vn-28771282', 'tenant_id': '4be8301d6ba84fe88d331bfac85e20bb', 'project_id': '4be8301d6ba84fe88d331bfac85e20bb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49227628', 'ctest-vn-28771282'], 'port_security_enabled': True, 'description': ''}} 2025-04-09 14:16:48,439 - DEBUG - Response for create_subnet : {'subnet': {'id': '4f12d1ec-6bc8-44f2-a5e7-307a9f5b7f2e', 'name': '', 'tenant_id': '4be8301d6ba84fe88d331bfac85e20bb', 'network_id': '9f279213-def4-4150-8324-31a71b85cfb3', 'ip_version': 4, 'cidr': '168.101.166.0/26', 'allocation_pools': [{'start': '168.101.166.2', 'end': '168.101.166.62'}], 'gateway_ip': '168.101.166.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.101.166.2', 'tags': [], 'project_id': '4be8301d6ba84fe88d331bfac85e20bb'}} 2025-04-09 14:16:48,456 - INFO - Created VN ctest-vn-28771282 2025-04-09 14:16:48,508 - DEBUG - VN ctest-vn-28771282 UUID is 9f279213-def4-4150-8324-31a71b85cfb3 2025-04-09 14:16:48,621 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-49227628:ctest-vn-47038400, 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-49227628:ctest-vn-28771282, 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-04-09 14:16:48,926 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '98bc5b60-7463-4858-855a-d213aefd0115', 'name': 'ctest-vn-47038400', 'tenant_id': '4be8301d6ba84fe88d331bfac85e20bb', 'project_id': '4be8301d6ba84fe88d331bfac85e20bb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['da2b04c1-127a-43f1-bae7-ba78b2b06c51'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49227628', 'ctest-vn-47038400'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49227628', 'ctest-policy-allow-all-41515893']], 'subnet_ipam': [{'subnet_cidr': '89.183.16.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-09 14:16:49,165 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9f279213-def4-4150-8324-31a71b85cfb3', 'name': 'ctest-vn-28771282', 'tenant_id': '4be8301d6ba84fe88d331bfac85e20bb', 'project_id': '4be8301d6ba84fe88d331bfac85e20bb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4f12d1ec-6bc8-44f2-a5e7-307a9f5b7f2e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49227628', 'ctest-vn-28771282'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49227628', 'ctest-policy-allow-all-41515893']], 'subnet_ipam': [{'subnet_cidr': '168.101.166.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-09 14:16:49,329 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-04-09 14:16:49,622 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-04-09 14:16:49,656 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a1376607-b02d-42e9-9bc7-fb3ffbca2458 2025-04-09 14:16:49,669 - DEBUG - Requesting: http://10.0.0.249:8082/project/4be8301d-6ba8-4fe8-8d33-1bfac85e20bb 2025-04-09 14:16:49,745 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/98bc5b60-7463-4858-855a-d213aefd0115 2025-04-09 14:16:49,756 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/98bc5b60-7463-4858-855a-d213aefd0115 2025-04-09 14:16:49,768 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ed2b4f1b-22e9-4ede-bfe3-91f94162f209 2025-04-09 14:16:49,777 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ed2b4f1b-22e9-4ede-bfe3-91f94162f209 2025-04-09 14:16:49,785 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/daf20c70-c7b9-4bd9-b53b-ac1fd2158a96 2025-04-09 14:16:49,792 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-09 14:16:49,792 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/98bc5b60-7463-4858-855a-d213aefd0115 2025-04-09 14:16:49,803 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ed2b4f1b-22e9-4ede-bfe3-91f94162f209 2025-04-09 14:16:49,818 - INFO - Verified VN network id 8 for VN 98bc5b60-7463-4858-855a-d213aefd0115 2025-04-09 14:16:49,819 - INFO - Verifications in API Server for VN ctest-vn-47038400 passed 2025-04-09 14:16:49,819 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/98bc5b60-7463-4858-855a-d213aefd0115 2025-04-09 14:16:49,829 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ed2b4f1b-22e9-4ede-bfe3-91f94162f209 2025-04-09 14:16:49,837 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ed2b4f1b-22e9-4ede-bfe3-91f94162f209 2025-04-09 14:16:49,844 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/daf20c70-c7b9-4bd9-b53b-ac1fd2158a96 2025-04-09 14:16:49,856 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49227628:ctest-vn-47038400', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49227628', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11005772059214301272', 'uuid-lslong': '9609223736930402581'}, 'enable': 'true', 'created': '2025-04-09T14:16:47', 'last-modified': '2025-04-09T14:16:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.957106'} 2025-04-09 14:16:49,864 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-09 14:16:49,864 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47038400 passed 2025-04-09 14:16:49,864 - DEBUG - ====Verifying policy data for ctest-vn-47038400 in API_Server ====== 2025-04-09 14:16:49,864 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-04-09 14:16:49,870 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a1376607-b02d-42e9-9bc7-fb3ffbca2458 2025-04-09 14:16:49,882 - DEBUG - Requesting: http://10.0.0.249:8082/project/4be8301d-6ba8-4fe8-8d33-1bfac85e20bb 2025-04-09 14:16:49,961 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/98bc5b60-7463-4858-855a-d213aefd0115 2025-04-09 14:16:49,971 - DEBUG - ==>Verifying data for policy with id: 2efa0f7c-f67b-40f7-b963-a9eef22c16f1, fqn: ['default-domain', 'ctest-TestBasicPolicy-49227628', 'ctest-policy-allow-all-41515893'] 2025-04-09 14:16:49,971 - INFO - VN ctest-vn-47038400 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-09 14:16:49,971 - DEBUG - Verifying the vn in opserver 2025-04-09 14:16:49,971 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49227628:ctest-vn-47038400 virtual network link through opserver 10.0.0.249 2025-04-09 14:16:49,971 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-04-09 14:16:50,261 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-04-09 14:16:50,320 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49227628:ctest-vn-47038400', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49227628:ctest-vn-47038400?flat'} 2025-04-09 14:16:50,320 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49227628:ctest-vn-47038400 is found in opserver 2025-04-09 14:16:50,331 - DEBUG - Do not have enough data to verify VN in agent 2025-04-09 14:16:50,337 - DEBUG - VRF ids for VN ctest-vn-47038400: {} 2025-04-09 14:16:50,337 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-04-09 14:16:50,343 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a1376607-b02d-42e9-9bc7-fb3ffbca2458 2025-04-09 14:16:50,357 - DEBUG - Requesting: http://10.0.0.249:8082/project/4be8301d-6ba8-4fe8-8d33-1bfac85e20bb 2025-04-09 14:16:50,434 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/9f279213-def4-4150-8324-31a71b85cfb3 2025-04-09 14:16:50,447 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/9f279213-def4-4150-8324-31a71b85cfb3 2025-04-09 14:16:50,460 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ee54286b-6a13-4fc7-9eca-f3940a40bebf 2025-04-09 14:16:50,469 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ee54286b-6a13-4fc7-9eca-f3940a40bebf 2025-04-09 14:16:50,477 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/d205037b-c1fe-4164-b4c4-058156bcaf6c 2025-04-09 14:16:50,485 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-09 14:16:50,485 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/9f279213-def4-4150-8324-31a71b85cfb3 2025-04-09 14:16:50,495 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ee54286b-6a13-4fc7-9eca-f3940a40bebf 2025-04-09 14:16:50,512 - INFO - Verified VN network id 9 for VN 9f279213-def4-4150-8324-31a71b85cfb3 2025-04-09 14:16:50,512 - INFO - Verifications in API Server for VN ctest-vn-28771282 passed 2025-04-09 14:16:50,512 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/9f279213-def4-4150-8324-31a71b85cfb3 2025-04-09 14:16:50,525 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ee54286b-6a13-4fc7-9eca-f3940a40bebf 2025-04-09 14:16:50,536 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ee54286b-6a13-4fc7-9eca-f3940a40bebf 2025-04-09 14:16:50,545 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/d205037b-c1fe-4164-b4c4-058156bcaf6c 2025-04-09 14:16:50,559 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49227628:ctest-vn-28771282', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49227628', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11468295590164840784', 'uuid-lslong': '9449732511921196979'}, 'enable': 'true', 'created': '2025-04-09T14:16:48', 'last-modified': '2025-04-09T14:16:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.417577'} 2025-04-09 14:16:50,565 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-09 14:16:50,566 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28771282 passed 2025-04-09 14:16:50,566 - DEBUG - ====Verifying policy data for ctest-vn-28771282 in API_Server ====== 2025-04-09 14:16:50,566 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-04-09 14:16:50,573 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a1376607-b02d-42e9-9bc7-fb3ffbca2458 2025-04-09 14:16:50,586 - DEBUG - Requesting: http://10.0.0.249:8082/project/4be8301d-6ba8-4fe8-8d33-1bfac85e20bb 2025-04-09 14:16:50,666 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/9f279213-def4-4150-8324-31a71b85cfb3 2025-04-09 14:16:50,677 - DEBUG - ==>Verifying data for policy with id: 2efa0f7c-f67b-40f7-b963-a9eef22c16f1, fqn: ['default-domain', 'ctest-TestBasicPolicy-49227628', 'ctest-policy-allow-all-41515893'] 2025-04-09 14:16:50,677 - INFO - VN ctest-vn-28771282 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-09 14:16:50,677 - DEBUG - Verifying the vn in opserver 2025-04-09 14:16:50,677 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49227628:ctest-vn-28771282 virtual network link through opserver 10.0.0.249 2025-04-09 14:16:50,677 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-04-09 14:16:50,687 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49227628:ctest-vn-28771282', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49227628:ctest-vn-28771282?flat'} 2025-04-09 14:16:50,687 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49227628:ctest-vn-28771282 is found in opserver 2025-04-09 14:16:50,698 - DEBUG - Do not have enough data to verify VN in agent 2025-04-09 14:16:50,704 - DEBUG - VRF ids for VN ctest-vn-28771282: {} 2025-04-09 14:16:50,773 - DEBUG - Services list from nova: [, , ] 2025-04-09 14:16:51,783 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3068-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3068-1) 2025-04-09 14:16:53,013 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3068-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3068-1) 2025-04-09 14:16:53,014 - INFO - Waiting for VM ctest-TestBasicPolicy-49227628-01904498 to be up.. 2025-04-09 14:16:53,106 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-09 14:16:58,184 - DEBUG - VM is in ACTIVE state now 2025-04-09 14:16:58,184 - INFO - VM name : ctest-TestBasicPolicy-49227628-01904498 2025-04-09 14:16:58,264 - DEBUG - VM ctest-TestBasicPolicy-49227628-01904498 ID is fd7b7c64-e234-46ab-aa02-c091aa770cbe 2025-04-09 14:16:58,281 - DEBUG - VM ctest-TestBasicPolicy-49227628-01904498 launched on Node cn-jenkins-deploy-platform-ansible-os-3068-1 2025-04-09 14:16:58,372 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/fd7b7c64-e234-46ab-aa02-c091aa770cbe 2025-04-09 14:16:58,383 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/c58e01fb-94fd-459a-b3f1-b5ac174c31b0 2025-04-09 14:17:01,658 - 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 1032ms') 2025-04-09 14:17:01,658 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-49227628-01904498 failed! 2025-04-09 14:17:01,712 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-49227628:ctest-vn-47038400 is 89.183.16.193 and allocation pool is NOT set 2025-04-09 14:17:03,773 - 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.17 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.568 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.568/2.366/4.165/1.798 ms') 2025-04-09 14:17:03,773 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-49227628-01904498 passed 2025-04-09 14:17:03,924 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 14:17:03,925 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-49227628-01904498, IP 89.183.16.195, Port 22 2025-04-09 14:17:04,079 - DEBUG - VM ctest-TestBasicPolicy-49227628-01904498 is ready for SSH connections 2025-04-09 14:17:04,080 - INFO - Waiting for VM ctest-TestBasicPolicy-49227628-34490583 to be up.. 2025-04-09 14:17:04,161 - DEBUG - VM is in ACTIVE state now 2025-04-09 14:17:04,161 - INFO - VM name : ctest-TestBasicPolicy-49227628-34490583 2025-04-09 14:17:04,239 - DEBUG - VM ctest-TestBasicPolicy-49227628-34490583 ID is 01cd1654-41b4-4321-aa66-170a88fbc697 2025-04-09 14:17:04,239 - DEBUG - VM ctest-TestBasicPolicy-49227628-34490583 launched on Node cn-jenkins-deploy-platform-ansible-os-3068-1 2025-04-09 14:17:04,324 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/01cd1654-41b4-4321-aa66-170a88fbc697 2025-04-09 14:17:04,335 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/84e29343-3f8f-4152-8b11-de6d33e34241 2025-04-09 14:17:05,584 - 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.48 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.444 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.444/1.964/3.484/1.520 ms') 2025-04-09 14:17:05,584 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-49227628-34490583 passed 2025-04-09 14:17:05,732 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 14:17:05,733 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-49227628-34490583, IP 168.101.166.3, Port 22 2025-04-09 14:17:05,896 - DEBUG - VM ctest-TestBasicPolicy-49227628-34490583 is ready for SSH connections 2025-04-09 14:17:05,896 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 14:17:05,896 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 168.101.166.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.249, gateway password: c0ntrail123 2025-04-09 14:17:05,896 - DEBUG - ping -s 56 -c 3 -W 1 168.101.166.3 2025-04-09 14:17:09,899 - DEBUG - PING 168.101.166.3 (168.101.166.3): 56 data bytes 64 bytes from 168.101.166.3: seq=0 ttl=63 time=3.349 ms 64 bytes from 168.101.166.3: seq=1 ttl=63 time=1.134 ms 64 bytes from 168.101.166.3: seq=2 ttl=63 time=0.936 ms --- 168.101.166.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.936/1.806/3.349 ms 2025-04-09 14:17:09,899 - INFO - Ping to IP 168.101.166.3 from VM ctest-TestBasicPolicy-49227628-01904498 passed 2025-04-09 14:17:10,084 - DEBUG - Policy Update Response {"network-policy": {"uuid": "2efa0f7c-f67b-40f7-b963-a9eef22c16f1", "href": "http://10.0.0.249:8082/network-policy/2efa0f7c-f67b-40f7-b963-a9eef22c16f1"}} 2025-04-09 14:17:10,085 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 14:17:10,085 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 168.101.166.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.249, gateway password: c0ntrail123 2025-04-09 14:17:10,085 - DEBUG - ping -s 56 -c 3 -W 1 168.101.166.3 2025-04-09 14:17:13,290 - DEBUG - PING 168.101.166.3 (168.101.166.3): 56 data bytes 64 bytes from 168.101.166.3: seq=0 ttl=63 time=1.335 ms --- 168.101.166.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.335/1.335/1.335 ms 2025-04-09 14:17:13,291 - WARNING - Ping to IP 168.101.166.3 from VM ctest-TestBasicPolicy-49227628-01904498 failed 2025-04-09 14:17:13,291 - INFO - Deleting VM ctest-TestBasicPolicy-49227628-34490583 2025-04-09 14:17:13,358 - INFO - Deleting VM ctest-TestBasicPolicy-49227628-01904498 2025-04-09 14:17:13,753 - INFO - Deleted policy ctest-policy-allow-all-41515893 2025-04-09 14:17:13,753 - INFO - Deleting VN ctest-vn-28771282 2025-04-09 14:17:13,793 - DEBUG - VN 9f279213-def4-4150-8324-31a71b85cfb3 still in use: Unable to complete operation on network 9f279213-def4-4150-8324-31a71b85cfb3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8a4108d3-7a2f-44fc-8b16-869509cc73da'] 2025-04-09 14:17:13,793 - WARNING - Deleting VN ctest-vn-28771282 failed..Will retry 2025-04-09 14:17:15,903 - DEBUG - Response for deleting network () 2025-04-09 14:17:15,903 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ee54286b-6a13-4fc7-9eca-f3940a40bebf 2025-04-09 14:17:15,910 - DEBUG - Response Code: 404 2025-04-09 14:17:15,910 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-04-09 14:17:15,917 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a1376607-b02d-42e9-9bc7-fb3ffbca2458 2025-04-09 14:17:15,970 - DEBUG - Requesting: http://10.0.0.249:8082/project/4be8301d-6ba8-4fe8-8d33-1bfac85e20bb 2025-04-09 14:17:16,047 - INFO - Validated that VN ctest-vn-28771282 is not found in API Server 2025-04-09 14:17:16,058 - DEBUG - VN ctest-vn-28771282 is not present in Agent 10.0.0.249 2025-04-09 14:17:16,058 - INFO - Validated that VN ctest-vn-28771282 is not in any agent 2025-04-09 14:17:16,074 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-28771282 info 2025-04-09 14:17:16,074 - INFO - Deleting VN ctest-vn-47038400 2025-04-09 14:17:16,178 - DEBUG - Response for deleting network () 2025-04-09 14:17:16,178 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ed2b4f1b-22e9-4ede-bfe3-91f94162f209 2025-04-09 14:17:16,185 - DEBUG - Response Code: 404 2025-04-09 14:17:16,185 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-04-09 14:17:16,191 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a1376607-b02d-42e9-9bc7-fb3ffbca2458 2025-04-09 14:17:16,246 - DEBUG - Requesting: http://10.0.0.249:8082/project/4be8301d-6ba8-4fe8-8d33-1bfac85e20bb 2025-04-09 14:17:16,318 - INFO - Validated that VN ctest-vn-47038400 is not found in API Server 2025-04-09 14:17:16,329 - DEBUG - VN ctest-vn-47038400 is not present in Agent 10.0.0.249 2025-04-09 14:17:16,329 - INFO - Validated that VN ctest-vn-47038400 is not in any agent 2025-04-09 14:17:16,349 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-47038400 info 2025-04-09 14:17:16,603 - DEBUG - No XMPP flaps were noticed during the test
2025-04-09 14:17:16,603 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2025-04-09 14:17:16,603 - INFO - -------------------------------------------------------------------------------- 2025-04-09 14:17:17,285 - INFO - Deleted project: ctest-TestBasicPolicy-49227628, ID : 4be8301d-6ba8-4fe8-8d33-1bfac85e20bb