2026-04-23 21:42:53,276 - INFO - Domain Default found not creating 2026-04-23 21:42:53,441 - INFO - Project ctest-TestRoutersBasic-83922905 not found, creating it 2026-04-23 21:42:53,925 - INFO - Created Project:ctest-TestRoutersBasic-83922905, ID : e7a1e9ef-728a-44a3-ae9c-a5fbccdd5f57 2026-04-23 21:42:55,449 - INFO - ================================================================================ 2026-04-23 21:42:55,449 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2026-04-23 21:42:55,449 - 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 2026-04-23 21:42:55,704 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-04-23 21:42:55,704 - INFO - Initial checks done. Running the testcase now 2026-04-23 21:42:55,704 - INFO - 2026-04-23 21:42:56,419 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-83922905 2026-04-23 21:42:56,515 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-83922905 2026-04-23 21:42:56,835 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-83922905', 'default']} 2026-04-23 21:42:57,129 - DEBUG - Response for create_network : {'network': {'id': 'e664155e-dc7d-41c2-8fba-6424fdfe727d', 'name': 'ctest-vn-97449452', 'tenant_id': 'e7a1e9ef728a44a3ae9ca5fbccdd5f57', 'project_id': 'e7a1e9ef728a44a3ae9ca5fbccdd5f57', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-83922905', 'ctest-vn-97449452'], 'port_security_enabled': True, 'description': ''}} 2026-04-23 21:42:57,358 - DEBUG - Response for create_subnet : {'subnet': {'id': '60341b1d-15cc-4c2f-9d51-d978dc248b3a', 'name': '', 'tenant_id': 'e7a1e9ef728a44a3ae9ca5fbccdd5f57', 'network_id': 'e664155e-dc7d-41c2-8fba-6424fdfe727d', 'ip_version': 4, 'cidr': '101.154.137.192/26', 'allocation_pools': [{'start': '101.154.137.194', 'end': '101.154.137.254'}], 'gateway_ip': '101.154.137.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.154.137.194', 'tags': [], 'project_id': 'e7a1e9ef728a44a3ae9ca5fbccdd5f57'}} 2026-04-23 21:42:57,375 - INFO - Created VN ctest-vn-97449452 2026-04-23 21:42:57,431 - DEBUG - VN ctest-vn-97449452 UUID is e664155e-dc7d-41c2-8fba-6424fdfe727d 2026-04-23 21:42:57,767 - DEBUG - Response for create_network : {'network': {'id': 'cde083e0-ae9a-4dbf-bcb8-5cdfa3c6d583', 'name': 'ctest-ext_vn-22945657', 'tenant_id': 'e7a1e9ef728a44a3ae9ca5fbccdd5f57', 'project_id': 'e7a1e9ef728a44a3ae9ca5fbccdd5f57', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-83922905', 'ctest-ext_vn-22945657'], 'port_security_enabled': True, 'description': ''}} 2026-04-23 21:42:57,947 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a461df64-aaee-45f9-ac7d-64ae1ec9df0f', 'name': '', 'tenant_id': 'e7a1e9ef728a44a3ae9ca5fbccdd5f57', 'network_id': 'cde083e0-ae9a-4dbf-bcb8-5cdfa3c6d583', 'ip_version': 4, 'cidr': '7.113.5.128/26', 'allocation_pools': [{'start': '7.113.5.130', 'end': '7.113.5.190'}], 'gateway_ip': '7.113.5.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.113.5.130', 'tags': [], 'project_id': 'e7a1e9ef728a44a3ae9ca5fbccdd5f57'}} 2026-04-23 21:42:57,965 - INFO - Created VN ctest-ext_vn-22945657 2026-04-23 21:42:58,015 - DEBUG - VN ctest-ext_vn-22945657 UUID is cde083e0-ae9a-4dbf-bcb8-5cdfa3c6d583 2026-04-23 21:42:58,188 - DEBUG - Services list from nova: [, , ] 2026-04-23 21:42:59,222 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-5679-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-5679-1) 2026-04-23 21:43:00,360 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-5679-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-5679-1) 2026-04-23 21:43:00,441 - INFO - Setting gateway for router 20a9728b-d2c6-4639-8ce0-5f35d075a501 to network cde083e0-ae9a-4dbf-bcb8-5cdfa3c6d583 2026-04-23 21:43:00,535 - INFO - Adding interface with subnet_id 60341b1d-15cc-4c2f-9d51-d978dc248b3a, port_id None to router 20a9728b-d2c6-4639-8ce0-5f35d075a501 2026-04-23 21:43:01,000 - INFO - Waiting for VM ctest-TestRoutersBasic-83922905-85464664 to be up.. 2026-04-23 21:43:01,189 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-04-23 21:43:06,265 - DEBUG - VM is in ACTIVE state now 2026-04-23 21:43:06,265 - INFO - VM name : ctest-TestRoutersBasic-83922905-85464664 2026-04-23 21:43:06,346 - DEBUG - VM ctest-TestRoutersBasic-83922905-85464664 ID is 7ba9f0be-49cf-4541-b099-b73aab674171 2026-04-23 21:43:06,369 - DEBUG - VM ctest-TestRoutersBasic-83922905-85464664 launched on Node cn-jenkins-deploy-platform-ansible-os-5679-1 2026-04-23 21:43:06,441 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/7ba9f0be-49cf-4541-b099-b73aab674171 2026-04-23 21:43:06,762 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/7ba9f0be-49cf-4541-b099-b73aab674171 2026-04-23 21:43:06,795 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/f82af840-68a4-4e06-a080-162cb4fc3b56 2026-04-23 21:43:10,028 - 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 1006ms') 2026-04-23 21:43:10,028 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-83922905-85464664 failed! 2026-04-23 21:43:10,083 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-83922905:ctest-vn-97449452 is 101.154.137.193 and allocation pool is NOT set 2026-04-23 21:43:12,147 - 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.76 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.53 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 = 2.528/2.641/2.755/0.113 ms') 2026-04-23 21:43:12,148 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-83922905-85464664 passed 2026-04-23 21:43:12,295 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-04-23 21:43:12,295 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-83922905-85464664, IP 101.154.137.195, Port 22 2026-04-23 21:43:12,351 - 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': ''} 2026-04-23 21:43:12,435 - DEBUG - VM ctest-TestRoutersBasic-83922905-85464664 is NOT ready for SSH connections, VM status: ACTIVE 2026-04-23 21:43:17,436 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-04-23 21:43:17,437 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-83922905-85464664, IP 101.154.137.195, Port 22 2026-04-23 21:43:17,594 - DEBUG - VM ctest-TestRoutersBasic-83922905-85464664 is ready for SSH connections 2026-04-23 21:43:17,594 - INFO - Waiting for VM ctest-TestRoutersBasic-83922905-32853933 to be up.. 2026-04-23 21:43:17,670 - DEBUG - VM is in ACTIVE state now 2026-04-23 21:43:17,670 - INFO - VM name : ctest-TestRoutersBasic-83922905-32853933 2026-04-23 21:43:17,739 - DEBUG - VM ctest-TestRoutersBasic-83922905-32853933 ID is 4eb82199-b126-4430-90f8-f7c70ffcbc5a 2026-04-23 21:43:17,739 - DEBUG - VM ctest-TestRoutersBasic-83922905-32853933 launched on Node cn-jenkins-deploy-platform-ansible-os-5679-1 2026-04-23 21:43:17,807 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/4eb82199-b126-4430-90f8-f7c70ffcbc5a 2026-04-23 21:43:17,816 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/ede75a2f-58af-46b6-8330-db0616710036 2026-04-23 21:43:19,046 - 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.01 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.380 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.380/1.693/3.006/1.313 ms') 2026-04-23 21:43:19,046 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-83922905-32853933 passed 2026-04-23 21:43:19,199 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-04-23 21:43:19,199 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-83922905-32853933, IP 7.113.5.131, Port 22 2026-04-23 21:43:19,355 - DEBUG - VM ctest-TestRoutersBasic-83922905-32853933 is ready for SSH connections 2026-04-23 21:43:19,355 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-04-23 21:43:19,355 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 7.113.5.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2026-04-23 21:43:19,355 - DEBUG - ping -s 56 -c 3 -W 1 7.113.5.131 2026-04-23 21:43:23,063 - DEBUG - PING 7.113.5.131 (7.113.5.131): 56 data bytes 64 bytes from 7.113.5.131: seq=0 ttl=62 time=4.758 ms 64 bytes from 7.113.5.131: seq=1 ttl=62 time=0.865 ms 64 bytes from 7.113.5.131: seq=2 ttl=62 time=0.905 ms --- 7.113.5.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.865/2.176/4.758 ms 2026-04-23 21:43:23,063 - INFO - Ping to IP 7.113.5.131 from VM ctest-TestRoutersBasic-83922905-85464664 passed 2026-04-23 21:43:23,063 - INFO - Deleting interface with subnet_id 60341b1d-15cc-4c2f-9d51-d978dc248b3a, port_id None from router 20a9728b-d2c6-4639-8ce0-5f35d075a501 2026-04-23 21:43:23,250 - INFO - Deleting VM ctest-TestRoutersBasic-83922905-32853933 2026-04-23 21:43:23,325 - INFO - Deleting VM ctest-TestRoutersBasic-83922905-85464664 2026-04-23 21:43:23,412 - INFO - Deleting VN ctest-ext_vn-22945657 2026-04-23 21:43:23,482 - DEBUG - VN cde083e0-ae9a-4dbf-bcb8-5cdfa3c6d583 still in use: Unable to complete operation on network cde083e0-ae9a-4dbf-bcb8-5cdfa3c6d583. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-02f32fd6-b0c1-43f4-a67d-3bb3a8a3bc6b'] 2026-04-23 21:43:23,482 - WARNING - Deleting VN ctest-ext_vn-22945657 failed..Will retry 2026-04-23 21:43:25,573 - DEBUG - Response for deleting network () 2026-04-23 21:43:25,574 - INFO - Deleting VN ctest-vn-97449452 2026-04-23 21:43:25,666 - DEBUG - Response for deleting network () 2026-04-23 21:43:25,919 - DEBUG - No XMPP flaps were noticed during the test
2026-04-23 21:43:25,919 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:30]
2026-04-23 21:43:25,919 - INFO - -------------------------------------------------------------------------------- 2026-04-23 21:43:27,041 - INFO - Deleted project: ctest-TestRoutersBasic-83922905, ID : e7a1e9ef-728a-44a3-ae9c-a5fbccdd5f57