2025-11-06 08:49:53,483 - INFO - Domain Default found not creating 2025-11-06 08:49:53,636 - INFO - Project ctest-TestRoutersBasic-81441578 not found, creating it 2025-11-06 08:49:54,101 - INFO - Created Project:ctest-TestRoutersBasic-81441578, ID : 266bbded-666f-4e96-b483-bbe37c436d9e 2025-11-06 08:49:55,685 - INFO - ================================================================================ 2025-11-06 08:49:55,685 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-11-06 08:49:55,685 - 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-11-06 08:49:55,954 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0'}} with 2025-11-06 08:49:55,954 - INFO - Initial checks done. Running the testcase now 2025-11-06 08:49:55,954 - INFO - 2025-11-06 08:49:56,740 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-81441578 2025-11-06 08:49:56,837 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-81441578 2025-11-06 08:49:57,216 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-81441578', 'default']} 2025-11-06 08:49:57,559 - DEBUG - Response for create_network : {'network': {'id': 'd7fc96f6-f214-4a57-8041-74900671476c', 'name': 'ctest-vn-70336969', 'tenant_id': '266bbded666f4e96b483bbe37c436d9e', 'project_id': '266bbded666f4e96b483bbe37c436d9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-81441578', 'ctest-vn-70336969'], 'port_security_enabled': True, 'description': ''}} 2025-11-06 08:49:57,761 - DEBUG - Response for create_subnet : {'subnet': {'id': '4b83f3bc-9f8a-48f6-b46b-515f081794d1', 'name': '', 'tenant_id': '266bbded666f4e96b483bbe37c436d9e', 'network_id': 'd7fc96f6-f214-4a57-8041-74900671476c', 'ip_version': 4, 'cidr': '156.115.26.128/26', 'allocation_pools': [{'start': '156.115.26.130', 'end': '156.115.26.190'}], 'gateway_ip': '156.115.26.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.115.26.130', 'tags': [], 'project_id': '266bbded666f4e96b483bbe37c436d9e'}} 2025-11-06 08:49:57,780 - INFO - Created VN ctest-vn-70336969 2025-11-06 08:49:57,833 - DEBUG - VN ctest-vn-70336969 UUID is d7fc96f6-f214-4a57-8041-74900671476c 2025-11-06 08:49:58,146 - DEBUG - Response for create_network : {'network': {'id': 'ccdd4c64-065d-418a-b0fd-da9bb84cd76a', 'name': 'ctest-ext_vn-69091613', 'tenant_id': '266bbded666f4e96b483bbe37c436d9e', 'project_id': '266bbded666f4e96b483bbe37c436d9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-81441578', 'ctest-ext_vn-69091613'], 'port_security_enabled': True, 'description': ''}} 2025-11-06 08:49:58,290 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c351ddda-3c71-43af-b013-73f5f1bfc2f8', 'name': '', 'tenant_id': '266bbded666f4e96b483bbe37c436d9e', 'network_id': 'ccdd4c64-065d-418a-b0fd-da9bb84cd76a', 'ip_version': 4, 'cidr': '80.212.166.0/26', 'allocation_pools': [{'start': '80.212.166.2', 'end': '80.212.166.62'}], 'gateway_ip': '80.212.166.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '80.212.166.2', 'tags': [], 'project_id': '266bbded666f4e96b483bbe37c436d9e'}} 2025-11-06 08:49:58,308 - INFO - Created VN ctest-ext_vn-69091613 2025-11-06 08:49:58,360 - DEBUG - VN ctest-ext_vn-69091613 UUID is ccdd4c64-065d-418a-b0fd-da9bb84cd76a 2025-11-06 08:49:58,567 - DEBUG - Services list from nova: [, , ] 2025-11-06 08:49:59,665 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4666-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4666-1) 2025-11-06 08:50:01,018 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4666-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4666-1) 2025-11-06 08:50:01,116 - INFO - Setting gateway for router 36a8aca9-c72e-47ae-86de-c61b233282cf to network ccdd4c64-065d-418a-b0fd-da9bb84cd76a 2025-11-06 08:50:01,173 - INFO - Adding interface with subnet_id 4b83f3bc-9f8a-48f6-b46b-515f081794d1, port_id None to router 36a8aca9-c72e-47ae-86de-c61b233282cf 2025-11-06 08:50:01,645 - INFO - Waiting for VM ctest-TestRoutersBasic-81441578-75487472 to be up.. 2025-11-06 08:50:01,890 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-06 08:50:06,968 - DEBUG - VM is in ACTIVE state now 2025-11-06 08:50:06,968 - INFO - VM name : ctest-TestRoutersBasic-81441578-75487472 2025-11-06 08:50:07,051 - DEBUG - VM ctest-TestRoutersBasic-81441578-75487472 ID is 02ca229a-1645-49d3-a417-5e3e7e962c2b 2025-11-06 08:50:07,073 - DEBUG - VM ctest-TestRoutersBasic-81441578-75487472 launched on Node cn-jenkins-deploy-platform-ansible-os-4666-1 2025-11-06 08:50:07,147 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/02ca229a-1645-49d3-a417-5e3e7e962c2b 2025-11-06 08:50:07,482 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/02ca229a-1645-49d3-a417-5e3e7e962c2b 2025-11-06 08:50:07,522 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/08205df8-9202-469d-852a-f547b7904048 2025-11-06 08:50:10,767 - 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 1002ms') 2025-11-06 08:50:10,767 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-81441578-75487472 failed! 2025-11-06 08:50:10,825 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-81441578:ctest-vn-70336969 is 156.115.26.129 and allocation pool is NOT set 2025-11-06 08:50:12,883 - 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=4.89 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.01 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 = 1.011/2.948/4.886/1.937 ms') 2025-11-06 08:50:12,883 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-81441578-75487472 passed 2025-11-06 08:50:13,033 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-06 08:50:13,033 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-81441578-75487472, IP 156.115.26.131, Port 22 2025-11-06 08:50:13,188 - DEBUG - VM ctest-TestRoutersBasic-81441578-75487472 is ready for SSH connections 2025-11-06 08:50:13,188 - INFO - Waiting for VM ctest-TestRoutersBasic-81441578-85734036 to be up.. 2025-11-06 08:50:13,268 - DEBUG - VM is in ACTIVE state now 2025-11-06 08:50:13,268 - INFO - VM name : ctest-TestRoutersBasic-81441578-85734036 2025-11-06 08:50:13,357 - DEBUG - VM ctest-TestRoutersBasic-81441578-85734036 ID is 3f674345-e752-4dd5-b485-a5ed65d9fec7 2025-11-06 08:50:13,357 - DEBUG - VM ctest-TestRoutersBasic-81441578-85734036 launched on Node cn-jenkins-deploy-platform-ansible-os-4666-1 2025-11-06 08:50:13,431 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/3f674345-e752-4dd5-b485-a5ed65d9fec7 2025-11-06 08:50:13,440 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/a50a7a4d-44de-434b-9354-fad36cc7ebc7 2025-11-06 08:50:14,683 - 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=6.72 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.07 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 = 2.070/4.395/6.720/2.325 ms') 2025-11-06 08:50:14,684 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-81441578-85734036 passed 2025-11-06 08:50:14,833 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-06 08:50:14,833 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-81441578-85734036, IP 80.212.166.3, Port 22 2025-11-06 08:50:14,888 - 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-11-06 08:50:14,963 - DEBUG - VM ctest-TestRoutersBasic-81441578-85734036 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-06 08:50:19,964 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-06 08:50:19,964 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-81441578-85734036, IP 80.212.166.3, Port 22 2025-11-06 08:50:20,120 - DEBUG - VM ctest-TestRoutersBasic-81441578-85734036 is ready for SSH connections 2025-11-06 08:50:20,121 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-06 08:50:20,121 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 80.212.166.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-11-06 08:50:20,121 - DEBUG - ping -s 56 -c 3 -W 1 80.212.166.3 2025-11-06 08:50:23,872 - DEBUG - PING 80.212.166.3 (80.212.166.3): 56 data bytes 64 bytes from 80.212.166.3: seq=0 ttl=62 time=7.760 ms 64 bytes from 80.212.166.3: seq=1 ttl=62 time=0.998 ms 64 bytes from 80.212.166.3: seq=2 ttl=62 time=0.952 ms --- 80.212.166.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.952/3.236/7.760 ms 2025-11-06 08:50:23,872 - INFO - Ping to IP 80.212.166.3 from VM ctest-TestRoutersBasic-81441578-75487472 passed 2025-11-06 08:50:23,872 - INFO - Deleting interface with subnet_id 4b83f3bc-9f8a-48f6-b46b-515f081794d1, port_id None from router 36a8aca9-c72e-47ae-86de-c61b233282cf 2025-11-06 08:50:24,073 - INFO - Deleting VM ctest-TestRoutersBasic-81441578-85734036 2025-11-06 08:50:24,154 - INFO - Deleting VM ctest-TestRoutersBasic-81441578-75487472 2025-11-06 08:50:24,239 - INFO - Deleting VN ctest-ext_vn-69091613 2025-11-06 08:50:24,328 - DEBUG - VN ccdd4c64-065d-418a-b0fd-da9bb84cd76a still in use: Unable to complete operation on network ccdd4c64-065d-418a-b0fd-da9bb84cd76a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-630b1bd9-7b88-494c-8ba1-153d671f9513'] 2025-11-06 08:50:24,329 - WARNING - Deleting VN ctest-ext_vn-69091613 failed..Will retry 2025-11-06 08:50:26,449 - DEBUG - Response for deleting network () 2025-11-06 08:50:26,449 - INFO - Deleting VN ctest-vn-70336969 2025-11-06 08:50:26,553 - DEBUG - Response for deleting network () 2025-11-06 08:50:26,829 - DEBUG - No XMPP flaps were noticed during the test 2025-11-06 08:50:26,829 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2025-11-06 08:50:26,829 - INFO - -------------------------------------------------------------------------------- 2025-11-06 08:50:27,568 - INFO - Deleted project: ctest-TestRoutersBasic-81441578, ID : 266bbded-666f-4e96-b483-bbe37c436d9e