2025-07-16 16:50:39,937 - INFO - Domain Default found not creating 2025-07-16 16:50:40,114 - INFO - Project ctest-TestRoutersBasic-77931350 not found, creating it 2025-07-16 16:50:40,618 - INFO - Created Project:ctest-TestRoutersBasic-77931350, ID : a97c80bc-6ac9-4026-892a-894a672f729b 2025-07-16 16:50:42,245 - INFO - ================================================================================ 2025-07-16 16:50:42,246 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-07-16 16:50:42,246 - 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-16 16:50:42,510 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.193': '0'}} with 2025-07-16 16:50:42,510 - INFO - Initial checks done. Running the testcase now 2025-07-16 16:50:42,510 - INFO - 2025-07-16 16:50:43,288 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-77931350 2025-07-16 16:50:43,391 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-77931350 2025-07-16 16:50:43,731 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-77931350', 'default']} 2025-07-16 16:50:44,056 - DEBUG - Response for create_network : {'network': {'id': '2794558b-0896-4847-9be0-bad0b211a2b0', 'name': 'ctest-vn-18197941', 'tenant_id': 'a97c80bc6ac94026892a894a672f729b', 'project_id': 'a97c80bc6ac94026892a894a672f729b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-77931350', 'ctest-vn-18197941'], 'port_security_enabled': True, 'description': ''}} 2025-07-16 16:50:44,219 - DEBUG - Response for create_subnet : {'subnet': {'id': '13b01c0c-f7cb-4298-816d-3a53e28e6cb3', 'name': '', 'tenant_id': 'a97c80bc6ac94026892a894a672f729b', 'network_id': '2794558b-0896-4847-9be0-bad0b211a2b0', 'ip_version': 4, 'cidr': '153.31.68.192/26', 'allocation_pools': [{'start': '153.31.68.194', 'end': '153.31.68.254'}], 'gateway_ip': '153.31.68.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.31.68.194', 'tags': [], 'project_id': 'a97c80bc6ac94026892a894a672f729b'}} 2025-07-16 16:50:44,241 - INFO - Created VN ctest-vn-18197941 2025-07-16 16:50:44,295 - DEBUG - VN ctest-vn-18197941 UUID is 2794558b-0896-4847-9be0-bad0b211a2b0 2025-07-16 16:50:44,654 - DEBUG - Response for create_network : {'network': {'id': 'ed29c1db-2405-420e-a146-3425f4de4d05', 'name': 'ctest-ext_vn-96330051', 'tenant_id': 'a97c80bc6ac94026892a894a672f729b', 'project_id': 'a97c80bc6ac94026892a894a672f729b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-77931350', 'ctest-ext_vn-96330051'], 'port_security_enabled': True, 'description': ''}} 2025-07-16 16:50:44,921 - DEBUG - Response for create_subnet : {'subnet': {'id': '07dc30d0-dabf-4efa-9a70-275a1abfacaf', 'name': '', 'tenant_id': 'a97c80bc6ac94026892a894a672f729b', 'network_id': 'ed29c1db-2405-420e-a146-3425f4de4d05', 'ip_version': 4, 'cidr': '214.236.195.128/26', 'allocation_pools': [{'start': '214.236.195.130', 'end': '214.236.195.190'}], 'gateway_ip': '214.236.195.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.236.195.130', 'tags': [], 'project_id': 'a97c80bc6ac94026892a894a672f729b'}} 2025-07-16 16:50:44,943 - INFO - Created VN ctest-ext_vn-96330051 2025-07-16 16:50:45,003 - DEBUG - VN ctest-ext_vn-96330051 UUID is ed29c1db-2405-420e-a146-3425f4de4d05 2025-07-16 16:50:45,185 - DEBUG - Services list from nova: [, , ] 2025-07-16 16:50:46,369 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3645-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3645-1) 2025-07-16 16:50:47,660 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3645-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3645-1) 2025-07-16 16:50:47,734 - INFO - Setting gateway for router baa97bdc-1d87-4b71-ac46-459c8fea5a51 to network ed29c1db-2405-420e-a146-3425f4de4d05 2025-07-16 16:50:47,801 - INFO - Adding interface with subnet_id 13b01c0c-f7cb-4298-816d-3a53e28e6cb3, port_id None to router baa97bdc-1d87-4b71-ac46-459c8fea5a51 2025-07-16 16:50:48,231 - INFO - Waiting for VM ctest-TestRoutersBasic-77931350-94289657 to be up.. 2025-07-16 16:50:48,392 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-16 16:50:53,483 - DEBUG - VM is in ACTIVE state now 2025-07-16 16:50:53,483 - INFO - VM name : ctest-TestRoutersBasic-77931350-94289657 2025-07-16 16:50:53,565 - DEBUG - VM ctest-TestRoutersBasic-77931350-94289657 ID is d7b49a55-ad10-4083-bea8-2c6da489e1eb 2025-07-16 16:50:53,588 - DEBUG - VM ctest-TestRoutersBasic-77931350-94289657 launched on Node cn-jenkins-deploy-platform-ansible-os-3645-1 2025-07-16 16:50:53,682 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/d7b49a55-ad10-4083-bea8-2c6da489e1eb 2025-07-16 16:50:54,010 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/d7b49a55-ad10-4083-bea8-2c6da489e1eb 2025-07-16 16:50:54,065 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/5d2fba40-2f6e-42e8-80e5-7a2fa69dd38a 2025-07-16 16:50:57,333 - 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 1001ms') 2025-07-16 16:50:57,333 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-77931350-94289657 failed! 2025-07-16 16:50:57,391 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-77931350:ctest-vn-18197941 is 153.31.68.193 and allocation pool is NOT set 2025-07-16 16:50:59,461 - 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=3.84 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.76 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 = 3.757/3.796/3.835/0.039 ms') 2025-07-16 16:50:59,462 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-77931350-94289657 passed 2025-07-16 16:50:59,620 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-16 16:50:59,620 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-77931350-94289657, IP 153.31.68.195, Port 22 2025-07-16 16:50:59,689 - 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-16 16:50:59,787 - DEBUG - VM ctest-TestRoutersBasic-77931350-94289657 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-16 16:51:04,788 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-16 16:51:04,788 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-77931350-94289657, IP 153.31.68.195, Port 22 2025-07-16 16:51:04,966 - DEBUG - VM ctest-TestRoutersBasic-77931350-94289657 is ready for SSH connections 2025-07-16 16:51:04,966 - INFO - Waiting for VM ctest-TestRoutersBasic-77931350-72301257 to be up.. 2025-07-16 16:51:05,058 - DEBUG - VM is in ACTIVE state now 2025-07-16 16:51:05,058 - INFO - VM name : ctest-TestRoutersBasic-77931350-72301257 2025-07-16 16:51:05,153 - DEBUG - VM ctest-TestRoutersBasic-77931350-72301257 ID is 5957f212-0e5a-4081-b1b3-1fb68e038d99 2025-07-16 16:51:05,153 - DEBUG - VM ctest-TestRoutersBasic-77931350-72301257 launched on Node cn-jenkins-deploy-platform-ansible-os-3645-1 2025-07-16 16:51:05,250 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/5957f212-0e5a-4081-b1b3-1fb68e038d99 2025-07-16 16:51:05,260 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/d5df95d1-1d63-4f67-948b-a2d38377c48f 2025-07-16 16:51:06,518 - 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.34 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.984 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.984/2.161/3.339/1.177 ms') 2025-07-16 16:51:06,518 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-77931350-72301257 passed 2025-07-16 16:51:06,675 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-16 16:51:06,676 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-77931350-72301257, IP 214.236.195.131, Port 22 2025-07-16 16:51:06,850 - DEBUG - VM ctest-TestRoutersBasic-77931350-72301257 is ready for SSH connections 2025-07-16 16:51:06,850 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-16 16:51:06,850 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 214.236.195.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-07-16 16:51:06,851 - DEBUG - ping -s 56 -c 3 -W 1 214.236.195.131 2025-07-16 16:51:10,608 - DEBUG - PING 214.236.195.131 (214.236.195.131): 56 data bytes 64 bytes from 214.236.195.131: seq=0 ttl=62 time=9.130 ms 64 bytes from 214.236.195.131: seq=1 ttl=62 time=1.529 ms 64 bytes from 214.236.195.131: seq=2 ttl=62 time=1.489 ms --- 214.236.195.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.489/4.049/9.130 ms 2025-07-16 16:51:10,608 - INFO - Ping to IP 214.236.195.131 from VM ctest-TestRoutersBasic-77931350-94289657 passed 2025-07-16 16:51:10,608 - INFO - Deleting interface with subnet_id 13b01c0c-f7cb-4298-816d-3a53e28e6cb3, port_id None from router baa97bdc-1d87-4b71-ac46-459c8fea5a51 2025-07-16 16:51:10,870 - INFO - Deleting VM ctest-TestRoutersBasic-77931350-72301257 2025-07-16 16:51:10,959 - INFO - Deleting VM ctest-TestRoutersBasic-77931350-94289657 2025-07-16 16:51:11,059 - INFO - Deleting VN ctest-ext_vn-96330051 2025-07-16 16:51:11,142 - DEBUG - VN ed29c1db-2405-420e-a146-3425f4de4d05 still in use: Unable to complete operation on network ed29c1db-2405-420e-a146-3425f4de4d05. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c01bc7f1-ae8a-4fb1-b2bf-ac3b6cb18320'] 2025-07-16 16:51:11,142 - WARNING - Deleting VN ctest-ext_vn-96330051 failed..Will retry 2025-07-16 16:51:13,272 - DEBUG - Response for deleting network () 2025-07-16 16:51:13,272 - INFO - Deleting VN ctest-vn-18197941 2025-07-16 16:51:13,418 - DEBUG - Response for deleting network () 2025-07-16 16:51:13,678 - DEBUG - No XMPP flaps were noticed during the test 2025-07-16 16:51:13,678 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2025-07-16 16:51:13,679 - INFO - -------------------------------------------------------------------------------- 2025-07-16 16:51:14,476 - INFO - Deleted project: ctest-TestRoutersBasic-77931350, ID : a97c80bc-6ac9-4026-892a-894a672f729b