2025-12-11 16:53:15,014 - INFO - Domain Default found not creating 2025-12-11 16:53:15,192 - INFO - Project ctest-TestRoutersBasic-36620820 not found, creating it 2025-12-11 16:53:15,676 - INFO - Created Project:ctest-TestRoutersBasic-36620820, ID : 4a7ee621-7767-41fb-84ba-95cc34394099 2025-12-11 16:53:17,250 - INFO - ================================================================================ 2025-12-11 16:53:17,250 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-12-11 16:53:17,250 - 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-12-11 16:53:17,507 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-12-11 16:53:17,507 - INFO - Initial checks done. Running the testcase now 2025-12-11 16:53:17,507 - INFO - 2025-12-11 16:53:18,287 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-36620820 2025-12-11 16:53:18,386 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-36620820 2025-12-11 16:53:18,705 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-36620820', 'default']} 2025-12-11 16:53:19,014 - DEBUG - Response for create_network : {'network': {'id': '48f6e869-63fe-4e0d-9a24-d3bf1247473d', 'name': 'ctest-vn-63730799', 'tenant_id': '4a7ee621776741fb84ba95cc34394099', 'project_id': '4a7ee621776741fb84ba95cc34394099', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-36620820', 'ctest-vn-63730799'], 'port_security_enabled': True, 'description': ''}} 2025-12-11 16:53:19,217 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c1154611-5c96-425f-bbf5-9db6af2587e2', 'name': '', 'tenant_id': '4a7ee621776741fb84ba95cc34394099', 'network_id': '48f6e869-63fe-4e0d-9a24-d3bf1247473d', 'ip_version': 4, 'cidr': '176.181.189.128/26', 'allocation_pools': [{'start': '176.181.189.130', 'end': '176.181.189.190'}], 'gateway_ip': '176.181.189.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '176.181.189.130', 'tags': [], 'project_id': '4a7ee621776741fb84ba95cc34394099'}} 2025-12-11 16:53:19,237 - INFO - Created VN ctest-vn-63730799 2025-12-11 16:53:19,289 - DEBUG - VN ctest-vn-63730799 UUID is 48f6e869-63fe-4e0d-9a24-d3bf1247473d 2025-12-11 16:53:19,618 - DEBUG - Response for create_network : {'network': {'id': 'a2e9b799-2171-4420-8ddb-3f419cbaba87', 'name': 'ctest-ext_vn-10328067', 'tenant_id': '4a7ee621776741fb84ba95cc34394099', 'project_id': '4a7ee621776741fb84ba95cc34394099', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-36620820', 'ctest-ext_vn-10328067'], 'port_security_enabled': True, 'description': ''}} 2025-12-11 16:53:19,837 - DEBUG - Response for create_subnet : {'subnet': {'id': '4b1628d8-2bc7-4238-8af8-9839f2ef58a5', 'name': '', 'tenant_id': '4a7ee621776741fb84ba95cc34394099', 'network_id': 'a2e9b799-2171-4420-8ddb-3f419cbaba87', 'ip_version': 4, 'cidr': '202.147.33.64/26', 'allocation_pools': [{'start': '202.147.33.66', 'end': '202.147.33.126'}], 'gateway_ip': '202.147.33.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.147.33.66', 'tags': [], 'project_id': '4a7ee621776741fb84ba95cc34394099'}} 2025-12-11 16:53:19,861 - INFO - Created VN ctest-ext_vn-10328067 2025-12-11 16:53:19,914 - DEBUG - VN ctest-ext_vn-10328067 UUID is a2e9b799-2171-4420-8ddb-3f419cbaba87 2025-12-11 16:53:20,090 - DEBUG - Services list from nova: [, , ] 2025-12-11 16:53:21,159 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4886-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4886-1) 2025-12-11 16:53:22,375 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4886-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4886-1) 2025-12-11 16:53:22,480 - INFO - Setting gateway for router a2db60f4-a65e-4386-8461-a1696bd678b5 to network a2e9b799-2171-4420-8ddb-3f419cbaba87 2025-12-11 16:53:22,542 - INFO - Adding interface with subnet_id c1154611-5c96-425f-bbf5-9db6af2587e2, port_id None to router a2db60f4-a65e-4386-8461-a1696bd678b5 2025-12-11 16:53:23,004 - INFO - Waiting for VM ctest-TestRoutersBasic-36620820-41419137 to be up.. 2025-12-11 16:53:23,214 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-12-11 16:53:28,297 - DEBUG - VM is in ACTIVE state now 2025-12-11 16:53:28,297 - INFO - VM name : ctest-TestRoutersBasic-36620820-41419137 2025-12-11 16:53:28,377 - DEBUG - VM ctest-TestRoutersBasic-36620820-41419137 ID is b1e4bbf3-1442-4bf5-ae44-c7f875994550 2025-12-11 16:53:28,402 - DEBUG - VM ctest-TestRoutersBasic-36620820-41419137 launched on Node cn-jenkins-deploy-platform-ansible-os-4886-1 2025-12-11 16:53:28,482 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/b1e4bbf3-1442-4bf5-ae44-c7f875994550 2025-12-11 16:53:28,785 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/b1e4bbf3-1442-4bf5-ae44-c7f875994550 2025-12-11 16:53:28,826 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/f430a529-6cca-44e5-bd71-00673b4522d6 2025-12-11 16:53:32,086 - 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-12-11 16:53:32,086 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-36620820-41419137 failed! 2025-12-11 16:53:32,142 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-36620820:ctest-vn-63730799 is 176.181.189.129 and allocation pool is NOT set 2025-12-11 16:53:34,205 - 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=2.83 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.30 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 = 2.301/2.567/2.833/0.266 ms') 2025-12-11 16:53:34,205 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-36620820-41419137 passed 2025-12-11 16:53:34,361 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-11 16:53:34,362 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-36620820-41419137, IP 176.181.189.131, Port 22 2025-12-11 16:53:34,428 - 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-12-11 16:53:34,527 - DEBUG - VM ctest-TestRoutersBasic-36620820-41419137 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-11 16:53:39,528 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-11 16:53:39,528 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-36620820-41419137, IP 176.181.189.131, Port 22 2025-12-11 16:53:39,685 - DEBUG - VM ctest-TestRoutersBasic-36620820-41419137 is ready for SSH connections 2025-12-11 16:53:39,685 - INFO - Waiting for VM ctest-TestRoutersBasic-36620820-84298400 to be up.. 2025-12-11 16:53:39,766 - DEBUG - VM is in ACTIVE state now 2025-12-11 16:53:39,766 - INFO - VM name : ctest-TestRoutersBasic-36620820-84298400 2025-12-11 16:53:39,842 - DEBUG - VM ctest-TestRoutersBasic-36620820-84298400 ID is a8e36b1b-3d3c-4a8e-ba86-e80faa08a2f0 2025-12-11 16:53:39,842 - DEBUG - VM ctest-TestRoutersBasic-36620820-84298400 launched on Node cn-jenkins-deploy-platform-ansible-os-4886-1 2025-12-11 16:53:39,921 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/a8e36b1b-3d3c-4a8e-ba86-e80faa08a2f0 2025-12-11 16:53:39,930 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/9d6962e4-eecb-4bd6-ba26-3d48853e7e08 2025-12-11 16:53:41,178 - 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.20 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.559 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.559/1.879/3.200/1.320 ms') 2025-12-11 16:53:41,178 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-36620820-84298400 passed 2025-12-11 16:53:41,326 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-11 16:53:41,326 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-36620820-84298400, IP 202.147.33.67, Port 22 2025-12-11 16:53:41,481 - DEBUG - VM ctest-TestRoutersBasic-36620820-84298400 is ready for SSH connections 2025-12-11 16:53:41,481 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-11 16:53:41,481 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 202.147.33.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-12-11 16:53:41,481 - DEBUG - ping -s 56 -c 3 -W 1 202.147.33.67 2025-12-11 16:53:45,207 - DEBUG - PING 202.147.33.67 (202.147.33.67): 56 data bytes 64 bytes from 202.147.33.67: seq=0 ttl=62 time=6.722 ms 64 bytes from 202.147.33.67: seq=1 ttl=62 time=1.125 ms 64 bytes from 202.147.33.67: seq=2 ttl=62 time=0.901 ms --- 202.147.33.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.901/2.916/6.722 ms 2025-12-11 16:53:45,207 - INFO - Ping to IP 202.147.33.67 from VM ctest-TestRoutersBasic-36620820-41419137 passed 2025-12-11 16:53:45,207 - INFO - Deleting interface with subnet_id c1154611-5c96-425f-bbf5-9db6af2587e2, port_id None from router a2db60f4-a65e-4386-8461-a1696bd678b5 2025-12-11 16:53:45,407 - INFO - Deleting VM ctest-TestRoutersBasic-36620820-84298400 2025-12-11 16:53:45,491 - INFO - Deleting VM ctest-TestRoutersBasic-36620820-41419137 2025-12-11 16:53:45,571 - INFO - Deleting VN ctest-ext_vn-10328067 2025-12-11 16:53:45,654 - DEBUG - VN a2e9b799-2171-4420-8ddb-3f419cbaba87 still in use: Unable to complete operation on network a2e9b799-2171-4420-8ddb-3f419cbaba87. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f9dc6ed1-1582-46fa-9f24-8c7433c86b17'] 2025-12-11 16:53:45,654 - WARNING - Deleting VN ctest-ext_vn-10328067 failed..Will retry 2025-12-11 16:53:47,756 - DEBUG - Response for deleting network () 2025-12-11 16:53:47,757 - INFO - Deleting VN ctest-vn-63730799 2025-12-11 16:53:47,876 - DEBUG - Response for deleting network () 2025-12-11 16:53:48,136 - DEBUG - No XMPP flaps were noticed during the test 2025-12-11 16:53:48,136 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2025-12-11 16:53:48,136 - INFO - -------------------------------------------------------------------------------- 2025-12-11 16:53:48,841 - INFO - Deleted project: ctest-TestRoutersBasic-36620820, ID : 4a7ee621-7767-41fb-84ba-95cc34394099