2025-10-11 19:28:57,995 - INFO - Domain Default found not creating 2025-10-11 19:28:58,370 - INFO - Project ctest-TestBasicPolicy-53766089 not found, creating it 2025-10-11 19:28:59,009 - INFO - Created Project:ctest-TestBasicPolicy-53766089, ID : 3fb5e2ce-26f6-4a86-a2bd-f3a81fbc646b 2025-10-11 19:29:01,163 - INFO - ================================================================================ 2025-10-11 19:29:01,163 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-11 19:29:01,164 - 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-10-11 19:29:01,502 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-10-11 19:29:01,502 - INFO - Initial checks done. Running the testcase now 2025-10-11 19:29:01,502 - INFO - 2025-10-11 19:29:02,828 - DEBUG - Response for create_network : {'network': {'id': '599c3a10-dd9f-4c56-86b2-2dbb0ea9cf56', 'name': 'ctest-vn-06073338', 'tenant_id': '3fb5e2ce26f64a86a2bdf3a81fbc646b', 'project_id': '3fb5e2ce26f64a86a2bdf3a81fbc646b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53766089', 'ctest-vn-06073338'], 'port_security_enabled': True, 'description': ''}} 2025-10-11 19:29:03,095 - DEBUG - Response for create_subnet : {'subnet': {'id': '875f7e96-9671-487e-bb53-35feb9928b76', 'name': '', 'tenant_id': '3fb5e2ce26f64a86a2bdf3a81fbc646b', 'network_id': '599c3a10-dd9f-4c56-86b2-2dbb0ea9cf56', 'ip_version': 4, 'cidr': '76.155.147.0/26', 'allocation_pools': [{'start': '76.155.147.2', 'end': '76.155.147.62'}], 'gateway_ip': '76.155.147.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '76.155.147.2', 'tags': [], 'project_id': '3fb5e2ce26f64a86a2bdf3a81fbc646b'}} 2025-10-11 19:29:03,117 - INFO - Created VN ctest-vn-06073338 2025-10-11 19:29:03,181 - DEBUG - VN ctest-vn-06073338 UUID is 599c3a10-dd9f-4c56-86b2-2dbb0ea9cf56 2025-10-11 19:29:03,679 - DEBUG - Response for create_network : {'network': {'id': '1c270690-b292-449e-be24-0de530d8f538', 'name': 'ctest-vn-20875491', 'tenant_id': '3fb5e2ce26f64a86a2bdf3a81fbc646b', 'project_id': '3fb5e2ce26f64a86a2bdf3a81fbc646b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53766089', 'ctest-vn-20875491'], 'port_security_enabled': True, 'description': ''}} 2025-10-11 19:29:03,889 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dd9c1796-99ce-4fbc-8e62-b41bd423aa4d', 'name': '', 'tenant_id': '3fb5e2ce26f64a86a2bdf3a81fbc646b', 'network_id': '1c270690-b292-449e-be24-0de530d8f538', 'ip_version': 4, 'cidr': '39.63.199.128/26', 'allocation_pools': [{'start': '39.63.199.130', 'end': '39.63.199.190'}], 'gateway_ip': '39.63.199.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39.63.199.130', 'tags': [], 'project_id': '3fb5e2ce26f64a86a2bdf3a81fbc646b'}} 2025-10-11 19:29:03,922 - INFO - Created VN ctest-vn-20875491 2025-10-11 19:29:03,989 - DEBUG - VN ctest-vn-20875491 UUID is 1c270690-b292-449e-be24-0de530d8f538 2025-10-11 19:29:04,126 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-53766089:ctest-vn-06073338, 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-53766089:ctest-vn-20875491, 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-10-11 19:29:04,586 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '599c3a10-dd9f-4c56-86b2-2dbb0ea9cf56', 'name': 'ctest-vn-06073338', 'tenant_id': '3fb5e2ce26f64a86a2bdf3a81fbc646b', 'project_id': '3fb5e2ce26f64a86a2bdf3a81fbc646b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['875f7e96-9671-487e-bb53-35feb9928b76'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53766089', 'ctest-vn-06073338'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53766089', 'ctest-policy-allow-all-41140778']], 'subnet_ipam': [{'subnet_cidr': '76.155.147.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-11 19:29:04,899 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1c270690-b292-449e-be24-0de530d8f538', 'name': 'ctest-vn-20875491', 'tenant_id': '3fb5e2ce26f64a86a2bdf3a81fbc646b', 'project_id': '3fb5e2ce26f64a86a2bdf3a81fbc646b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dd9c1796-99ce-4fbc-8e62-b41bd423aa4d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53766089', 'ctest-vn-20875491'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53766089', 'ctest-policy-allow-all-41140778']], 'subnet_ipam': [{'subnet_cidr': '39.63.199.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-11 19:29:05,073 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-11 19:29:05,382 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-11 19:29:05,428 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c786773f-bd03-4e23-a739-ea6582baf839 2025-10-11 19:29:05,458 - DEBUG - Requesting: http://10.0.0.254:8082/project/3fb5e2ce-26f6-4a86-a2bd-f3a81fbc646b 2025-10-11 19:29:05,575 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/599c3a10-dd9f-4c56-86b2-2dbb0ea9cf56 2025-10-11 19:29:05,596 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/599c3a10-dd9f-4c56-86b2-2dbb0ea9cf56 2025-10-11 19:29:05,614 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1c66321a-ba20-4646-bf0f-4dd027129d32 2025-10-11 19:29:05,630 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1c66321a-ba20-4646-bf0f-4dd027129d32 2025-10-11 19:29:05,645 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7fb64352-cf3e-4a29-84df-48cf1e8e0b79 2025-10-11 19:29:05,658 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-11 19:29:05,659 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/599c3a10-dd9f-4c56-86b2-2dbb0ea9cf56 2025-10-11 19:29:05,677 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1c66321a-ba20-4646-bf0f-4dd027129d32 2025-10-11 19:29:05,706 - INFO - Verified VN network id 11 for VN 599c3a10-dd9f-4c56-86b2-2dbb0ea9cf56 2025-10-11 19:29:05,706 - INFO - Verifications in API Server for VN ctest-vn-06073338 passed 2025-10-11 19:29:05,707 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/599c3a10-dd9f-4c56-86b2-2dbb0ea9cf56 2025-10-11 19:29:05,734 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1c66321a-ba20-4646-bf0f-4dd027129d32 2025-10-11 19:29:05,753 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1c66321a-ba20-4646-bf0f-4dd027129d32 2025-10-11 19:29:05,767 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7fb64352-cf3e-4a29-84df-48cf1e8e0b79 2025-10-11 19:29:05,790 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53766089:ctest-vn-06073338', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53766089', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6457099809854540886', 'uuid-lslong': '9705870428364984150'}, 'enable': 'true', 'created': '2025-10-11T19:29:02', 'last-modified': '2025-10-11T19:29:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.257427'} 2025-10-11 19:29:05,806 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-11 19:29:05,806 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06073338 passed 2025-10-11 19:29:05,806 - DEBUG - ====Verifying policy data for ctest-vn-06073338 in API_Server ====== 2025-10-11 19:29:05,807 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-11 19:29:05,818 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c786773f-bd03-4e23-a739-ea6582baf839 2025-10-11 19:29:05,844 - DEBUG - Requesting: http://10.0.0.254:8082/project/3fb5e2ce-26f6-4a86-a2bd-f3a81fbc646b 2025-10-11 19:29:05,955 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/599c3a10-dd9f-4c56-86b2-2dbb0ea9cf56 2025-10-11 19:29:05,979 - DEBUG - ==>Verifying data for policy with id: fa073a28-23c1-48b9-8d9b-596ebd04513d, fqn: ['default-domain', 'ctest-TestBasicPolicy-53766089', 'ctest-policy-allow-all-41140778'] 2025-10-11 19:29:05,979 - INFO - VN ctest-vn-06073338 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-11 19:29:05,979 - DEBUG - Verifying the vn in opserver 2025-10-11 19:29:05,980 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53766089:ctest-vn-06073338 virtual network link through opserver 10.0.0.254 2025-10-11 19:29:05,980 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-11 19:29:06,332 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-11 19:29:06,409 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53766089:ctest-vn-06073338', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53766089:ctest-vn-06073338?flat'} 2025-10-11 19:29:06,409 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53766089:ctest-vn-06073338 is found in opserver 2025-10-11 19:29:06,425 - DEBUG - Do not have enough data to verify VN in agent 2025-10-11 19:29:06,432 - DEBUG - VRF ids for VN ctest-vn-06073338: {} 2025-10-11 19:29:06,432 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-11 19:29:06,440 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c786773f-bd03-4e23-a739-ea6582baf839 2025-10-11 19:29:06,464 - DEBUG - Requesting: http://10.0.0.254:8082/project/3fb5e2ce-26f6-4a86-a2bd-f3a81fbc646b 2025-10-11 19:29:06,592 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1c270690-b292-449e-be24-0de530d8f538 2025-10-11 19:29:06,620 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1c270690-b292-449e-be24-0de530d8f538 2025-10-11 19:29:06,645 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/41a28e81-a775-49a8-8bad-9570b20e72a2 2025-10-11 19:29:06,669 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/41a28e81-a775-49a8-8bad-9570b20e72a2 2025-10-11 19:29:06,688 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e5daceea-3732-4d30-b917-57b4b8a9a0dd 2025-10-11 19:29:06,706 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-11 19:29:06,707 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1c270690-b292-449e-be24-0de530d8f538 2025-10-11 19:29:06,734 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/41a28e81-a775-49a8-8bad-9570b20e72a2 2025-10-11 19:29:06,767 - INFO - Verified VN network id 12 for VN 1c270690-b292-449e-be24-0de530d8f538 2025-10-11 19:29:06,767 - INFO - Verifications in API Server for VN ctest-vn-20875491 passed 2025-10-11 19:29:06,768 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1c270690-b292-449e-be24-0de530d8f538 2025-10-11 19:29:06,786 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/41a28e81-a775-49a8-8bad-9570b20e72a2 2025-10-11 19:29:06,799 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/41a28e81-a775-49a8-8bad-9570b20e72a2 2025-10-11 19:29:06,811 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e5daceea-3732-4d30-b917-57b4b8a9a0dd 2025-10-11 19:29:06,833 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53766089:ctest-vn-20875491', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53766089', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2028597375694685342', 'uuid-lslong': '13701091244386088248'}, 'enable': 'true', 'created': '2025-10-11T19:29:03', 'last-modified': '2025-10-11T19:29:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.969816'} 2025-10-11 19:29:06,847 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-11 19:29:06,847 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20875491 passed 2025-10-11 19:29:06,847 - DEBUG - ====Verifying policy data for ctest-vn-20875491 in API_Server ====== 2025-10-11 19:29:06,848 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-11 19:29:06,857 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c786773f-bd03-4e23-a739-ea6582baf839 2025-10-11 19:29:06,875 - DEBUG - Requesting: http://10.0.0.254:8082/project/3fb5e2ce-26f6-4a86-a2bd-f3a81fbc646b 2025-10-11 19:29:06,964 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1c270690-b292-449e-be24-0de530d8f538 2025-10-11 19:29:06,985 - DEBUG - ==>Verifying data for policy with id: fa073a28-23c1-48b9-8d9b-596ebd04513d, fqn: ['default-domain', 'ctest-TestBasicPolicy-53766089', 'ctest-policy-allow-all-41140778'] 2025-10-11 19:29:06,986 - INFO - VN ctest-vn-20875491 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-11 19:29:06,986 - DEBUG - Verifying the vn in opserver 2025-10-11 19:29:06,986 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53766089:ctest-vn-20875491 virtual network link through opserver 10.0.0.254 2025-10-11 19:29:06,986 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-11 19:29:07,007 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53766089:ctest-vn-20875491', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53766089:ctest-vn-20875491?flat'} 2025-10-11 19:29:07,007 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53766089:ctest-vn-20875491 is found in opserver 2025-10-11 19:29:07,037 - DEBUG - Do not have enough data to verify VN in agent 2025-10-11 19:29:07,051 - DEBUG - VRF ids for VN ctest-vn-20875491: {} 2025-10-11 19:29:07,198 - DEBUG - Services list from nova: [, , ] 2025-10-11 19:29:08,808 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4288-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4288-1) 2025-10-11 19:29:10,204 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4288-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4288-1) 2025-10-11 19:29:10,204 - INFO - Waiting for VM ctest-TestBasicPolicy-53766089-94046902 to be up.. 2025-10-11 19:29:10,303 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-11 19:29:15,476 - DEBUG - VM is in ACTIVE state now 2025-10-11 19:29:15,477 - INFO - VM name : ctest-TestBasicPolicy-53766089-94046902 2025-10-11 19:29:15,608 - DEBUG - VM ctest-TestBasicPolicy-53766089-94046902 ID is 4ffda2ff-e7e8-460c-ba8d-138c7be3f3ff 2025-10-11 19:29:15,638 - DEBUG - VM ctest-TestBasicPolicy-53766089-94046902 launched on Node cn-jenkins-deploy-platform-ansible-os-4288-1 2025-10-11 19:29:15,731 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/4ffda2ff-e7e8-460c-ba8d-138c7be3f3ff 2025-10-11 19:29:15,742 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/4b2b1115-6e9f-48f5-81d5-65f53fba044e 2025-10-11 19:29:19,023 - 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 1029ms') 2025-10-11 19:29:19,023 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-53766089-94046902 failed! 2025-10-11 19:29:19,076 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-53766089:ctest-vn-06073338 is 76.155.147.1 and allocation pool is NOT set 2025-10-11 19:29:21,160 - 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=13.6 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.41 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 = 1.406/7.512/13.619/6.106 ms') 2025-10-11 19:29:21,160 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-53766089-94046902 passed 2025-10-11 19:29:21,325 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-11 19:29:21,326 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-53766089-94046902, IP 76.155.147.3, Port 22 2025-10-11 19:29:21,396 - 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-10-11 19:29:21,546 - DEBUG - VM ctest-TestBasicPolicy-53766089-94046902 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-11 19:29:26,547 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-11 19:29:26,547 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-53766089-94046902, IP 76.155.147.3, Port 22 2025-10-11 19:29:26,745 - DEBUG - VM ctest-TestBasicPolicy-53766089-94046902 is ready for SSH connections 2025-10-11 19:29:26,745 - INFO - Waiting for VM ctest-TestBasicPolicy-53766089-01155424 to be up.. 2025-10-11 19:29:26,950 - DEBUG - VM is in ACTIVE state now 2025-10-11 19:29:26,950 - INFO - VM name : ctest-TestBasicPolicy-53766089-01155424 2025-10-11 19:29:27,156 - DEBUG - VM ctest-TestBasicPolicy-53766089-01155424 ID is 8b73c747-be94-4bc6-8c06-16eac0e688bc 2025-10-11 19:29:27,156 - DEBUG - VM ctest-TestBasicPolicy-53766089-01155424 launched on Node cn-jenkins-deploy-platform-ansible-os-4288-1 2025-10-11 19:29:27,329 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/8b73c747-be94-4bc6-8c06-16eac0e688bc 2025-10-11 19:29:27,343 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/8b1de78a-6b11-416d-afb6-eb5329c3ebe4 2025-10-11 19:29:28,661 - 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=12.0 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.827 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.827/6.390/11.954/5.563 ms') 2025-10-11 19:29:28,661 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-53766089-01155424 passed 2025-10-11 19:29:28,845 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-11 19:29:28,845 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-53766089-01155424, IP 39.63.199.131, Port 22 2025-10-11 19:29:29,044 - DEBUG - VM ctest-TestBasicPolicy-53766089-01155424 is ready for SSH connections 2025-10-11 19:29:29,044 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-11 19:29:29,044 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 39.63.199.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-10-11 19:29:29,044 - DEBUG - ping -s 56 -c 3 -W 1 39.63.199.131 2025-10-11 19:29:33,621 - DEBUG - PING 39.63.199.131 (39.63.199.131): 56 data bytes 64 bytes from 39.63.199.131: seq=0 ttl=63 time=4.139 ms 64 bytes from 39.63.199.131: seq=1 ttl=63 time=1.903 ms 64 bytes from 39.63.199.131: seq=2 ttl=63 time=2.065 ms --- 39.63.199.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.903/2.702/4.139 ms 2025-10-11 19:29:33,621 - INFO - Ping to IP 39.63.199.131 from VM ctest-TestBasicPolicy-53766089-94046902 passed 2025-10-11 19:29:33,861 - DEBUG - Policy Update Response {"network-policy": {"uuid": "fa073a28-23c1-48b9-8d9b-596ebd04513d", "href": "http://10.0.0.254:8082/network-policy/fa073a28-23c1-48b9-8d9b-596ebd04513d"}} 2025-10-11 19:29:33,861 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-11 19:29:33,861 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 39.63.199.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-10-11 19:29:33,861 - DEBUG - ping -s 56 -c 3 -W 1 39.63.199.131 2025-10-11 19:29:37,101 - DEBUG - PING 39.63.199.131 (39.63.199.131): 56 data bytes 64 bytes from 39.63.199.131: seq=0 ttl=63 time=1.894 ms --- 39.63.199.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.894/1.894/1.894 ms 2025-10-11 19:29:37,101 - WARNING - Ping to IP 39.63.199.131 from VM ctest-TestBasicPolicy-53766089-94046902 failed 2025-10-11 19:29:37,101 - INFO - Deleting VM ctest-TestBasicPolicy-53766089-01155424 2025-10-11 19:29:37,276 - INFO - Deleting VM ctest-TestBasicPolicy-53766089-94046902 2025-10-11 19:29:37,813 - INFO - Deleted policy ctest-policy-allow-all-41140778 2025-10-11 19:29:37,813 - INFO - Deleting VN ctest-vn-20875491 2025-10-11 19:29:37,850 - DEBUG - VN 1c270690-b292-449e-be24-0de530d8f538 still in use: Unable to complete operation on network 1c270690-b292-449e-be24-0de530d8f538. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2bd9efe4-ad1a-443d-9e79-9d3e0a6d7639'] 2025-10-11 19:29:37,850 - WARNING - Deleting VN ctest-vn-20875491 failed..Will retry 2025-10-11 19:29:40,057 - DEBUG - Response for deleting network () 2025-10-11 19:29:40,058 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/41a28e81-a775-49a8-8bad-9570b20e72a2 2025-10-11 19:29:40,065 - DEBUG - Response Code: 404 2025-10-11 19:29:40,066 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-11 19:29:40,073 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c786773f-bd03-4e23-a739-ea6582baf839 2025-10-11 19:29:40,129 - DEBUG - Requesting: http://10.0.0.254:8082/project/3fb5e2ce-26f6-4a86-a2bd-f3a81fbc646b 2025-10-11 19:29:40,236 - INFO - Validated that VN ctest-vn-20875491 is not found in API Server 2025-10-11 19:29:40,255 - DEBUG - VN ctest-vn-20875491 is not present in Agent 10.0.0.254 2025-10-11 19:29:40,255 - INFO - Validated that VN ctest-vn-20875491 is not in any agent 2025-10-11 19:29:40,279 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-20875491 info 2025-10-11 19:29:40,279 - INFO - Deleting VN ctest-vn-06073338 2025-10-11 19:29:40,447 - DEBUG - Response for deleting network () 2025-10-11 19:29:40,447 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1c66321a-ba20-4646-bf0f-4dd027129d32 2025-10-11 19:29:40,453 - DEBUG - Response Code: 404 2025-10-11 19:29:40,453 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-11 19:29:40,461 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c786773f-bd03-4e23-a739-ea6582baf839 2025-10-11 19:29:40,520 - DEBUG - Requesting: http://10.0.0.254:8082/project/3fb5e2ce-26f6-4a86-a2bd-f3a81fbc646b 2025-10-11 19:29:40,621 - INFO - Validated that VN ctest-vn-06073338 is not found in API Server 2025-10-11 19:29:40,637 - DEBUG - VN ctest-vn-06073338 is not present in Agent 10.0.0.254 2025-10-11 19:29:40,638 - INFO - Validated that VN ctest-vn-06073338 is not in any agent 2025-10-11 19:29:40,666 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-06073338 info 2025-10-11 19:29:40,996 - DEBUG - No XMPP flaps were noticed during the test 2025-10-11 19:29:40,996 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:39] 2025-10-11 19:29:40,997 - INFO - -------------------------------------------------------------------------------- 2025-10-11 19:29:41,991 - INFO - Deleted project: ctest-TestBasicPolicy-53766089, ID : 3fb5e2ce-26f6-4a86-a2bd-f3a81fbc646b