2025-12-01 13:21:13,265 - INFO - Domain Default found not creating 2025-12-01 13:21:13,444 - INFO - Project ctest-TestRoutersBasic-83200123 not found, creating it 2025-12-01 13:21:13,904 - INFO - Created Project:ctest-TestRoutersBasic-83200123, ID : 3e4ff57d-5bf9-4cf2-b161-a1b37a572b3a 2025-12-01 13:21:15,449 - INFO - ================================================================================ 2025-12-01 13:21:15,449 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-12-01 13:21:15,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 2025-12-01 13:21:15,704 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-12-01 13:21:15,704 - INFO - Initial checks done. Running the testcase now 2025-12-01 13:21:15,704 - INFO - 2025-12-01 13:21:16,429 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-83200123 2025-12-01 13:21:16,522 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-83200123 2025-12-01 13:21:16,846 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-83200123', 'default']} 2025-12-01 13:21:17,154 - DEBUG - Response for create_network : {'network': {'id': '396326f0-4112-41a1-8065-658473a19d2a', 'name': 'ctest-vn-60472678', 'tenant_id': '3e4ff57d5bf94cf2b161a1b37a572b3a', 'project_id': '3e4ff57d5bf94cf2b161a1b37a572b3a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-83200123', 'ctest-vn-60472678'], 'port_security_enabled': True, 'description': ''}} 2025-12-01 13:21:17,390 - DEBUG - Response for create_subnet : {'subnet': {'id': '5a910996-8720-44b7-90d3-4cbdc22c012f', 'name': '', 'tenant_id': '3e4ff57d5bf94cf2b161a1b37a572b3a', 'network_id': '396326f0-4112-41a1-8065-658473a19d2a', 'ip_version': 4, 'cidr': '129.115.184.192/26', 'allocation_pools': [{'start': '129.115.184.194', 'end': '129.115.184.254'}], 'gateway_ip': '129.115.184.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.115.184.194', 'tags': [], 'project_id': '3e4ff57d5bf94cf2b161a1b37a572b3a'}} 2025-12-01 13:21:17,411 - INFO - Created VN ctest-vn-60472678 2025-12-01 13:21:17,466 - DEBUG - VN ctest-vn-60472678 UUID is 396326f0-4112-41a1-8065-658473a19d2a 2025-12-01 13:21:17,778 - DEBUG - Response for create_network : {'network': {'id': 'cd8ad80e-83f7-4723-bbc7-c4ffa37cd087', 'name': 'ctest-ext_vn-30085105', 'tenant_id': '3e4ff57d5bf94cf2b161a1b37a572b3a', 'project_id': '3e4ff57d5bf94cf2b161a1b37a572b3a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-83200123', 'ctest-ext_vn-30085105'], 'port_security_enabled': True, 'description': ''}} 2025-12-01 13:21:17,973 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c48f761b-b279-4fa4-985d-e62dc80bcc92', 'name': '', 'tenant_id': '3e4ff57d5bf94cf2b161a1b37a572b3a', 'network_id': 'cd8ad80e-83f7-4723-bbc7-c4ffa37cd087', 'ip_version': 4, 'cidr': '9.142.214.192/26', 'allocation_pools': [{'start': '9.142.214.194', 'end': '9.142.214.254'}], 'gateway_ip': '9.142.214.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.142.214.194', 'tags': [], 'project_id': '3e4ff57d5bf94cf2b161a1b37a572b3a'}} 2025-12-01 13:21:17,995 - INFO - Created VN ctest-ext_vn-30085105 2025-12-01 13:21:18,050 - DEBUG - VN ctest-ext_vn-30085105 UUID is cd8ad80e-83f7-4723-bbc7-c4ffa37cd087 2025-12-01 13:21:18,256 - DEBUG - Services list from nova: [, , ] 2025-12-01 13:21:19,284 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4830-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4830-1) 2025-12-01 13:21:20,422 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4830-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4830-1) 2025-12-01 13:21:20,507 - INFO - Setting gateway for router ffd815ad-ca64-454c-bff8-442e348c5c23 to network cd8ad80e-83f7-4723-bbc7-c4ffa37cd087 2025-12-01 13:21:20,580 - INFO - Adding interface with subnet_id 5a910996-8720-44b7-90d3-4cbdc22c012f, port_id None to router ffd815ad-ca64-454c-bff8-442e348c5c23 2025-12-01 13:21:20,884 - INFO - Waiting for VM ctest-TestRoutersBasic-83200123-93808919 to be up.. 2025-12-01 13:21:20,985 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-12-01 13:21:26,068 - DEBUG - VM is in ACTIVE state now 2025-12-01 13:21:26,068 - INFO - VM name : ctest-TestRoutersBasic-83200123-93808919 2025-12-01 13:21:26,153 - DEBUG - VM ctest-TestRoutersBasic-83200123-93808919 ID is ad6551fa-c6c0-4896-b892-d39da2d357d7 2025-12-01 13:21:26,173 - DEBUG - VM ctest-TestRoutersBasic-83200123-93808919 launched on Node cn-jenkins-deploy-platform-ansible-os-4830-1 2025-12-01 13:21:26,249 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/ad6551fa-c6c0-4896-b892-d39da2d357d7 2025-12-01 13:21:26,543 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/ad6551fa-c6c0-4896-b892-d39da2d357d7 2025-12-01 13:21:26,576 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/6b244f7c-12dc-4169-b8bf-a0250e75bcab 2025-12-01 13:21:29,847 - 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 1030ms') 2025-12-01 13:21:29,847 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-83200123-93808919 failed! 2025-12-01 13:21:29,902 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-83200123:ctest-vn-60472678 is 129.115.184.193 and allocation pool is NOT set 2025-12-01 13:21:31,959 - 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.81 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.789 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 = 0.789/2.801/4.813/2.012 ms') 2025-12-01 13:21:31,959 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-83200123-93808919 passed 2025-12-01 13:21:32,110 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-01 13:21:32,110 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-83200123-93808919, IP 129.115.184.195, Port 22 2025-12-01 13:21:32,270 - DEBUG - VM ctest-TestRoutersBasic-83200123-93808919 is ready for SSH connections 2025-12-01 13:21:32,270 - INFO - Waiting for VM ctest-TestRoutersBasic-83200123-44077968 to be up.. 2025-12-01 13:21:32,349 - DEBUG - VM is in ACTIVE state now 2025-12-01 13:21:32,349 - INFO - VM name : ctest-TestRoutersBasic-83200123-44077968 2025-12-01 13:21:32,427 - DEBUG - VM ctest-TestRoutersBasic-83200123-44077968 ID is 39676d61-02e6-45d7-bea0-2c55ebb480a7 2025-12-01 13:21:32,428 - DEBUG - VM ctest-TestRoutersBasic-83200123-44077968 launched on Node cn-jenkins-deploy-platform-ansible-os-4830-1 2025-12-01 13:21:32,504 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/39676d61-02e6-45d7-bea0-2c55ebb480a7 2025-12-01 13:21:32,513 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/d2f60f34-c07b-476c-b541-c5dfe4b90515 2025-12-01 13:21:33,750 - 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=4.64 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.21 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 = 1.210/2.926/4.643/1.716 ms') 2025-12-01 13:21:33,751 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-83200123-44077968 passed 2025-12-01 13:21:33,906 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-01 13:21:33,906 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-83200123-44077968, IP 9.142.214.195, Port 22 2025-12-01 13:21:33,976 - 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-12-01 13:21:34,058 - DEBUG - VM ctest-TestRoutersBasic-83200123-44077968 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-01 13:21:39,058 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-01 13:21:39,058 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-83200123-44077968, IP 9.142.214.195, Port 22 2025-12-01 13:21:39,213 - DEBUG - VM ctest-TestRoutersBasic-83200123-44077968 is ready for SSH connections 2025-12-01 13:21:39,213 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-01 13:21:39,213 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 9.142.214.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-12-01 13:21:39,213 - DEBUG - ping -s 56 -c 3 -W 1 9.142.214.195 2025-12-01 13:21:42,907 - DEBUG - PING 9.142.214.195 (9.142.214.195): 56 data bytes 64 bytes from 9.142.214.195: seq=0 ttl=62 time=5.490 ms 64 bytes from 9.142.214.195: seq=1 ttl=62 time=1.129 ms 64 bytes from 9.142.214.195: seq=2 ttl=62 time=1.087 ms --- 9.142.214.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.087/2.568/5.490 ms 2025-12-01 13:21:42,907 - INFO - Ping to IP 9.142.214.195 from VM ctest-TestRoutersBasic-83200123-93808919 passed 2025-12-01 13:21:42,907 - INFO - Deleting interface with subnet_id 5a910996-8720-44b7-90d3-4cbdc22c012f, port_id None from router ffd815ad-ca64-454c-bff8-442e348c5c23 2025-12-01 13:21:43,083 - INFO - Deleting VM ctest-TestRoutersBasic-83200123-44077968 2025-12-01 13:21:43,163 - INFO - Deleting VM ctest-TestRoutersBasic-83200123-93808919 2025-12-01 13:21:43,248 - INFO - Deleting VN ctest-ext_vn-30085105 2025-12-01 13:21:43,319 - DEBUG - VN cd8ad80e-83f7-4723-bbc7-c4ffa37cd087 still in use: Unable to complete operation on network cd8ad80e-83f7-4723-bbc7-c4ffa37cd087. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-aaccd471-f039-4a4f-b4ee-8f1999813ab8'] 2025-12-01 13:21:43,319 - WARNING - Deleting VN ctest-ext_vn-30085105 failed..Will retry 2025-12-01 13:21:45,421 - DEBUG - Response for deleting network () 2025-12-01 13:21:45,421 - INFO - Deleting VN ctest-vn-60472678 2025-12-01 13:21:45,545 - DEBUG - Response for deleting network () 2025-12-01 13:21:45,803 - DEBUG - No XMPP flaps were noticed during the test
2025-12-01 13:21:45,803 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:30]
2025-12-01 13:21:45,804 - INFO - -------------------------------------------------------------------------------- 2025-12-01 13:21:46,931 - INFO - Deleted project: ctest-TestRoutersBasic-83200123, ID : 3e4ff57d-5bf9-4cf2-b161-a1b37a572b3a