2025-08-11 15:51:01,566 - INFO - Domain Default found not creating 2025-08-11 15:51:01,682 - INFO - Project ctest-TestBasicPolicy-23256623 not found, creating it 2025-08-11 15:51:02,104 - INFO - Created Project:ctest-TestBasicPolicy-23256623, ID : 85dbc2df-f838-40ca-98b0-fa9b71aebfd4 2025-08-11 15:51:03,393 - INFO - ================================================================================ 2025-08-11 15:51:03,393 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-08-11 15:51:03,393 - 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-08-11 15:51:03,647 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-08-11 15:51:03,647 - INFO - Initial checks done. Running the testcase now 2025-08-11 15:51:03,647 - INFO - 2025-08-11 15:51:04,156 - DEBUG - Response for create_network : {'network': {'id': '7b3b5a2f-4ace-4015-9baa-7d0b28c20e9a', 'name': 'ctest-vn-97592790', 'tenant_id': '85dbc2dff83840ca98b0fa9b71aebfd4', 'project_id': '85dbc2dff83840ca98b0fa9b71aebfd4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23256623', 'ctest-vn-97592790'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 15:51:04,302 - DEBUG - Response for create_subnet : {'subnet': {'id': '54da0e92-bbd1-4236-8048-b2ba4aba5a03', 'name': '', 'tenant_id': '85dbc2dff83840ca98b0fa9b71aebfd4', 'network_id': '7b3b5a2f-4ace-4015-9baa-7d0b28c20e9a', 'ip_version': 4, 'cidr': '121.111.159.192/26', 'allocation_pools': [{'start': '121.111.159.194', 'end': '121.111.159.254'}], 'gateway_ip': '121.111.159.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.111.159.194', 'tags': [], 'project_id': '85dbc2dff83840ca98b0fa9b71aebfd4'}} 2025-08-11 15:51:04,317 - INFO - Created VN ctest-vn-97592790 2025-08-11 15:51:04,367 - DEBUG - VN ctest-vn-97592790 UUID is 7b3b5a2f-4ace-4015-9baa-7d0b28c20e9a 2025-08-11 15:51:04,657 - DEBUG - Response for create_network : {'network': {'id': '4d236b40-23fe-4e2a-8f0a-280f904aaf40', 'name': 'ctest-vn-43062705', 'tenant_id': '85dbc2dff83840ca98b0fa9b71aebfd4', 'project_id': '85dbc2dff83840ca98b0fa9b71aebfd4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23256623', 'ctest-vn-43062705'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 15:51:04,796 - DEBUG - Response for create_subnet : {'subnet': {'id': '5ae0aff0-e633-4d12-b175-eea5e3d600f1', 'name': '', 'tenant_id': '85dbc2dff83840ca98b0fa9b71aebfd4', 'network_id': '4d236b40-23fe-4e2a-8f0a-280f904aaf40', 'ip_version': 4, 'cidr': '211.163.84.0/26', 'allocation_pools': [{'start': '211.163.84.2', 'end': '211.163.84.62'}], 'gateway_ip': '211.163.84.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.163.84.2', 'tags': [], 'project_id': '85dbc2dff83840ca98b0fa9b71aebfd4'}} 2025-08-11 15:51:04,811 - INFO - Created VN ctest-vn-43062705 2025-08-11 15:51:04,863 - DEBUG - VN ctest-vn-43062705 UUID is 4d236b40-23fe-4e2a-8f0a-280f904aaf40 2025-08-11 15:51:05,006 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-23256623:ctest-vn-97592790, 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-23256623:ctest-vn-43062705, 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-08-11 15:51:05,296 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7b3b5a2f-4ace-4015-9baa-7d0b28c20e9a', 'name': 'ctest-vn-97592790', 'tenant_id': '85dbc2dff83840ca98b0fa9b71aebfd4', 'project_id': '85dbc2dff83840ca98b0fa9b71aebfd4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['54da0e92-bbd1-4236-8048-b2ba4aba5a03'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23256623', 'ctest-vn-97592790'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23256623', 'ctest-policy-allow-all-24113074']], 'subnet_ipam': [{'subnet_cidr': '121.111.159.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-11 15:51:05,507 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4d236b40-23fe-4e2a-8f0a-280f904aaf40', 'name': 'ctest-vn-43062705', 'tenant_id': '85dbc2dff83840ca98b0fa9b71aebfd4', 'project_id': '85dbc2dff83840ca98b0fa9b71aebfd4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5ae0aff0-e633-4d12-b175-eea5e3d600f1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23256623', 'ctest-vn-43062705'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23256623', 'ctest-policy-allow-all-24113074']], 'subnet_ipam': [{'subnet_cidr': '211.163.84.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-11 15:51:05,671 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-11 15:51:05,956 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-11 15:51:05,980 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0598bc6-8b1f-48a3-92e1-9024fd400f49 2025-08-11 15:51:05,993 - DEBUG - Requesting: http://10.0.0.50:8082/project/85dbc2df-f838-40ca-98b0-fa9b71aebfd4 2025-08-11 15:51:06,071 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7b3b5a2f-4ace-4015-9baa-7d0b28c20e9a 2025-08-11 15:51:06,081 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7b3b5a2f-4ace-4015-9baa-7d0b28c20e9a 2025-08-11 15:51:06,089 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c766409e-149d-4655-82b3-943e305cc4b8 2025-08-11 15:51:06,095 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c766409e-149d-4655-82b3-943e305cc4b8 2025-08-11 15:51:06,101 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/bf6d70df-e564-4e47-a60b-3bbad97a5c91 2025-08-11 15:51:06,106 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 15:51:06,106 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7b3b5a2f-4ace-4015-9baa-7d0b28c20e9a 2025-08-11 15:51:06,114 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c766409e-149d-4655-82b3-943e305cc4b8 2025-08-11 15:51:06,126 - INFO - Verified VN network id 11 for VN 7b3b5a2f-4ace-4015-9baa-7d0b28c20e9a 2025-08-11 15:51:06,126 - INFO - Verifications in API Server for VN ctest-vn-97592790 passed 2025-08-11 15:51:06,126 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7b3b5a2f-4ace-4015-9baa-7d0b28c20e9a 2025-08-11 15:51:06,134 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c766409e-149d-4655-82b3-943e305cc4b8 2025-08-11 15:51:06,140 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c766409e-149d-4655-82b3-943e305cc4b8 2025-08-11 15:51:06,146 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/bf6d70df-e564-4e47-a60b-3bbad97a5c91 2025-08-11 15:51:06,157 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23256623:ctest-vn-97592790', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23256623', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8879790249456058389', 'uuid-lslong': '11216915308801560218'}, 'enable': 'true', 'created': '2025-08-11T15:51:04', 'last-modified': '2025-08-11T15:51:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.882618'} 2025-08-11 15:51:06,163 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 15:51:06,163 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97592790 passed 2025-08-11 15:51:06,163 - DEBUG - ====Verifying policy data for ctest-vn-97592790 in API_Server ====== 2025-08-11 15:51:06,163 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-11 15:51:06,168 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0598bc6-8b1f-48a3-92e1-9024fd400f49 2025-08-11 15:51:06,178 - DEBUG - Requesting: http://10.0.0.50:8082/project/85dbc2df-f838-40ca-98b0-fa9b71aebfd4 2025-08-11 15:51:06,248 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7b3b5a2f-4ace-4015-9baa-7d0b28c20e9a 2025-08-11 15:51:06,258 - DEBUG - ==>Verifying data for policy with id: a65bafae-df0e-418f-b715-389745e0a40b, fqn: ['default-domain', 'ctest-TestBasicPolicy-23256623', 'ctest-policy-allow-all-24113074'] 2025-08-11 15:51:06,258 - INFO - VN ctest-vn-97592790 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-11 15:51:06,258 - DEBUG - Verifying the vn in opserver 2025-08-11 15:51:06,258 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23256623:ctest-vn-97592790 virtual network link through opserver 10.0.0.50 2025-08-11 15:51:06,259 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-11 15:51:06,545 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-11 15:51:06,593 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23256623:ctest-vn-97592790', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23256623:ctest-vn-97592790?flat'} 2025-08-11 15:51:06,593 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23256623:ctest-vn-97592790 is found in opserver 2025-08-11 15:51:06,603 - DEBUG - Do not have enough data to verify VN in agent 2025-08-11 15:51:06,608 - DEBUG - VRF ids for VN ctest-vn-97592790: {} 2025-08-11 15:51:06,608 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-11 15:51:06,613 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0598bc6-8b1f-48a3-92e1-9024fd400f49 2025-08-11 15:51:06,623 - DEBUG - Requesting: http://10.0.0.50:8082/project/85dbc2df-f838-40ca-98b0-fa9b71aebfd4 2025-08-11 15:51:06,696 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4d236b40-23fe-4e2a-8f0a-280f904aaf40 2025-08-11 15:51:06,710 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4d236b40-23fe-4e2a-8f0a-280f904aaf40 2025-08-11 15:51:06,720 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/efc2de7b-7ff1-4f24-a6b0-fb579f678d8a 2025-08-11 15:51:06,727 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/efc2de7b-7ff1-4f24-a6b0-fb579f678d8a 2025-08-11 15:51:06,735 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/fb970447-596a-4b8a-8832-212dfbf24195 2025-08-11 15:51:06,741 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-11 15:51:06,741 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4d236b40-23fe-4e2a-8f0a-280f904aaf40 2025-08-11 15:51:06,749 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/efc2de7b-7ff1-4f24-a6b0-fb579f678d8a 2025-08-11 15:51:06,761 - INFO - Verified VN network id 12 for VN 4d236b40-23fe-4e2a-8f0a-280f904aaf40 2025-08-11 15:51:06,761 - INFO - Verifications in API Server for VN ctest-vn-43062705 passed 2025-08-11 15:51:06,761 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4d236b40-23fe-4e2a-8f0a-280f904aaf40 2025-08-11 15:51:06,770 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/efc2de7b-7ff1-4f24-a6b0-fb579f678d8a 2025-08-11 15:51:06,776 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/efc2de7b-7ff1-4f24-a6b0-fb579f678d8a 2025-08-11 15:51:06,781 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/fb970447-596a-4b8a-8832-212dfbf24195 2025-08-11 15:51:06,793 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23256623:ctest-vn-43062705', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23256623', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5558404288331271722', 'uuid-lslong': '10307094744501235520'}, 'enable': 'true', 'created': '2025-08-11T15:51:04', 'last-modified': '2025-08-11T15:51:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.303964'} 2025-08-11 15:51:06,799 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-11 15:51:06,799 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43062705 passed 2025-08-11 15:51:06,799 - DEBUG - ====Verifying policy data for ctest-vn-43062705 in API_Server ====== 2025-08-11 15:51:06,799 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-11 15:51:06,804 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0598bc6-8b1f-48a3-92e1-9024fd400f49 2025-08-11 15:51:06,813 - DEBUG - Requesting: http://10.0.0.50:8082/project/85dbc2df-f838-40ca-98b0-fa9b71aebfd4 2025-08-11 15:51:06,884 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4d236b40-23fe-4e2a-8f0a-280f904aaf40 2025-08-11 15:51:06,893 - DEBUG - ==>Verifying data for policy with id: a65bafae-df0e-418f-b715-389745e0a40b, fqn: ['default-domain', 'ctest-TestBasicPolicy-23256623', 'ctest-policy-allow-all-24113074'] 2025-08-11 15:51:06,893 - INFO - VN ctest-vn-43062705 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-11 15:51:06,893 - DEBUG - Verifying the vn in opserver 2025-08-11 15:51:06,893 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23256623:ctest-vn-43062705 virtual network link through opserver 10.0.0.50 2025-08-11 15:51:06,893 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-11 15:51:06,902 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23256623:ctest-vn-43062705', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23256623:ctest-vn-43062705?flat'} 2025-08-11 15:51:06,902 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23256623:ctest-vn-43062705 is found in opserver 2025-08-11 15:51:06,912 - DEBUG - Do not have enough data to verify VN in agent 2025-08-11 15:51:06,916 - DEBUG - VRF ids for VN ctest-vn-43062705: {} 2025-08-11 15:51:06,965 - DEBUG - Services list from nova: [, , ] 2025-08-11 15:51:07,900 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3813-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3813-1) 2025-08-11 15:51:08,934 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3813-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3813-1) 2025-08-11 15:51:08,934 - INFO - Waiting for VM ctest-TestBasicPolicy-23256623-75523418 to be up.. 2025-08-11 15:51:09,001 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-11 15:51:14,064 - DEBUG - VM is in ACTIVE state now 2025-08-11 15:51:14,064 - INFO - VM name : ctest-TestBasicPolicy-23256623-75523418 2025-08-11 15:51:14,132 - DEBUG - VM ctest-TestBasicPolicy-23256623-75523418 ID is b7f820b0-d02e-46be-80d2-6ae77eff226b 2025-08-11 15:51:14,148 - DEBUG - VM ctest-TestBasicPolicy-23256623-75523418 launched on Node cn-jenkins-deploy-platform-ansible-os-3813-1 2025-08-11 15:51:14,206 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/b7f820b0-d02e-46be-80d2-6ae77eff226b 2025-08-11 15:51:14,214 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/cc76096d-c3eb-4630-ad9c-7d8f3f15683c 2025-08-11 15:51:17,473 - 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 1028ms') 2025-08-11 15:51:17,473 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-23256623-75523418 failed! 2025-08-11 15:51:17,527 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-23256623:ctest-vn-97592790 is 121.111.159.193 and allocation pool is NOT set 2025-08-11 15:51:19,582 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=4.01 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.81 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.814/2.911/4.008/1.097 ms') 2025-08-11 15:51:19,583 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-23256623-75523418 passed 2025-08-11 15:51:19,731 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 15:51:19,731 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-23256623-75523418, IP 121.111.159.195, Port 22 2025-08-11 15:51:19,890 - DEBUG - VM ctest-TestBasicPolicy-23256623-75523418 is ready for SSH connections 2025-08-11 15:51:19,890 - INFO - Waiting for VM ctest-TestBasicPolicy-23256623-90860743 to be up.. 2025-08-11 15:51:19,950 - DEBUG - VM is in ACTIVE state now 2025-08-11 15:51:19,950 - INFO - VM name : ctest-TestBasicPolicy-23256623-90860743 2025-08-11 15:51:20,007 - DEBUG - VM ctest-TestBasicPolicy-23256623-90860743 ID is 453dd1cf-1b56-4b4f-93bb-0b779a076830 2025-08-11 15:51:20,007 - DEBUG - VM ctest-TestBasicPolicy-23256623-90860743 launched on Node cn-jenkins-deploy-platform-ansible-os-3813-1 2025-08-11 15:51:20,062 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/453dd1cf-1b56-4b4f-93bb-0b779a076830 2025-08-11 15:51:20,069 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/b209aa27-9134-46fa-ba65-8fb6fe44ea81 2025-08-11 15:51:21,294 - 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=4.57 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.820 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.820/2.695/4.570/1.875 ms') 2025-08-11 15:51:21,294 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-23256623-90860743 passed 2025-08-11 15:51:21,447 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 15:51:21,447 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-23256623-90860743, IP 211.163.84.3, Port 22 2025-08-11 15:51:21,598 - DEBUG - VM ctest-TestBasicPolicy-23256623-90860743 is ready for SSH connections 2025-08-11 15:51:21,598 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 15:51:21,598 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 211.163.84.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-08-11 15:51:21,598 - DEBUG - ping -s 56 -c 3 -W 1 211.163.84.3 2025-08-11 15:51:25,508 - DEBUG - PING 211.163.84.3 (211.163.84.3): 56 data bytes 64 bytes from 211.163.84.3: seq=0 ttl=63 time=3.110 ms 64 bytes from 211.163.84.3: seq=1 ttl=63 time=0.666 ms 64 bytes from 211.163.84.3: seq=2 ttl=63 time=0.662 ms --- 211.163.84.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.662/1.479/3.110 ms 2025-08-11 15:51:25,508 - INFO - Ping to IP 211.163.84.3 from VM ctest-TestBasicPolicy-23256623-75523418 passed 2025-08-11 15:51:25,678 - DEBUG - Policy Update Response {"network-policy": {"uuid": "a65bafae-df0e-418f-b715-389745e0a40b", "href": "http://10.0.0.50:8082/network-policy/a65bafae-df0e-418f-b715-389745e0a40b"}} 2025-08-11 15:51:25,678 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-11 15:51:25,679 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 211.163.84.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-08-11 15:51:25,679 - DEBUG - ping -s 56 -c 3 -W 1 211.163.84.3 2025-08-11 15:51:28,872 - DEBUG - PING 211.163.84.3 (211.163.84.3): 56 data bytes 64 bytes from 211.163.84.3: seq=0 ttl=63 time=1.199 ms --- 211.163.84.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.199/1.199/1.199 ms 2025-08-11 15:51:28,872 - WARNING - Ping to IP 211.163.84.3 from VM ctest-TestBasicPolicy-23256623-75523418 failed 2025-08-11 15:51:28,872 - INFO - Deleting VM ctest-TestBasicPolicy-23256623-90860743 2025-08-11 15:51:28,928 - INFO - Deleting VM ctest-TestBasicPolicy-23256623-75523418 2025-08-11 15:51:29,257 - INFO - Deleted policy ctest-policy-allow-all-24113074 2025-08-11 15:51:29,257 - INFO - Deleting VN ctest-vn-43062705 2025-08-11 15:51:29,294 - DEBUG - VN 4d236b40-23fe-4e2a-8f0a-280f904aaf40 still in use: Unable to complete operation on network 4d236b40-23fe-4e2a-8f0a-280f904aaf40. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2a81116b-c756-4389-bd52-a87ac542c2e5'] 2025-08-11 15:51:29,294 - WARNING - Deleting VN ctest-vn-43062705 failed..Will retry 2025-08-11 15:51:31,383 - DEBUG - Response for deleting network () 2025-08-11 15:51:31,384 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/efc2de7b-7ff1-4f24-a6b0-fb579f678d8a 2025-08-11 15:51:31,389 - DEBUG - Response Code: 404 2025-08-11 15:51:31,389 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-11 15:51:31,393 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0598bc6-8b1f-48a3-92e1-9024fd400f49 2025-08-11 15:51:31,447 - DEBUG - Requesting: http://10.0.0.50:8082/project/85dbc2df-f838-40ca-98b0-fa9b71aebfd4 2025-08-11 15:51:31,514 - INFO - Validated that VN ctest-vn-43062705 is not found in API Server 2025-08-11 15:51:31,524 - DEBUG - VN ctest-vn-43062705 is not present in Agent 10.0.0.50 2025-08-11 15:51:31,524 - INFO - Validated that VN ctest-vn-43062705 is not in any agent 2025-08-11 15:51:31,538 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-43062705 info 2025-08-11 15:51:31,538 - INFO - Deleting VN ctest-vn-97592790 2025-08-11 15:51:31,621 - DEBUG - Response for deleting network () 2025-08-11 15:51:31,621 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c766409e-149d-4655-82b3-943e305cc4b8 2025-08-11 15:51:31,626 - DEBUG - Response Code: 404 2025-08-11 15:51:31,626 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-11 15:51:31,631 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0598bc6-8b1f-48a3-92e1-9024fd400f49 2025-08-11 15:51:31,683 - DEBUG - Requesting: http://10.0.0.50:8082/project/85dbc2df-f838-40ca-98b0-fa9b71aebfd4 2025-08-11 15:51:31,750 - INFO - Validated that VN ctest-vn-97592790 is not found in API Server 2025-08-11 15:51:31,760 - DEBUG - VN ctest-vn-97592790 is not present in Agent 10.0.0.50 2025-08-11 15:51:31,760 - INFO - Validated that VN ctest-vn-97592790 is not in any agent 2025-08-11 15:51:31,774 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-97592790 info 2025-08-11 15:51:32,027 - DEBUG - No XMPP flaps were noticed during the test
2025-08-11 15:51:32,027 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29]
2025-08-11 15:51:32,027 - INFO - -------------------------------------------------------------------------------- 2025-08-11 15:51:32,675 - INFO - Deleted project: ctest-TestBasicPolicy-23256623, ID : 85dbc2df-f838-40ca-98b0-fa9b71aebfd4