2025-03-22 09:28:08,033 - INFO - Domain Default found not creating 2025-03-22 09:28:08,197 - INFO - Project ctest-TestBasicPolicy-86937666 not found, creating it 2025-03-22 09:28:08,714 - INFO - Created Project:ctest-TestBasicPolicy-86937666, ID : 19cd765e-6c13-4d18-b85a-1ee270b4e69b 2025-03-22 09:28:10,351 - INFO - ================================================================================ 2025-03-22 09:28:10,351 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-22 09:28:10,351 - 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-03-22 09:28:10,606 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.11': '0'}} with 2025-03-22 09:28:10,606 - INFO - Initial checks done. Running the testcase now 2025-03-22 09:28:10,606 - INFO - 2025-03-22 09:28:11,215 - DEBUG - Response for create_network : {'network': {'id': '8f601647-3541-415b-8076-d214120f3c9b', 'name': 'ctest-vn-93049605', 'tenant_id': '19cd765e6c134d18b85a1ee270b4e69b', 'project_id': '19cd765e6c134d18b85a1ee270b4e69b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86937666', 'ctest-vn-93049605'], 'port_security_enabled': True, 'description': ''}} 2025-03-22 09:28:11,385 - DEBUG - Response for create_subnet : {'subnet': {'id': '23d98535-a404-41f7-90f1-91d98b1b97b5', 'name': '', 'tenant_id': '19cd765e6c134d18b85a1ee270b4e69b', 'network_id': '8f601647-3541-415b-8076-d214120f3c9b', 'ip_version': 4, 'cidr': '31.221.137.192/26', 'allocation_pools': [{'start': '31.221.137.194', 'end': '31.221.137.254'}], 'gateway_ip': '31.221.137.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.221.137.194', 'tags': [], 'project_id': '19cd765e6c134d18b85a1ee270b4e69b'}} 2025-03-22 09:28:11,406 - INFO - Created VN ctest-vn-93049605 2025-03-22 09:28:11,459 - DEBUG - VN ctest-vn-93049605 UUID is 8f601647-3541-415b-8076-d214120f3c9b 2025-03-22 09:28:11,787 - DEBUG - Response for create_network : {'network': {'id': '1d739ad7-439f-4075-832c-e3bf8be94a13', 'name': 'ctest-vn-20973900', 'tenant_id': '19cd765e6c134d18b85a1ee270b4e69b', 'project_id': '19cd765e6c134d18b85a1ee270b4e69b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86937666', 'ctest-vn-20973900'], 'port_security_enabled': True, 'description': ''}} 2025-03-22 09:28:11,941 - DEBUG - Response for create_subnet : {'subnet': {'id': '6b41ee6f-aa28-4610-b7a1-d31c056e8da3', 'name': '', 'tenant_id': '19cd765e6c134d18b85a1ee270b4e69b', 'network_id': '1d739ad7-439f-4075-832c-e3bf8be94a13', 'ip_version': 4, 'cidr': '105.78.116.0/26', 'allocation_pools': [{'start': '105.78.116.2', 'end': '105.78.116.62'}], 'gateway_ip': '105.78.116.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.78.116.2', 'tags': [], 'project_id': '19cd765e6c134d18b85a1ee270b4e69b'}} 2025-03-22 09:28:11,964 - INFO - Created VN ctest-vn-20973900 2025-03-22 09:28:12,019 - DEBUG - VN ctest-vn-20973900 UUID is 1d739ad7-439f-4075-832c-e3bf8be94a13 2025-03-22 09:28:12,140 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-86937666:ctest-vn-93049605, 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-86937666:ctest-vn-20973900, 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-03-22 09:28:12,451 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8f601647-3541-415b-8076-d214120f3c9b', 'name': 'ctest-vn-93049605', 'tenant_id': '19cd765e6c134d18b85a1ee270b4e69b', 'project_id': '19cd765e6c134d18b85a1ee270b4e69b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['23d98535-a404-41f7-90f1-91d98b1b97b5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86937666', 'ctest-vn-93049605'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86937666', 'ctest-policy-allow-all-95275608']], 'subnet_ipam': [{'subnet_cidr': '31.221.137.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-22 09:28:12,698 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1d739ad7-439f-4075-832c-e3bf8be94a13', 'name': 'ctest-vn-20973900', 'tenant_id': '19cd765e6c134d18b85a1ee270b4e69b', 'project_id': '19cd765e6c134d18b85a1ee270b4e69b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6b41ee6f-aa28-4610-b7a1-d31c056e8da3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86937666', 'ctest-vn-20973900'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86937666', 'ctest-policy-allow-all-95275608']], 'subnet_ipam': [{'subnet_cidr': '105.78.116.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-22 09:28:12,875 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2025-03-22 09:28:13,221 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2025-03-22 09:28:13,251 - DEBUG - Requesting: http://10.0.0.29:8082/domain/923f04ac-c5dd-48b8-baf3-cf2f25f39bc3 2025-03-22 09:28:13,267 - DEBUG - Requesting: http://10.0.0.29:8082/project/19cd765e-6c13-4d18-b85a-1ee270b4e69b 2025-03-22 09:28:13,354 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/8f601647-3541-415b-8076-d214120f3c9b 2025-03-22 09:28:13,367 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/8f601647-3541-415b-8076-d214120f3c9b 2025-03-22 09:28:13,378 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/f032deb2-80a1-4e12-b64b-00d79b46e789 2025-03-22 09:28:13,387 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/f032deb2-80a1-4e12-b64b-00d79b46e789 2025-03-22 09:28:13,396 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/e888b933-4631-4a4c-a60d-259fe2ce619c 2025-03-22 09:28:13,405 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-22 09:28:13,405 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/8f601647-3541-415b-8076-d214120f3c9b 2025-03-22 09:28:13,416 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/f032deb2-80a1-4e12-b64b-00d79b46e789 2025-03-22 09:28:13,432 - INFO - Verified VN network id 8 for VN 8f601647-3541-415b-8076-d214120f3c9b 2025-03-22 09:28:13,433 - INFO - Verifications in API Server for VN ctest-vn-93049605 passed 2025-03-22 09:28:13,433 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/8f601647-3541-415b-8076-d214120f3c9b 2025-03-22 09:28:13,445 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/f032deb2-80a1-4e12-b64b-00d79b46e789 2025-03-22 09:28:13,453 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/f032deb2-80a1-4e12-b64b-00d79b46e789 2025-03-22 09:28:13,460 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/e888b933-4631-4a4c-a60d-259fe2ce619c 2025-03-22 09:28:13,473 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86937666:ctest-vn-93049605', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86937666', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10331282040279875931', 'uuid-lslong': '9256817067750800539'}, 'enable': 'true', 'created': '2025-03-22T09:28:11', 'last-modified': '2025-03-22T09:28:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.048672'} 2025-03-22 09:28:13,480 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-22 09:28:13,480 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93049605 passed 2025-03-22 09:28:13,480 - DEBUG - ====Verifying policy data for ctest-vn-93049605 in API_Server ====== 2025-03-22 09:28:13,480 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2025-03-22 09:28:13,486 - DEBUG - Requesting: http://10.0.0.29:8082/domain/923f04ac-c5dd-48b8-baf3-cf2f25f39bc3 2025-03-22 09:28:13,499 - DEBUG - Requesting: http://10.0.0.29:8082/project/19cd765e-6c13-4d18-b85a-1ee270b4e69b 2025-03-22 09:28:13,577 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/8f601647-3541-415b-8076-d214120f3c9b 2025-03-22 09:28:13,588 - DEBUG - ==>Verifying data for policy with id: 5f66fc78-1741-4168-ae71-e34c95aea46c, fqn: ['default-domain', 'ctest-TestBasicPolicy-86937666', 'ctest-policy-allow-all-95275608'] 2025-03-22 09:28:13,588 - INFO - VN ctest-vn-93049605 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-22 09:28:13,588 - DEBUG - Verifying the vn in opserver 2025-03-22 09:28:13,588 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86937666:ctest-vn-93049605 virtual network link through opserver 10.0.0.29 2025-03-22 09:28:13,589 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2025-03-22 09:28:13,924 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2025-03-22 09:28:13,990 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86937666:ctest-vn-93049605', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86937666:ctest-vn-93049605?flat'} 2025-03-22 09:28:13,990 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86937666:ctest-vn-93049605 is found in opserver 2025-03-22 09:28:14,003 - DEBUG - Do not have enough data to verify VN in agent 2025-03-22 09:28:14,009 - DEBUG - VRF ids for VN ctest-vn-93049605: {} 2025-03-22 09:28:14,009 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2025-03-22 09:28:14,016 - DEBUG - Requesting: http://10.0.0.29:8082/domain/923f04ac-c5dd-48b8-baf3-cf2f25f39bc3 2025-03-22 09:28:14,029 - DEBUG - Requesting: http://10.0.0.29:8082/project/19cd765e-6c13-4d18-b85a-1ee270b4e69b 2025-03-22 09:28:14,104 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/1d739ad7-439f-4075-832c-e3bf8be94a13 2025-03-22 09:28:14,117 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/1d739ad7-439f-4075-832c-e3bf8be94a13 2025-03-22 09:28:14,128 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/1434d387-6b59-4027-9d17-d8704d9c4839 2025-03-22 09:28:14,137 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/1434d387-6b59-4027-9d17-d8704d9c4839 2025-03-22 09:28:14,145 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/5d89d2a1-e3d7-4e62-97f7-530017e83fcd 2025-03-22 09:28:14,152 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-22 09:28:14,152 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/1d739ad7-439f-4075-832c-e3bf8be94a13 2025-03-22 09:28:14,162 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/1434d387-6b59-4027-9d17-d8704d9c4839 2025-03-22 09:28:14,178 - INFO - Verified VN network id 9 for VN 1d739ad7-439f-4075-832c-e3bf8be94a13 2025-03-22 09:28:14,178 - INFO - Verifications in API Server for VN ctest-vn-20973900 passed 2025-03-22 09:28:14,178 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/1d739ad7-439f-4075-832c-e3bf8be94a13 2025-03-22 09:28:14,190 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/1434d387-6b59-4027-9d17-d8704d9c4839 2025-03-22 09:28:14,198 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/1434d387-6b59-4027-9d17-d8704d9c4839 2025-03-22 09:28:14,205 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/5d89d2a1-e3d7-4e62-97f7-530017e83fcd 2025-03-22 09:28:14,218 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86937666:ctest-vn-20973900', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86937666', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2122210098764791925', 'uuid-lslong': '9452180129769409043'}, 'enable': 'true', 'created': '2025-03-22T09:28:11', 'last-modified': '2025-03-22T09:28:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.540089'} 2025-03-22 09:28:14,225 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-22 09:28:14,225 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20973900 passed 2025-03-22 09:28:14,226 - DEBUG - ====Verifying policy data for ctest-vn-20973900 in API_Server ====== 2025-03-22 09:28:14,226 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2025-03-22 09:28:14,232 - DEBUG - Requesting: http://10.0.0.29:8082/domain/923f04ac-c5dd-48b8-baf3-cf2f25f39bc3 2025-03-22 09:28:14,245 - DEBUG - Requesting: http://10.0.0.29:8082/project/19cd765e-6c13-4d18-b85a-1ee270b4e69b 2025-03-22 09:28:14,331 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/1d739ad7-439f-4075-832c-e3bf8be94a13 2025-03-22 09:28:14,345 - DEBUG - ==>Verifying data for policy with id: 5f66fc78-1741-4168-ae71-e34c95aea46c, fqn: ['default-domain', 'ctest-TestBasicPolicy-86937666', 'ctest-policy-allow-all-95275608'] 2025-03-22 09:28:14,345 - INFO - VN ctest-vn-20973900 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-22 09:28:14,345 - DEBUG - Verifying the vn in opserver 2025-03-22 09:28:14,345 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86937666:ctest-vn-20973900 virtual network link through opserver 10.0.0.29 2025-03-22 09:28:14,345 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2025-03-22 09:28:14,358 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86937666:ctest-vn-20973900', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86937666:ctest-vn-20973900?flat'} 2025-03-22 09:28:14,358 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86937666:ctest-vn-20973900 is found in opserver 2025-03-22 09:28:14,370 - DEBUG - Do not have enough data to verify VN in agent 2025-03-22 09:28:14,375 - DEBUG - VRF ids for VN ctest-vn-20973900: {} 2025-03-22 09:28:14,434 - DEBUG - Services list from nova: [, , ] 2025-03-22 09:28:15,563 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2935-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2935-1) 2025-03-22 09:28:16,967 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2935-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2935-1) 2025-03-22 09:28:16,967 - INFO - Waiting for VM ctest-TestBasicPolicy-86937666-18922277 to be up.. 2025-03-22 09:28:17,050 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-22 09:28:22,149 - DEBUG - VM is in ACTIVE state now 2025-03-22 09:28:22,149 - INFO - VM name : ctest-TestBasicPolicy-86937666-18922277 2025-03-22 09:28:22,239 - DEBUG - VM ctest-TestBasicPolicy-86937666-18922277 ID is 6cf725d4-54fc-4d62-8c65-a299b3bbc8b1 2025-03-22 09:28:22,262 - DEBUG - VM ctest-TestBasicPolicy-86937666-18922277 launched on Node cn-jenkins-deploy-platform-ansible-os-2935-1 2025-03-22 09:28:22,349 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/6cf725d4-54fc-4d62-8c65-a299b3bbc8b1 2025-03-22 09:28:22,360 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/151e57e9-13fe-421e-b0b8-a686cc3c89c4 2025-03-22 09:28:25,638 - 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 1022ms') 2025-03-22 09:28:25,638 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-86937666-18922277 failed! 2025-03-22 09:28:25,700 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-86937666:ctest-vn-93049605 is 31.221.137.193 and allocation pool is NOT set 2025-03-22 09:28:27,771 - 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=7.27 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.49 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.487/4.377/7.268/2.890 ms') 2025-03-22 09:28:27,771 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-86937666-18922277 passed 2025-03-22 09:28:27,923 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-22 09:28:27,923 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-86937666-18922277, IP 31.221.137.195, Port 22 2025-03-22 09:28:27,990 - 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-03-22 09:28:28,116 - DEBUG - VM ctest-TestBasicPolicy-86937666-18922277 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-22 09:28:33,117 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-22 09:28:33,117 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-86937666-18922277, IP 31.221.137.195, Port 22 2025-03-22 09:28:33,275 - DEBUG - VM ctest-TestBasicPolicy-86937666-18922277 is ready for SSH connections 2025-03-22 09:28:33,276 - INFO - Waiting for VM ctest-TestBasicPolicy-86937666-55172056 to be up.. 2025-03-22 09:28:33,362 - DEBUG - VM is in ACTIVE state now 2025-03-22 09:28:33,362 - INFO - VM name : ctest-TestBasicPolicy-86937666-55172056 2025-03-22 09:28:33,445 - DEBUG - VM ctest-TestBasicPolicy-86937666-55172056 ID is 0f8ffe20-1ad9-47fb-97d7-10fba314938a 2025-03-22 09:28:33,445 - DEBUG - VM ctest-TestBasicPolicy-86937666-55172056 launched on Node cn-jenkins-deploy-platform-ansible-os-2935-1 2025-03-22 09:28:33,527 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/0f8ffe20-1ad9-47fb-97d7-10fba314938a 2025-03-22 09:28:33,539 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/5e9c5a86-a17a-43cf-ba5c-2d04054b368d 2025-03-22 09:28:34,793 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=3.98 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.473 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.473/2.224/3.976/1.751 ms') 2025-03-22 09:28:34,793 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-86937666-55172056 passed 2025-03-22 09:28:34,947 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-22 09:28:34,947 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-86937666-55172056, IP 105.78.116.3, Port 22 2025-03-22 09:28:35,103 - DEBUG - VM ctest-TestBasicPolicy-86937666-55172056 is ready for SSH connections 2025-03-22 09:28:35,103 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-22 09:28:35,103 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 105.78.116.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2025-03-22 09:28:35,103 - DEBUG - ping -s 56 -c 3 -W 1 105.78.116.3 2025-03-22 09:28:39,214 - DEBUG - PING 105.78.116.3 (105.78.116.3): 56 data bytes 64 bytes from 105.78.116.3: seq=0 ttl=63 time=4.194 ms 64 bytes from 105.78.116.3: seq=1 ttl=63 time=0.977 ms 64 bytes from 105.78.116.3: seq=2 ttl=63 time=1.004 ms --- 105.78.116.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.977/2.058/4.194 ms 2025-03-22 09:28:39,214 - INFO - Ping to IP 105.78.116.3 from VM ctest-TestBasicPolicy-86937666-18922277 passed 2025-03-22 09:28:39,399 - DEBUG - Policy Update Response {"network-policy": {"uuid": "5f66fc78-1741-4168-ae71-e34c95aea46c", "href": "http://10.0.0.29:8082/network-policy/5f66fc78-1741-4168-ae71-e34c95aea46c"}} 2025-03-22 09:28:39,399 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-22 09:28:39,399 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 105.78.116.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2025-03-22 09:28:39,400 - DEBUG - ping -s 56 -c 3 -W 1 105.78.116.3 2025-03-22 09:28:42,703 - DEBUG - PING 105.78.116.3 (105.78.116.3): 56 data bytes 64 bytes from 105.78.116.3: seq=0 ttl=63 time=1.949 ms --- 105.78.116.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.949/1.949/1.949 ms 2025-03-22 09:28:42,703 - WARNING - Ping to IP 105.78.116.3 from VM ctest-TestBasicPolicy-86937666-18922277 failed 2025-03-22 09:28:42,703 - INFO - Deleting VM ctest-TestBasicPolicy-86937666-55172056 2025-03-22 09:28:42,784 - INFO - Deleting VM ctest-TestBasicPolicy-86937666-18922277 2025-03-22 09:28:43,240 - INFO - Deleted policy ctest-policy-allow-all-95275608 2025-03-22 09:28:43,241 - INFO - Deleting VN ctest-vn-20973900 2025-03-22 09:28:43,282 - DEBUG - VN 1d739ad7-439f-4075-832c-e3bf8be94a13 still in use: Unable to complete operation on network 1d739ad7-439f-4075-832c-e3bf8be94a13. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6edf1393-4984-441f-8aeb-9fb757479732'] 2025-03-22 09:28:43,282 - WARNING - Deleting VN ctest-vn-20973900 failed..Will retry 2025-03-22 09:28:45,402 - DEBUG - Response for deleting network () 2025-03-22 09:28:45,402 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/1434d387-6b59-4027-9d17-d8704d9c4839 2025-03-22 09:28:45,410 - DEBUG - Response Code: 404 2025-03-22 09:28:45,410 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2025-03-22 09:28:45,417 - DEBUG - Requesting: http://10.0.0.29:8082/domain/923f04ac-c5dd-48b8-baf3-cf2f25f39bc3 2025-03-22 09:28:45,474 - DEBUG - Requesting: http://10.0.0.29:8082/project/19cd765e-6c13-4d18-b85a-1ee270b4e69b 2025-03-22 09:28:45,550 - INFO - Validated that VN ctest-vn-20973900 is not found in API Server 2025-03-22 09:28:45,562 - DEBUG - VN ctest-vn-20973900 is not present in Agent 10.0.0.29 2025-03-22 09:28:45,562 - INFO - Validated that VN ctest-vn-20973900 is not in any agent 2025-03-22 09:28:45,580 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-20973900 info 2025-03-22 09:28:45,580 - INFO - Deleting VN ctest-vn-93049605 2025-03-22 09:28:45,686 - DEBUG - Response for deleting network () 2025-03-22 09:28:45,687 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/f032deb2-80a1-4e12-b64b-00d79b46e789 2025-03-22 09:28:45,692 - DEBUG - Response Code: 404 2025-03-22 09:28:45,692 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2025-03-22 09:28:45,700 - DEBUG - Requesting: http://10.0.0.29:8082/domain/923f04ac-c5dd-48b8-baf3-cf2f25f39bc3 2025-03-22 09:28:45,757 - DEBUG - Requesting: http://10.0.0.29:8082/project/19cd765e-6c13-4d18-b85a-1ee270b4e69b 2025-03-22 09:28:45,835 - INFO - Validated that VN ctest-vn-93049605 is not found in API Server 2025-03-22 09:28:45,848 - DEBUG - VN ctest-vn-93049605 is not present in Agent 10.0.0.29 2025-03-22 09:28:45,848 - INFO - Validated that VN ctest-vn-93049605 is not in any agent 2025-03-22 09:28:45,865 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-93049605 info 2025-03-22 09:28:46,125 - DEBUG - No XMPP flaps were noticed during the test 2025-03-22 09:28:46,125 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2025-03-22 09:28:46,126 - INFO - -------------------------------------------------------------------------------- 2025-03-22 09:28:46,877 - INFO - Deleted project: ctest-TestBasicPolicy-86937666, ID : 19cd765e-6c13-4d18-b85a-1ee270b4e69b