2025-07-22 09:43:14,738 - INFO - Domain Default found not creating 2025-07-22 09:43:14,879 - INFO - Project ctest-TestBasicPolicy-23491278 not found, creating it 2025-07-22 09:43:15,327 - INFO - Created Project:ctest-TestBasicPolicy-23491278, ID : fca7598c-3308-43bd-b484-602a9ba01444 2025-07-22 09:43:16,753 - INFO - ================================================================================ 2025-07-22 09:43:16,754 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-07-22 09:43:16,754 - 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 09:43:17,014 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-07-22 09:43:17,014 - INFO - Initial checks done. Running the testcase now 2025-07-22 09:43:17,014 - INFO - 2025-07-22 09:43:17,540 - DEBUG - Response for create_network : {'network': {'id': 'd8f10a58-e7c5-4dff-a5e0-ec4b0b3b4641', 'name': 'ctest-vn-46209528', 'tenant_id': 'fca7598c330843bdb484602a9ba01444', 'project_id': 'fca7598c330843bdb484602a9ba01444', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23491278', 'ctest-vn-46209528'], 'port_security_enabled': True, 'description': ''}} 2025-07-22 09:43:17,732 - DEBUG - Response for create_subnet : {'subnet': {'id': '61c9c6cd-90ff-4c0d-9ae7-0078fde1bfd3', 'name': '', 'tenant_id': 'fca7598c330843bdb484602a9ba01444', 'network_id': 'd8f10a58-e7c5-4dff-a5e0-ec4b0b3b4641', 'ip_version': 4, 'cidr': '178.126.46.0/26', 'allocation_pools': [{'start': '178.126.46.2', 'end': '178.126.46.62'}], 'gateway_ip': '178.126.46.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '178.126.46.2', 'tags': [], 'project_id': 'fca7598c330843bdb484602a9ba01444'}} 2025-07-22 09:43:17,749 - INFO - Created VN ctest-vn-46209528 2025-07-22 09:43:17,800 - DEBUG - VN ctest-vn-46209528 UUID is d8f10a58-e7c5-4dff-a5e0-ec4b0b3b4641 2025-07-22 09:43:18,086 - DEBUG - Response for create_network : {'network': {'id': '02d9ebf8-a0ea-4c57-a522-ba92774a5b1f', 'name': 'ctest-vn-76224848', 'tenant_id': 'fca7598c330843bdb484602a9ba01444', 'project_id': 'fca7598c330843bdb484602a9ba01444', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23491278', 'ctest-vn-76224848'], 'port_security_enabled': True, 'description': ''}} 2025-07-22 09:43:18,234 - DEBUG - Response for create_subnet : {'subnet': {'id': '5acdc784-74e7-44b8-857e-75b1a6b6046b', 'name': '', 'tenant_id': 'fca7598c330843bdb484602a9ba01444', 'network_id': '02d9ebf8-a0ea-4c57-a522-ba92774a5b1f', 'ip_version': 4, 'cidr': '117.171.250.128/26', 'allocation_pools': [{'start': '117.171.250.130', 'end': '117.171.250.190'}], 'gateway_ip': '117.171.250.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.171.250.130', 'tags': [], 'project_id': 'fca7598c330843bdb484602a9ba01444'}} 2025-07-22 09:43:18,249 - INFO - Created VN ctest-vn-76224848 2025-07-22 09:43:18,300 - DEBUG - VN ctest-vn-76224848 UUID is 02d9ebf8-a0ea-4c57-a522-ba92774a5b1f 2025-07-22 09:43:18,423 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-23491278:ctest-vn-46209528, 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-23491278:ctest-vn-76224848, 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 09:43:18,720 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd8f10a58-e7c5-4dff-a5e0-ec4b0b3b4641', 'name': 'ctest-vn-46209528', 'tenant_id': 'fca7598c330843bdb484602a9ba01444', 'project_id': 'fca7598c330843bdb484602a9ba01444', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['61c9c6cd-90ff-4c0d-9ae7-0078fde1bfd3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23491278', 'ctest-vn-46209528'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23491278', 'ctest-policy-allow-all-10937419']], 'subnet_ipam': [{'subnet_cidr': '178.126.46.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-22 09:43:18,950 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '02d9ebf8-a0ea-4c57-a522-ba92774a5b1f', 'name': 'ctest-vn-76224848', 'tenant_id': 'fca7598c330843bdb484602a9ba01444', 'project_id': 'fca7598c330843bdb484602a9ba01444', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5acdc784-74e7-44b8-857e-75b1a6b6046b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23491278', 'ctest-vn-76224848'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23491278', 'ctest-policy-allow-all-10937419']], 'subnet_ipam': [{'subnet_cidr': '117.171.250.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-22 09:43:19,116 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-22 09:43:19,407 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-22 09:43:19,436 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0e621225-400b-47cd-a540-ea9855563152 2025-07-22 09:43:19,450 - DEBUG - Requesting: http://10.0.0.254:8082/project/fca7598c-3308-43bd-b484-602a9ba01444 2025-07-22 09:43:19,523 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d8f10a58-e7c5-4dff-a5e0-ec4b0b3b4641 2025-07-22 09:43:19,535 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d8f10a58-e7c5-4dff-a5e0-ec4b0b3b4641 2025-07-22 09:43:19,546 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a5acaa6c-0415-4cc0-b515-c1dd414e22a0 2025-07-22 09:43:19,554 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a5acaa6c-0415-4cc0-b515-c1dd414e22a0 2025-07-22 09:43:19,561 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/893b701c-c74f-4273-8f17-345596b18d0f 2025-07-22 09:43:19,568 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-22 09:43:19,568 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d8f10a58-e7c5-4dff-a5e0-ec4b0b3b4641 2025-07-22 09:43:19,579 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a5acaa6c-0415-4cc0-b515-c1dd414e22a0 2025-07-22 09:43:19,595 - INFO - Verified VN network id 8 for VN d8f10a58-e7c5-4dff-a5e0-ec4b0b3b4641 2025-07-22 09:43:19,595 - INFO - Verifications in API Server for VN ctest-vn-46209528 passed 2025-07-22 09:43:19,595 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d8f10a58-e7c5-4dff-a5e0-ec4b0b3b4641 2025-07-22 09:43:19,606 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a5acaa6c-0415-4cc0-b515-c1dd414e22a0 2025-07-22 09:43:19,615 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a5acaa6c-0415-4cc0-b515-c1dd414e22a0 2025-07-22 09:43:19,622 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/893b701c-c74f-4273-8f17-345596b18d0f 2025-07-22 09:43:19,636 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23491278:ctest-vn-46209528', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23491278', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15632287158541569535', 'uuid-lslong': '11952813218096432705'}, 'enable': 'true', 'created': '2025-07-22T09:43:17', 'last-modified': '2025-07-22T09:43:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.939911'} 2025-07-22 09:43:19,644 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-22 09:43:19,644 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46209528 passed 2025-07-22 09:43:19,644 - DEBUG - ====Verifying policy data for ctest-vn-46209528 in API_Server ====== 2025-07-22 09:43:19,644 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-22 09:43:19,650 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0e621225-400b-47cd-a540-ea9855563152 2025-07-22 09:43:19,663 - DEBUG - Requesting: http://10.0.0.254:8082/project/fca7598c-3308-43bd-b484-602a9ba01444 2025-07-22 09:43:19,738 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d8f10a58-e7c5-4dff-a5e0-ec4b0b3b4641 2025-07-22 09:43:19,748 - DEBUG - ==>Verifying data for policy with id: 6bf9656c-b309-47ee-b272-de1d8ce0856a, fqn: ['default-domain', 'ctest-TestBasicPolicy-23491278', 'ctest-policy-allow-all-10937419'] 2025-07-22 09:43:19,749 - INFO - VN ctest-vn-46209528 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-22 09:43:19,749 - DEBUG - Verifying the vn in opserver 2025-07-22 09:43:19,749 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23491278:ctest-vn-46209528 virtual network link through opserver 10.0.0.254 2025-07-22 09:43:19,749 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-22 09:43:20,060 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-22 09:43:20,125 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23491278:ctest-vn-46209528', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23491278:ctest-vn-46209528?flat'} 2025-07-22 09:43:20,125 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23491278:ctest-vn-46209528 is found in opserver 2025-07-22 09:43:20,138 - DEBUG - Do not have enough data to verify VN in agent 2025-07-22 09:43:20,144 - DEBUG - VRF ids for VN ctest-vn-46209528: {} 2025-07-22 09:43:20,144 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-22 09:43:20,150 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0e621225-400b-47cd-a540-ea9855563152 2025-07-22 09:43:20,165 - DEBUG - Requesting: http://10.0.0.254:8082/project/fca7598c-3308-43bd-b484-602a9ba01444 2025-07-22 09:43:20,248 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/02d9ebf8-a0ea-4c57-a522-ba92774a5b1f 2025-07-22 09:43:20,265 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/02d9ebf8-a0ea-4c57-a522-ba92774a5b1f 2025-07-22 09:43:20,279 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/00697089-c25f-47f9-9999-3c0dd488f7bf 2025-07-22 09:43:20,289 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/00697089-c25f-47f9-9999-3c0dd488f7bf 2025-07-22 09:43:20,299 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/106ca274-a359-4607-a660-221bbd7ff1e7 2025-07-22 09:43:20,309 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-22 09:43:20,309 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/02d9ebf8-a0ea-4c57-a522-ba92774a5b1f 2025-07-22 09:43:20,324 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/00697089-c25f-47f9-9999-3c0dd488f7bf 2025-07-22 09:43:20,345 - INFO - Verified VN network id 9 for VN 02d9ebf8-a0ea-4c57-a522-ba92774a5b1f 2025-07-22 09:43:20,345 - INFO - Verifications in API Server for VN ctest-vn-76224848 passed 2025-07-22 09:43:20,346 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/02d9ebf8-a0ea-4c57-a522-ba92774a5b1f 2025-07-22 09:43:20,359 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/00697089-c25f-47f9-9999-3c0dd488f7bf 2025-07-22 09:43:20,369 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/00697089-c25f-47f9-9999-3c0dd488f7bf 2025-07-22 09:43:20,379 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/106ca274-a359-4607-a660-221bbd7ff1e7 2025-07-22 09:43:20,395 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23491278:ctest-vn-76224848', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23491278', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '205454711106194519', 'uuid-lslong': '11899278303695624991'}, 'enable': 'true', 'created': '2025-07-22T09:43:18', 'last-modified': '2025-07-22T09:43:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.465885'} 2025-07-22 09:43:20,402 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-22 09:43:20,402 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76224848 passed 2025-07-22 09:43:20,402 - DEBUG - ====Verifying policy data for ctest-vn-76224848 in API_Server ====== 2025-07-22 09:43:20,402 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-22 09:43:20,408 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0e621225-400b-47cd-a540-ea9855563152 2025-07-22 09:43:20,424 - DEBUG - Requesting: http://10.0.0.254:8082/project/fca7598c-3308-43bd-b484-602a9ba01444 2025-07-22 09:43:20,507 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/02d9ebf8-a0ea-4c57-a522-ba92774a5b1f 2025-07-22 09:43:20,520 - DEBUG - ==>Verifying data for policy with id: 6bf9656c-b309-47ee-b272-de1d8ce0856a, fqn: ['default-domain', 'ctest-TestBasicPolicy-23491278', 'ctest-policy-allow-all-10937419'] 2025-07-22 09:43:20,520 - INFO - VN ctest-vn-76224848 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-22 09:43:20,520 - DEBUG - Verifying the vn in opserver 2025-07-22 09:43:20,520 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23491278:ctest-vn-76224848 virtual network link through opserver 10.0.0.254 2025-07-22 09:43:20,520 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-22 09:43:20,534 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23491278:ctest-vn-76224848', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23491278:ctest-vn-76224848?flat'} 2025-07-22 09:43:20,534 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23491278:ctest-vn-76224848 is found in opserver 2025-07-22 09:43:20,547 - DEBUG - Do not have enough data to verify VN in agent 2025-07-22 09:43:20,553 - DEBUG - VRF ids for VN ctest-vn-76224848: {} 2025-07-22 09:43:20,617 - DEBUG - Services list from nova: [, , ] 2025-07-22 09:43:21,685 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3686-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3686-1) 2025-07-22 09:43:22,969 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3686-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3686-1) 2025-07-22 09:43:22,970 - INFO - Waiting for VM ctest-TestBasicPolicy-23491278-08364788 to be up.. 2025-07-22 09:43:23,076 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-22 09:43:28,155 - DEBUG - VM is in ACTIVE state now 2025-07-22 09:43:28,155 - INFO - VM name : ctest-TestBasicPolicy-23491278-08364788 2025-07-22 09:43:28,237 - DEBUG - VM ctest-TestBasicPolicy-23491278-08364788 ID is c1624740-df7a-4229-8d34-38b9d4a23e4c 2025-07-22 09:43:28,259 - DEBUG - VM ctest-TestBasicPolicy-23491278-08364788 launched on Node cn-jenkins-deploy-platform-ansible-os-3686-1 2025-07-22 09:43:28,340 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/c1624740-df7a-4229-8d34-38b9d4a23e4c 2025-07-22 09:43:28,351 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/b3647625-8e1b-44e9-8ed5-96e6e51ff9ab 2025-07-22 09:43:31,633 - 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 1025ms') 2025-07-22 09:43:31,633 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-23491278-08364788 failed! 2025-07-22 09:43:31,692 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-23491278:ctest-vn-46209528 is 178.126.46.1 and allocation pool is NOT set 2025-07-22 09:43:33,752 - 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.18 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.09 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 = 2.089/5.633/9.178/3.544 ms') 2025-07-22 09:43:33,752 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-23491278-08364788 passed 2025-07-22 09:43:33,904 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 09:43:33,904 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-23491278-08364788, IP 178.126.46.3, Port 22 2025-07-22 09:43:33,970 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-07-22 09:43:34,062 - DEBUG - VM ctest-TestBasicPolicy-23491278-08364788 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-22 09:43:39,063 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 09:43:39,063 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-23491278-08364788, IP 178.126.46.3, Port 22 2025-07-22 09:43:39,223 - DEBUG - VM ctest-TestBasicPolicy-23491278-08364788 is ready for SSH connections 2025-07-22 09:43:39,224 - INFO - Waiting for VM ctest-TestBasicPolicy-23491278-61986134 to be up.. 2025-07-22 09:43:39,299 - DEBUG - VM is in ACTIVE state now 2025-07-22 09:43:39,299 - INFO - VM name : ctest-TestBasicPolicy-23491278-61986134 2025-07-22 09:43:39,377 - DEBUG - VM ctest-TestBasicPolicy-23491278-61986134 ID is 01722675-6015-42cb-abf2-ce04a2aa314d 2025-07-22 09:43:39,377 - DEBUG - VM ctest-TestBasicPolicy-23491278-61986134 launched on Node cn-jenkins-deploy-platform-ansible-os-3686-1 2025-07-22 09:43:39,468 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/01722675-6015-42cb-abf2-ce04a2aa314d 2025-07-22 09:43:39,478 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/704c1a43-36d9-464f-8edd-c0ae187edc1f 2025-07-22 09:43:40,723 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=2.81 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.391 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.391/1.600/2.810/1.209 ms') 2025-07-22 09:43:40,723 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-23491278-61986134 passed 2025-07-22 09:43:40,876 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 09:43:40,876 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-23491278-61986134, IP 117.171.250.131, Port 22 2025-07-22 09:43:41,043 - DEBUG - VM ctest-TestBasicPolicy-23491278-61986134 is ready for SSH connections 2025-07-22 09:43:41,043 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 09:43:41,043 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 117.171.250.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-07-22 09:43:41,043 - DEBUG - ping -s 56 -c 3 -W 1 117.171.250.131 2025-07-22 09:43:44,742 - DEBUG - PING 117.171.250.131 (117.171.250.131): 56 data bytes 64 bytes from 117.171.250.131: seq=0 ttl=63 time=3.607 ms 64 bytes from 117.171.250.131: seq=1 ttl=63 time=0.873 ms 64 bytes from 117.171.250.131: seq=2 ttl=63 time=0.838 ms --- 117.171.250.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.838/1.772/3.607 ms 2025-07-22 09:43:44,742 - INFO - Ping to IP 117.171.250.131 from VM ctest-TestBasicPolicy-23491278-08364788 passed 2025-07-22 09:43:44,919 - DEBUG - Policy Update Response {"network-policy": {"uuid": "6bf9656c-b309-47ee-b272-de1d8ce0856a", "href": "http://10.0.0.254:8082/network-policy/6bf9656c-b309-47ee-b272-de1d8ce0856a"}} 2025-07-22 09:43:44,920 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-22 09:43:44,920 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 117.171.250.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-07-22 09:43:44,920 - DEBUG - ping -s 56 -c 3 -W 1 117.171.250.131 2025-07-22 09:43:48,143 - DEBUG - PING 117.171.250.131 (117.171.250.131): 56 data bytes 64 bytes from 117.171.250.131: seq=0 ttl=63 time=1.552 ms --- 117.171.250.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.552/1.552/1.552 ms 2025-07-22 09:43:48,143 - WARNING - Ping to IP 117.171.250.131 from VM ctest-TestBasicPolicy-23491278-08364788 failed 2025-07-22 09:43:48,144 - INFO - Deleting VM ctest-TestBasicPolicy-23491278-61986134 2025-07-22 09:43:48,213 - INFO - Deleting VM ctest-TestBasicPolicy-23491278-08364788 2025-07-22 09:43:48,631 - INFO - Deleted policy ctest-policy-allow-all-10937419 2025-07-22 09:43:48,631 - INFO - Deleting VN ctest-vn-76224848 2025-07-22 09:43:48,672 - DEBUG - VN 02d9ebf8-a0ea-4c57-a522-ba92774a5b1f still in use: Unable to complete operation on network 02d9ebf8-a0ea-4c57-a522-ba92774a5b1f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-21e54135-e078-431c-a2e6-888d6926910f'] 2025-07-22 09:43:48,672 - WARNING - Deleting VN ctest-vn-76224848 failed..Will retry 2025-07-22 09:43:50,787 - DEBUG - Response for deleting network () 2025-07-22 09:43:50,787 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/00697089-c25f-47f9-9999-3c0dd488f7bf 2025-07-22 09:43:50,798 - DEBUG - Response Code: 404 2025-07-22 09:43:50,798 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-22 09:43:50,805 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0e621225-400b-47cd-a540-ea9855563152 2025-07-22 09:43:50,863 - DEBUG - Requesting: http://10.0.0.254:8082/project/fca7598c-3308-43bd-b484-602a9ba01444 2025-07-22 09:43:50,939 - INFO - Validated that VN ctest-vn-76224848 is not found in API Server 2025-07-22 09:43:50,950 - DEBUG - VN ctest-vn-76224848 is not present in Agent 10.0.0.254 2025-07-22 09:43:50,950 - INFO - Validated that VN ctest-vn-76224848 is not in any agent 2025-07-22 09:43:50,969 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-76224848 info 2025-07-22 09:43:50,969 - INFO - Deleting VN ctest-vn-46209528 2025-07-22 09:43:51,082 - DEBUG - Response for deleting network () 2025-07-22 09:43:51,083 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a5acaa6c-0415-4cc0-b515-c1dd414e22a0 2025-07-22 09:43:51,093 - DEBUG - Response Code: 404 2025-07-22 09:43:51,093 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-22 09:43:51,102 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0e621225-400b-47cd-a540-ea9855563152 2025-07-22 09:43:51,157 - DEBUG - Requesting: http://10.0.0.254:8082/project/fca7598c-3308-43bd-b484-602a9ba01444 2025-07-22 09:43:51,236 - INFO - Validated that VN ctest-vn-46209528 is not found in API Server 2025-07-22 09:43:51,247 - DEBUG - VN ctest-vn-46209528 is not present in Agent 10.0.0.254 2025-07-22 09:43:51,248 - INFO - Validated that VN ctest-vn-46209528 is not in any agent 2025-07-22 09:43:51,266 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-46209528 info 2025-07-22 09:43:51,521 - DEBUG - No XMPP flaps were noticed during the test 2025-07-22 09:43:51,522 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-07-22 09:43:51,522 - INFO - -------------------------------------------------------------------------------- 2025-07-22 09:43:52,203 - INFO - Deleted project: ctest-TestBasicPolicy-23491278, ID : fca7598c-3308-43bd-b484-602a9ba01444