2025-06-18 09:13:40,634 - INFO - Domain Default found not creating 2025-06-18 09:13:40,842 - INFO - Project ctest-TestRoutersBasic-46905920 not found, creating it 2025-06-18 09:13:41,320 - INFO - Created Project:ctest-TestRoutersBasic-46905920, ID : 9f5d9571-13fe-4b6a-9542-8d7eafd57b2c 2025-06-18 09:13:42,909 - INFO - ================================================================================ 2025-06-18 09:13:42,909 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-06-18 09:13:42,909 - 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-06-18 09:13:43,164 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.254': '0'}} with 2025-06-18 09:13:43,164 - INFO - Initial checks done. Running the testcase now 2025-06-18 09:13:43,165 - INFO - 2025-06-18 09:13:43,982 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-46905920 2025-06-18 09:13:44,082 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-46905920 2025-06-18 09:13:44,417 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-46905920', 'default']} 2025-06-18 09:13:44,744 - DEBUG - Response for create_network : {'network': {'id': 'a35bb492-2647-4e00-ba66-bfab7000a009', 'name': 'ctest-vn-30677009', 'tenant_id': '9f5d957113fe4b6a95428d7eafd57b2c', 'project_id': '9f5d957113fe4b6a95428d7eafd57b2c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-46905920', 'ctest-vn-30677009'], 'port_security_enabled': True, 'description': ''}} 2025-06-18 09:13:44,936 - DEBUG - Response for create_subnet : {'subnet': {'id': '630c23ef-bcd3-4646-acfd-8be952368d9d', 'name': '', 'tenant_id': '9f5d957113fe4b6a95428d7eafd57b2c', 'network_id': 'a35bb492-2647-4e00-ba66-bfab7000a009', 'ip_version': 4, 'cidr': '223.190.195.64/26', 'allocation_pools': [{'start': '223.190.195.66', 'end': '223.190.195.126'}], 'gateway_ip': '223.190.195.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '223.190.195.66', 'tags': [], 'project_id': '9f5d957113fe4b6a95428d7eafd57b2c'}} 2025-06-18 09:13:44,959 - INFO - Created VN ctest-vn-30677009 2025-06-18 09:13:45,013 - DEBUG - VN ctest-vn-30677009 UUID is a35bb492-2647-4e00-ba66-bfab7000a009 2025-06-18 09:13:45,384 - DEBUG - Response for create_network : {'network': {'id': '1c055919-44ba-4316-8e22-62cf0e3c0a78', 'name': 'ctest-ext_vn-90793982', 'tenant_id': '9f5d957113fe4b6a95428d7eafd57b2c', 'project_id': '9f5d957113fe4b6a95428d7eafd57b2c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-46905920', 'ctest-ext_vn-90793982'], 'port_security_enabled': True, 'description': ''}} 2025-06-18 09:13:45,590 - DEBUG - Response for create_subnet : {'subnet': {'id': '2d1eac62-e1f0-4260-b22d-0c3fcd6a8f89', 'name': '', 'tenant_id': '9f5d957113fe4b6a95428d7eafd57b2c', 'network_id': '1c055919-44ba-4316-8e22-62cf0e3c0a78', 'ip_version': 4, 'cidr': '75.44.29.128/26', 'allocation_pools': [{'start': '75.44.29.130', 'end': '75.44.29.190'}], 'gateway_ip': '75.44.29.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.44.29.130', 'tags': [], 'project_id': '9f5d957113fe4b6a95428d7eafd57b2c'}} 2025-06-18 09:13:45,611 - INFO - Created VN ctest-ext_vn-90793982 2025-06-18 09:13:45,665 - DEBUG - VN ctest-ext_vn-90793982 UUID is 1c055919-44ba-4316-8e22-62cf0e3c0a78 2025-06-18 09:13:45,854 - DEBUG - Services list from nova: [, , ] 2025-06-18 09:13:47,015 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3472-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3472-1) 2025-06-18 09:13:48,277 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3472-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3472-1) 2025-06-18 09:13:48,388 - INFO - Setting gateway for router 40a6bb02-82ad-49c3-8611-2f44f38d607f to network 1c055919-44ba-4316-8e22-62cf0e3c0a78 2025-06-18 09:13:48,472 - INFO - Adding interface with subnet_id 630c23ef-bcd3-4646-acfd-8be952368d9d, port_id None to router 40a6bb02-82ad-49c3-8611-2f44f38d607f 2025-06-18 09:13:49,029 - INFO - Waiting for VM ctest-TestRoutersBasic-46905920-23950090 to be up.. 2025-06-18 09:13:49,231 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-18 09:13:54,327 - DEBUG - VM is in ACTIVE state now 2025-06-18 09:13:54,327 - INFO - VM name : ctest-TestRoutersBasic-46905920-23950090 2025-06-18 09:13:54,415 - DEBUG - VM ctest-TestRoutersBasic-46905920-23950090 ID is 2467fd8c-afc1-4b1e-ad26-c43337c58e02 2025-06-18 09:13:54,438 - DEBUG - VM ctest-TestRoutersBasic-46905920-23950090 launched on Node cn-jenkins-deploy-platform-ansible-os-3472-1 2025-06-18 09:13:54,522 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/2467fd8c-afc1-4b1e-ad26-c43337c58e02 2025-06-18 09:13:54,860 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/2467fd8c-afc1-4b1e-ad26-c43337c58e02 2025-06-18 09:13:54,896 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/4faed8a8-eccc-4962-8fff-d7a21deeede5 2025-06-18 09:13:58,167 - 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 1014ms') 2025-06-18 09:13:58,167 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-46905920-23950090 failed! 2025-06-18 09:13:58,233 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-46905920:ctest-vn-30677009 is 223.190.195.65 and allocation pool is NOT set 2025-06-18 09:14:00,304 - 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.25 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.642 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.642/1.945/3.248/1.303 ms') 2025-06-18 09:14:00,304 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-46905920-23950090 passed 2025-06-18 09:14:00,461 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-18 09:14:00,462 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-46905920-23950090, IP 223.190.195.67, Port 22 2025-06-18 09:14:00,628 - DEBUG - VM ctest-TestRoutersBasic-46905920-23950090 is ready for SSH connections 2025-06-18 09:14:00,628 - INFO - Waiting for VM ctest-TestRoutersBasic-46905920-90410299 to be up.. 2025-06-18 09:14:00,714 - DEBUG - VM is in ACTIVE state now 2025-06-18 09:14:00,714 - INFO - VM name : ctest-TestRoutersBasic-46905920-90410299 2025-06-18 09:14:00,799 - DEBUG - VM ctest-TestRoutersBasic-46905920-90410299 ID is 191fe6a0-ebed-4866-8bb8-8768e0cdba6b 2025-06-18 09:14:00,799 - DEBUG - VM ctest-TestRoutersBasic-46905920-90410299 launched on Node cn-jenkins-deploy-platform-ansible-os-3472-1 2025-06-18 09:14:00,897 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/191fe6a0-ebed-4866-8bb8-8768e0cdba6b 2025-06-18 09:14:00,907 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/0d64347e-f888-4580-9cb8-5b1b07449be2 2025-06-18 09:14:02,161 - 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.54 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.63 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 = 2.629/3.083/3.537/0.454 ms') 2025-06-18 09:14:02,162 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-46905920-90410299 passed 2025-06-18 09:14:02,321 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-18 09:14:02,322 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-46905920-90410299, IP 75.44.29.131, Port 22 2025-06-18 09:14:02,387 - 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-06-18 09:14:02,476 - DEBUG - VM ctest-TestRoutersBasic-46905920-90410299 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-18 09:14:07,477 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-18 09:14:07,478 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-46905920-90410299, IP 75.44.29.131, Port 22 2025-06-18 09:14:07,633 - DEBUG - VM ctest-TestRoutersBasic-46905920-90410299 is ready for SSH connections 2025-06-18 09:14:07,633 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-18 09:14:07,634 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 75.44.29.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-06-18 09:14:07,634 - DEBUG - ping -s 56 -c 3 -W 1 75.44.29.131 2025-06-18 09:14:11,751 - DEBUG - PING 75.44.29.131 (75.44.29.131): 56 data bytes 64 bytes from 75.44.29.131: seq=0 ttl=62 time=7.876 ms 64 bytes from 75.44.29.131: seq=1 ttl=62 time=0.955 ms 64 bytes from 75.44.29.131: seq=2 ttl=62 time=0.950 ms --- 75.44.29.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.950/3.260/7.876 ms 2025-06-18 09:14:11,751 - INFO - Ping to IP 75.44.29.131 from VM ctest-TestRoutersBasic-46905920-23950090 passed 2025-06-18 09:14:11,751 - INFO - Deleting interface with subnet_id 630c23ef-bcd3-4646-acfd-8be952368d9d, port_id None from router 40a6bb02-82ad-49c3-8611-2f44f38d607f 2025-06-18 09:14:11,992 - INFO - Deleting VM ctest-TestRoutersBasic-46905920-90410299 2025-06-18 09:14:12,068 - INFO - Deleting VM ctest-TestRoutersBasic-46905920-23950090 2025-06-18 09:14:12,159 - INFO - Deleting VN ctest-ext_vn-90793982 2025-06-18 09:14:12,258 - DEBUG - VN 1c055919-44ba-4316-8e22-62cf0e3c0a78 still in use: Unable to complete operation on network 1c055919-44ba-4316-8e22-62cf0e3c0a78. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-24acbc81-7328-44d2-882b-528079eee990'] 2025-06-18 09:14:12,259 - WARNING - Deleting VN ctest-ext_vn-90793982 failed..Will retry 2025-06-18 09:14:14,380 - DEBUG - Response for deleting network () 2025-06-18 09:14:14,380 - INFO - Deleting VN ctest-vn-30677009 2025-06-18 09:14:14,512 - DEBUG - Response for deleting network () 2025-06-18 09:14:14,768 - DEBUG - No XMPP flaps were noticed during the test 2025-06-18 09:14:14,769 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32] 2025-06-18 09:14:14,769 - INFO - -------------------------------------------------------------------------------- 2025-06-18 09:14:15,491 - INFO - Deleted project: ctest-TestRoutersBasic-46905920, ID : 9f5d9571-13fe-4b6a-9542-8d7eafd57b2c