2025-11-04 08:57:37,451 - INFO - Domain Default found not creating 2025-11-04 08:57:37,598 - INFO - Project ctest-TestRoutersBasic-79725581 not found, creating it 2025-11-04 08:57:38,038 - INFO - Created Project:ctest-TestRoutersBasic-79725581, ID : b6d36331-d5cd-407e-94dd-d885221845a5 2025-11-04 08:57:39,569 - INFO - ================================================================================ 2025-11-04 08:57:39,569 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-11-04 08:57:39,569 - 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-04 08:57:39,824 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with 2025-11-04 08:57:39,824 - INFO - Initial checks done. Running the testcase now 2025-11-04 08:57:39,824 - INFO - 2025-11-04 08:57:40,613 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-79725581 2025-11-04 08:57:40,711 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-79725581 2025-11-04 08:57:41,039 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-79725581', 'default']} 2025-11-04 08:57:41,341 - DEBUG - Response for create_network : {'network': {'id': 'e5b360e8-6d4c-4d1d-8e30-70bd645990d2', 'name': 'ctest-vn-70692532', 'tenant_id': 'b6d36331d5cd407e94ddd885221845a5', 'project_id': 'b6d36331d5cd407e94ddd885221845a5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-79725581', 'ctest-vn-70692532'], 'port_security_enabled': True, 'description': ''}} 2025-11-04 08:57:41,490 - DEBUG - Response for create_subnet : {'subnet': {'id': 'efb4b8aa-f6ae-4e9c-9b8a-7f546a4f2986', 'name': '', 'tenant_id': 'b6d36331d5cd407e94ddd885221845a5', 'network_id': 'e5b360e8-6d4c-4d1d-8e30-70bd645990d2', 'ip_version': 4, 'cidr': '2.6.132.0/26', 'allocation_pools': [{'start': '2.6.132.2', 'end': '2.6.132.62'}], 'gateway_ip': '2.6.132.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.6.132.2', 'tags': [], 'project_id': 'b6d36331d5cd407e94ddd885221845a5'}} 2025-11-04 08:57:41,508 - INFO - Created VN ctest-vn-70692532 2025-11-04 08:57:41,559 - DEBUG - VN ctest-vn-70692532 UUID is e5b360e8-6d4c-4d1d-8e30-70bd645990d2 2025-11-04 08:57:41,896 - DEBUG - Response for create_network : {'network': {'id': '5690a77d-ed4a-4a59-9d78-3d4cb3607dc8', 'name': 'ctest-ext_vn-14029796', 'tenant_id': 'b6d36331d5cd407e94ddd885221845a5', 'project_id': 'b6d36331d5cd407e94ddd885221845a5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-79725581', 'ctest-ext_vn-14029796'], 'port_security_enabled': True, 'description': ''}} 2025-11-04 08:57:42,072 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f5f472b7-acbe-4d9f-88e3-b7101c4e10f2', 'name': '', 'tenant_id': 'b6d36331d5cd407e94ddd885221845a5', 'network_id': '5690a77d-ed4a-4a59-9d78-3d4cb3607dc8', 'ip_version': 4, 'cidr': '9.199.189.0/26', 'allocation_pools': [{'start': '9.199.189.2', 'end': '9.199.189.62'}], 'gateway_ip': '9.199.189.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.199.189.2', 'tags': [], 'project_id': 'b6d36331d5cd407e94ddd885221845a5'}} 2025-11-04 08:57:42,089 - INFO - Created VN ctest-ext_vn-14029796 2025-11-04 08:57:42,139 - DEBUG - VN ctest-ext_vn-14029796 UUID is 5690a77d-ed4a-4a59-9d78-3d4cb3607dc8 2025-11-04 08:57:42,303 - DEBUG - Services list from nova: [, , ] 2025-11-04 08:57:43,388 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4615-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4615-1) 2025-11-04 08:57:44,647 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4615-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4615-1) 2025-11-04 08:57:44,722 - INFO - Setting gateway for router f7be61d3-cbab-48d1-b7a0-90d1d6104a00 to network 5690a77d-ed4a-4a59-9d78-3d4cb3607dc8 2025-11-04 08:57:44,810 - INFO - Adding interface with subnet_id efb4b8aa-f6ae-4e9c-9b8a-7f546a4f2986, port_id None to router f7be61d3-cbab-48d1-b7a0-90d1d6104a00 2025-11-04 08:57:45,160 - INFO - Waiting for VM ctest-TestRoutersBasic-79725581-03260903 to be up.. 2025-11-04 08:57:45,338 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-04 08:57:50,415 - DEBUG - VM is in ACTIVE state now 2025-11-04 08:57:50,415 - INFO - VM name : ctest-TestRoutersBasic-79725581-03260903 2025-11-04 08:57:50,495 - DEBUG - VM ctest-TestRoutersBasic-79725581-03260903 ID is caba0584-9dcd-473f-9fb6-dfb2e7c39ae8 2025-11-04 08:57:50,516 - DEBUG - VM ctest-TestRoutersBasic-79725581-03260903 launched on Node cn-jenkins-deploy-platform-ansible-os-4615-1 2025-11-04 08:57:50,594 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/caba0584-9dcd-473f-9fb6-dfb2e7c39ae8 2025-11-04 08:57:50,928 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/caba0584-9dcd-473f-9fb6-dfb2e7c39ae8 2025-11-04 08:57:50,967 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/487d3f18-be77-4876-bb94-3848541c040e 2025-11-04 08:57:54,243 - 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 1028ms') 2025-11-04 08:57:54,243 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-79725581-03260903 failed! 2025-11-04 08:57:54,299 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-79725581:ctest-vn-70692532 is 2.6.132.1 and allocation pool is NOT set 2025-11-04 08:57:56,364 - 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.58 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.60 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 = 3.578/3.590/3.602/0.012 ms') 2025-11-04 08:57:56,364 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-79725581-03260903 passed 2025-11-04 08:57:56,515 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-04 08:57:56,515 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-79725581-03260903, IP 2.6.132.3, Port 22 2025-11-04 08:57:56,570 - 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-11-04 08:57:56,662 - DEBUG - VM ctest-TestRoutersBasic-79725581-03260903 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-04 08:58:01,663 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-04 08:58:01,663 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-79725581-03260903, IP 2.6.132.3, Port 22 2025-11-04 08:58:01,822 - DEBUG - VM ctest-TestRoutersBasic-79725581-03260903 is ready for SSH connections 2025-11-04 08:58:01,822 - INFO - Waiting for VM ctest-TestRoutersBasic-79725581-15260628 to be up.. 2025-11-04 08:58:01,894 - DEBUG - VM is in ACTIVE state now 2025-11-04 08:58:01,894 - INFO - VM name : ctest-TestRoutersBasic-79725581-15260628 2025-11-04 08:58:01,964 - DEBUG - VM ctest-TestRoutersBasic-79725581-15260628 ID is 83772b61-4b4b-4fce-9e84-7663e6ebb0bc 2025-11-04 08:58:01,964 - DEBUG - VM ctest-TestRoutersBasic-79725581-15260628 launched on Node cn-jenkins-deploy-platform-ansible-os-4615-1 2025-11-04 08:58:02,036 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/83772b61-4b4b-4fce-9e84-7663e6ebb0bc 2025-11-04 08:58:02,045 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/1eb7bdb3-7f09-4528-b8c5-7241b92701b3 2025-11-04 08:58:03,281 - 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.65 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.454 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.454/2.050/3.647/1.596 ms') 2025-11-04 08:58:03,282 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-79725581-15260628 passed 2025-11-04 08:58:03,435 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-04 08:58:03,435 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-79725581-15260628, IP 9.199.189.3, Port 22 2025-11-04 08:58:03,591 - DEBUG - VM ctest-TestRoutersBasic-79725581-15260628 is ready for SSH connections 2025-11-04 08:58:03,591 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-04 08:58:03,591 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 9.199.189.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-11-04 08:58:03,591 - DEBUG - ping -s 56 -c 3 -W 1 9.199.189.3 2025-11-04 08:58:07,331 - DEBUG - PING 9.199.189.3 (9.199.189.3): 56 data bytes 64 bytes from 9.199.189.3: seq=0 ttl=62 time=6.955 ms 64 bytes from 9.199.189.3: seq=1 ttl=62 time=0.998 ms 64 bytes from 9.199.189.3: seq=2 ttl=62 time=1.003 ms --- 9.199.189.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.998/2.985/6.955 ms 2025-11-04 08:58:07,331 - INFO - Ping to IP 9.199.189.3 from VM ctest-TestRoutersBasic-79725581-03260903 passed 2025-11-04 08:58:07,331 - INFO - Deleting interface with subnet_id efb4b8aa-f6ae-4e9c-9b8a-7f546a4f2986, port_id None from router f7be61d3-cbab-48d1-b7a0-90d1d6104a00 2025-11-04 08:58:07,510 - INFO - Deleting VM ctest-TestRoutersBasic-79725581-15260628 2025-11-04 08:58:07,587 - INFO - Deleting VM ctest-TestRoutersBasic-79725581-03260903 2025-11-04 08:58:07,673 - INFO - Deleting VN ctest-ext_vn-14029796 2025-11-04 08:58:07,734 - DEBUG - VN 5690a77d-ed4a-4a59-9d78-3d4cb3607dc8 still in use: Unable to complete operation on network 5690a77d-ed4a-4a59-9d78-3d4cb3607dc8. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-648803a0-0e9d-4da7-9ab9-040e0d0f3636'] 2025-11-04 08:58:07,735 - WARNING - Deleting VN ctest-ext_vn-14029796 failed..Will retry 2025-11-04 08:58:09,834 - DEBUG - Response for deleting network () 2025-11-04 08:58:09,834 - INFO - Deleting VN ctest-vn-70692532 2025-11-04 08:58:09,957 - DEBUG - Response for deleting network () 2025-11-04 08:58:10,216 - DEBUG - No XMPP flaps were noticed during the test
2025-11-04 08:58:10,216 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31]
2025-11-04 08:58:10,216 - INFO - -------------------------------------------------------------------------------- 2025-11-04 08:58:10,922 - INFO - Deleted project: ctest-TestRoutersBasic-79725581, ID : b6d36331-d5cd-407e-94dd-d885221845a5