2025-07-30 20:23:58,689 - INFO - Domain Default found not creating 2025-07-30 20:23:58,831 - INFO - Project ctest-TestRoutersBasic-40367667 not found, creating it 2025-07-30 20:23:59,271 - INFO - Created Project:ctest-TestRoutersBasic-40367667, ID : 8f022a3c-5fc5-4406-b623-dd5048b06b3c 2025-07-30 20:24:00,602 - INFO - ================================================================================ 2025-07-30 20:24:00,603 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-07-30 20:24:00,603 - 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-07-30 20:24:00,858 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-07-30 20:24:00,859 - INFO - Initial checks done. Running the testcase now 2025-07-30 20:24:00,859 - INFO - 2025-07-30 20:24:01,536 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-40367667 2025-07-30 20:24:01,629 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-40367667 2025-07-30 20:24:01,953 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-40367667', 'default']} 2025-07-30 20:24:02,239 - DEBUG - Response for create_network : {'network': {'id': 'ca070497-40fe-4650-8b6f-62a6d6eb09b6', 'name': 'ctest-vn-20671262', 'tenant_id': '8f022a3c5fc54406b623dd5048b06b3c', 'project_id': '8f022a3c5fc54406b623dd5048b06b3c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-40367667', 'ctest-vn-20671262'], 'port_security_enabled': True, 'description': ''}} 2025-07-30 20:24:02,392 - DEBUG - Response for create_subnet : {'subnet': {'id': '172ab595-1ca7-4de7-802b-b63eb4549423', 'name': '', 'tenant_id': '8f022a3c5fc54406b623dd5048b06b3c', 'network_id': 'ca070497-40fe-4650-8b6f-62a6d6eb09b6', 'ip_version': 4, 'cidr': '70.149.201.64/26', 'allocation_pools': [{'start': '70.149.201.66', 'end': '70.149.201.126'}], 'gateway_ip': '70.149.201.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.149.201.66', 'tags': [], 'project_id': '8f022a3c5fc54406b623dd5048b06b3c'}} 2025-07-30 20:24:02,410 - INFO - Created VN ctest-vn-20671262 2025-07-30 20:24:02,465 - DEBUG - VN ctest-vn-20671262 UUID is ca070497-40fe-4650-8b6f-62a6d6eb09b6 2025-07-30 20:24:02,796 - DEBUG - Response for create_network : {'network': {'id': 'de604926-01d5-4d89-b903-a777d3342d94', 'name': 'ctest-ext_vn-86844189', 'tenant_id': '8f022a3c5fc54406b623dd5048b06b3c', 'project_id': '8f022a3c5fc54406b623dd5048b06b3c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-40367667', 'ctest-ext_vn-86844189'], 'port_security_enabled': True, 'description': ''}} 2025-07-30 20:24:02,947 - DEBUG - Response for create_subnet : {'subnet': {'id': '4c531128-d4bf-4c9b-b431-96345c555ca7', 'name': '', 'tenant_id': '8f022a3c5fc54406b623dd5048b06b3c', 'network_id': 'de604926-01d5-4d89-b903-a777d3342d94', 'ip_version': 4, 'cidr': '54.41.127.128/26', 'allocation_pools': [{'start': '54.41.127.130', 'end': '54.41.127.190'}], 'gateway_ip': '54.41.127.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.41.127.130', 'tags': [], 'project_id': '8f022a3c5fc54406b623dd5048b06b3c'}} 2025-07-30 20:24:02,965 - INFO - Created VN ctest-ext_vn-86844189 2025-07-30 20:24:03,021 - DEBUG - VN ctest-ext_vn-86844189 UUID is de604926-01d5-4d89-b903-a777d3342d94 2025-07-30 20:24:03,226 - DEBUG - Services list from nova: [, , ] 2025-07-30 20:24:04,196 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3727-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3727-1) 2025-07-30 20:24:05,613 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3727-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3727-1) 2025-07-30 20:24:05,682 - INFO - Setting gateway for router e5a897f5-5bb4-425e-ad6d-5f08726510cd to network de604926-01d5-4d89-b903-a777d3342d94 2025-07-30 20:24:05,774 - INFO - Adding interface with subnet_id 172ab595-1ca7-4de7-802b-b63eb4549423, port_id None to router e5a897f5-5bb4-425e-ad6d-5f08726510cd 2025-07-30 20:24:06,217 - INFO - Waiting for VM ctest-TestRoutersBasic-40367667-69966785 to be up.. 2025-07-30 20:24:06,348 - DEBUG - VM is in ACTIVE state now 2025-07-30 20:24:06,348 - INFO - VM name : ctest-TestRoutersBasic-40367667-69966785 2025-07-30 20:24:06,466 - DEBUG - VM ctest-TestRoutersBasic-40367667-69966785 ID is b645c1f4-af4a-4bfa-86c9-0ac696d58dc9 2025-07-30 20:24:06,493 - DEBUG - VM ctest-TestRoutersBasic-40367667-69966785 launched on Node cn-jenkins-deploy-platform-ansible-os-3727-1 2025-07-30 20:24:06,582 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/b645c1f4-af4a-4bfa-86c9-0ac696d58dc9 2025-07-30 20:24:06,900 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/b645c1f4-af4a-4bfa-86c9-0ac696d58dc9 2025-07-30 20:24:06,951 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/8a4acced-23d1-4269-9ca8-9896cf694c92 2025-07-30 20:24:10,226 - 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 1023ms') 2025-07-30 20:24:10,226 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-40367667-69966785 failed! 2025-07-30 20:24:10,281 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-40367667:ctest-vn-20671262 is 70.149.201.65 and allocation pool is NOT set 2025-07-30 20:24:14,354 - 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 1016ms') 2025-07-30 20:24:14,354 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-40367667-69966785 failed! 2025-07-30 20:24:14,409 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-40367667:ctest-vn-20671262 is 70.149.201.65 and allocation pool is NOT set 2025-07-30 20:24:16,468 - 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=8.85 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.47 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.465/5.158/8.851/3.693 ms') 2025-07-30 20:24:16,468 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-40367667-69966785 passed 2025-07-30 20:24:16,621 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-30 20:24:16,621 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-40367667-69966785, IP 70.149.201.67, Port 22 2025-07-30 20:24:16,676 - 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-07-30 20:24:16,747 - DEBUG - VM ctest-TestRoutersBasic-40367667-69966785 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-30 20:24:21,747 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-30 20:24:21,748 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-40367667-69966785, IP 70.149.201.67, Port 22 2025-07-30 20:24:21,905 - DEBUG - VM ctest-TestRoutersBasic-40367667-69966785 is ready for SSH connections 2025-07-30 20:24:21,905 - INFO - Waiting for VM ctest-TestRoutersBasic-40367667-96907783 to be up.. 2025-07-30 20:24:21,972 - DEBUG - VM is in ACTIVE state now 2025-07-30 20:24:21,973 - INFO - VM name : ctest-TestRoutersBasic-40367667-96907783 2025-07-30 20:24:22,064 - DEBUG - VM ctest-TestRoutersBasic-40367667-96907783 ID is e9b0502c-4fcd-49d7-9bec-a963537ea048 2025-07-30 20:24:22,064 - DEBUG - VM ctest-TestRoutersBasic-40367667-96907783 launched on Node cn-jenkins-deploy-platform-ansible-os-3727-1 2025-07-30 20:24:22,131 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/e9b0502c-4fcd-49d7-9bec-a963537ea048 2025-07-30 20:24:22,139 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/a6decb75-f354-4338-8a11-be250b79f148 2025-07-30 20:24:23,382 - 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=2.92 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.368 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.368/1.641/2.915/1.273 ms') 2025-07-30 20:24:23,382 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-40367667-96907783 passed 2025-07-30 20:24:23,533 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-30 20:24:23,533 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-40367667-96907783, IP 54.41.127.131, Port 22 2025-07-30 20:24:23,689 - DEBUG - VM ctest-TestRoutersBasic-40367667-96907783 is ready for SSH connections 2025-07-30 20:24:23,689 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-30 20:24:23,689 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 54.41.127.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-07-30 20:24:23,689 - DEBUG - ping -s 56 -c 3 -W 1 54.41.127.131 2025-07-30 20:24:27,401 - DEBUG - PING 54.41.127.131 (54.41.127.131): 56 data bytes 64 bytes from 54.41.127.131: seq=0 ttl=62 time=4.324 ms 64 bytes from 54.41.127.131: seq=1 ttl=62 time=0.962 ms 64 bytes from 54.41.127.131: seq=2 ttl=62 time=0.818 ms --- 54.41.127.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.818/2.034/4.324 ms 2025-07-30 20:24:27,401 - INFO - Ping to IP 54.41.127.131 from VM ctest-TestRoutersBasic-40367667-69966785 passed 2025-07-30 20:24:27,402 - INFO - Deleting interface with subnet_id 172ab595-1ca7-4de7-802b-b63eb4549423, port_id None from router e5a897f5-5bb4-425e-ad6d-5f08726510cd 2025-07-30 20:24:27,579 - INFO - Deleting VM ctest-TestRoutersBasic-40367667-96907783 2025-07-30 20:24:27,646 - INFO - Deleting VM ctest-TestRoutersBasic-40367667-69966785 2025-07-30 20:24:27,731 - INFO - Deleting VN ctest-ext_vn-86844189 2025-07-30 20:24:27,790 - DEBUG - VN de604926-01d5-4d89-b903-a777d3342d94 still in use: Unable to complete operation on network de604926-01d5-4d89-b903-a777d3342d94. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-66998104-1018-4295-89c5-1b7a1ea35dfe'] 2025-07-30 20:24:27,790 - WARNING - Deleting VN ctest-ext_vn-86844189 failed..Will retry 2025-07-30 20:24:29,900 - DEBUG - Response for deleting network () 2025-07-30 20:24:29,901 - INFO - Deleting VN ctest-vn-20671262 2025-07-30 20:24:30,009 - DEBUG - Response for deleting network () 2025-07-30 20:24:30,262 - DEBUG - No XMPP flaps were noticed during the test 2025-07-30 20:24:30,263 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:30] 2025-07-30 20:24:30,263 - INFO - -------------------------------------------------------------------------------- 2025-07-30 20:24:30,933 - INFO - Deleted project: ctest-TestRoutersBasic-40367667, ID : 8f022a3c-5fc5-4406-b623-dd5048b06b3c