2025-11-17 17:27:06,497 - INFO - Domain Default found not creating 2025-11-17 17:27:06,733 - INFO - Project ctest-TestRoutersBasic-30714942 not found, creating it 2025-11-17 17:27:07,299 - INFO - Created Project:ctest-TestRoutersBasic-30714942, ID : c4ee776d-272e-4ac8-886c-40bf563a4759 2025-11-17 17:27:09,368 - INFO - ================================================================================ 2025-11-17 17:27:09,368 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-11-17 17:27:09,368 - 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-11-17 17:27:09,673 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-11-17 17:27:09,673 - INFO - Initial checks done. Running the testcase now 2025-11-17 17:27:09,673 - INFO - 2025-11-17 17:27:10,722 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-30714942 2025-11-17 17:27:10,840 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-30714942 2025-11-17 17:27:11,239 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-30714942', 'default']} 2025-11-17 17:27:11,687 - DEBUG - Response for create_network : {'network': {'id': 'eea7a3a3-f4e8-4333-9f1f-828340294b41', 'name': 'ctest-vn-98265214', 'tenant_id': 'c4ee776d272e4ac8886c40bf563a4759', 'project_id': 'c4ee776d272e4ac8886c40bf563a4759', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-30714942', 'ctest-vn-98265214'], 'port_security_enabled': True, 'description': ''}} 2025-11-17 17:27:11,923 - DEBUG - Response for create_subnet : {'subnet': {'id': '5a5ad57c-5409-45b2-ad0f-fdde46d27512', 'name': '', 'tenant_id': 'c4ee776d272e4ac8886c40bf563a4759', 'network_id': 'eea7a3a3-f4e8-4333-9f1f-828340294b41', 'ip_version': 4, 'cidr': '20.253.245.192/26', 'allocation_pools': [{'start': '20.253.245.194', 'end': '20.253.245.254'}], 'gateway_ip': '20.253.245.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.253.245.194', 'tags': [], 'project_id': 'c4ee776d272e4ac8886c40bf563a4759'}} 2025-11-17 17:27:11,956 - INFO - Created VN ctest-vn-98265214 2025-11-17 17:27:12,019 - DEBUG - VN ctest-vn-98265214 UUID is eea7a3a3-f4e8-4333-9f1f-828340294b41 2025-11-17 17:27:12,469 - DEBUG - Response for create_network : {'network': {'id': 'ed815f7f-9c62-4d97-b058-0993979aa42e', 'name': 'ctest-ext_vn-08899606', 'tenant_id': 'c4ee776d272e4ac8886c40bf563a4759', 'project_id': 'c4ee776d272e4ac8886c40bf563a4759', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-30714942', 'ctest-ext_vn-08899606'], 'port_security_enabled': True, 'description': ''}} 2025-11-17 17:27:12,682 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e71b288b-031a-416a-bb8c-74398514fb3f', 'name': '', 'tenant_id': 'c4ee776d272e4ac8886c40bf563a4759', 'network_id': 'ed815f7f-9c62-4d97-b058-0993979aa42e', 'ip_version': 4, 'cidr': '215.25.192.0/26', 'allocation_pools': [{'start': '215.25.192.2', 'end': '215.25.192.62'}], 'gateway_ip': '215.25.192.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '215.25.192.2', 'tags': [], 'project_id': 'c4ee776d272e4ac8886c40bf563a4759'}} 2025-11-17 17:27:12,705 - INFO - Created VN ctest-ext_vn-08899606 2025-11-17 17:27:12,763 - DEBUG - VN ctest-ext_vn-08899606 UUID is ed815f7f-9c62-4d97-b058-0993979aa42e 2025-11-17 17:27:13,049 - DEBUG - Services list from nova: [, , ] 2025-11-17 17:27:14,575 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4743-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4743-1) 2025-11-17 17:27:15,950 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4743-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4743-1) 2025-11-17 17:27:16,033 - INFO - Setting gateway for router c65937f5-fcf4-48f0-9b05-a4617a539397 to network ed815f7f-9c62-4d97-b058-0993979aa42e 2025-11-17 17:27:16,099 - INFO - Adding interface with subnet_id 5a5ad57c-5409-45b2-ad0f-fdde46d27512, port_id None to router c65937f5-fcf4-48f0-9b05-a4617a539397 2025-11-17 17:27:16,452 - INFO - Waiting for VM ctest-TestRoutersBasic-30714942-63988827 to be up.. 2025-11-17 17:27:16,604 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-17 17:27:21,750 - DEBUG - VM is in ACTIVE state now 2025-11-17 17:27:21,750 - INFO - VM name : ctest-TestRoutersBasic-30714942-63988827 2025-11-17 17:27:21,862 - DEBUG - VM ctest-TestRoutersBasic-30714942-63988827 ID is 03e1519d-be5a-4779-b880-ae06d8617bb6 2025-11-17 17:27:21,897 - DEBUG - VM ctest-TestRoutersBasic-30714942-63988827 launched on Node cn-jenkins-deploy-platform-ansible-os-4743-1 2025-11-17 17:27:22,015 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/03e1519d-be5a-4779-b880-ae06d8617bb6 2025-11-17 17:27:22,320 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/03e1519d-be5a-4779-b880-ae06d8617bb6 2025-11-17 17:27:22,406 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/1c0c58aa-9951-42e3-8b17-9bb4102c1886 2025-11-17 17:27:25,706 - 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 1022ms') 2025-11-17 17:27:25,706 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-30714942-63988827 failed! 2025-11-17 17:27:25,779 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-30714942:ctest-vn-98265214 is 20.253.245.193 and allocation pool is NOT set 2025-11-17 17:27:27,861 - 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.71 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.55 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 = 1.552/3.132/4.713/1.580 ms') 2025-11-17 17:27:27,861 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-30714942-63988827 passed 2025-11-17 17:27:28,031 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-17 17:27:28,031 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-30714942-63988827, IP 20.253.245.195, Port 22 2025-11-17 17:27:28,222 - DEBUG - VM ctest-TestRoutersBasic-30714942-63988827 is ready for SSH connections 2025-11-17 17:27:28,223 - INFO - Waiting for VM ctest-TestRoutersBasic-30714942-53950178 to be up.. 2025-11-17 17:27:28,353 - DEBUG - VM is in ACTIVE state now 2025-11-17 17:27:28,353 - INFO - VM name : ctest-TestRoutersBasic-30714942-53950178 2025-11-17 17:27:28,436 - DEBUG - VM ctest-TestRoutersBasic-30714942-53950178 ID is 56505287-8ebc-4714-9393-c82bb0541f60 2025-11-17 17:27:28,436 - DEBUG - VM ctest-TestRoutersBasic-30714942-53950178 launched on Node cn-jenkins-deploy-platform-ansible-os-4743-1 2025-11-17 17:27:28,521 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/56505287-8ebc-4714-9393-c82bb0541f60 2025-11-17 17:27:28,528 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/3b94b913-2025-4525-b104-8717299ef27e 2025-11-17 17:27:29,790 - 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.25 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.25 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.254/2.752/4.251/1.498 ms') 2025-11-17 17:27:29,790 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-30714942-53950178 passed 2025-11-17 17:27:29,972 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-17 17:27:29,972 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-30714942-53950178, IP 215.25.192.3, Port 22 2025-11-17 17:27:30,054 - 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-11-17 17:27:30,235 - DEBUG - VM ctest-TestRoutersBasic-30714942-53950178 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-17 17:27:35,236 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-17 17:27:35,236 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-30714942-53950178, IP 215.25.192.3, Port 22 2025-11-17 17:27:35,426 - DEBUG - VM ctest-TestRoutersBasic-30714942-53950178 is ready for SSH connections 2025-11-17 17:27:35,426 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-17 17:27:35,427 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 215.25.192.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-11-17 17:27:35,427 - DEBUG - ping -s 56 -c 3 -W 1 215.25.192.3 2025-11-17 17:27:39,450 - DEBUG - PING 215.25.192.3 (215.25.192.3): 56 data bytes 64 bytes from 215.25.192.3: seq=0 ttl=62 time=12.871 ms 64 bytes from 215.25.192.3: seq=1 ttl=62 time=1.376 ms 64 bytes from 215.25.192.3: seq=2 ttl=62 time=2.106 ms --- 215.25.192.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.376/5.451/12.871 ms 2025-11-17 17:27:39,451 - INFO - Ping to IP 215.25.192.3 from VM ctest-TestRoutersBasic-30714942-63988827 passed 2025-11-17 17:27:39,451 - INFO - Deleting interface with subnet_id 5a5ad57c-5409-45b2-ad0f-fdde46d27512, port_id None from router c65937f5-fcf4-48f0-9b05-a4617a539397 2025-11-17 17:27:39,713 - INFO - Deleting VM ctest-TestRoutersBasic-30714942-53950178 2025-11-17 17:27:39,791 - INFO - Deleting VM ctest-TestRoutersBasic-30714942-63988827 2025-11-17 17:27:39,895 - INFO - Deleting VN ctest-ext_vn-08899606 2025-11-17 17:27:39,988 - DEBUG - VN ed815f7f-9c62-4d97-b058-0993979aa42e still in use: Unable to complete operation on network ed815f7f-9c62-4d97-b058-0993979aa42e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-da6598ab-fc46-4ffc-bb2d-ff5c02e213bf'] 2025-11-17 17:27:39,988 - WARNING - Deleting VN ctest-ext_vn-08899606 failed..Will retry 2025-11-17 17:27:42,201 - DEBUG - Response for deleting network () 2025-11-17 17:27:42,201 - INFO - Deleting VN ctest-vn-98265214 2025-11-17 17:27:42,335 - DEBUG - Response for deleting network () 2025-11-17 17:27:42,647 - DEBUG - No XMPP flaps were noticed during the test
2025-11-17 17:27:42,647 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:33]
2025-11-17 17:27:42,648 - INFO - -------------------------------------------------------------------------------- 2025-11-17 17:27:43,518 - INFO - Deleted project: ctest-TestRoutersBasic-30714942, ID : c4ee776d-272e-4ac8-886c-40bf563a4759