2025-06-04 22:12:04,354 - INFO - Domain Default found not creating 2025-06-04 22:12:04,516 - INFO - Project ctest-TestBasicPolicy-06165221 not found, creating it 2025-06-04 22:12:05,102 - INFO - Created Project:ctest-TestBasicPolicy-06165221, ID : 9d2c5c7e-491a-4d21-ab2c-fcbe843ad19c 2025-06-04 22:12:06,663 - INFO - ================================================================================ 2025-06-04 22:12:06,663 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-04 22:12:06,663 - 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-04 22:12:06,921 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.0.0.57': '0'}} with 2025-06-04 22:12:06,922 - INFO - Initial checks done. Running the testcase now 2025-06-04 22:12:06,922 - INFO - 2025-06-04 22:12:07,478 - DEBUG - Response for create_network : {'network': {'id': 'fad5ac1f-c6f2-458a-bcb6-e0b112625679', 'name': 'ctest-vn-32811853', 'tenant_id': '9d2c5c7e491a4d21ab2cfcbe843ad19c', 'project_id': '9d2c5c7e491a4d21ab2cfcbe843ad19c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06165221', 'ctest-vn-32811853'], 'port_security_enabled': True, 'description': ''}} 2025-06-04 22:12:07,691 - DEBUG - Response for create_subnet : {'subnet': {'id': '02cbe9fc-611a-4738-b838-3ccdf5ab950a', 'name': '', 'tenant_id': '9d2c5c7e491a4d21ab2cfcbe843ad19c', 'network_id': 'fad5ac1f-c6f2-458a-bcb6-e0b112625679', 'ip_version': 4, 'cidr': '139.148.99.192/26', 'allocation_pools': [{'start': '139.148.99.194', 'end': '139.148.99.254'}], 'gateway_ip': '139.148.99.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '139.148.99.194', 'tags': [], 'project_id': '9d2c5c7e491a4d21ab2cfcbe843ad19c'}} 2025-06-04 22:12:07,709 - INFO - Created VN ctest-vn-32811853 2025-06-04 22:12:07,760 - DEBUG - VN ctest-vn-32811853 UUID is fad5ac1f-c6f2-458a-bcb6-e0b112625679 2025-06-04 22:12:08,096 - DEBUG - Response for create_network : {'network': {'id': '77ba8dc9-3314-4879-a8a3-363597b0ac27', 'name': 'ctest-vn-26649618', 'tenant_id': '9d2c5c7e491a4d21ab2cfcbe843ad19c', 'project_id': '9d2c5c7e491a4d21ab2cfcbe843ad19c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06165221', 'ctest-vn-26649618'], 'port_security_enabled': True, 'description': ''}} 2025-06-04 22:12:08,299 - DEBUG - Response for create_subnet : {'subnet': {'id': '803f8132-0147-4786-9d06-b4230d6a9832', 'name': '', 'tenant_id': '9d2c5c7e491a4d21ab2cfcbe843ad19c', 'network_id': '77ba8dc9-3314-4879-a8a3-363597b0ac27', 'ip_version': 4, 'cidr': '35.221.45.128/26', 'allocation_pools': [{'start': '35.221.45.130', 'end': '35.221.45.190'}], 'gateway_ip': '35.221.45.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35.221.45.130', 'tags': [], 'project_id': '9d2c5c7e491a4d21ab2cfcbe843ad19c'}} 2025-06-04 22:12:08,317 - INFO - Created VN ctest-vn-26649618 2025-06-04 22:12:08,372 - DEBUG - VN ctest-vn-26649618 UUID is 77ba8dc9-3314-4879-a8a3-363597b0ac27 2025-06-04 22:12:08,495 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-06165221:ctest-vn-32811853, 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-06165221:ctest-vn-26649618, 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-04 22:12:08,817 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fad5ac1f-c6f2-458a-bcb6-e0b112625679', 'name': 'ctest-vn-32811853', 'tenant_id': '9d2c5c7e491a4d21ab2cfcbe843ad19c', 'project_id': '9d2c5c7e491a4d21ab2cfcbe843ad19c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['02cbe9fc-611a-4738-b838-3ccdf5ab950a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06165221', 'ctest-vn-32811853'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06165221', 'ctest-policy-allow-all-24899891']], 'subnet_ipam': [{'subnet_cidr': '139.148.99.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-04 22:12:09,056 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '77ba8dc9-3314-4879-a8a3-363597b0ac27', 'name': 'ctest-vn-26649618', 'tenant_id': '9d2c5c7e491a4d21ab2cfcbe843ad19c', 'project_id': '9d2c5c7e491a4d21ab2cfcbe843ad19c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['803f8132-0147-4786-9d06-b4230d6a9832'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06165221', 'ctest-vn-26649618'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06165221', 'ctest-policy-allow-all-24899891']], 'subnet_ipam': [{'subnet_cidr': '35.221.45.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-04 22:12:09,228 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-06-04 22:12:09,527 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-06-04 22:12:09,555 - DEBUG - Requesting: http://10.0.0.57:8082/domain/53966ec4-eeda-496b-b3cc-f9d67f34f565 2025-06-04 22:12:09,566 - DEBUG - Requesting: http://10.0.0.57:8082/project/9d2c5c7e-491a-4d21-ab2c-fcbe843ad19c 2025-06-04 22:12:09,642 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/fad5ac1f-c6f2-458a-bcb6-e0b112625679 2025-06-04 22:12:09,652 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/fad5ac1f-c6f2-458a-bcb6-e0b112625679 2025-06-04 22:12:09,660 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d3d092ac-5647-4977-9920-34e0166e5ac5 2025-06-04 22:12:09,666 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d3d092ac-5647-4977-9920-34e0166e5ac5 2025-06-04 22:12:09,672 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/cec2b34f-fd60-4b53-bdaa-c084bfcbb348 2025-06-04 22:12:09,678 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-04 22:12:09,678 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/fad5ac1f-c6f2-458a-bcb6-e0b112625679 2025-06-04 22:12:09,687 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d3d092ac-5647-4977-9920-34e0166e5ac5 2025-06-04 22:12:09,700 - INFO - Verified VN network id 7 for VN fad5ac1f-c6f2-458a-bcb6-e0b112625679 2025-06-04 22:12:09,700 - INFO - Verifications in API Server for VN ctest-vn-32811853 passed 2025-06-04 22:12:09,700 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/fad5ac1f-c6f2-458a-bcb6-e0b112625679 2025-06-04 22:12:09,708 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d3d092ac-5647-4977-9920-34e0166e5ac5 2025-06-04 22:12:09,717 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d3d092ac-5647-4977-9920-34e0166e5ac5 2025-06-04 22:12:09,724 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/cec2b34f-fd60-4b53-bdaa-c084bfcbb348 2025-06-04 22:12:09,735 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06165221:ctest-vn-32811853', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06165221', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18074541932003083658', 'uuid-lslong': '13598303176014059129'}, 'enable': 'true', 'created': '2025-06-04T22:12:07', 'last-modified': '2025-06-04T22:12:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.950817'} 2025-06-04 22:12:09,743 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-04 22:12:09,743 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32811853 passed 2025-06-04 22:12:09,743 - DEBUG - ====Verifying policy data for ctest-vn-32811853 in API_Server ====== 2025-06-04 22:12:09,743 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-06-04 22:12:09,748 - DEBUG - Requesting: http://10.0.0.57:8082/domain/53966ec4-eeda-496b-b3cc-f9d67f34f565 2025-06-04 22:12:09,760 - DEBUG - Requesting: http://10.0.0.57:8082/project/9d2c5c7e-491a-4d21-ab2c-fcbe843ad19c 2025-06-04 22:12:09,836 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/fad5ac1f-c6f2-458a-bcb6-e0b112625679 2025-06-04 22:12:09,847 - DEBUG - ==>Verifying data for policy with id: a187e8b7-d9a6-4427-853a-6811bff277b5, fqn: ['default-domain', 'ctest-TestBasicPolicy-06165221', 'ctest-policy-allow-all-24899891'] 2025-06-04 22:12:09,847 - INFO - VN ctest-vn-32811853 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-04 22:12:09,847 - DEBUG - Verifying the vn in opserver 2025-06-04 22:12:09,847 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06165221:ctest-vn-32811853 virtual network link through opserver 10.0.0.57 2025-06-04 22:12:09,848 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-06-04 22:12:10,164 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-06-04 22:12:10,228 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06165221:ctest-vn-32811853', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06165221:ctest-vn-32811853?flat'} 2025-06-04 22:12:10,228 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06165221:ctest-vn-32811853 is found in opserver 2025-06-04 22:12:10,238 - DEBUG - Do not have enough data to verify VN in agent 2025-06-04 22:12:10,243 - DEBUG - VRF ids for VN ctest-vn-32811853: {} 2025-06-04 22:12:10,244 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-06-04 22:12:10,250 - DEBUG - Requesting: http://10.0.0.57:8082/domain/53966ec4-eeda-496b-b3cc-f9d67f34f565 2025-06-04 22:12:10,335 - DEBUG - Requesting: http://10.0.0.57:8082/project/9d2c5c7e-491a-4d21-ab2c-fcbe843ad19c 2025-06-04 22:12:10,410 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/77ba8dc9-3314-4879-a8a3-363597b0ac27 2025-06-04 22:12:10,421 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/77ba8dc9-3314-4879-a8a3-363597b0ac27 2025-06-04 22:12:10,431 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/37fc41a6-151f-4057-ae8e-51f1025a1e83 2025-06-04 22:12:10,445 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/37fc41a6-151f-4057-ae8e-51f1025a1e83 2025-06-04 22:12:10,453 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/9a99766e-4572-44f1-8e41-289409120db7 2025-06-04 22:12:10,460 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-04 22:12:10,460 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/77ba8dc9-3314-4879-a8a3-363597b0ac27 2025-06-04 22:12:10,470 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/37fc41a6-151f-4057-ae8e-51f1025a1e83 2025-06-04 22:12:10,485 - INFO - Verified VN network id 8 for VN 77ba8dc9-3314-4879-a8a3-363597b0ac27 2025-06-04 22:12:10,485 - INFO - Verifications in API Server for VN ctest-vn-26649618 passed 2025-06-04 22:12:10,485 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/77ba8dc9-3314-4879-a8a3-363597b0ac27 2025-06-04 22:12:10,494 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/37fc41a6-151f-4057-ae8e-51f1025a1e83 2025-06-04 22:12:10,501 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/37fc41a6-151f-4057-ae8e-51f1025a1e83 2025-06-04 22:12:10,509 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/9a99766e-4572-44f1-8e41-289409120db7 2025-06-04 22:12:10,520 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06165221:ctest-vn-26649618', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06165221', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8627363931466516601', 'uuid-lslong': '12151615823381834791'}, 'enable': 'true', 'created': '2025-06-04T22:12:08', 'last-modified': '2025-06-04T22:12:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.488859'} 2025-06-04 22:12:10,526 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-04 22:12:10,526 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26649618 passed 2025-06-04 22:12:10,526 - DEBUG - ====Verifying policy data for ctest-vn-26649618 in API_Server ====== 2025-06-04 22:12:10,526 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-06-04 22:12:10,532 - DEBUG - Requesting: http://10.0.0.57:8082/domain/53966ec4-eeda-496b-b3cc-f9d67f34f565 2025-06-04 22:12:10,543 - DEBUG - Requesting: http://10.0.0.57:8082/project/9d2c5c7e-491a-4d21-ab2c-fcbe843ad19c 2025-06-04 22:12:10,614 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/77ba8dc9-3314-4879-a8a3-363597b0ac27 2025-06-04 22:12:10,623 - DEBUG - ==>Verifying data for policy with id: a187e8b7-d9a6-4427-853a-6811bff277b5, fqn: ['default-domain', 'ctest-TestBasicPolicy-06165221', 'ctest-policy-allow-all-24899891'] 2025-06-04 22:12:10,623 - INFO - VN ctest-vn-26649618 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-04 22:12:10,624 - DEBUG - Verifying the vn in opserver 2025-06-04 22:12:10,624 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06165221:ctest-vn-26649618 virtual network link through opserver 10.0.0.57 2025-06-04 22:12:10,624 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-06-04 22:12:10,637 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06165221:ctest-vn-26649618', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06165221:ctest-vn-26649618?flat'} 2025-06-04 22:12:10,637 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06165221:ctest-vn-26649618 is found in opserver 2025-06-04 22:12:10,653 - DEBUG - Do not have enough data to verify VN in agent 2025-06-04 22:12:10,659 - DEBUG - VRF ids for VN ctest-vn-26649618: {} 2025-06-04 22:12:10,724 - DEBUG - Services list from nova: [, , ] 2025-06-04 22:12:11,782 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3400-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3400-1) 2025-06-04 22:12:13,132 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3400-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3400-1) 2025-06-04 22:12:13,132 - INFO - Waiting for VM ctest-TestBasicPolicy-06165221-22194130 to be up.. 2025-06-04 22:12:13,219 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-04 22:12:18,306 - DEBUG - VM is in ACTIVE state now 2025-06-04 22:12:18,306 - INFO - VM name : ctest-TestBasicPolicy-06165221-22194130 2025-06-04 22:12:18,398 - DEBUG - VM ctest-TestBasicPolicy-06165221-22194130 ID is 131d39da-7ba0-4932-8fd8-0ac72718f857 2025-06-04 22:12:18,431 - DEBUG - VM ctest-TestBasicPolicy-06165221-22194130 launched on Node cn-jenkins-deploy-platform-ansible-os-3400-1. 2025-06-04 22:12:18,576 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/131d39da-7ba0-4932-8fd8-0ac72718f857 2025-06-04 22:12:18,588 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/c04a1204-6731-4248-bbaa-7de484e1c6da 2025-06-04 22:12:21,873 - 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 1010ms') 2025-06-04 22:12:21,873 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-06165221-22194130 failed! 2025-06-04 22:12:21,932 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-06165221:ctest-vn-32811853 is 139.148.99.193 and allocation pool is NOT set 2025-06-04 22:12:24,001 - 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=9.42 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.46 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 = 1.459/5.441/9.424/3.982 ms') 2025-06-04 22:12:24,002 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-06165221-22194130 passed 2025-06-04 22:12:24,155 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-04 22:12:24,155 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-06165221-22194130, IP 139.148.99.195, Port 22 2025-06-04 22:12:24,312 - DEBUG - VM ctest-TestBasicPolicy-06165221-22194130 is ready for SSH connections 2025-06-04 22:12:24,312 - INFO - Waiting for VM ctest-TestBasicPolicy-06165221-33994412 to be up.. 2025-06-04 22:12:24,397 - DEBUG - VM is in ACTIVE state now 2025-06-04 22:12:24,397 - INFO - VM name : ctest-TestBasicPolicy-06165221-33994412 2025-06-04 22:12:24,475 - DEBUG - VM ctest-TestBasicPolicy-06165221-33994412 ID is bfe59a4a-c944-485f-976e-26edb84c8eb0 2025-06-04 22:12:24,475 - DEBUG - VM ctest-TestBasicPolicy-06165221-33994412 launched on Node cn-jenkins-deploy-platform-ansible-os-3400-1. 2025-06-04 22:12:24,563 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/bfe59a4a-c944-485f-976e-26edb84c8eb0 2025-06-04 22:12:24,575 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/39322770-4971-436f-bdbe-8d97028c3225 2025-06-04 22:12:25,817 - 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.30 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.504 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.504/1.899/3.295/1.395 ms') 2025-06-04 22:12:25,817 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-06165221-33994412 passed 2025-06-04 22:12:25,965 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-04 22:12:25,965 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-06165221-33994412, IP 35.221.45.131, Port 22 2025-06-04 22:12:26,146 - DEBUG - VM ctest-TestBasicPolicy-06165221-33994412 is ready for SSH connections 2025-06-04 22:12:26,146 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-04 22:12:26,146 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 35.221.45.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2025-06-04 22:12:26,146 - DEBUG - ping -s 56 -c 3 -W 1 35.221.45.131 2025-06-04 22:12:30,255 - DEBUG - PING 35.221.45.131 (35.221.45.131): 56 data bytes 64 bytes from 35.221.45.131: seq=0 ttl=63 time=4.262 ms 64 bytes from 35.221.45.131: seq=1 ttl=63 time=0.877 ms 64 bytes from 35.221.45.131: seq=2 ttl=63 time=1.197 ms --- 35.221.45.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.877/2.112/4.262 ms 2025-06-04 22:12:30,255 - INFO - Ping to IP 35.221.45.131 from VM ctest-TestBasicPolicy-06165221-22194130 passed 2025-06-04 22:12:30,448 - DEBUG - Policy Update Response {"network-policy": {"uuid": "a187e8b7-d9a6-4427-853a-6811bff277b5", "href": "http://10.0.0.57:8082/network-policy/a187e8b7-d9a6-4427-853a-6811bff277b5"}} 2025-06-04 22:12:30,448 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-04 22:12:30,448 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 35.221.45.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2025-06-04 22:12:30,448 - DEBUG - ping -s 56 -c 3 -W 1 35.221.45.131 2025-06-04 22:12:33,674 - DEBUG - PING 35.221.45.131 (35.221.45.131): 56 data bytes --- 35.221.45.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-06-04 22:12:33,674 - WARNING - Ping to IP 35.221.45.131 from VM ctest-TestBasicPolicy-06165221-22194130 failed 2025-06-04 22:12:33,674 - INFO - Deleting VM ctest-TestBasicPolicy-06165221-33994412 2025-06-04 22:12:33,753 - INFO - Deleting VM ctest-TestBasicPolicy-06165221-22194130 2025-06-04 22:12:34,166 - INFO - Deleted policy ctest-policy-allow-all-24899891 2025-06-04 22:12:34,166 - INFO - Deleting VN ctest-vn-26649618 2025-06-04 22:12:34,208 - DEBUG - VN 77ba8dc9-3314-4879-a8a3-363597b0ac27 still in use: Unable to complete operation on network 77ba8dc9-3314-4879-a8a3-363597b0ac27. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-4fc38030-3ece-4a31-8a41-c3f5bbe89819'] 2025-06-04 22:12:34,208 - WARNING - Deleting VN ctest-vn-26649618 failed..Will retry 2025-06-04 22:12:36,312 - DEBUG - Response for deleting network () 2025-06-04 22:12:36,312 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/37fc41a6-151f-4057-ae8e-51f1025a1e83 2025-06-04 22:12:36,319 - DEBUG - Response Code: 404 2025-06-04 22:12:36,319 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-06-04 22:12:36,329 - DEBUG - Requesting: http://10.0.0.57:8082/domain/53966ec4-eeda-496b-b3cc-f9d67f34f565 2025-06-04 22:12:36,382 - DEBUG - Requesting: http://10.0.0.57:8082/project/9d2c5c7e-491a-4d21-ab2c-fcbe843ad19c 2025-06-04 22:12:36,452 - INFO - Validated that VN ctest-vn-26649618 is not found in API Server 2025-06-04 22:12:36,462 - DEBUG - VN ctest-vn-26649618 is not present in Agent 10.0.0.57 2025-06-04 22:12:36,462 - INFO - Validated that VN ctest-vn-26649618 is not in any agent 2025-06-04 22:12:36,476 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-26649618 info 2025-06-04 22:12:36,476 - INFO - Deleting VN ctest-vn-32811853 2025-06-04 22:12:36,580 - DEBUG - Response for deleting network () 2025-06-04 22:12:36,580 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d3d092ac-5647-4977-9920-34e0166e5ac5 2025-06-04 22:12:36,587 - DEBUG - Response Code: 404 2025-06-04 22:12:36,587 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-06-04 22:12:36,599 - DEBUG - Requesting: http://10.0.0.57:8082/domain/53966ec4-eeda-496b-b3cc-f9d67f34f565 2025-06-04 22:12:36,655 - DEBUG - Requesting: http://10.0.0.57:8082/project/9d2c5c7e-491a-4d21-ab2c-fcbe843ad19c 2025-06-04 22:12:36,735 - INFO - Validated that VN ctest-vn-32811853 is not found in API Server 2025-06-04 22:12:36,746 - DEBUG - VN ctest-vn-32811853 is not present in Agent 10.0.0.57 2025-06-04 22:12:36,746 - INFO - Validated that VN ctest-vn-32811853 is not in any agent 2025-06-04 22:12:36,764 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-32811853 info 2025-06-04 22:12:37,021 - DEBUG - No XMPP flaps were noticed during the test 2025-06-04 22:12:37,021 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31] 2025-06-04 22:12:37,021 - INFO - -------------------------------------------------------------------------------- 2025-06-04 22:12:37,709 - INFO - Deleted project: ctest-TestBasicPolicy-06165221, ID : 9d2c5c7e-491a-4d21-ab2c-fcbe843ad19c