2025-05-27 16:38:54,841 - INFO - Domain Default found not creating 2025-05-27 16:38:54,992 - INFO - Project ctest-TestBasicPolicy-60010969 not found, creating it 2025-05-27 16:38:55,471 - INFO - Created Project:ctest-TestBasicPolicy-60010969, ID : 1652620f-451a-4b29-a98b-386167187a6d 2025-05-27 16:38:57,035 - INFO - ================================================================================ 2025-05-27 16:38:57,035 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-05-27 16:38:57,035 - 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-05-27 16:38:57,295 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-05-27 16:38:57,295 - INFO - Initial checks done. Running the testcase now 2025-05-27 16:38:57,295 - INFO - 2025-05-27 16:38:57,873 - DEBUG - Response for create_network : {'network': {'id': 'd6cbcd6c-290a-46bf-a733-b6bfb3199770', 'name': 'ctest-vn-21977196', 'tenant_id': '1652620f451a4b29a98b386167187a6d', 'project_id': '1652620f451a4b29a98b386167187a6d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60010969', 'ctest-vn-21977196'], 'port_security_enabled': True, 'description': ''}} 2025-05-27 16:38:58,069 - DEBUG - Response for create_subnet : {'subnet': {'id': '23551752-a69e-43cf-b704-447d6b2a1cbd', 'name': '', 'tenant_id': '1652620f451a4b29a98b386167187a6d', 'network_id': 'd6cbcd6c-290a-46bf-a733-b6bfb3199770', 'ip_version': 4, 'cidr': '175.151.195.128/26', 'allocation_pools': [{'start': '175.151.195.130', 'end': '175.151.195.190'}], 'gateway_ip': '175.151.195.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.151.195.130', 'tags': [], 'project_id': '1652620f451a4b29a98b386167187a6d'}} 2025-05-27 16:38:58,087 - INFO - Created VN ctest-vn-21977196 2025-05-27 16:38:58,141 - DEBUG - VN ctest-vn-21977196 UUID is d6cbcd6c-290a-46bf-a733-b6bfb3199770 2025-05-27 16:38:58,430 - DEBUG - Response for create_network : {'network': {'id': 'c5af5348-4e72-4e1a-bdb2-e10ce0ebf488', 'name': 'ctest-vn-41287803', 'tenant_id': '1652620f451a4b29a98b386167187a6d', 'project_id': '1652620f451a4b29a98b386167187a6d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60010969', 'ctest-vn-41287803'], 'port_security_enabled': True, 'description': ''}} 2025-05-27 16:38:58,704 - DEBUG - Response for create_subnet : {'subnet': {'id': '5575820d-6b03-4352-8c75-e3198b0b8311', 'name': '', 'tenant_id': '1652620f451a4b29a98b386167187a6d', 'network_id': 'c5af5348-4e72-4e1a-bdb2-e10ce0ebf488', 'ip_version': 4, 'cidr': '49.231.9.128/26', 'allocation_pools': [{'start': '49.231.9.130', 'end': '49.231.9.190'}], 'gateway_ip': '49.231.9.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.231.9.130', 'tags': [], 'project_id': '1652620f451a4b29a98b386167187a6d'}} 2025-05-27 16:38:58,721 - INFO - Created VN ctest-vn-41287803 2025-05-27 16:38:58,773 - DEBUG - VN ctest-vn-41287803 UUID is c5af5348-4e72-4e1a-bdb2-e10ce0ebf488 2025-05-27 16:38:58,925 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-60010969:ctest-vn-21977196, 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-60010969:ctest-vn-41287803, 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-05-27 16:38:59,221 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd6cbcd6c-290a-46bf-a733-b6bfb3199770', 'name': 'ctest-vn-21977196', 'tenant_id': '1652620f451a4b29a98b386167187a6d', 'project_id': '1652620f451a4b29a98b386167187a6d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['23551752-a69e-43cf-b704-447d6b2a1cbd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60010969', 'ctest-vn-21977196'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60010969', 'ctest-policy-allow-all-25996034']], 'subnet_ipam': [{'subnet_cidr': '175.151.195.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-27 16:38:59,457 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c5af5348-4e72-4e1a-bdb2-e10ce0ebf488', 'name': 'ctest-vn-41287803', 'tenant_id': '1652620f451a4b29a98b386167187a6d', 'project_id': '1652620f451a4b29a98b386167187a6d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5575820d-6b03-4352-8c75-e3198b0b8311'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60010969', 'ctest-vn-41287803'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60010969', 'ctest-policy-allow-all-25996034']], 'subnet_ipam': [{'subnet_cidr': '49.231.9.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-27 16:38:59,637 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-05-27 16:38:59,982 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-05-27 16:39:00,010 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4eebd446-0149-4001-bbd7-ea621d6a546a 2025-05-27 16:39:00,027 - DEBUG - Requesting: http://10.0.0.38:8082/project/1652620f-451a-4b29-a98b-386167187a6d 2025-05-27 16:39:00,108 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d6cbcd6c-290a-46bf-a733-b6bfb3199770 2025-05-27 16:39:00,124 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d6cbcd6c-290a-46bf-a733-b6bfb3199770 2025-05-27 16:39:00,135 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6adfa1d9-938f-44a2-9649-69c4d8c00358 2025-05-27 16:39:00,144 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6adfa1d9-938f-44a2-9649-69c4d8c00358 2025-05-27 16:39:00,151 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b125e52a-c34c-4e1a-9287-b2d8b44c0b16 2025-05-27 16:39:00,157 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-27 16:39:00,157 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d6cbcd6c-290a-46bf-a733-b6bfb3199770 2025-05-27 16:39:00,167 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6adfa1d9-938f-44a2-9649-69c4d8c00358 2025-05-27 16:39:00,182 - INFO - Verified VN network id 7 for VN d6cbcd6c-290a-46bf-a733-b6bfb3199770 2025-05-27 16:39:00,182 - INFO - Verifications in API Server for VN ctest-vn-21977196 passed 2025-05-27 16:39:00,182 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d6cbcd6c-290a-46bf-a733-b6bfb3199770 2025-05-27 16:39:00,193 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6adfa1d9-938f-44a2-9649-69c4d8c00358 2025-05-27 16:39:00,200 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6adfa1d9-938f-44a2-9649-69c4d8c00358 2025-05-27 16:39:00,208 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b125e52a-c34c-4e1a-9287-b2d8b44c0b16 2025-05-27 16:39:00,221 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60010969:ctest-vn-21977196', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60010969', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15477690408817542847', 'uuid-lslong': '12048174362606016368'}, 'enable': 'true', 'created': '2025-05-27T16:38:57', 'last-modified': '2025-05-27T16:38:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.021868'} 2025-05-27 16:39:00,227 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-27 16:39:00,227 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21977196 passed 2025-05-27 16:39:00,228 - DEBUG - ====Verifying policy data for ctest-vn-21977196 in API_Server ====== 2025-05-27 16:39:00,228 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-05-27 16:39:00,233 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4eebd446-0149-4001-bbd7-ea621d6a546a 2025-05-27 16:39:00,245 - DEBUG - Requesting: http://10.0.0.38:8082/project/1652620f-451a-4b29-a98b-386167187a6d 2025-05-27 16:39:00,317 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d6cbcd6c-290a-46bf-a733-b6bfb3199770 2025-05-27 16:39:00,329 - DEBUG - ==>Verifying data for policy with id: cf1118c1-f6f6-4d49-9c2d-7fe7fa5265cc, fqn: ['default-domain', 'ctest-TestBasicPolicy-60010969', 'ctest-policy-allow-all-25996034'] 2025-05-27 16:39:00,329 - INFO - VN ctest-vn-21977196 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-27 16:39:00,329 - DEBUG - Verifying the vn in opserver 2025-05-27 16:39:00,329 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60010969:ctest-vn-21977196 virtual network link through opserver 10.0.0.38 2025-05-27 16:39:00,330 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-05-27 16:39:00,663 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-05-27 16:39:00,717 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60010969:ctest-vn-21977196', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60010969:ctest-vn-21977196?flat'} 2025-05-27 16:39:00,717 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60010969:ctest-vn-21977196 is found in opserver 2025-05-27 16:39:00,728 - DEBUG - Do not have enough data to verify VN in agent 2025-05-27 16:39:00,733 - DEBUG - VRF ids for VN ctest-vn-21977196: {} 2025-05-27 16:39:00,733 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-05-27 16:39:00,739 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4eebd446-0149-4001-bbd7-ea621d6a546a 2025-05-27 16:39:00,752 - DEBUG - Requesting: http://10.0.0.38:8082/project/1652620f-451a-4b29-a98b-386167187a6d 2025-05-27 16:39:00,829 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c5af5348-4e72-4e1a-bdb2-e10ce0ebf488 2025-05-27 16:39:00,841 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c5af5348-4e72-4e1a-bdb2-e10ce0ebf488 2025-05-27 16:39:00,851 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/38aa07cf-e364-47db-a766-308829b27f2c 2025-05-27 16:39:00,859 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/38aa07cf-e364-47db-a766-308829b27f2c 2025-05-27 16:39:00,866 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/27625f98-cdfe-4fb8-82ac-4f2a2748dd76 2025-05-27 16:39:00,874 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-27 16:39:00,874 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c5af5348-4e72-4e1a-bdb2-e10ce0ebf488 2025-05-27 16:39:00,884 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/38aa07cf-e364-47db-a766-308829b27f2c 2025-05-27 16:39:00,899 - INFO - Verified VN network id 8 for VN c5af5348-4e72-4e1a-bdb2-e10ce0ebf488 2025-05-27 16:39:00,899 - INFO - Verifications in API Server for VN ctest-vn-41287803 passed 2025-05-27 16:39:00,899 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c5af5348-4e72-4e1a-bdb2-e10ce0ebf488 2025-05-27 16:39:00,910 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/38aa07cf-e364-47db-a766-308829b27f2c 2025-05-27 16:39:00,917 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/38aa07cf-e364-47db-a766-308829b27f2c 2025-05-27 16:39:00,924 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/27625f98-cdfe-4fb8-82ac-4f2a2748dd76 2025-05-27 16:39:00,938 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60010969:ctest-vn-41287803', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60010969', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14244695716415032858', 'uuid-lslong': '13669235264452293768'}, 'enable': 'true', 'created': '2025-05-27T16:38:58', 'last-modified': '2025-05-27T16:38:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.506406'} 2025-05-27 16:39:00,945 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-27 16:39:00,945 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41287803 passed 2025-05-27 16:39:00,945 - DEBUG - ====Verifying policy data for ctest-vn-41287803 in API_Server ====== 2025-05-27 16:39:00,945 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-05-27 16:39:00,952 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4eebd446-0149-4001-bbd7-ea621d6a546a 2025-05-27 16:39:00,963 - DEBUG - Requesting: http://10.0.0.38:8082/project/1652620f-451a-4b29-a98b-386167187a6d 2025-05-27 16:39:01,041 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c5af5348-4e72-4e1a-bdb2-e10ce0ebf488 2025-05-27 16:39:01,052 - DEBUG - ==>Verifying data for policy with id: cf1118c1-f6f6-4d49-9c2d-7fe7fa5265cc, fqn: ['default-domain', 'ctest-TestBasicPolicy-60010969', 'ctest-policy-allow-all-25996034'] 2025-05-27 16:39:01,052 - INFO - VN ctest-vn-41287803 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-27 16:39:01,052 - DEBUG - Verifying the vn in opserver 2025-05-27 16:39:01,052 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60010969:ctest-vn-41287803 virtual network link through opserver 10.0.0.38 2025-05-27 16:39:01,052 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-05-27 16:39:01,063 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60010969:ctest-vn-41287803', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60010969:ctest-vn-41287803?flat'} 2025-05-27 16:39:01,063 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60010969:ctest-vn-41287803 is found in opserver 2025-05-27 16:39:01,075 - DEBUG - Do not have enough data to verify VN in agent 2025-05-27 16:39:01,081 - DEBUG - VRF ids for VN ctest-vn-41287803: {} 2025-05-27 16:39:01,140 - DEBUG - Services list from nova: [, , ] 2025-05-27 16:39:02,244 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3348-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3348-1) 2025-05-27 16:39:03,607 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3348-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3348-1) 2025-05-27 16:39:03,607 - INFO - Waiting for VM ctest-TestBasicPolicy-60010969-34870337 to be up.. 2025-05-27 16:39:03,685 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-27 16:39:08,761 - DEBUG - VM is in ACTIVE state now 2025-05-27 16:39:08,761 - INFO - VM name : ctest-TestBasicPolicy-60010969-34870337 2025-05-27 16:39:08,837 - DEBUG - VM ctest-TestBasicPolicy-60010969-34870337 ID is fb8c496d-7238-4955-aeeb-5f9f0422c69a 2025-05-27 16:39:08,856 - DEBUG - VM ctest-TestBasicPolicy-60010969-34870337 launched on Node cn-jenkins-deploy-platform-ansible-os-3348-1 2025-05-27 16:39:08,928 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/fb8c496d-7238-4955-aeeb-5f9f0422c69a 2025-05-27 16:39:08,936 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/c0f98bae-cdf0-4383-8f62-09d56594ce04 2025-05-27 16:39:12,194 - 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 1019ms') 2025-05-27 16:39:12,194 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-60010969-34870337 failed! 2025-05-27 16:39:12,249 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-60010969:ctest-vn-21977196 is 175.151.195.129 and allocation pool is NOT set 2025-05-27 16:39:14,310 - 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=10.6 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.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 = 1.239/5.898/10.558/4.659 ms') 2025-05-27 16:39:14,310 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-60010969-34870337 passed 2025-05-27 16:39:14,465 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-27 16:39:14,465 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-60010969-34870337, IP 175.151.195.131, Port 22 2025-05-27 16:39:14,620 - DEBUG - VM ctest-TestBasicPolicy-60010969-34870337 is ready for SSH connections 2025-05-27 16:39:14,621 - INFO - Waiting for VM ctest-TestBasicPolicy-60010969-93697655 to be up.. 2025-05-27 16:39:14,697 - DEBUG - VM is in ACTIVE state now 2025-05-27 16:39:14,697 - INFO - VM name : ctest-TestBasicPolicy-60010969-93697655 2025-05-27 16:39:14,776 - DEBUG - VM ctest-TestBasicPolicy-60010969-93697655 ID is 7c17f508-a29c-4236-9ddf-309a6224cd5a 2025-05-27 16:39:14,776 - DEBUG - VM ctest-TestBasicPolicy-60010969-93697655 launched on Node cn-jenkins-deploy-platform-ansible-os-3348-1 2025-05-27 16:39:14,862 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/7c17f508-a29c-4236-9ddf-309a6224cd5a 2025-05-27 16:39:14,871 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/253dd83c-c59f-4a9a-aee3-6d4b818cbe7d 2025-05-27 16:39:16,108 - 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.00 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.512 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.512/1.756/3.000/1.244 ms') 2025-05-27 16:39:16,108 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-60010969-93697655 passed 2025-05-27 16:39:16,261 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-27 16:39:16,262 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-60010969-93697655, IP 49.231.9.131, Port 22 2025-05-27 16:39:16,417 - DEBUG - VM ctest-TestBasicPolicy-60010969-93697655 is ready for SSH connections 2025-05-27 16:39:16,417 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-27 16:39:16,417 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 49.231.9.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-05-27 16:39:16,417 - DEBUG - ping -s 56 -c 3 -W 1 49.231.9.131 2025-05-27 16:39:20,461 - DEBUG - PING 49.231.9.131 (49.231.9.131): 56 data bytes 64 bytes from 49.231.9.131: seq=0 ttl=63 time=3.526 ms 64 bytes from 49.231.9.131: seq=1 ttl=63 time=1.162 ms 64 bytes from 49.231.9.131: seq=2 ttl=63 time=0.793 ms --- 49.231.9.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.793/1.827/3.526 ms 2025-05-27 16:39:20,461 - INFO - Ping to IP 49.231.9.131 from VM ctest-TestBasicPolicy-60010969-34870337 passed 2025-05-27 16:39:20,645 - DEBUG - Policy Update Response {"network-policy": {"uuid": "cf1118c1-f6f6-4d49-9c2d-7fe7fa5265cc", "href": "http://10.0.0.38:8082/network-policy/cf1118c1-f6f6-4d49-9c2d-7fe7fa5265cc"}} 2025-05-27 16:39:20,645 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-27 16:39:20,645 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 49.231.9.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-05-27 16:39:20,645 - DEBUG - ping -s 56 -c 3 -W 1 49.231.9.131 2025-05-27 16:39:23,857 - DEBUG - PING 49.231.9.131 (49.231.9.131): 56 data bytes --- 49.231.9.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-05-27 16:39:23,857 - WARNING - Ping to IP 49.231.9.131 from VM ctest-TestBasicPolicy-60010969-34870337 failed 2025-05-27 16:39:23,857 - INFO - Deleting VM ctest-TestBasicPolicy-60010969-93697655 2025-05-27 16:39:23,923 - INFO - Deleting VM ctest-TestBasicPolicy-60010969-34870337 2025-05-27 16:39:24,320 - INFO - Deleted policy ctest-policy-allow-all-25996034 2025-05-27 16:39:24,320 - INFO - Deleting VN ctest-vn-41287803 2025-05-27 16:39:24,356 - DEBUG - VN c5af5348-4e72-4e1a-bdb2-e10ce0ebf488 still in use: Unable to complete operation on network c5af5348-4e72-4e1a-bdb2-e10ce0ebf488. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6806b854-55f1-400d-8094-f955191b8365'] 2025-05-27 16:39:24,357 - WARNING - Deleting VN ctest-vn-41287803 failed..Will retry 2025-05-27 16:39:26,468 - DEBUG - Response for deleting network () 2025-05-27 16:39:26,469 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/38aa07cf-e364-47db-a766-308829b27f2c 2025-05-27 16:39:26,477 - DEBUG - Response Code: 404 2025-05-27 16:39:26,478 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-05-27 16:39:26,484 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4eebd446-0149-4001-bbd7-ea621d6a546a 2025-05-27 16:39:26,542 - DEBUG - Requesting: http://10.0.0.38:8082/project/1652620f-451a-4b29-a98b-386167187a6d 2025-05-27 16:39:26,614 - INFO - Validated that VN ctest-vn-41287803 is not found in API Server 2025-05-27 16:39:26,626 - DEBUG - VN ctest-vn-41287803 is not present in Agent 10.0.0.38 2025-05-27 16:39:26,626 - INFO - Validated that VN ctest-vn-41287803 is not in any agent 2025-05-27 16:39:26,642 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-41287803 info 2025-05-27 16:39:26,642 - INFO - Deleting VN ctest-vn-21977196 2025-05-27 16:39:26,754 - DEBUG - Response for deleting network () 2025-05-27 16:39:26,754 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6adfa1d9-938f-44a2-9649-69c4d8c00358 2025-05-27 16:39:26,759 - DEBUG - Response Code: 404 2025-05-27 16:39:26,759 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-05-27 16:39:26,765 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4eebd446-0149-4001-bbd7-ea621d6a546a 2025-05-27 16:39:26,822 - DEBUG - Requesting: http://10.0.0.38:8082/project/1652620f-451a-4b29-a98b-386167187a6d 2025-05-27 16:39:26,895 - INFO - Validated that VN ctest-vn-21977196 is not found in API Server 2025-05-27 16:39:26,908 - DEBUG - VN ctest-vn-21977196 is not present in Agent 10.0.0.38 2025-05-27 16:39:26,908 - INFO - Validated that VN ctest-vn-21977196 is not in any agent 2025-05-27 16:39:26,925 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-21977196 info 2025-05-27 16:39:27,181 - DEBUG - No XMPP flaps were noticed during the test
2025-05-27 16:39:27,182 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2025-05-27 16:39:27,182 - INFO - -------------------------------------------------------------------------------- 2025-05-27 16:39:27,919 - INFO - Deleted project: ctest-TestBasicPolicy-60010969, ID : 1652620f-451a-4b29-a98b-386167187a6d