2025-10-22 14:10:25,587 - INFO - Domain Default found not creating 2025-10-22 14:10:25,736 - INFO - Project ctest-TestRoutersBasic-57113251 not found, creating it 2025-10-22 14:10:26,209 - INFO - Created Project:ctest-TestRoutersBasic-57113251, ID : 4a777ec5-605f-48c0-9d6f-3dde7829c886 2025-10-22 14:10:28,452 - INFO - ================================================================================ 2025-10-22 14:10:28,452 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-10-22 14:10:28,452 - 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-22 14:10:28,707 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with 2025-10-22 14:10:28,707 - INFO - Initial checks done. Running the testcase now 2025-10-22 14:10:28,707 - INFO - 2025-10-22 14:10:29,493 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-57113251 2025-10-22 14:10:29,590 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-57113251 2025-10-22 14:10:29,906 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-57113251', 'default']} 2025-10-22 14:10:30,202 - DEBUG - Response for create_network : {'network': {'id': '2bcfc542-7802-4bb6-99b3-57b83b35876f', 'name': 'ctest-vn-61450589', 'tenant_id': '4a777ec5605f48c09d6f3dde7829c886', 'project_id': '4a777ec5605f48c09d6f3dde7829c886', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-57113251', 'ctest-vn-61450589'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 14:10:30,377 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ed6c223d-88dd-4af3-92e5-299ae1bc99cd', 'name': '', 'tenant_id': '4a777ec5605f48c09d6f3dde7829c886', 'network_id': '2bcfc542-7802-4bb6-99b3-57b83b35876f', 'ip_version': 4, 'cidr': '172.96.243.0/26', 'allocation_pools': [{'start': '172.96.243.2', 'end': '172.96.243.62'}], 'gateway_ip': '172.96.243.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.96.243.2', 'tags': [], 'project_id': '4a777ec5605f48c09d6f3dde7829c886'}} 2025-10-22 14:10:30,395 - INFO - Created VN ctest-vn-61450589 2025-10-22 14:10:30,450 - DEBUG - VN ctest-vn-61450589 UUID is 2bcfc542-7802-4bb6-99b3-57b83b35876f 2025-10-22 14:10:30,779 - DEBUG - Response for create_network : {'network': {'id': '8e0703f9-7c0f-47e8-9c7b-8ed4ac42248c', 'name': 'ctest-ext_vn-02581731', 'tenant_id': '4a777ec5605f48c09d6f3dde7829c886', 'project_id': '4a777ec5605f48c09d6f3dde7829c886', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-57113251', 'ctest-ext_vn-02581731'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 14:10:30,955 - DEBUG - Response for create_subnet : {'subnet': {'id': '4b7c22ce-ee9b-4861-8d24-561e06654371', 'name': '', 'tenant_id': '4a777ec5605f48c09d6f3dde7829c886', 'network_id': '8e0703f9-7c0f-47e8-9c7b-8ed4ac42248c', 'ip_version': 4, 'cidr': '109.160.229.128/26', 'allocation_pools': [{'start': '109.160.229.130', 'end': '109.160.229.190'}], 'gateway_ip': '109.160.229.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.160.229.130', 'tags': [], 'project_id': '4a777ec5605f48c09d6f3dde7829c886'}} 2025-10-22 14:10:30,974 - INFO - Created VN ctest-ext_vn-02581731 2025-10-22 14:10:31,026 - DEBUG - VN ctest-ext_vn-02581731 UUID is 8e0703f9-7c0f-47e8-9c7b-8ed4ac42248c 2025-10-22 14:10:31,189 - DEBUG - Services list from nova: [, , ] 2025-10-22 14:10:32,293 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4431-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4431-1) 2025-10-22 14:10:33,535 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4431-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4431-1) 2025-10-22 14:10:33,614 - INFO - Setting gateway for router 621f8d3a-416d-43e0-842b-1cb17fe4b819 to network 8e0703f9-7c0f-47e8-9c7b-8ed4ac42248c 2025-10-22 14:10:33,688 - INFO - Adding interface with subnet_id ed6c223d-88dd-4af3-92e5-299ae1bc99cd, port_id None to router 621f8d3a-416d-43e0-842b-1cb17fe4b819 2025-10-22 14:10:34,014 - INFO - Waiting for VM ctest-TestRoutersBasic-57113251-87825900 to be up.. 2025-10-22 14:10:34,182 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-22 14:10:39,262 - DEBUG - VM is in ACTIVE state now 2025-10-22 14:10:39,262 - INFO - VM name : ctest-TestRoutersBasic-57113251-87825900 2025-10-22 14:10:39,339 - DEBUG - VM ctest-TestRoutersBasic-57113251-87825900 ID is ddbe305d-1cd7-4cb8-9b4a-e487217b9cce 2025-10-22 14:10:39,359 - DEBUG - VM ctest-TestRoutersBasic-57113251-87825900 launched on Node cn-jenkins-deploy-platform-ansible-os-4431-1 2025-10-22 14:10:39,436 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/ddbe305d-1cd7-4cb8-9b4a-e487217b9cce 2025-10-22 14:10:39,770 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/ddbe305d-1cd7-4cb8-9b4a-e487217b9cce 2025-10-22 14:10:39,806 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/2990208e-a678-47a1-8881-8ecee53684ce 2025-10-22 14:10:43,064 - 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 1015ms') 2025-10-22 14:10:43,064 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-57113251-87825900 failed! 2025-10-22 14:10:43,118 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-57113251:ctest-vn-61450589 is 172.96.243.1 and allocation pool is NOT set 2025-10-22 14:10:45,183 - 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=5.03 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.75 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.748/3.388/5.029/1.640 ms') 2025-10-22 14:10:45,183 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-57113251-87825900 passed 2025-10-22 14:10:45,334 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 14:10:45,334 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-57113251-87825900, IP 172.96.243.3, Port 22 2025-10-22 14:10:45,399 - 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-10-22 14:10:45,479 - DEBUG - VM ctest-TestRoutersBasic-57113251-87825900 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-22 14:10:50,480 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 14:10:50,480 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-57113251-87825900, IP 172.96.243.3, Port 22 2025-10-22 14:10:50,652 - DEBUG - VM ctest-TestRoutersBasic-57113251-87825900 is ready for SSH connections 2025-10-22 14:10:50,653 - INFO - Waiting for VM ctest-TestRoutersBasic-57113251-40963307 to be up.. 2025-10-22 14:10:50,730 - DEBUG - VM is in ACTIVE state now 2025-10-22 14:10:50,730 - INFO - VM name : ctest-TestRoutersBasic-57113251-40963307 2025-10-22 14:10:50,803 - DEBUG - VM ctest-TestRoutersBasic-57113251-40963307 ID is f272e679-4ba2-485f-ad14-70e00b7070be 2025-10-22 14:10:50,803 - DEBUG - VM ctest-TestRoutersBasic-57113251-40963307 launched on Node cn-jenkins-deploy-platform-ansible-os-4431-1 2025-10-22 14:10:50,873 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/f272e679-4ba2-485f-ad14-70e00b7070be 2025-10-22 14:10:50,881 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/f75120da-6483-4bc1-9e47-84dfd4c109df 2025-10-22 14:10:52,112 - 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.08 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.379 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.379/1.730/3.082/1.351 ms') 2025-10-22 14:10:52,112 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-57113251-40963307 passed 2025-10-22 14:10:52,266 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 14:10:52,266 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-57113251-40963307, IP 109.160.229.131, Port 22 2025-10-22 14:10:52,426 - DEBUG - VM ctest-TestRoutersBasic-57113251-40963307 is ready for SSH connections 2025-10-22 14:10:52,426 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-22 14:10:52,426 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 109.160.229.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.249, gateway password: c0ntrail123 2025-10-22 14:10:52,426 - DEBUG - ping -s 56 -c 3 -W 1 109.160.229.131 2025-10-22 14:10:56,195 - DEBUG - PING 109.160.229.131 (109.160.229.131): 56 data bytes 64 bytes from 109.160.229.131: seq=0 ttl=62 time=6.297 ms 64 bytes from 109.160.229.131: seq=1 ttl=62 time=0.772 ms 64 bytes from 109.160.229.131: seq=2 ttl=62 time=0.831 ms --- 109.160.229.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.772/2.633/6.297 ms 2025-10-22 14:10:56,195 - INFO - Ping to IP 109.160.229.131 from VM ctest-TestRoutersBasic-57113251-87825900 passed 2025-10-22 14:10:56,195 - INFO - Deleting interface with subnet_id ed6c223d-88dd-4af3-92e5-299ae1bc99cd, port_id None from router 621f8d3a-416d-43e0-842b-1cb17fe4b819 2025-10-22 14:10:56,394 - INFO - Deleting VM ctest-TestRoutersBasic-57113251-40963307 2025-10-22 14:10:56,477 - INFO - Deleting VM ctest-TestRoutersBasic-57113251-87825900 2025-10-22 14:10:56,563 - INFO - Deleting VN ctest-ext_vn-02581731 2025-10-22 14:10:56,675 - DEBUG - VN 8e0703f9-7c0f-47e8-9c7b-8ed4ac42248c still in use: Unable to complete operation on network 8e0703f9-7c0f-47e8-9c7b-8ed4ac42248c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b00f339c-8d9d-4250-aefa-c922d7c07796'] 2025-10-22 14:10:56,675 - WARNING - Deleting VN ctest-ext_vn-02581731 failed..Will retry 2025-10-22 14:10:58,777 - DEBUG - Response for deleting network () 2025-10-22 14:10:58,777 - INFO - Deleting VN ctest-vn-61450589 2025-10-22 14:10:58,875 - DEBUG - Response for deleting network () 2025-10-22 14:10:59,130 - DEBUG - No XMPP flaps were noticed during the test
2025-10-22 14:10:59,131 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31]
2025-10-22 14:10:59,131 - INFO - -------------------------------------------------------------------------------- 2025-10-22 14:10:59,858 - INFO - Deleted project: ctest-TestRoutersBasic-57113251, ID : 4a777ec5-605f-48c0-9d6f-3dde7829c886