2025-02-12 03:05:24,038 - INFO - Domain Default found not creating 2025-02-12 03:05:24,189 - INFO - Project ctest-TestBasicPolicy-64663725 not found, creating it 2025-02-12 03:05:24,660 - INFO - Created Project:ctest-TestBasicPolicy-64663725, ID : fc82ca7a-34e2-485a-a81e-87cebd041237 2025-02-12 03:05:26,137 - INFO - ================================================================================ 2025-02-12 03:05:26,138 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-02-12 03:05:26,138 - 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-02-12 03:05:26,403 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.5': '0'}} with 2025-02-12 03:05:26,403 - INFO - Initial checks done. Running the testcase now 2025-02-12 03:05:26,403 - INFO - 2025-02-12 03:05:26,965 - DEBUG - Response for create_network : {'network': {'id': 'f9a6e00e-9157-4e5b-8d19-661053ac9ed0', 'name': 'ctest-vn-94343893', 'tenant_id': 'fc82ca7a34e2485aa81e87cebd041237', 'project_id': 'fc82ca7a34e2485aa81e87cebd041237', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64663725', 'ctest-vn-94343893'], 'port_security_enabled': True, 'description': ''}} 2025-02-12 03:05:27,184 - DEBUG - Response for create_subnet : {'subnet': {'id': 'afb861a3-9dc8-46a5-97da-fe9b9d10a21a', 'name': '', 'tenant_id': 'fc82ca7a34e2485aa81e87cebd041237', 'network_id': 'f9a6e00e-9157-4e5b-8d19-661053ac9ed0', 'ip_version': 4, 'cidr': '218.22.13.128/26', 'allocation_pools': [{'start': '218.22.13.130', 'end': '218.22.13.190'}], 'gateway_ip': '218.22.13.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.22.13.130', 'tags': [], 'project_id': 'fc82ca7a34e2485aa81e87cebd041237'}} 2025-02-12 03:05:27,203 - INFO - Created VN ctest-vn-94343893 2025-02-12 03:05:27,257 - DEBUG - VN ctest-vn-94343893 UUID is f9a6e00e-9157-4e5b-8d19-661053ac9ed0 2025-02-12 03:05:27,551 - DEBUG - Response for create_network : {'network': {'id': '0cd37da3-9dd3-40b4-82aa-79e91e71e4cb', 'name': 'ctest-vn-13858716', 'tenant_id': 'fc82ca7a34e2485aa81e87cebd041237', 'project_id': 'fc82ca7a34e2485aa81e87cebd041237', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64663725', 'ctest-vn-13858716'], 'port_security_enabled': True, 'description': ''}} 2025-02-12 03:05:27,737 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c0e96b75-dda4-4c64-bb89-6f65f21931b6', 'name': '', 'tenant_id': 'fc82ca7a34e2485aa81e87cebd041237', 'network_id': '0cd37da3-9dd3-40b4-82aa-79e91e71e4cb', 'ip_version': 4, 'cidr': '137.36.14.64/26', 'allocation_pools': [{'start': '137.36.14.66', 'end': '137.36.14.126'}], 'gateway_ip': '137.36.14.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.36.14.66', 'tags': [], 'project_id': 'fc82ca7a34e2485aa81e87cebd041237'}} 2025-02-12 03:05:27,759 - INFO - Created VN ctest-vn-13858716 2025-02-12 03:05:27,813 - DEBUG - VN ctest-vn-13858716 UUID is 0cd37da3-9dd3-40b4-82aa-79e91e71e4cb 2025-02-12 03:05:27,930 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-64663725:ctest-vn-94343893, 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-64663725:ctest-vn-13858716, 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-02-12 03:05:28,234 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f9a6e00e-9157-4e5b-8d19-661053ac9ed0', 'name': 'ctest-vn-94343893', 'tenant_id': 'fc82ca7a34e2485aa81e87cebd041237', 'project_id': 'fc82ca7a34e2485aa81e87cebd041237', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['afb861a3-9dc8-46a5-97da-fe9b9d10a21a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64663725', 'ctest-vn-94343893'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64663725', 'ctest-policy-allow-all-81964092']], 'subnet_ipam': [{'subnet_cidr': '218.22.13.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-12 03:05:28,510 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0cd37da3-9dd3-40b4-82aa-79e91e71e4cb', 'name': 'ctest-vn-13858716', 'tenant_id': 'fc82ca7a34e2485aa81e87cebd041237', 'project_id': 'fc82ca7a34e2485aa81e87cebd041237', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c0e96b75-dda4-4c64-bb89-6f65f21931b6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64663725', 'ctest-vn-13858716'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64663725', 'ctest-policy-allow-all-81964092']], 'subnet_ipam': [{'subnet_cidr': '137.36.14.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-12 03:05:28,661 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2025-02-12 03:05:28,953 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2025-02-12 03:05:28,983 - DEBUG - Requesting: http://10.0.0.28:8082/domain/6b8ca316-986a-4015-a6b0-fac1d24bc648 2025-02-12 03:05:28,997 - DEBUG - Requesting: http://10.0.0.28:8082/project/fc82ca7a-34e2-485a-a81e-87cebd041237 2025-02-12 03:05:29,073 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/f9a6e00e-9157-4e5b-8d19-661053ac9ed0 2025-02-12 03:05:29,085 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/f9a6e00e-9157-4e5b-8d19-661053ac9ed0 2025-02-12 03:05:29,095 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/b82f2369-8b7e-4509-8e8e-c5f789de956a 2025-02-12 03:05:29,104 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/b82f2369-8b7e-4509-8e8e-c5f789de956a 2025-02-12 03:05:29,111 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/3c8b4c6c-8f30-4621-be3f-f0d80fa3e2d7 2025-02-12 03:05:29,118 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-12 03:05:29,118 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/f9a6e00e-9157-4e5b-8d19-661053ac9ed0 2025-02-12 03:05:29,128 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/b82f2369-8b7e-4509-8e8e-c5f789de956a 2025-02-12 03:05:29,142 - INFO - Verified VN network id 8 for VN f9a6e00e-9157-4e5b-8d19-661053ac9ed0 2025-02-12 03:05:29,142 - INFO - Verifications in API Server for VN ctest-vn-94343893 passed 2025-02-12 03:05:29,142 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/f9a6e00e-9157-4e5b-8d19-661053ac9ed0 2025-02-12 03:05:29,154 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/b82f2369-8b7e-4509-8e8e-c5f789de956a 2025-02-12 03:05:29,164 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/b82f2369-8b7e-4509-8e8e-c5f789de956a 2025-02-12 03:05:29,171 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/3c8b4c6c-8f30-4621-be3f-f0d80fa3e2d7 2025-02-12 03:05:29,184 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64663725:ctest-vn-94343893', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64663725', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17989312114750606939', 'uuid-lslong': '10167269854074937040'}, 'enable': 'true', 'created': '2025-02-12T03:05:26', 'last-modified': '2025-02-12T03:05:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.972640'} 2025-02-12 03:05:29,191 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-12 03:05:29,191 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94343893 passed 2025-02-12 03:05:29,192 - DEBUG - ====Verifying policy data for ctest-vn-94343893 in API_Server ====== 2025-02-12 03:05:29,192 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2025-02-12 03:05:29,198 - DEBUG - Requesting: http://10.0.0.28:8082/domain/6b8ca316-986a-4015-a6b0-fac1d24bc648 2025-02-12 03:05:29,210 - DEBUG - Requesting: http://10.0.0.28:8082/project/fc82ca7a-34e2-485a-a81e-87cebd041237 2025-02-12 03:05:29,286 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/f9a6e00e-9157-4e5b-8d19-661053ac9ed0 2025-02-12 03:05:29,298 - DEBUG - ==>Verifying data for policy with id: 216d9d13-7147-40a2-bf8c-4710073f35fc, fqn: ['default-domain', 'ctest-TestBasicPolicy-64663725', 'ctest-policy-allow-all-81964092'] 2025-02-12 03:05:29,298 - INFO - VN ctest-vn-94343893 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-12 03:05:29,298 - DEBUG - Verifying the vn in opserver 2025-02-12 03:05:29,298 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64663725:ctest-vn-94343893 virtual network link through opserver 10.0.0.28 2025-02-12 03:05:29,298 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2025-02-12 03:05:29,594 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2025-02-12 03:05:29,654 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64663725:ctest-vn-94343893', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64663725:ctest-vn-94343893?flat'} 2025-02-12 03:05:29,654 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64663725:ctest-vn-94343893 is found in opserver 2025-02-12 03:05:29,665 - DEBUG - Do not have enough data to verify VN in agent 2025-02-12 03:05:29,670 - DEBUG - VRF ids for VN ctest-vn-94343893: {} 2025-02-12 03:05:29,670 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2025-02-12 03:05:29,676 - DEBUG - Requesting: http://10.0.0.28:8082/domain/6b8ca316-986a-4015-a6b0-fac1d24bc648 2025-02-12 03:05:29,688 - DEBUG - Requesting: http://10.0.0.28:8082/project/fc82ca7a-34e2-485a-a81e-87cebd041237 2025-02-12 03:05:29,765 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/0cd37da3-9dd3-40b4-82aa-79e91e71e4cb 2025-02-12 03:05:29,779 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/0cd37da3-9dd3-40b4-82aa-79e91e71e4cb 2025-02-12 03:05:29,788 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/33485446-31e3-4388-ba2f-ef41f4485bb6 2025-02-12 03:05:29,796 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/33485446-31e3-4388-ba2f-ef41f4485bb6 2025-02-12 03:05:29,804 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/5410d696-0103-4c87-907f-435ae92f2197 2025-02-12 03:05:29,813 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-12 03:05:29,813 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/0cd37da3-9dd3-40b4-82aa-79e91e71e4cb 2025-02-12 03:05:29,824 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/33485446-31e3-4388-ba2f-ef41f4485bb6 2025-02-12 03:05:29,838 - INFO - Verified VN network id 9 for VN 0cd37da3-9dd3-40b4-82aa-79e91e71e4cb 2025-02-12 03:05:29,838 - INFO - Verifications in API Server for VN ctest-vn-13858716 passed 2025-02-12 03:05:29,838 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/0cd37da3-9dd3-40b4-82aa-79e91e71e4cb 2025-02-12 03:05:29,849 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/33485446-31e3-4388-ba2f-ef41f4485bb6 2025-02-12 03:05:29,858 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/33485446-31e3-4388-ba2f-ef41f4485bb6 2025-02-12 03:05:29,865 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/5410d696-0103-4c87-907f-435ae92f2197 2025-02-12 03:05:29,882 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64663725:ctest-vn-13858716', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64663725', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '924220490222092468', 'uuid-lslong': '9415472013116564683'}, 'enable': 'true', 'created': '2025-02-12T03:05:27', 'last-modified': '2025-02-12T03:05:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.433337'} 2025-02-12 03:05:29,889 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-12 03:05:29,889 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13858716 passed 2025-02-12 03:05:29,890 - DEBUG - ====Verifying policy data for ctest-vn-13858716 in API_Server ====== 2025-02-12 03:05:29,890 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2025-02-12 03:05:29,896 - DEBUG - Requesting: http://10.0.0.28:8082/domain/6b8ca316-986a-4015-a6b0-fac1d24bc648 2025-02-12 03:05:29,908 - DEBUG - Requesting: http://10.0.0.28:8082/project/fc82ca7a-34e2-485a-a81e-87cebd041237 2025-02-12 03:05:29,989 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/0cd37da3-9dd3-40b4-82aa-79e91e71e4cb 2025-02-12 03:05:29,999 - DEBUG - ==>Verifying data for policy with id: 216d9d13-7147-40a2-bf8c-4710073f35fc, fqn: ['default-domain', 'ctest-TestBasicPolicy-64663725', 'ctest-policy-allow-all-81964092'] 2025-02-12 03:05:29,999 - INFO - VN ctest-vn-13858716 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-12 03:05:30,000 - DEBUG - Verifying the vn in opserver 2025-02-12 03:05:30,000 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64663725:ctest-vn-13858716 virtual network link through opserver 10.0.0.28 2025-02-12 03:05:30,000 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2025-02-12 03:05:30,012 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64663725:ctest-vn-13858716', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64663725:ctest-vn-13858716?flat'} 2025-02-12 03:05:30,012 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64663725:ctest-vn-13858716 is found in opserver 2025-02-12 03:05:30,024 - DEBUG - Do not have enough data to verify VN in agent 2025-02-12 03:05:30,031 - DEBUG - VRF ids for VN ctest-vn-13858716: {} 2025-02-12 03:05:30,094 - DEBUG - Services list from nova: [, , ] 2025-02-12 03:05:31,262 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2725-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2725-1) 2025-02-12 03:05:32,468 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2725-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2725-1) 2025-02-12 03:05:32,470 - INFO - Waiting for VM ctest-TestBasicPolicy-64663725-28766214 to be up.. 2025-02-12 03:05:32,578 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-02-12 03:05:37,662 - DEBUG - VM is in ACTIVE state now 2025-02-12 03:05:37,662 - INFO - VM name : ctest-TestBasicPolicy-64663725-28766214 2025-02-12 03:05:37,744 - DEBUG - VM ctest-TestBasicPolicy-64663725-28766214 ID is 94328d61-009c-45d0-aeca-e7f646b86217 2025-02-12 03:05:37,766 - DEBUG - VM ctest-TestBasicPolicy-64663725-28766214 launched on Node cn-jenkins-deploy-platform-ansible-os-2725-1 2025-02-12 03:05:37,857 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/94328d61-009c-45d0-aeca-e7f646b86217 2025-02-12 03:05:37,866 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/3b36472e-ad20-42e4-9c8b-69c58724e247 2025-02-12 03:05:41,114 - 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 1007ms') 2025-02-12 03:05:41,114 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-64663725-28766214 failed! 2025-02-12 03:05:41,169 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-64663725:ctest-vn-94343893 is 218.22.13.129 and allocation pool is NOT set 2025-02-12 03:05:43,231 - 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.11 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.492 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.492/3.303/6.114/2.811 ms') 2025-02-12 03:05:43,231 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-64663725-28766214 passed 2025-02-12 03:05:43,381 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-12 03:05:43,381 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-64663725-28766214, IP 218.22.13.131, Port 22 2025-02-12 03:05:43,536 - DEBUG - VM ctest-TestBasicPolicy-64663725-28766214 is ready for SSH connections 2025-02-12 03:05:43,536 - INFO - Waiting for VM ctest-TestBasicPolicy-64663725-74591802 to be up.. 2025-02-12 03:05:43,626 - DEBUG - VM is in ACTIVE state now 2025-02-12 03:05:43,626 - INFO - VM name : ctest-TestBasicPolicy-64663725-74591802 2025-02-12 03:05:43,749 - DEBUG - VM ctest-TestBasicPolicy-64663725-74591802 ID is f8ea932b-022a-432c-be37-80b9a1c56a1f 2025-02-12 03:05:43,750 - DEBUG - VM ctest-TestBasicPolicy-64663725-74591802 launched on Node cn-jenkins-deploy-platform-ansible-os-2725-1 2025-02-12 03:05:43,837 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/f8ea932b-022a-432c-be37-80b9a1c56a1f 2025-02-12 03:05:43,848 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/5a7afb0f-9e74-4d35-9aa4-9bee5b3ffb9e 2025-02-12 03:05:45,092 - 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=2.91 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.405 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.405/1.659/2.913/1.254 ms') 2025-02-12 03:05:45,092 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-64663725-74591802 passed 2025-02-12 03:05:45,249 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-12 03:05:45,249 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-64663725-74591802, IP 137.36.14.67, Port 22 2025-02-12 03:05:45,404 - DEBUG - VM ctest-TestBasicPolicy-64663725-74591802 is ready for SSH connections 2025-02-12 03:05:45,404 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-12 03:05:45,404 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 137.36.14.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2025-02-12 03:05:45,404 - DEBUG - ping -s 56 -c 3 -W 1 137.36.14.67 2025-02-12 03:05:49,097 - DEBUG - PING 137.36.14.67 (137.36.14.67): 56 data bytes 64 bytes from 137.36.14.67: seq=0 ttl=63 time=4.551 ms 64 bytes from 137.36.14.67: seq=1 ttl=63 time=0.894 ms 64 bytes from 137.36.14.67: seq=2 ttl=63 time=2.090 ms --- 137.36.14.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.894/2.511/4.551 ms 2025-02-12 03:05:49,097 - INFO - Ping to IP 137.36.14.67 from VM ctest-TestBasicPolicy-64663725-28766214 passed 2025-02-12 03:05:49,304 - DEBUG - Policy Update Response {"network-policy": {"uuid": "216d9d13-7147-40a2-bf8c-4710073f35fc", "href": "http://10.0.0.28:8082/network-policy/216d9d13-7147-40a2-bf8c-4710073f35fc"}} 2025-02-12 03:05:49,304 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-12 03:05:49,305 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 137.36.14.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2025-02-12 03:05:49,305 - DEBUG - ping -s 56 -c 3 -W 1 137.36.14.67 2025-02-12 03:05:52,521 - DEBUG - PING 137.36.14.67 (137.36.14.67): 56 data bytes 64 bytes from 137.36.14.67: seq=0 ttl=63 time=1.529 ms --- 137.36.14.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.529/1.529/1.529 ms 2025-02-12 03:05:52,521 - WARNING - Ping to IP 137.36.14.67 from VM ctest-TestBasicPolicy-64663725-28766214 failed 2025-02-12 03:05:52,521 - INFO - Deleting VM ctest-TestBasicPolicy-64663725-74591802 2025-02-12 03:05:52,593 - INFO - Deleting VM ctest-TestBasicPolicy-64663725-28766214 2025-02-12 03:05:53,040 - INFO - Deleted policy ctest-policy-allow-all-81964092 2025-02-12 03:05:53,040 - INFO - Deleting VN ctest-vn-13858716 2025-02-12 03:05:53,079 - DEBUG - VN 0cd37da3-9dd3-40b4-82aa-79e91e71e4cb still in use: Unable to complete operation on network 0cd37da3-9dd3-40b4-82aa-79e91e71e4cb. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-fdef3639-d974-4b8d-a70d-34baf8f598a2'] 2025-02-12 03:05:53,079 - WARNING - Deleting VN ctest-vn-13858716 failed..Will retry 2025-02-12 03:05:55,206 - DEBUG - Response for deleting network () 2025-02-12 03:05:55,206 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/33485446-31e3-4388-ba2f-ef41f4485bb6 2025-02-12 03:05:55,213 - DEBUG - Response Code: 404 2025-02-12 03:05:55,214 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2025-02-12 03:05:55,219 - DEBUG - Requesting: http://10.0.0.28:8082/domain/6b8ca316-986a-4015-a6b0-fac1d24bc648 2025-02-12 03:05:55,275 - DEBUG - Requesting: http://10.0.0.28:8082/project/fc82ca7a-34e2-485a-a81e-87cebd041237 2025-02-12 03:05:55,346 - INFO - Validated that VN ctest-vn-13858716 is not found in API Server 2025-02-12 03:05:55,357 - DEBUG - VN ctest-vn-13858716 is not present in Agent 10.0.0.28 2025-02-12 03:05:55,357 - INFO - Validated that VN ctest-vn-13858716 is not in any agent 2025-02-12 03:05:55,371 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-13858716 info 2025-02-12 03:05:55,371 - INFO - Deleting VN ctest-vn-94343893 2025-02-12 03:05:55,477 - DEBUG - Response for deleting network () 2025-02-12 03:05:55,477 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/b82f2369-8b7e-4509-8e8e-c5f789de956a 2025-02-12 03:05:55,485 - DEBUG - Response Code: 404 2025-02-12 03:05:55,485 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2025-02-12 03:05:55,491 - DEBUG - Requesting: http://10.0.0.28:8082/domain/6b8ca316-986a-4015-a6b0-fac1d24bc648 2025-02-12 03:05:55,548 - DEBUG - Requesting: http://10.0.0.28:8082/project/fc82ca7a-34e2-485a-a81e-87cebd041237 2025-02-12 03:05:55,624 - INFO - Validated that VN ctest-vn-94343893 is not found in API Server 2025-02-12 03:05:55,634 - DEBUG - VN ctest-vn-94343893 is not present in Agent 10.0.0.28 2025-02-12 03:05:55,634 - INFO - Validated that VN ctest-vn-94343893 is not in any agent 2025-02-12 03:05:55,651 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-94343893 info 2025-02-12 03:05:55,906 - DEBUG - No XMPP flaps were noticed during the test
2025-02-12 03:05:55,906 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29]
2025-02-12 03:05:55,906 - INFO - -------------------------------------------------------------------------------- 2025-02-12 03:05:56,598 - INFO - Deleted project: ctest-TestBasicPolicy-64663725, ID : fc82ca7a-34e2-485a-a81e-87cebd041237