2025-10-27 02:08:46,012 - INFO - Domain Default found not creating 2025-10-27 02:08:46,191 - INFO - Project ctest-TestRoutersBasic-29976053 not found, creating it 2025-10-27 02:08:46,680 - INFO - Created Project:ctest-TestRoutersBasic-29976053, ID : bbf97f01-ef1f-4593-bdbc-724d2f43bf58 2025-10-27 02:08:48,331 - INFO - ================================================================================ 2025-10-27 02:08:48,331 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-10-27 02:08:48,331 - 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-27 02:08:48,596 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2025-10-27 02:08:48,596 - INFO - Initial checks done. Running the testcase now 2025-10-27 02:08:48,596 - INFO - 2025-10-27 02:08:49,408 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-29976053 2025-10-27 02:08:49,507 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-29976053 2025-10-27 02:08:49,835 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-29976053', 'default']} 2025-10-27 02:08:50,140 - DEBUG - Response for create_network : {'network': {'id': '8c33e293-768f-413b-bfe8-719477b40e04', 'name': 'ctest-vn-20325998', 'tenant_id': 'bbf97f01ef1f4593bdbc724d2f43bf58', 'project_id': 'bbf97f01ef1f4593bdbc724d2f43bf58', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-29976053', 'ctest-vn-20325998'], 'port_security_enabled': True, 'description': ''}} 2025-10-27 02:08:50,344 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a7cbf08f-d8d0-4a7f-990e-fd57d8239863', 'name': '', 'tenant_id': 'bbf97f01ef1f4593bdbc724d2f43bf58', 'network_id': '8c33e293-768f-413b-bfe8-719477b40e04', 'ip_version': 4, 'cidr': '21.224.38.64/26', 'allocation_pools': [{'start': '21.224.38.66', 'end': '21.224.38.126'}], 'gateway_ip': '21.224.38.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.224.38.66', 'tags': [], 'project_id': 'bbf97f01ef1f4593bdbc724d2f43bf58'}} 2025-10-27 02:08:50,364 - INFO - Created VN ctest-vn-20325998 2025-10-27 02:08:50,419 - DEBUG - VN ctest-vn-20325998 UUID is 8c33e293-768f-413b-bfe8-719477b40e04 2025-10-27 02:08:50,737 - DEBUG - Response for create_network : {'network': {'id': '4a14b036-6c13-4d32-9b3e-b0b40dfe7651', 'name': 'ctest-ext_vn-10932249', 'tenant_id': 'bbf97f01ef1f4593bdbc724d2f43bf58', 'project_id': 'bbf97f01ef1f4593bdbc724d2f43bf58', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-29976053', 'ctest-ext_vn-10932249'], 'port_security_enabled': True, 'description': ''}} 2025-10-27 02:08:50,937 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a17b16b4-6a3d-40d9-a3fe-91249bb81dd7', 'name': '', 'tenant_id': 'bbf97f01ef1f4593bdbc724d2f43bf58', 'network_id': '4a14b036-6c13-4d32-9b3e-b0b40dfe7651', 'ip_version': 4, 'cidr': '209.3.154.0/26', 'allocation_pools': [{'start': '209.3.154.2', 'end': '209.3.154.62'}], 'gateway_ip': '209.3.154.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.3.154.2', 'tags': [], 'project_id': 'bbf97f01ef1f4593bdbc724d2f43bf58'}} 2025-10-27 02:08:50,957 - INFO - Created VN ctest-ext_vn-10932249 2025-10-27 02:08:51,011 - DEBUG - VN ctest-ext_vn-10932249 UUID is 4a14b036-6c13-4d32-9b3e-b0b40dfe7651 2025-10-27 02:08:51,189 - DEBUG - Services list from nova: [, , ] 2025-10-27 02:08:52,331 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4488-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4488-1) 2025-10-27 02:08:53,726 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4488-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4488-1) 2025-10-27 02:08:53,913 - INFO - Setting gateway for router 9f01f845-7194-401a-973e-b0b35642b465 to network 4a14b036-6c13-4d32-9b3e-b0b40dfe7651 2025-10-27 02:08:54,023 - INFO - Adding interface with subnet_id a7cbf08f-d8d0-4a7f-990e-fd57d8239863, port_id None to router 9f01f845-7194-401a-973e-b0b35642b465 2025-10-27 02:08:54,604 - INFO - Waiting for VM ctest-TestRoutersBasic-29976053-37766321 to be up.. 2025-10-27 02:08:54,759 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-27 02:08:59,887 - DEBUG - VM is in ACTIVE state now 2025-10-27 02:08:59,887 - INFO - VM name : ctest-TestRoutersBasic-29976053-37766321 2025-10-27 02:09:00,011 - DEBUG - VM ctest-TestRoutersBasic-29976053-37766321 ID is 96ade645-9a74-4719-95c5-e0c5126c95aa 2025-10-27 02:09:00,041 - DEBUG - VM ctest-TestRoutersBasic-29976053-37766321 launched on Node cn-jenkins-deploy-platform-ansible-os-4488-1 2025-10-27 02:09:00,141 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine/96ade645-9a74-4719-95c5-e0c5126c95aa 2025-10-27 02:09:00,499 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine/96ade645-9a74-4719-95c5-e0c5126c95aa 2025-10-27 02:09:00,535 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine-interface/6d51bded-624b-4828-b480-bdb22e82372a 2025-10-27 02:09:03,817 - 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 1029ms') 2025-10-27 02:09:03,817 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-29976053-37766321 failed! 2025-10-27 02:09:03,875 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-29976053:ctest-vn-20325998 is 21.224.38.65 and allocation pool is NOT set 2025-10-27 02:09:05,938 - 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.08 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.932 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 = 0.932/3.004/5.077/2.072 ms') 2025-10-27 02:09:05,938 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-29976053-37766321 passed 2025-10-27 02:09:06,087 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-27 02:09:06,087 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-29976053-37766321, IP 21.224.38.67, Port 22 2025-10-27 02:09:06,243 - DEBUG - VM ctest-TestRoutersBasic-29976053-37766321 is ready for SSH connections 2025-10-27 02:09:06,243 - INFO - Waiting for VM ctest-TestRoutersBasic-29976053-71719979 to be up.. 2025-10-27 02:09:06,325 - DEBUG - VM is in ACTIVE state now 2025-10-27 02:09:06,325 - INFO - VM name : ctest-TestRoutersBasic-29976053-71719979 2025-10-27 02:09:06,403 - DEBUG - VM ctest-TestRoutersBasic-29976053-71719979 ID is 91903917-116e-4e26-806d-29fb0995c8a2 2025-10-27 02:09:06,403 - DEBUG - VM ctest-TestRoutersBasic-29976053-71719979 launched on Node cn-jenkins-deploy-platform-ansible-os-4488-1 2025-10-27 02:09:06,484 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine/91903917-116e-4e26-806d-29fb0995c8a2 2025-10-27 02:09:06,493 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine-interface/36662f5a-39d2-4570-91cb-f67740c09ec3 2025-10-27 02:09:07,736 - 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=5.45 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.87 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.865/3.655/5.445/1.790 ms') 2025-10-27 02:09:07,736 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-29976053-71719979 passed 2025-10-27 02:09:07,887 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-27 02:09:07,887 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-29976053-71719979, IP 209.3.154.3, Port 22 2025-10-27 02:09:07,952 - 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-10-27 02:09:08,037 - DEBUG - VM ctest-TestRoutersBasic-29976053-71719979 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-27 02:09:13,038 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-27 02:09:13,038 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-29976053-71719979, IP 209.3.154.3, Port 22 2025-10-27 02:09:13,195 - DEBUG - VM ctest-TestRoutersBasic-29976053-71719979 is ready for SSH connections 2025-10-27 02:09:13,195 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-27 02:09:13,195 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 209.3.154.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.242, gateway password: c0ntrail123 2025-10-27 02:09:13,195 - DEBUG - ping -s 56 -c 3 -W 1 209.3.154.3 2025-10-27 02:09:17,004 - DEBUG - PING 209.3.154.3 (209.3.154.3): 56 data bytes 64 bytes from 209.3.154.3: seq=0 ttl=62 time=6.017 ms 64 bytes from 209.3.154.3: seq=1 ttl=62 time=1.239 ms 64 bytes from 209.3.154.3: seq=2 ttl=62 time=1.119 ms --- 209.3.154.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.119/2.791/6.017 ms 2025-10-27 02:09:17,004 - INFO - Ping to IP 209.3.154.3 from VM ctest-TestRoutersBasic-29976053-37766321 passed 2025-10-27 02:09:17,004 - INFO - Deleting interface with subnet_id a7cbf08f-d8d0-4a7f-990e-fd57d8239863, port_id None from router 9f01f845-7194-401a-973e-b0b35642b465 2025-10-27 02:09:17,220 - INFO - Deleting VM ctest-TestRoutersBasic-29976053-71719979 2025-10-27 02:09:17,297 - INFO - Deleting VM ctest-TestRoutersBasic-29976053-37766321 2025-10-27 02:09:17,388 - INFO - Deleting VN ctest-ext_vn-10932249 2025-10-27 02:09:17,461 - DEBUG - VN 4a14b036-6c13-4d32-9b3e-b0b40dfe7651 still in use: Unable to complete operation on network 4a14b036-6c13-4d32-9b3e-b0b40dfe7651. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a86ffd5a-4399-4bb2-93d0-5a083edeb084'] 2025-10-27 02:09:17,461 - WARNING - Deleting VN ctest-ext_vn-10932249 failed..Will retry 2025-10-27 02:09:19,579 - DEBUG - Response for deleting network () 2025-10-27 02:09:19,579 - INFO - Deleting VN ctest-vn-20325998 2025-10-27 02:09:19,691 - DEBUG - Response for deleting network () 2025-10-27 02:09:19,951 - DEBUG - No XMPP flaps were noticed during the test 2025-10-27 02:09:19,951 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2025-10-27 02:09:19,951 - INFO - -------------------------------------------------------------------------------- 2025-10-27 02:09:20,695 - INFO - Deleted project: ctest-TestRoutersBasic-29976053, ID : bbf97f01-ef1f-4593-bdbc-724d2f43bf58