2025-07-07 14:21:47,216 - INFO - Domain Default found not creating 2025-07-07 14:21:47,363 - INFO - Project ctest-TestBasicPolicy-04012771 not found, creating it 2025-07-07 14:21:47,828 - INFO - Created Project:ctest-TestBasicPolicy-04012771, ID : c62555e6-75b6-451e-ba5e-c5e09a8d8337 2025-07-07 14:21:49,308 - INFO - ================================================================================ 2025-07-07 14:21:49,308 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-07-07 14:21:49,308 - 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-07-07 14:21:49,562 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2025-07-07 14:21:49,562 - INFO - Initial checks done. Running the testcase now 2025-07-07 14:21:49,562 - INFO - 2025-07-07 14:21:50,123 - DEBUG - Response for create_network : {'network': {'id': '1d27b9a1-ece1-43b6-9e7f-1e41693368dd', 'name': 'ctest-vn-17057180', 'tenant_id': 'c62555e675b6451eba5ec5e09a8d8337', 'project_id': 'c62555e675b6451eba5ec5e09a8d8337', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04012771', 'ctest-vn-17057180'], 'port_security_enabled': True, 'description': ''}} 2025-07-07 14:21:50,291 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad68b7d8-0306-4be1-acab-a73e8f64383c', 'name': '', 'tenant_id': 'c62555e675b6451eba5ec5e09a8d8337', 'network_id': '1d27b9a1-ece1-43b6-9e7f-1e41693368dd', 'ip_version': 4, 'cidr': '115.137.81.128/26', 'allocation_pools': [{'start': '115.137.81.130', 'end': '115.137.81.190'}], 'gateway_ip': '115.137.81.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.137.81.130', 'tags': [], 'project_id': 'c62555e675b6451eba5ec5e09a8d8337'}} 2025-07-07 14:21:50,312 - INFO - Created VN ctest-vn-17057180 2025-07-07 14:21:50,368 - DEBUG - VN ctest-vn-17057180 UUID is 1d27b9a1-ece1-43b6-9e7f-1e41693368dd 2025-07-07 14:21:50,674 - DEBUG - Response for create_network : {'network': {'id': '70e0930d-30fe-4985-b0f7-548a0dd334d3', 'name': 'ctest-vn-59166042', 'tenant_id': 'c62555e675b6451eba5ec5e09a8d8337', 'project_id': 'c62555e675b6451eba5ec5e09a8d8337', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04012771', 'ctest-vn-59166042'], 'port_security_enabled': True, 'description': ''}} 2025-07-07 14:21:50,846 - DEBUG - Response for create_subnet : {'subnet': {'id': '5438aea3-b830-4361-8e8f-df1f12d58367', 'name': '', 'tenant_id': 'c62555e675b6451eba5ec5e09a8d8337', 'network_id': '70e0930d-30fe-4985-b0f7-548a0dd334d3', 'ip_version': 4, 'cidr': '104.209.5.0/26', 'allocation_pools': [{'start': '104.209.5.2', 'end': '104.209.5.62'}], 'gateway_ip': '104.209.5.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.209.5.2', 'tags': [], 'project_id': 'c62555e675b6451eba5ec5e09a8d8337'}} 2025-07-07 14:21:50,865 - INFO - Created VN ctest-vn-59166042 2025-07-07 14:21:50,920 - DEBUG - VN ctest-vn-59166042 UUID is 70e0930d-30fe-4985-b0f7-548a0dd334d3 2025-07-07 14:21:51,036 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04012771:ctest-vn-17057180, 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-04012771:ctest-vn-59166042, 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-07-07 14:21:51,351 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1d27b9a1-ece1-43b6-9e7f-1e41693368dd', 'name': 'ctest-vn-17057180', 'tenant_id': 'c62555e675b6451eba5ec5e09a8d8337', 'project_id': 'c62555e675b6451eba5ec5e09a8d8337', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ad68b7d8-0306-4be1-acab-a73e8f64383c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04012771', 'ctest-vn-17057180'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04012771', 'ctest-policy-allow-all-13309705']], 'subnet_ipam': [{'subnet_cidr': '115.137.81.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-07 14:21:51,633 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '70e0930d-30fe-4985-b0f7-548a0dd334d3', 'name': 'ctest-vn-59166042', 'tenant_id': 'c62555e675b6451eba5ec5e09a8d8337', 'project_id': 'c62555e675b6451eba5ec5e09a8d8337', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5438aea3-b830-4361-8e8f-df1f12d58367'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04012771', 'ctest-vn-59166042'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04012771', 'ctest-policy-allow-all-13309705']], 'subnet_ipam': [{'subnet_cidr': '104.209.5.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-07 14:21:51,788 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-07 14:21:52,098 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-07 14:21:52,133 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c40c94b1-50de-4284-9ac8-23786fbefaef 2025-07-07 14:21:52,148 - DEBUG - Requesting: http://10.0.0.50:8082/project/c62555e6-75b6-451e-ba5e-c5e09a8d8337 2025-07-07 14:21:52,220 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1d27b9a1-ece1-43b6-9e7f-1e41693368dd 2025-07-07 14:21:52,234 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1d27b9a1-ece1-43b6-9e7f-1e41693368dd 2025-07-07 14:21:52,248 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/02324f37-fde6-461c-b4a8-041b7252c7bd 2025-07-07 14:21:52,258 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/02324f37-fde6-461c-b4a8-041b7252c7bd 2025-07-07 14:21:52,266 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/766e3c5b-be37-4f25-a0e0-9472eec1139a 2025-07-07 14:21:52,274 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-07 14:21:52,274 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1d27b9a1-ece1-43b6-9e7f-1e41693368dd 2025-07-07 14:21:52,285 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/02324f37-fde6-461c-b4a8-041b7252c7bd 2025-07-07 14:21:52,301 - INFO - Verified VN network id 8 for VN 1d27b9a1-ece1-43b6-9e7f-1e41693368dd 2025-07-07 14:21:52,301 - INFO - Verifications in API Server for VN ctest-vn-17057180 passed 2025-07-07 14:21:52,301 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1d27b9a1-ece1-43b6-9e7f-1e41693368dd 2025-07-07 14:21:52,312 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/02324f37-fde6-461c-b4a8-041b7252c7bd 2025-07-07 14:21:52,320 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/02324f37-fde6-461c-b4a8-041b7252c7bd 2025-07-07 14:21:52,327 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/766e3c5b-be37-4f25-a0e0-9472eec1139a 2025-07-07 14:21:52,340 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04012771:ctest-vn-17057180', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04012771', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2100851856306684854', 'uuid-lslong': '11420880446321551581'}, 'enable': 'true', 'created': '2025-07-07T14:21:50', 'last-modified': '2025-07-07T14:21:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.024715'} 2025-07-07 14:21:52,347 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-07 14:21:52,347 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17057180 passed 2025-07-07 14:21:52,347 - DEBUG - ====Verifying policy data for ctest-vn-17057180 in API_Server ====== 2025-07-07 14:21:52,347 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-07 14:21:52,354 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c40c94b1-50de-4284-9ac8-23786fbefaef 2025-07-07 14:21:52,366 - DEBUG - Requesting: http://10.0.0.50:8082/project/c62555e6-75b6-451e-ba5e-c5e09a8d8337 2025-07-07 14:21:52,441 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1d27b9a1-ece1-43b6-9e7f-1e41693368dd 2025-07-07 14:21:52,451 - DEBUG - ==>Verifying data for policy with id: 48892629-04fe-49e9-91d3-ff53557aec58, fqn: ['default-domain', 'ctest-TestBasicPolicy-04012771', 'ctest-policy-allow-all-13309705'] 2025-07-07 14:21:52,451 - INFO - VN ctest-vn-17057180 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-07 14:21:52,452 - DEBUG - Verifying the vn in opserver 2025-07-07 14:21:52,452 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04012771:ctest-vn-17057180 virtual network link through opserver 10.0.0.50 2025-07-07 14:21:52,452 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-07 14:21:52,744 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-07 14:21:52,805 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04012771:ctest-vn-17057180', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04012771:ctest-vn-17057180?flat'} 2025-07-07 14:21:52,805 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04012771:ctest-vn-17057180 is found in opserver 2025-07-07 14:21:52,818 - DEBUG - Do not have enough data to verify VN in agent 2025-07-07 14:21:52,825 - DEBUG - VRF ids for VN ctest-vn-17057180: {} 2025-07-07 14:21:52,825 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-07 14:21:52,833 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c40c94b1-50de-4284-9ac8-23786fbefaef 2025-07-07 14:21:52,846 - DEBUG - Requesting: http://10.0.0.50:8082/project/c62555e6-75b6-451e-ba5e-c5e09a8d8337 2025-07-07 14:21:52,928 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/70e0930d-30fe-4985-b0f7-548a0dd334d3 2025-07-07 14:21:52,944 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/70e0930d-30fe-4985-b0f7-548a0dd334d3 2025-07-07 14:21:52,954 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a805a754-c36c-4026-b129-8afc8a5e2a24 2025-07-07 14:21:52,964 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a805a754-c36c-4026-b129-8afc8a5e2a24 2025-07-07 14:21:52,972 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0f1badd2-c0c7-4f0e-b652-5c2a5ff22c2a 2025-07-07 14:21:52,979 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-07 14:21:52,979 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/70e0930d-30fe-4985-b0f7-548a0dd334d3 2025-07-07 14:21:52,989 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a805a754-c36c-4026-b129-8afc8a5e2a24 2025-07-07 14:21:53,005 - INFO - Verified VN network id 9 for VN 70e0930d-30fe-4985-b0f7-548a0dd334d3 2025-07-07 14:21:53,005 - INFO - Verifications in API Server for VN ctest-vn-59166042 passed 2025-07-07 14:21:53,005 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/70e0930d-30fe-4985-b0f7-548a0dd334d3 2025-07-07 14:21:53,018 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a805a754-c36c-4026-b129-8afc8a5e2a24 2025-07-07 14:21:53,029 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a805a754-c36c-4026-b129-8afc8a5e2a24 2025-07-07 14:21:53,038 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0f1badd2-c0c7-4f0e-b652-5c2a5ff22c2a 2025-07-07 14:21:53,054 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04012771:ctest-vn-59166042', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04012771', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8133662611896945029', 'uuid-lslong': '12751753821837014227'}, 'enable': 'true', 'created': '2025-07-07T14:21:50', 'last-modified': '2025-07-07T14:21:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.500170'} 2025-07-07 14:21:53,061 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-07 14:21:53,061 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59166042 passed 2025-07-07 14:21:53,061 - DEBUG - ====Verifying policy data for ctest-vn-59166042 in API_Server ====== 2025-07-07 14:21:53,061 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-07 14:21:53,067 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c40c94b1-50de-4284-9ac8-23786fbefaef 2025-07-07 14:21:53,080 - DEBUG - Requesting: http://10.0.0.50:8082/project/c62555e6-75b6-451e-ba5e-c5e09a8d8337 2025-07-07 14:21:53,151 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/70e0930d-30fe-4985-b0f7-548a0dd334d3 2025-07-07 14:21:53,163 - DEBUG - ==>Verifying data for policy with id: 48892629-04fe-49e9-91d3-ff53557aec58, fqn: ['default-domain', 'ctest-TestBasicPolicy-04012771', 'ctest-policy-allow-all-13309705'] 2025-07-07 14:21:53,163 - INFO - VN ctest-vn-59166042 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-07 14:21:53,163 - DEBUG - Verifying the vn in opserver 2025-07-07 14:21:53,163 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04012771:ctest-vn-59166042 virtual network link through opserver 10.0.0.50 2025-07-07 14:21:53,163 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-07 14:21:53,175 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04012771:ctest-vn-59166042', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04012771:ctest-vn-59166042?flat'} 2025-07-07 14:21:53,175 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04012771:ctest-vn-59166042 is found in opserver 2025-07-07 14:21:53,189 - DEBUG - Do not have enough data to verify VN in agent 2025-07-07 14:21:53,195 - DEBUG - VRF ids for VN ctest-vn-59166042: {} 2025-07-07 14:21:53,255 - DEBUG - Services list from nova: [, , ] 2025-07-07 14:21:54,282 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3608-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3608-1) 2025-07-07 14:21:55,513 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3608-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3608-1) 2025-07-07 14:21:55,513 - INFO - Waiting for VM ctest-TestBasicPolicy-04012771-45278933 to be up.. 2025-07-07 14:21:55,595 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-07 14:22:00,679 - DEBUG - VM is in ACTIVE state now 2025-07-07 14:22:00,679 - INFO - VM name : ctest-TestBasicPolicy-04012771-45278933 2025-07-07 14:22:00,757 - DEBUG - VM ctest-TestBasicPolicy-04012771-45278933 ID is 8e66f3c5-b575-4173-8556-8d677435e851 2025-07-07 14:22:00,782 - DEBUG - VM ctest-TestBasicPolicy-04012771-45278933 launched on Node cn-jenkins-deploy-platform-ansible-os-3608-1 2025-07-07 14:22:00,870 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/8e66f3c5-b575-4173-8556-8d677435e851 2025-07-07 14:22:00,881 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/0bdfb51e-8fa2-474e-ac7f-491a1087894b 2025-07-07 14:22:04,141 - 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 1014ms') 2025-07-07 14:22:04,141 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-04012771-45278933 failed! 2025-07-07 14:22:04,196 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-04012771:ctest-vn-17057180 is 115.137.81.129 and allocation pool is NOT set 2025-07-07 14:22:06,254 - 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.35 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.16 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.156/5.255/9.354/4.099 ms') 2025-07-07 14:22:06,255 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-04012771-45278933 passed 2025-07-07 14:22:06,408 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-07 14:22:06,408 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-04012771-45278933, IP 115.137.81.131, Port 22 2025-07-07 14:22:06,567 - DEBUG - VM ctest-TestBasicPolicy-04012771-45278933 is ready for SSH connections 2025-07-07 14:22:06,567 - INFO - Waiting for VM ctest-TestBasicPolicy-04012771-57610991 to be up.. 2025-07-07 14:22:06,648 - DEBUG - VM is in ACTIVE state now 2025-07-07 14:22:06,649 - INFO - VM name : ctest-TestBasicPolicy-04012771-57610991 2025-07-07 14:22:06,722 - DEBUG - VM ctest-TestBasicPolicy-04012771-57610991 ID is ad73c60d-9cf5-4da1-8eb7-8318f724095c 2025-07-07 14:22:06,723 - DEBUG - VM ctest-TestBasicPolicy-04012771-57610991 launched on Node cn-jenkins-deploy-platform-ansible-os-3608-1 2025-07-07 14:22:06,797 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/ad73c60d-9cf5-4da1-8eb7-8318f724095c 2025-07-07 14:22:06,806 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/f5bcef14-350b-4196-97ef-b24174978ddf 2025-07-07 14:22:08,057 - 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.03 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.586 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.586/2.308/4.030/1.722 ms') 2025-07-07 14:22:08,058 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-04012771-57610991 passed 2025-07-07 14:22:08,212 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-07 14:22:08,212 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-04012771-57610991, IP 104.209.5.3, Port 22 2025-07-07 14:22:08,372 - DEBUG - VM ctest-TestBasicPolicy-04012771-57610991 is ready for SSH connections 2025-07-07 14:22:08,372 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-07 14:22:08,372 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 104.209.5.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-07-07 14:22:08,372 - DEBUG - ping -s 56 -c 3 -W 1 104.209.5.3 2025-07-07 14:22:12,082 - DEBUG - PING 104.209.5.3 (104.209.5.3): 56 data bytes 64 bytes from 104.209.5.3: seq=0 ttl=63 time=3.597 ms 64 bytes from 104.209.5.3: seq=1 ttl=63 time=0.869 ms 64 bytes from 104.209.5.3: seq=2 ttl=63 time=0.809 ms --- 104.209.5.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.809/1.758/3.597 ms 2025-07-07 14:22:12,082 - INFO - Ping to IP 104.209.5.3 from VM ctest-TestBasicPolicy-04012771-45278933 passed 2025-07-07 14:22:12,260 - DEBUG - Policy Update Response {"network-policy": {"uuid": "48892629-04fe-49e9-91d3-ff53557aec58", "href": "http://10.0.0.50:8082/network-policy/48892629-04fe-49e9-91d3-ff53557aec58"}} 2025-07-07 14:22:12,260 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-07 14:22:12,260 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 104.209.5.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-07-07 14:22:12,260 - DEBUG - ping -s 56 -c 3 -W 1 104.209.5.3 2025-07-07 14:22:15,493 - DEBUG - PING 104.209.5.3 (104.209.5.3): 56 data bytes 64 bytes from 104.209.5.3: seq=0 ttl=63 time=1.506 ms --- 104.209.5.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.506/1.506/1.506 ms 2025-07-07 14:22:15,493 - WARNING - Ping to IP 104.209.5.3 from VM ctest-TestBasicPolicy-04012771-45278933 failed 2025-07-07 14:22:15,493 - INFO - Deleting VM ctest-TestBasicPolicy-04012771-57610991 2025-07-07 14:22:15,570 - INFO - Deleting VM ctest-TestBasicPolicy-04012771-45278933 2025-07-07 14:22:15,961 - INFO - Deleted policy ctest-policy-allow-all-13309705 2025-07-07 14:22:15,961 - INFO - Deleting VN ctest-vn-59166042 2025-07-07 14:22:16,002 - DEBUG - VN 70e0930d-30fe-4985-b0f7-548a0dd334d3 still in use: Unable to complete operation on network 70e0930d-30fe-4985-b0f7-548a0dd334d3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-5ef0d380-2462-47e9-993a-c5b749860c71'] 2025-07-07 14:22:16,002 - WARNING - Deleting VN ctest-vn-59166042 failed..Will retry 2025-07-07 14:22:18,112 - DEBUG - Response for deleting network () 2025-07-07 14:22:18,112 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a805a754-c36c-4026-b129-8afc8a5e2a24 2025-07-07 14:22:18,118 - DEBUG - Response Code: 404 2025-07-07 14:22:18,118 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-07 14:22:18,125 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c40c94b1-50de-4284-9ac8-23786fbefaef 2025-07-07 14:22:18,183 - DEBUG - Requesting: http://10.0.0.50:8082/project/c62555e6-75b6-451e-ba5e-c5e09a8d8337 2025-07-07 14:22:18,261 - INFO - Validated that VN ctest-vn-59166042 is not found in API Server 2025-07-07 14:22:18,272 - DEBUG - VN ctest-vn-59166042 is not present in Agent 10.0.0.50 2025-07-07 14:22:18,272 - INFO - Validated that VN ctest-vn-59166042 is not in any agent 2025-07-07 14:22:18,289 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-59166042 info 2025-07-07 14:22:18,289 - INFO - Deleting VN ctest-vn-17057180 2025-07-07 14:22:18,404 - DEBUG - Response for deleting network () 2025-07-07 14:22:18,404 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/02324f37-fde6-461c-b4a8-041b7252c7bd 2025-07-07 14:22:18,417 - DEBUG - Response Code: 404 2025-07-07 14:22:18,417 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-07 14:22:18,425 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c40c94b1-50de-4284-9ac8-23786fbefaef 2025-07-07 14:22:18,482 - DEBUG - Requesting: http://10.0.0.50:8082/project/c62555e6-75b6-451e-ba5e-c5e09a8d8337 2025-07-07 14:22:18,558 - INFO - Validated that VN ctest-vn-17057180 is not found in API Server 2025-07-07 14:22:18,569 - DEBUG - VN ctest-vn-17057180 is not present in Agent 10.0.0.50 2025-07-07 14:22:18,569 - INFO - Validated that VN ctest-vn-17057180 is not in any agent 2025-07-07 14:22:18,587 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-17057180 info 2025-07-07 14:22:18,841 - DEBUG - No XMPP flaps were noticed during the test
2025-07-07 14:22:18,841 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29]
2025-07-07 14:22:18,842 - INFO - -------------------------------------------------------------------------------- 2025-07-07 14:22:19,544 - INFO - Deleted project: ctest-TestBasicPolicy-04012771, ID : c62555e6-75b6-451e-ba5e-c5e09a8d8337