2025-07-22 13:50:53,267 - INFO - Domain Default found not creating 2025-07-22 13:50:53,425 - INFO - Project ctest-TestBasicPolicy-36425498 not found, creating it 2025-07-22 13:50:53,940 - INFO - Created Project:ctest-TestBasicPolicy-36425498, ID : 5d72b3f0-c843-4b92-b893-cf844d243e26 2025-07-22 13:50:55,461 - INFO - ================================================================================ 2025-07-22 13:50:55,461 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-07-22 13:50:55,462 - 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-22 13:50:55,732 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.18': '0'}} with 2025-07-22 13:50:55,732 - INFO - Initial checks done. Running the testcase now 2025-07-22 13:50:55,732 - INFO - 2025-07-22 13:50:56,306 - DEBUG - Response for create_network : {'network': {'id': '4816d505-a99f-4b33-bf9d-efa209a32f74', 'name': 'ctest-vn-12823565', 'tenant_id': '5d72b3f0c8434b92b893cf844d243e26', 'project_id': '5d72b3f0c8434b92b893cf844d243e26', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36425498', 'ctest-vn-12823565'], 'port_security_enabled': True, 'description': ''}} 2025-07-22 13:50:56,475 - DEBUG - Response for create_subnet : {'subnet': {'id': '0d5cf6da-f57c-4b6d-9afe-dc8d4b3228d0', 'name': '', 'tenant_id': '5d72b3f0c8434b92b893cf844d243e26', 'network_id': '4816d505-a99f-4b33-bf9d-efa209a32f74', 'ip_version': 4, 'cidr': '103.186.164.128/26', 'allocation_pools': [{'start': '103.186.164.130', 'end': '103.186.164.190'}], 'gateway_ip': '103.186.164.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.186.164.130', 'tags': [], 'project_id': '5d72b3f0c8434b92b893cf844d243e26'}} 2025-07-22 13:50:56,493 - INFO - Created VN ctest-vn-12823565 2025-07-22 13:50:56,547 - DEBUG - VN ctest-vn-12823565 UUID is 4816d505-a99f-4b33-bf9d-efa209a32f74 2025-07-22 13:50:56,846 - DEBUG - Response for create_network : {'network': {'id': '5106265b-7bc0-40a9-ab15-261227e1d4e1', 'name': 'ctest-vn-10999602', 'tenant_id': '5d72b3f0c8434b92b893cf844d243e26', 'project_id': '5d72b3f0c8434b92b893cf844d243e26', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36425498', 'ctest-vn-10999602'], 'port_security_enabled': True, 'description': ''}} 2025-07-22 13:50:57,039 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e2eb1c77-4de0-4efc-86e9-6387a0d8ea0d', 'name': '', 'tenant_id': '5d72b3f0c8434b92b893cf844d243e26', 'network_id': '5106265b-7bc0-40a9-ab15-261227e1d4e1', 'ip_version': 4, 'cidr': '153.49.47.0/26', 'allocation_pools': [{'start': '153.49.47.2', 'end': '153.49.47.62'}], 'gateway_ip': '153.49.47.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.49.47.2', 'tags': [], 'project_id': '5d72b3f0c8434b92b893cf844d243e26'}} 2025-07-22 13:50:57,060 - INFO - Created VN ctest-vn-10999602 2025-07-22 13:50:57,114 - DEBUG - VN ctest-vn-10999602 UUID is 5106265b-7bc0-40a9-ab15-261227e1d4e1 2025-07-22 13:50:57,278 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-36425498:ctest-vn-12823565, 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-36425498:ctest-vn-10999602, 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-22 13:50:57,587 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4816d505-a99f-4b33-bf9d-efa209a32f74', 'name': 'ctest-vn-12823565', 'tenant_id': '5d72b3f0c8434b92b893cf844d243e26', 'project_id': '5d72b3f0c8434b92b893cf844d243e26', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0d5cf6da-f57c-4b6d-9afe-dc8d4b3228d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36425498', 'ctest-vn-12823565'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36425498', 'ctest-policy-allow-all-29740130']], 'subnet_ipam': [{'subnet_cidr': '103.186.164.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-22 13:50:57,873 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5106265b-7bc0-40a9-ab15-261227e1d4e1', 'name': 'ctest-vn-10999602', 'tenant_id': '5d72b3f0c8434b92b893cf844d243e26', 'project_id': '5d72b3f0c8434b92b893cf844d243e26', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e2eb1c77-4de0-4efc-86e9-6387a0d8ea0d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36425498', 'ctest-vn-10999602'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36425498', 'ctest-policy-allow-all-29740130']], 'subnet_ipam': [{'subnet_cidr': '153.49.47.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-22 13:50:58,018 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-07-22 13:50:58,327 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-07-22 13:50:58,359 - DEBUG - Requesting: http://10.0.0.241:8082/domain/4f09116f-d2b9-4cb1-a35c-d32045569c17 2025-07-22 13:50:58,374 - DEBUG - Requesting: http://10.0.0.241:8082/project/5d72b3f0-c843-4b92-b893-cf844d243e26 2025-07-22 13:50:58,454 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/4816d505-a99f-4b33-bf9d-efa209a32f74 2025-07-22 13:50:58,468 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/4816d505-a99f-4b33-bf9d-efa209a32f74 2025-07-22 13:50:58,478 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/b1b9fc46-4422-4522-a139-f98b83dcb769 2025-07-22 13:50:58,486 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/b1b9fc46-4422-4522-a139-f98b83dcb769 2025-07-22 13:50:58,495 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/a5957711-f50e-430e-9529-c2c069939a93 2025-07-22 13:50:58,504 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-22 13:50:58,504 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/4816d505-a99f-4b33-bf9d-efa209a32f74 2025-07-22 13:50:58,515 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/b1b9fc46-4422-4522-a139-f98b83dcb769 2025-07-22 13:50:58,530 - INFO - Verified VN network id 11 for VN 4816d505-a99f-4b33-bf9d-efa209a32f74 2025-07-22 13:50:58,530 - INFO - Verifications in API Server for VN ctest-vn-12823565 passed 2025-07-22 13:50:58,531 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/4816d505-a99f-4b33-bf9d-efa209a32f74 2025-07-22 13:50:58,542 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/b1b9fc46-4422-4522-a139-f98b83dcb769 2025-07-22 13:50:58,550 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/b1b9fc46-4422-4522-a139-f98b83dcb769 2025-07-22 13:50:58,558 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/a5957711-f50e-430e-9529-c2c069939a93 2025-07-22 13:50:58,574 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36425498:ctest-vn-12823565', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36425498', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5194573440515787571', 'uuid-lslong': '13807455511813238644'}, 'enable': 'true', 'created': '2025-07-22T13:50:56', 'last-modified': '2025-07-22T13:50:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.009638'} 2025-07-22 13:50:58,582 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-22 13:50:58,582 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12823565 passed 2025-07-22 13:50:58,582 - DEBUG - ====Verifying policy data for ctest-vn-12823565 in API_Server ====== 2025-07-22 13:50:58,582 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-07-22 13:50:58,589 - DEBUG - Requesting: http://10.0.0.241:8082/domain/4f09116f-d2b9-4cb1-a35c-d32045569c17 2025-07-22 13:50:58,603 - DEBUG - Requesting: http://10.0.0.241:8082/project/5d72b3f0-c843-4b92-b893-cf844d243e26 2025-07-22 13:50:58,677 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/4816d505-a99f-4b33-bf9d-efa209a32f74 2025-07-22 13:50:58,689 - DEBUG - ==>Verifying data for policy with id: 4f787444-e097-4952-9189-da179b3d7223, fqn: ['default-domain', 'ctest-TestBasicPolicy-36425498', 'ctest-policy-allow-all-29740130'] 2025-07-22 13:50:58,689 - INFO - VN ctest-vn-12823565 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-22 13:50:58,689 - DEBUG - Verifying the vn in opserver 2025-07-22 13:50:58,689 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36425498:ctest-vn-12823565 virtual network link through opserver 10.0.0.241 2025-07-22 13:50:58,689 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2025-07-22 13:50:58,983 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2025-07-22 13:50:59,042 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36425498:ctest-vn-12823565', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36425498:ctest-vn-12823565?flat'} 2025-07-22 13:50:59,042 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36425498:ctest-vn-12823565 is found in opserver 2025-07-22 13:50:59,054 - DEBUG - Do not have enough data to verify VN in agent 2025-07-22 13:50:59,060 - DEBUG - VRF ids for VN ctest-vn-12823565: {} 2025-07-22 13:50:59,060 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-07-22 13:50:59,066 - DEBUG - Requesting: http://10.0.0.241:8082/domain/4f09116f-d2b9-4cb1-a35c-d32045569c17 2025-07-22 13:50:59,080 - DEBUG - Requesting: http://10.0.0.241:8082/project/5d72b3f0-c843-4b92-b893-cf844d243e26 2025-07-22 13:50:59,154 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/5106265b-7bc0-40a9-ab15-261227e1d4e1 2025-07-22 13:50:59,173 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/5106265b-7bc0-40a9-ab15-261227e1d4e1 2025-07-22 13:50:59,184 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/4abf6142-0c50-451d-8153-a5fc7fdb8b2c 2025-07-22 13:50:59,192 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/4abf6142-0c50-451d-8153-a5fc7fdb8b2c 2025-07-22 13:50:59,200 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/98d2af94-afac-45ea-a804-95085ed2f16c 2025-07-22 13:50:59,207 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-22 13:50:59,207 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/5106265b-7bc0-40a9-ab15-261227e1d4e1 2025-07-22 13:50:59,219 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/4abf6142-0c50-451d-8153-a5fc7fdb8b2c 2025-07-22 13:50:59,236 - INFO - Verified VN network id 12 for VN 5106265b-7bc0-40a9-ab15-261227e1d4e1 2025-07-22 13:50:59,236 - INFO - Verifications in API Server for VN ctest-vn-10999602 passed 2025-07-22 13:50:59,236 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/5106265b-7bc0-40a9-ab15-261227e1d4e1 2025-07-22 13:50:59,248 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/4abf6142-0c50-451d-8153-a5fc7fdb8b2c 2025-07-22 13:50:59,257 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/4abf6142-0c50-451d-8153-a5fc7fdb8b2c 2025-07-22 13:50:59,264 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/98d2af94-afac-45ea-a804-95085ed2f16c 2025-07-22 13:50:59,278 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36425498:ctest-vn-10999602', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36425498', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5838396141292503209', 'uuid-lslong': '12327801414416979169'}, 'enable': 'true', 'created': '2025-07-22T13:50:56', 'last-modified': '2025-07-22T13:50:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.479792'} 2025-07-22 13:50:59,285 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-22 13:50:59,285 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10999602 passed 2025-07-22 13:50:59,285 - DEBUG - ====Verifying policy data for ctest-vn-10999602 in API_Server ====== 2025-07-22 13:50:59,285 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-07-22 13:50:59,291 - DEBUG - Requesting: http://10.0.0.241:8082/domain/4f09116f-d2b9-4cb1-a35c-d32045569c17 2025-07-22 13:50:59,305 - DEBUG - Requesting: http://10.0.0.241:8082/project/5d72b3f0-c843-4b92-b893-cf844d243e26 2025-07-22 13:50:59,381 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/5106265b-7bc0-40a9-ab15-261227e1d4e1 2025-07-22 13:50:59,392 - DEBUG - ==>Verifying data for policy with id: 4f787444-e097-4952-9189-da179b3d7223, fqn: ['default-domain', 'ctest-TestBasicPolicy-36425498', 'ctest-policy-allow-all-29740130'] 2025-07-22 13:50:59,392 - INFO - VN ctest-vn-10999602 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-22 13:50:59,392 - DEBUG - Verifying the vn in opserver 2025-07-22 13:50:59,392 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36425498:ctest-vn-10999602 virtual network link through opserver 10.0.0.241 2025-07-22 13:50:59,392 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2025-07-22 13:50:59,404 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36425498:ctest-vn-10999602', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36425498:ctest-vn-10999602?flat'} 2025-07-22 13:50:59,404 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36425498:ctest-vn-10999602 is found in opserver 2025-07-22 13:50:59,417 - DEBUG - Do not have enough data to verify VN in agent 2025-07-22 13:50:59,423 - DEBUG - VRF ids for VN ctest-vn-10999602: {} 2025-07-22 13:50:59,484 - DEBUG - Services list from nova: [, , ] 2025-07-22 13:51:00,516 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3691-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3691-1) 2025-07-22 13:51:01,750 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3691-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3691-1) 2025-07-22 13:51:01,750 - INFO - Waiting for VM ctest-TestBasicPolicy-36425498-06541541 to be up.. 2025-07-22 13:51:01,829 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-22 13:51:06,917 - DEBUG - VM is in ACTIVE state now 2025-07-22 13:51:06,917 - INFO - VM name : ctest-TestBasicPolicy-36425498-06541541 2025-07-22 13:51:07,005 - DEBUG - VM ctest-TestBasicPolicy-36425498-06541541 ID is bd1ca079-1a17-4754-8af2-b9f83c0c45ad 2025-07-22 13:51:07,024 - DEBUG - VM ctest-TestBasicPolicy-36425498-06541541 launched on Node cn-jenkins-deploy-platform-ansible-os-3691-1 2025-07-22 13:51:07,102 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-machine/bd1ca079-1a17-4754-8af2-b9f83c0c45ad 2025-07-22 13:51:07,112 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-machine-interface/abfcacc8-d7f1-4efd-8fab-de965cde04f2 2025-07-22 13:51:10,377 - 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 1023ms') 2025-07-22 13:51:10,377 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-36425498-06541541 failed! 2025-07-22 13:51:10,435 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-36425498:ctest-vn-12823565 is 103.186.164.129 and allocation pool is NOT set 2025-07-22 13:51:12,496 - 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.79 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.467 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.467/5.130/9.793/4.663 ms') 2025-07-22 13:51:12,496 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-36425498-06541541 passed 2025-07-22 13:51:12,651 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 13:51:12,651 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-36425498-06541541, IP 103.186.164.131, Port 22 2025-07-22 13:51:12,806 - DEBUG - VM ctest-TestBasicPolicy-36425498-06541541 is ready for SSH connections 2025-07-22 13:51:12,806 - INFO - Waiting for VM ctest-TestBasicPolicy-36425498-92125703 to be up.. 2025-07-22 13:51:12,885 - DEBUG - VM is in ACTIVE state now 2025-07-22 13:51:12,886 - INFO - VM name : ctest-TestBasicPolicy-36425498-92125703 2025-07-22 13:51:12,968 - DEBUG - VM ctest-TestBasicPolicy-36425498-92125703 ID is 3456959d-90c8-42b6-b711-2435f6b531b0 2025-07-22 13:51:12,968 - DEBUG - VM ctest-TestBasicPolicy-36425498-92125703 launched on Node cn-jenkins-deploy-platform-ansible-os-3691-1 2025-07-22 13:51:13,048 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-machine/3456959d-90c8-42b6-b711-2435f6b531b0 2025-07-22 13:51:13,058 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-machine-interface/35570af9-6808-41fd-893e-ec39560ae6e2 2025-07-22 13:51:14,311 - 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=5.12 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.88 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 = 2.878/4.001/5.124/1.123 ms') 2025-07-22 13:51:14,311 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-36425498-92125703 passed 2025-07-22 13:51:14,475 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 13:51:14,475 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-36425498-92125703, IP 153.49.47.3, Port 22 2025-07-22 13:51:14,545 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-07-22 13:51:14,628 - DEBUG - VM ctest-TestBasicPolicy-36425498-92125703 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-22 13:51:19,629 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 13:51:19,629 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-36425498-92125703, IP 153.49.47.3, Port 22 2025-07-22 13:51:19,794 - DEBUG - VM ctest-TestBasicPolicy-36425498-92125703 is ready for SSH connections 2025-07-22 13:51:19,794 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 13:51:19,794 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 153.49.47.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.241, gateway password: c0ntrail123 2025-07-22 13:51:19,794 - DEBUG - ping -s 56 -c 3 -W 1 153.49.47.3 2025-07-22 13:51:23,857 - DEBUG - PING 153.49.47.3 (153.49.47.3): 56 data bytes 64 bytes from 153.49.47.3: seq=0 ttl=63 time=4.047 ms 64 bytes from 153.49.47.3: seq=1 ttl=63 time=0.894 ms 64 bytes from 153.49.47.3: seq=2 ttl=63 time=0.745 ms --- 153.49.47.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.745/1.895/4.047 ms 2025-07-22 13:51:23,857 - INFO - Ping to IP 153.49.47.3 from VM ctest-TestBasicPolicy-36425498-06541541 passed 2025-07-22 13:51:24,038 - DEBUG - Policy Update Response {"network-policy": {"uuid": "4f787444-e097-4952-9189-da179b3d7223", "href": "http://10.0.0.241:8082/network-policy/4f787444-e097-4952-9189-da179b3d7223"}} 2025-07-22 13:51:24,038 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 13:51:24,039 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 153.49.47.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.241, gateway password: c0ntrail123 2025-07-22 13:51:24,039 - DEBUG - ping -s 56 -c 3 -W 1 153.49.47.3 2025-07-22 13:51:27,263 - DEBUG - PING 153.49.47.3 (153.49.47.3): 56 data bytes --- 153.49.47.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-07-22 13:51:27,263 - WARNING - Ping to IP 153.49.47.3 from VM ctest-TestBasicPolicy-36425498-06541541 failed 2025-07-22 13:51:27,263 - INFO - Deleting VM ctest-TestBasicPolicy-36425498-92125703 2025-07-22 13:51:27,341 - INFO - Deleting VM ctest-TestBasicPolicy-36425498-06541541 2025-07-22 13:51:27,797 - INFO - Deleted policy ctest-policy-allow-all-29740130 2025-07-22 13:51:27,797 - INFO - Deleting VN ctest-vn-10999602 2025-07-22 13:51:27,844 - DEBUG - VN 5106265b-7bc0-40a9-ab15-261227e1d4e1 still in use: Unable to complete operation on network 5106265b-7bc0-40a9-ab15-261227e1d4e1. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-66ab42f8-8e1a-4237-bb8e-b30c35f112f5'] 2025-07-22 13:51:27,844 - WARNING - Deleting VN ctest-vn-10999602 failed..Will retry 2025-07-22 13:51:29,955 - DEBUG - Response for deleting network () 2025-07-22 13:51:29,955 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/4abf6142-0c50-451d-8153-a5fc7fdb8b2c 2025-07-22 13:51:29,966 - DEBUG - Response Code: 404 2025-07-22 13:51:29,966 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-07-22 13:51:29,974 - DEBUG - Requesting: http://10.0.0.241:8082/domain/4f09116f-d2b9-4cb1-a35c-d32045569c17 2025-07-22 13:51:30,032 - DEBUG - Requesting: http://10.0.0.241:8082/project/5d72b3f0-c843-4b92-b893-cf844d243e26 2025-07-22 13:51:30,106 - INFO - Validated that VN ctest-vn-10999602 is not found in API Server 2025-07-22 13:51:30,119 - DEBUG - VN ctest-vn-10999602 is not present in Agent 10.0.0.241 2025-07-22 13:51:30,120 - INFO - Validated that VN ctest-vn-10999602 is not in any agent 2025-07-22 13:51:30,139 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-10999602 info 2025-07-22 13:51:30,139 - INFO - Deleting VN ctest-vn-12823565 2025-07-22 13:51:30,493 - DEBUG - Response for deleting network () 2025-07-22 13:51:30,493 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/b1b9fc46-4422-4522-a139-f98b83dcb769 2025-07-22 13:51:30,500 - DEBUG - Response Code: 404 2025-07-22 13:51:30,500 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-07-22 13:51:30,509 - DEBUG - Requesting: http://10.0.0.241:8082/domain/4f09116f-d2b9-4cb1-a35c-d32045569c17 2025-07-22 13:51:30,576 - DEBUG - Requesting: http://10.0.0.241:8082/project/5d72b3f0-c843-4b92-b893-cf844d243e26 2025-07-22 13:51:30,683 - INFO - Validated that VN ctest-vn-12823565 is not found in API Server 2025-07-22 13:51:30,697 - DEBUG - VN ctest-vn-12823565 is not present in Agent 10.0.0.241 2025-07-22 13:51:30,697 - INFO - Validated that VN ctest-vn-12823565 is not in any agent 2025-07-22 13:51:30,722 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-12823565 info 2025-07-22 13:51:30,989 - DEBUG - No XMPP flaps were noticed during the test
2025-07-22 13:51:30,989 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-07-22 13:51:30,989 - INFO - -------------------------------------------------------------------------------- 2025-07-22 13:51:31,721 - INFO - Deleted project: ctest-TestBasicPolicy-36425498, ID : 5d72b3f0-c843-4b92-b893-cf844d243e26