2025-06-19 12:17:19,428 - INFO - Domain Default found not creating 2025-06-19 12:17:19,574 - INFO - Project ctest-TestBasicPolicy-80565155 not found, creating it 2025-06-19 12:17:20,045 - INFO - Created Project:ctest-TestBasicPolicy-80565155, ID : e02ecc54-aee2-4337-b190-95ca1754dcb8 2025-06-19 12:17:21,580 - INFO - ================================================================================ 2025-06-19 12:17:21,580 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-19 12:17:21,580 - 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-06-19 12:17:21,836 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with 2025-06-19 12:17:21,836 - INFO - Initial checks done. Running the testcase now 2025-06-19 12:17:21,836 - INFO - 2025-06-19 12:17:22,435 - DEBUG - Response for create_network : {'network': {'id': '1169c9ba-0ca6-4001-8ad1-cc320b1c779b', 'name': 'ctest-vn-91891682', 'tenant_id': 'e02ecc54aee24337b19095ca1754dcb8', 'project_id': 'e02ecc54aee24337b19095ca1754dcb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80565155', 'ctest-vn-91891682'], 'port_security_enabled': True, 'description': ''}} 2025-06-19 12:17:22,636 - DEBUG - Response for create_subnet : {'subnet': {'id': '8b0aab61-ad55-458f-88b3-20ae701fa0b6', 'name': '', 'tenant_id': 'e02ecc54aee24337b19095ca1754dcb8', 'network_id': '1169c9ba-0ca6-4001-8ad1-cc320b1c779b', 'ip_version': 4, 'cidr': '124.172.178.192/26', 'allocation_pools': [{'start': '124.172.178.194', 'end': '124.172.178.254'}], 'gateway_ip': '124.172.178.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.172.178.194', 'tags': [], 'project_id': 'e02ecc54aee24337b19095ca1754dcb8'}} 2025-06-19 12:17:22,653 - INFO - Created VN ctest-vn-91891682 2025-06-19 12:17:22,706 - DEBUG - VN ctest-vn-91891682 UUID is 1169c9ba-0ca6-4001-8ad1-cc320b1c779b 2025-06-19 12:17:23,052 - DEBUG - Response for create_network : {'network': {'id': '5cfd301d-d134-4628-a5ed-3b8693b9d74e', 'name': 'ctest-vn-68458801', 'tenant_id': 'e02ecc54aee24337b19095ca1754dcb8', 'project_id': 'e02ecc54aee24337b19095ca1754dcb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80565155', 'ctest-vn-68458801'], 'port_security_enabled': True, 'description': ''}} 2025-06-19 12:17:23,277 - DEBUG - Response for create_subnet : {'subnet': {'id': '1323fe77-a52e-4cfd-90ea-4055a06eaff9', 'name': '', 'tenant_id': 'e02ecc54aee24337b19095ca1754dcb8', 'network_id': '5cfd301d-d134-4628-a5ed-3b8693b9d74e', 'ip_version': 4, 'cidr': '183.188.20.128/26', 'allocation_pools': [{'start': '183.188.20.130', 'end': '183.188.20.190'}], 'gateway_ip': '183.188.20.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '183.188.20.130', 'tags': [], 'project_id': 'e02ecc54aee24337b19095ca1754dcb8'}} 2025-06-19 12:17:23,294 - INFO - Created VN ctest-vn-68458801 2025-06-19 12:17:23,346 - DEBUG - VN ctest-vn-68458801 UUID is 5cfd301d-d134-4628-a5ed-3b8693b9d74e 2025-06-19 12:17:23,502 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-80565155:ctest-vn-91891682, 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-80565155:ctest-vn-68458801, 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-06-19 12:17:23,802 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1169c9ba-0ca6-4001-8ad1-cc320b1c779b', 'name': 'ctest-vn-91891682', 'tenant_id': 'e02ecc54aee24337b19095ca1754dcb8', 'project_id': 'e02ecc54aee24337b19095ca1754dcb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8b0aab61-ad55-458f-88b3-20ae701fa0b6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80565155', 'ctest-vn-91891682'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80565155', 'ctest-policy-allow-all-99609357']], 'subnet_ipam': [{'subnet_cidr': '124.172.178.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-19 12:17:24,030 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5cfd301d-d134-4628-a5ed-3b8693b9d74e', 'name': 'ctest-vn-68458801', 'tenant_id': 'e02ecc54aee24337b19095ca1754dcb8', 'project_id': 'e02ecc54aee24337b19095ca1754dcb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1323fe77-a52e-4cfd-90ea-4055a06eaff9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80565155', 'ctest-vn-68458801'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80565155', 'ctest-policy-allow-all-99609357']], 'subnet_ipam': [{'subnet_cidr': '183.188.20.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-19 12:17:24,178 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-06-19 12:17:24,529 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-06-19 12:17:24,557 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e9b245df-1ece-4277-9950-78fd9d50fe05 2025-06-19 12:17:24,572 - DEBUG - Requesting: http://10.0.0.130:8082/project/e02ecc54-aee2-4337-b190-95ca1754dcb8 2025-06-19 12:17:24,647 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/1169c9ba-0ca6-4001-8ad1-cc320b1c779b 2025-06-19 12:17:24,659 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/1169c9ba-0ca6-4001-8ad1-cc320b1c779b 2025-06-19 12:17:24,668 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/8b18e6a9-b91a-4d91-a5ac-cc14ecb2ba12 2025-06-19 12:17:24,675 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/8b18e6a9-b91a-4d91-a5ac-cc14ecb2ba12 2025-06-19 12:17:24,682 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/b35ca3dd-9970-4ae2-b510-cbb279bd64e1 2025-06-19 12:17:24,689 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-19 12:17:24,689 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/1169c9ba-0ca6-4001-8ad1-cc320b1c779b 2025-06-19 12:17:24,698 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/8b18e6a9-b91a-4d91-a5ac-cc14ecb2ba12 2025-06-19 12:17:24,712 - INFO - Verified VN network id 8 for VN 1169c9ba-0ca6-4001-8ad1-cc320b1c779b 2025-06-19 12:17:24,712 - INFO - Verifications in API Server for VN ctest-vn-91891682 passed 2025-06-19 12:17:24,712 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/1169c9ba-0ca6-4001-8ad1-cc320b1c779b 2025-06-19 12:17:24,722 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/8b18e6a9-b91a-4d91-a5ac-cc14ecb2ba12 2025-06-19 12:17:24,729 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/8b18e6a9-b91a-4d91-a5ac-cc14ecb2ba12 2025-06-19 12:17:24,736 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/b35ca3dd-9970-4ae2-b510-cbb279bd64e1 2025-06-19 12:17:24,748 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80565155:ctest-vn-91891682', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80565155', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1254755772112715777', 'uuid-lslong': '10003000762673428379'}, 'enable': 'true', 'created': '2025-06-19T12:17:22', 'last-modified': '2025-06-19T12:17:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.974936'} 2025-06-19 12:17:24,755 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-19 12:17:24,755 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91891682 passed 2025-06-19 12:17:24,755 - DEBUG - ====Verifying policy data for ctest-vn-91891682 in API_Server ====== 2025-06-19 12:17:24,755 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-06-19 12:17:24,761 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e9b245df-1ece-4277-9950-78fd9d50fe05 2025-06-19 12:17:24,772 - DEBUG - Requesting: http://10.0.0.130:8082/project/e02ecc54-aee2-4337-b190-95ca1754dcb8 2025-06-19 12:17:24,842 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/1169c9ba-0ca6-4001-8ad1-cc320b1c779b 2025-06-19 12:17:24,854 - DEBUG - ==>Verifying data for policy with id: 65aa57e7-59cd-4a67-bda7-01be5d65a228, fqn: ['default-domain', 'ctest-TestBasicPolicy-80565155', 'ctest-policy-allow-all-99609357'] 2025-06-19 12:17:24,854 - INFO - VN ctest-vn-91891682 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-19 12:17:24,854 - DEBUG - Verifying the vn in opserver 2025-06-19 12:17:24,854 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80565155:ctest-vn-91891682 virtual network link through opserver 10.0.0.130 2025-06-19 12:17:24,854 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-06-19 12:17:25,188 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-06-19 12:17:25,244 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80565155:ctest-vn-91891682', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80565155:ctest-vn-91891682?flat'} 2025-06-19 12:17:25,244 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80565155:ctest-vn-91891682 is found in opserver 2025-06-19 12:17:25,256 - DEBUG - Do not have enough data to verify VN in agent 2025-06-19 12:17:25,262 - DEBUG - VRF ids for VN ctest-vn-91891682: {} 2025-06-19 12:17:25,262 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-06-19 12:17:25,268 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e9b245df-1ece-4277-9950-78fd9d50fe05 2025-06-19 12:17:25,281 - DEBUG - Requesting: http://10.0.0.130:8082/project/e02ecc54-aee2-4337-b190-95ca1754dcb8 2025-06-19 12:17:25,354 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5cfd301d-d134-4628-a5ed-3b8693b9d74e 2025-06-19 12:17:25,367 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5cfd301d-d134-4628-a5ed-3b8693b9d74e 2025-06-19 12:17:25,377 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/e46878b5-69ec-439a-b870-4ffe45436a98 2025-06-19 12:17:25,385 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/e46878b5-69ec-439a-b870-4ffe45436a98 2025-06-19 12:17:25,393 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/9ff3c334-49e5-42ce-9c6a-4828a6a81e03 2025-06-19 12:17:25,399 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-19 12:17:25,399 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5cfd301d-d134-4628-a5ed-3b8693b9d74e 2025-06-19 12:17:25,416 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/e46878b5-69ec-439a-b870-4ffe45436a98 2025-06-19 12:17:25,430 - INFO - Verified VN network id 9 for VN 5cfd301d-d134-4628-a5ed-3b8693b9d74e 2025-06-19 12:17:25,430 - INFO - Verifications in API Server for VN ctest-vn-68458801 passed 2025-06-19 12:17:25,430 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5cfd301d-d134-4628-a5ed-3b8693b9d74e 2025-06-19 12:17:25,440 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/e46878b5-69ec-439a-b870-4ffe45436a98 2025-06-19 12:17:25,447 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/e46878b5-69ec-439a-b870-4ffe45436a98 2025-06-19 12:17:25,454 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/9ff3c334-49e5-42ce-9c6a-4828a6a81e03 2025-06-19 12:17:25,468 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80565155:ctest-vn-68458801', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80565155', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6700564725219214888', 'uuid-lslong': '11956278034928621390'}, 'enable': 'true', 'created': '2025-06-19T12:17:23', 'last-modified': '2025-06-19T12:17:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.462937'} 2025-06-19 12:17:25,474 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-19 12:17:25,474 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68458801 passed 2025-06-19 12:17:25,474 - DEBUG - ====Verifying policy data for ctest-vn-68458801 in API_Server ====== 2025-06-19 12:17:25,474 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-06-19 12:17:25,480 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e9b245df-1ece-4277-9950-78fd9d50fe05 2025-06-19 12:17:25,493 - DEBUG - Requesting: http://10.0.0.130:8082/project/e02ecc54-aee2-4337-b190-95ca1754dcb8 2025-06-19 12:17:25,570 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/5cfd301d-d134-4628-a5ed-3b8693b9d74e 2025-06-19 12:17:25,582 - DEBUG - ==>Verifying data for policy with id: 65aa57e7-59cd-4a67-bda7-01be5d65a228, fqn: ['default-domain', 'ctest-TestBasicPolicy-80565155', 'ctest-policy-allow-all-99609357'] 2025-06-19 12:17:25,582 - INFO - VN ctest-vn-68458801 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-19 12:17:25,582 - DEBUG - Verifying the vn in opserver 2025-06-19 12:17:25,582 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80565155:ctest-vn-68458801 virtual network link through opserver 10.0.0.130 2025-06-19 12:17:25,583 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-06-19 12:17:25,594 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80565155:ctest-vn-68458801', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80565155:ctest-vn-68458801?flat'} 2025-06-19 12:17:25,594 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80565155:ctest-vn-68458801 is found in opserver 2025-06-19 12:17:25,605 - DEBUG - Do not have enough data to verify VN in agent 2025-06-19 12:17:25,610 - DEBUG - VRF ids for VN ctest-vn-68458801: {} 2025-06-19 12:17:25,665 - DEBUG - Services list from nova: [, , ] 2025-06-19 12:17:26,752 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3492-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3492-1) 2025-06-19 12:17:28,035 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3492-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3492-1) 2025-06-19 12:17:28,035 - INFO - Waiting for VM ctest-TestBasicPolicy-80565155-34325371 to be up.. 2025-06-19 12:17:28,109 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-19 12:17:33,184 - DEBUG - VM is in ACTIVE state now 2025-06-19 12:17:33,184 - INFO - VM name : ctest-TestBasicPolicy-80565155-34325371 2025-06-19 12:17:33,262 - DEBUG - VM ctest-TestBasicPolicy-80565155-34325371 ID is 01352c1d-1bbd-4f79-aa27-dac93acfd788 2025-06-19 12:17:33,282 - DEBUG - VM ctest-TestBasicPolicy-80565155-34325371 launched on Node cn-jenkins-deploy-platform-ansible-os-3492-1 2025-06-19 12:17:33,361 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/01352c1d-1bbd-4f79-aa27-dac93acfd788 2025-06-19 12:17:33,371 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine-interface/e53a048a-8316-49ff-8dc5-85b5eba8e9d7 2025-06-19 12:17:36,640 - 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-06-19 12:17:36,640 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-80565155-34325371 failed! 2025-06-19 12:17:36,698 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-80565155:ctest-vn-91891682 is 124.172.178.193 and allocation pool is NOT set 2025-06-19 12:17:38,759 - 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=6.51 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.24 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 = 3.241/4.875/6.510/1.634 ms') 2025-06-19 12:17:38,759 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-80565155-34325371 passed 2025-06-19 12:17:38,914 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-19 12:17:38,914 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-80565155-34325371, IP 124.172.178.195, Port 22 2025-06-19 12:17:39,073 - DEBUG - VM ctest-TestBasicPolicy-80565155-34325371 is ready for SSH connections 2025-06-19 12:17:39,073 - INFO - Waiting for VM ctest-TestBasicPolicy-80565155-22156481 to be up.. 2025-06-19 12:17:39,148 - DEBUG - VM is in ACTIVE state now 2025-06-19 12:17:39,148 - INFO - VM name : ctest-TestBasicPolicy-80565155-22156481 2025-06-19 12:17:39,222 - DEBUG - VM ctest-TestBasicPolicy-80565155-22156481 ID is aad51067-0214-4f5e-a273-ba2613c040fa 2025-06-19 12:17:39,222 - DEBUG - VM ctest-TestBasicPolicy-80565155-22156481 launched on Node cn-jenkins-deploy-platform-ansible-os-3492-1 2025-06-19 12:17:39,297 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/aad51067-0214-4f5e-a273-ba2613c040fa 2025-06-19 12:17:39,306 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine-interface/64544775-11b3-4430-b5d0-fb0b3f419946 2025-06-19 12:17:40,554 - 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.89 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.855 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.855/2.370/3.886/1.515 ms') 2025-06-19 12:17:40,555 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-80565155-22156481 passed 2025-06-19 12:17:40,710 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-19 12:17:40,710 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-80565155-22156481, IP 183.188.20.131, Port 22 2025-06-19 12:17:40,865 - DEBUG - VM ctest-TestBasicPolicy-80565155-22156481 is ready for SSH connections 2025-06-19 12:17:40,865 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-19 12:17:40,865 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 183.188.20.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.130, gateway password: c0ntrail123 2025-06-19 12:17:40,866 - DEBUG - ping -s 56 -c 3 -W 1 183.188.20.131 2025-06-19 12:17:44,567 - DEBUG - PING 183.188.20.131 (183.188.20.131): 56 data bytes 64 bytes from 183.188.20.131: seq=0 ttl=63 time=4.224 ms 64 bytes from 183.188.20.131: seq=1 ttl=63 time=0.880 ms 64 bytes from 183.188.20.131: seq=2 ttl=63 time=0.786 ms --- 183.188.20.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.786/1.963/4.224 ms 2025-06-19 12:17:44,567 - INFO - Ping to IP 183.188.20.131 from VM ctest-TestBasicPolicy-80565155-34325371 passed 2025-06-19 12:17:44,745 - DEBUG - Policy Update Response {"network-policy": {"uuid": "65aa57e7-59cd-4a67-bda7-01be5d65a228", "href": "http://10.0.0.130:8082/network-policy/65aa57e7-59cd-4a67-bda7-01be5d65a228"}} 2025-06-19 12:17:44,746 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-19 12:17:44,746 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 183.188.20.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.130, gateway password: c0ntrail123 2025-06-19 12:17:44,746 - DEBUG - ping -s 56 -c 3 -W 1 183.188.20.131 2025-06-19 12:17:47,961 - DEBUG - PING 183.188.20.131 (183.188.20.131): 56 data bytes 64 bytes from 183.188.20.131: seq=0 ttl=63 time=1.461 ms --- 183.188.20.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.461/1.461/1.461 ms 2025-06-19 12:17:47,961 - WARNING - Ping to IP 183.188.20.131 from VM ctest-TestBasicPolicy-80565155-34325371 failed 2025-06-19 12:17:47,961 - INFO - Deleting VM ctest-TestBasicPolicy-80565155-22156481 2025-06-19 12:17:48,032 - INFO - Deleting VM ctest-TestBasicPolicy-80565155-34325371 2025-06-19 12:17:48,537 - INFO - Deleted policy ctest-policy-allow-all-99609357 2025-06-19 12:17:48,537 - INFO - Deleting VN ctest-vn-68458801 2025-06-19 12:17:48,608 - DEBUG - VN 5cfd301d-d134-4628-a5ed-3b8693b9d74e still in use: Unable to complete operation on network 5cfd301d-d134-4628-a5ed-3b8693b9d74e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a8d523cf-a79c-41bf-b35e-8292b7f2a317'] 2025-06-19 12:17:48,608 - WARNING - Deleting VN ctest-vn-68458801 failed..Will retry 2025-06-19 12:17:50,711 - DEBUG - Response for deleting network () 2025-06-19 12:17:50,712 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/e46878b5-69ec-439a-b870-4ffe45436a98 2025-06-19 12:17:50,719 - DEBUG - Response Code: 404 2025-06-19 12:17:50,719 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-06-19 12:17:50,725 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e9b245df-1ece-4277-9950-78fd9d50fe05 2025-06-19 12:17:50,785 - DEBUG - Requesting: http://10.0.0.130:8082/project/e02ecc54-aee2-4337-b190-95ca1754dcb8 2025-06-19 12:17:50,859 - INFO - Validated that VN ctest-vn-68458801 is not found in API Server 2025-06-19 12:17:50,870 - DEBUG - VN ctest-vn-68458801 is not present in Agent 10.0.0.130 2025-06-19 12:17:50,870 - INFO - Validated that VN ctest-vn-68458801 is not in any agent 2025-06-19 12:17:50,886 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-68458801 info 2025-06-19 12:17:50,886 - INFO - Deleting VN ctest-vn-91891682 2025-06-19 12:17:50,995 - DEBUG - Response for deleting network () 2025-06-19 12:17:50,995 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/8b18e6a9-b91a-4d91-a5ac-cc14ecb2ba12 2025-06-19 12:17:51,003 - DEBUG - Response Code: 404 2025-06-19 12:17:51,003 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-06-19 12:17:51,010 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e9b245df-1ece-4277-9950-78fd9d50fe05 2025-06-19 12:17:51,063 - DEBUG - Requesting: http://10.0.0.130:8082/project/e02ecc54-aee2-4337-b190-95ca1754dcb8 2025-06-19 12:17:51,137 - INFO - Validated that VN ctest-vn-91891682 is not found in API Server 2025-06-19 12:17:51,148 - DEBUG - VN ctest-vn-91891682 is not present in Agent 10.0.0.130 2025-06-19 12:17:51,149 - INFO - Validated that VN ctest-vn-91891682 is not in any agent 2025-06-19 12:17:51,164 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-91891682 info 2025-06-19 12:17:51,424 - DEBUG - No XMPP flaps were noticed during the test
2025-06-19 12:17:51,424 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2025-06-19 12:17:51,424 - INFO - -------------------------------------------------------------------------------- 2025-06-19 12:17:52,176 - INFO - Deleted project: ctest-TestBasicPolicy-80565155, ID : e02ecc54-aee2-4337-b190-95ca1754dcb8