2025-10-09 19:16:13,678 - INFO - Domain Default found not creating 2025-10-09 19:16:13,851 - INFO - Project ctest-TestRoutersBasic-41915135 not found, creating it 2025-10-09 19:16:14,326 - INFO - Created Project:ctest-TestRoutersBasic-41915135, ID : a7526fb2-86da-4322-b429-18476d5ee8aa 2025-10-09 19:16:15,766 - INFO - ================================================================================ 2025-10-09 19:16:15,766 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-10-09 19:16:15,767 - INFO - TEST DESCRIPTION : Create an external network, a router set router-gateway to external network launch a private network and attach it to router validate left vm pinging right vm through Snat 2025-10-09 19:16:16,025 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with 2025-10-09 19:16:16,025 - INFO - Initial checks done. Running the testcase now 2025-10-09 19:16:16,025 - INFO - 2025-10-09 19:16:16,730 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-41915135 2025-10-09 19:16:16,827 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-41915135 2025-10-09 19:16:17,150 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-41915135', 'default']} 2025-10-09 19:16:17,440 - DEBUG - Response for create_network : {'network': {'id': 'eeb709a1-0d53-4005-8698-47ce33ff9502', 'name': 'ctest-vn-95118338', 'tenant_id': 'a7526fb286da4322b42918476d5ee8aa', 'project_id': 'a7526fb286da4322b42918476d5ee8aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-41915135', 'ctest-vn-95118338'], 'port_security_enabled': True, 'description': ''}} 2025-10-09 19:16:17,593 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e0e5ca52-bfa7-4655-accb-80963769d3d7', 'name': '', 'tenant_id': 'a7526fb286da4322b42918476d5ee8aa', 'network_id': 'eeb709a1-0d53-4005-8698-47ce33ff9502', 'ip_version': 4, 'cidr': '92.21.224.0/26', 'allocation_pools': [{'start': '92.21.224.2', 'end': '92.21.224.62'}], 'gateway_ip': '92.21.224.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.21.224.2', 'tags': [], 'project_id': 'a7526fb286da4322b42918476d5ee8aa'}} 2025-10-09 19:16:17,615 - INFO - Created VN ctest-vn-95118338 2025-10-09 19:16:17,667 - DEBUG - VN ctest-vn-95118338 UUID is eeb709a1-0d53-4005-8698-47ce33ff9502 2025-10-09 19:16:18,012 - DEBUG - Response for create_network : {'network': {'id': 'dfc8aee2-8d2a-444a-95fc-d7cb8d75ac04', 'name': 'ctest-ext_vn-95662387', 'tenant_id': 'a7526fb286da4322b42918476d5ee8aa', 'project_id': 'a7526fb286da4322b42918476d5ee8aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-41915135', 'ctest-ext_vn-95662387'], 'port_security_enabled': True, 'description': ''}} 2025-10-09 19:16:18,162 - DEBUG - Response for create_subnet : {'subnet': {'id': '2854c58b-8463-4481-924b-a199e08a3474', 'name': '', 'tenant_id': 'a7526fb286da4322b42918476d5ee8aa', 'network_id': 'dfc8aee2-8d2a-444a-95fc-d7cb8d75ac04', 'ip_version': 4, 'cidr': '193.237.108.0/26', 'allocation_pools': [{'start': '193.237.108.2', 'end': '193.237.108.62'}], 'gateway_ip': '193.237.108.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.237.108.2', 'tags': [], 'project_id': 'a7526fb286da4322b42918476d5ee8aa'}} 2025-10-09 19:16:18,178 - INFO - Created VN ctest-ext_vn-95662387 2025-10-09 19:16:18,230 - DEBUG - VN ctest-ext_vn-95662387 UUID is dfc8aee2-8d2a-444a-95fc-d7cb8d75ac04 2025-10-09 19:16:18,407 - DEBUG - Services list from nova: [, , ] 2025-10-09 19:16:19,434 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4275-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4275-1) 2025-10-09 19:16:20,612 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4275-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4275-1) 2025-10-09 19:16:20,684 - INFO - Setting gateway for router e79629f7-9c5b-47bf-99a0-ceaf2c721bd9 to network dfc8aee2-8d2a-444a-95fc-d7cb8d75ac04 2025-10-09 19:16:20,770 - INFO - Adding interface with subnet_id e0e5ca52-bfa7-4655-accb-80963769d3d7, port_id None to router e79629f7-9c5b-47bf-99a0-ceaf2c721bd9 2025-10-09 19:16:21,105 - INFO - Waiting for VM ctest-TestRoutersBasic-41915135-53669283 to be up.. 2025-10-09 19:16:21,255 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-09 19:16:26,324 - DEBUG - VM is in ACTIVE state now 2025-10-09 19:16:26,324 - INFO - VM name : ctest-TestRoutersBasic-41915135-53669283 2025-10-09 19:16:26,394 - DEBUG - VM ctest-TestRoutersBasic-41915135-53669283 ID is 98d94b81-85f3-479a-a5f6-4ed9aa91c2b2 2025-10-09 19:16:26,412 - DEBUG - VM ctest-TestRoutersBasic-41915135-53669283 launched on Node cn-jenkins-deploy-platform-ansible-os-4275-1 2025-10-09 19:16:26,488 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine/98d94b81-85f3-479a-a5f6-4ed9aa91c2b2 2025-10-09 19:16:26,786 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine/98d94b81-85f3-479a-a5f6-4ed9aa91c2b2 2025-10-09 19:16:26,819 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine-interface/f6f4e987-e6b1-406c-9140-065fa847dbe1 2025-10-09 19:16:30,083 - 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 1031ms') 2025-10-09 19:16:30,084 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-41915135-53669283 failed! 2025-10-09 19:16:30,139 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-41915135:ctest-vn-95118338 is 92.21.224.1 and allocation pool is NOT set 2025-10-09 19:16:32,199 - 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=3.60 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.460 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 = 0.460/2.032/3.604/1.572 ms') 2025-10-09 19:16:32,199 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-41915135-53669283 passed 2025-10-09 19:16:32,306 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 19:16:32,307 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-41915135-53669283, IP 92.21.224.3, Port 22 2025-10-09 19:16:32,462 - DEBUG - VM ctest-TestRoutersBasic-41915135-53669283 is ready for SSH connections 2025-10-09 19:16:32,462 - INFO - Waiting for VM ctest-TestRoutersBasic-41915135-34199085 to be up.. 2025-10-09 19:16:32,537 - DEBUG - VM is in ACTIVE state now 2025-10-09 19:16:32,537 - INFO - VM name : ctest-TestRoutersBasic-41915135-34199085 2025-10-09 19:16:32,607 - DEBUG - VM ctest-TestRoutersBasic-41915135-34199085 ID is f11e0a36-e325-4cef-835d-2020addfc5b3 2025-10-09 19:16:32,607 - DEBUG - VM ctest-TestRoutersBasic-41915135-34199085 launched on Node cn-jenkins-deploy-platform-ansible-os-4275-1 2025-10-09 19:16:32,684 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine/f11e0a36-e325-4cef-835d-2020addfc5b3 2025-10-09 19:16:32,692 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine-interface/df0f5397-2ec1-437f-9bba-a90939206736 2025-10-09 19:16:33,931 - 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.99 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.32 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 = 1.317/2.655/3.993/1.338 ms') 2025-10-09 19:16:33,931 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-41915135-34199085 passed 2025-10-09 19:16:34,079 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 19:16:34,079 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-41915135-34199085, IP 193.237.108.3, Port 22 2025-10-09 19:16:34,144 - 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-10-09 19:16:34,218 - DEBUG - VM ctest-TestRoutersBasic-41915135-34199085 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-09 19:16:39,219 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 19:16:39,220 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-41915135-34199085, IP 193.237.108.3, Port 22 2025-10-09 19:16:39,375 - DEBUG - VM ctest-TestRoutersBasic-41915135-34199085 is ready for SSH connections 2025-10-09 19:16:39,375 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 19:16:39,375 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 193.237.108.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.141, gateway password: c0ntrail123 2025-10-09 19:16:39,375 - DEBUG - ping -s 56 -c 3 -W 1 193.237.108.3 2025-10-09 19:16:43,421 - DEBUG - PING 193.237.108.3 (193.237.108.3): 56 data bytes 64 bytes from 193.237.108.3: seq=0 ttl=62 time=7.231 ms 64 bytes from 193.237.108.3: seq=1 ttl=62 time=0.992 ms 64 bytes from 193.237.108.3: seq=2 ttl=62 time=1.086 ms --- 193.237.108.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.992/3.103/7.231 ms 2025-10-09 19:16:43,421 - INFO - Ping to IP 193.237.108.3 from VM ctest-TestRoutersBasic-41915135-53669283 passed 2025-10-09 19:16:43,421 - INFO - Deleting interface with subnet_id e0e5ca52-bfa7-4655-accb-80963769d3d7, port_id None from router e79629f7-9c5b-47bf-99a0-ceaf2c721bd9 2025-10-09 19:16:43,605 - INFO - Deleting VM ctest-TestRoutersBasic-41915135-34199085 2025-10-09 19:16:43,692 - INFO - Deleting VM ctest-TestRoutersBasic-41915135-53669283 2025-10-09 19:16:43,777 - INFO - Deleting VN ctest-ext_vn-95662387 2025-10-09 19:16:43,848 - DEBUG - VN dfc8aee2-8d2a-444a-95fc-d7cb8d75ac04 still in use: Unable to complete operation on network dfc8aee2-8d2a-444a-95fc-d7cb8d75ac04. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-79b938c7-ee9e-42b8-aa06-2321b69b310c'] 2025-10-09 19:16:43,848 - WARNING - Deleting VN ctest-ext_vn-95662387 failed..Will retry 2025-10-09 19:16:45,937 - DEBUG - Response for deleting network () 2025-10-09 19:16:45,937 - INFO - Deleting VN ctest-vn-95118338 2025-10-09 19:16:46,033 - DEBUG - Response for deleting network () 2025-10-09 19:16:46,288 - DEBUG - No XMPP flaps were noticed during the test
2025-10-09 19:16:46,288 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31]
2025-10-09 19:16:46,288 - INFO - -------------------------------------------------------------------------------- 2025-10-09 19:16:46,953 - INFO - Deleted project: ctest-TestRoutersBasic-41915135, ID : a7526fb2-86da-4322-b429-18476d5ee8aa