2025-07-17 02:27:49,412 - INFO - Domain Default found not creating 2025-07-17 02:27:49,572 - INFO - Project ctest-TestRoutersBasic-57841475 not found, creating it 2025-07-17 02:27:50,113 - INFO - Created Project:ctest-TestRoutersBasic-57841475, ID : 01c309e3-e9ac-4ae7-82fb-46d2f1e60a4c 2025-07-17 02:27:51,762 - INFO - ================================================================================ 2025-07-17 02:27:51,762 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-07-17 02:27:51,762 - 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-17 02:27:52,021 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.192': '0'}} with 2025-07-17 02:27:52,022 - INFO - Initial checks done. Running the testcase now 2025-07-17 02:27:52,022 - INFO - 2025-07-17 02:27:52,851 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-57841475 2025-07-17 02:27:52,951 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-57841475 2025-07-17 02:27:53,282 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-57841475', 'default']} 2025-07-17 02:27:53,593 - DEBUG - Response for create_network : {'network': {'id': 'c1bb9c5d-877f-40c9-830a-9521cf2c75ec', 'name': 'ctest-vn-31638700', 'tenant_id': '01c309e3e9ac4ae782fb46d2f1e60a4c', 'project_id': '01c309e3e9ac4ae782fb46d2f1e60a4c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-57841475', 'ctest-vn-31638700'], 'port_security_enabled': True, 'description': ''}} 2025-07-17 02:27:53,831 - DEBUG - Response for create_subnet : {'subnet': {'id': '98b3c726-3721-4d6d-8e53-2bf5c2645f1d', 'name': '', 'tenant_id': '01c309e3e9ac4ae782fb46d2f1e60a4c', 'network_id': 'c1bb9c5d-877f-40c9-830a-9521cf2c75ec', 'ip_version': 4, 'cidr': '42.149.243.128/26', 'allocation_pools': [{'start': '42.149.243.130', 'end': '42.149.243.190'}], 'gateway_ip': '42.149.243.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '42.149.243.130', 'tags': [], 'project_id': '01c309e3e9ac4ae782fb46d2f1e60a4c'}} 2025-07-17 02:27:53,852 - INFO - Created VN ctest-vn-31638700 2025-07-17 02:27:53,907 - DEBUG - VN ctest-vn-31638700 UUID is c1bb9c5d-877f-40c9-830a-9521cf2c75ec 2025-07-17 02:27:54,261 - DEBUG - Response for create_network : {'network': {'id': '8d346a23-2808-47ff-9fc5-f2fc500fd161', 'name': 'ctest-ext_vn-62395408', 'tenant_id': '01c309e3e9ac4ae782fb46d2f1e60a4c', 'project_id': '01c309e3e9ac4ae782fb46d2f1e60a4c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-57841475', 'ctest-ext_vn-62395408'], 'port_security_enabled': True, 'description': ''}} 2025-07-17 02:27:54,462 - DEBUG - Response for create_subnet : {'subnet': {'id': '4da2cc15-8590-4dad-8d4f-32b85b39a9ea', 'name': '', 'tenant_id': '01c309e3e9ac4ae782fb46d2f1e60a4c', 'network_id': '8d346a23-2808-47ff-9fc5-f2fc500fd161', 'ip_version': 4, 'cidr': '85.232.178.0/26', 'allocation_pools': [{'start': '85.232.178.2', 'end': '85.232.178.62'}], 'gateway_ip': '85.232.178.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.232.178.2', 'tags': [], 'project_id': '01c309e3e9ac4ae782fb46d2f1e60a4c'}} 2025-07-17 02:27:54,483 - INFO - Created VN ctest-ext_vn-62395408 2025-07-17 02:27:54,538 - DEBUG - VN ctest-ext_vn-62395408 UUID is 8d346a23-2808-47ff-9fc5-f2fc500fd161 2025-07-17 02:27:54,728 - DEBUG - Services list from nova: [, , ] 2025-07-17 02:27:55,876 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3648-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3648-1) 2025-07-17 02:27:57,193 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3648-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3648-1) 2025-07-17 02:27:57,278 - INFO - Setting gateway for router 6fe2d962-33ee-407f-8ccf-dae407e3a959 to network 8d346a23-2808-47ff-9fc5-f2fc500fd161 2025-07-17 02:27:57,345 - INFO - Adding interface with subnet_id 98b3c726-3721-4d6d-8e53-2bf5c2645f1d, port_id None to router 6fe2d962-33ee-407f-8ccf-dae407e3a959 2025-07-17 02:27:57,930 - INFO - Waiting for VM ctest-TestRoutersBasic-57841475-77703225 to be up.. 2025-07-17 02:27:58,127 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-17 02:28:03,214 - DEBUG - VM is in ACTIVE state now 2025-07-17 02:28:03,215 - INFO - VM name : ctest-TestRoutersBasic-57841475-77703225 2025-07-17 02:28:03,297 - DEBUG - VM ctest-TestRoutersBasic-57841475-77703225 ID is 1fc52e2a-f986-43b9-8323-f10e696d2bda 2025-07-17 02:28:03,320 - DEBUG - VM ctest-TestRoutersBasic-57841475-77703225 launched on Node cn-jenkins-deploy-platform-ansible-os-3648-1 2025-07-17 02:28:03,401 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine/1fc52e2a-f986-43b9-8323-f10e696d2bda 2025-07-17 02:28:03,750 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine/1fc52e2a-f986-43b9-8323-f10e696d2bda 2025-07-17 02:28:03,787 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine-interface/ce0af22a-ace1-4e29-9c11-9927ce676d63 2025-07-17 02:28:07,048 - 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 1002ms') 2025-07-17 02:28:07,048 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-57841475-77703225 failed! 2025-07-17 02:28:07,106 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-57841475:ctest-vn-31638700 is 42.149.243.129 and allocation pool is NOT set 2025-07-17 02:28:09,176 - 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=0.686 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.686/2.134/3.582/1.448 ms') 2025-07-17 02:28:09,177 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-57841475-77703225 passed 2025-07-17 02:28:09,331 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-17 02:28:09,331 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-57841475-77703225, IP 42.149.243.131, Port 22 2025-07-17 02:28:09,494 - DEBUG - VM ctest-TestRoutersBasic-57841475-77703225 is ready for SSH connections 2025-07-17 02:28:09,494 - INFO - Waiting for VM ctest-TestRoutersBasic-57841475-76235427 to be up.. 2025-07-17 02:28:09,579 - DEBUG - VM is in ACTIVE state now 2025-07-17 02:28:09,579 - INFO - VM name : ctest-TestRoutersBasic-57841475-76235427 2025-07-17 02:28:09,668 - DEBUG - VM ctest-TestRoutersBasic-57841475-76235427 ID is adf30b83-fd79-4c00-8da6-0f17cdde1645 2025-07-17 02:28:09,668 - DEBUG - VM ctest-TestRoutersBasic-57841475-76235427 launched on Node cn-jenkins-deploy-platform-ansible-os-3648-1 2025-07-17 02:28:09,750 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine/adf30b83-fd79-4c00-8da6-0f17cdde1645 2025-07-17 02:28:09,765 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine-interface/5a112f4b-fe8f-466e-95a9-cf1efb14f1a3 2025-07-17 02:28:11,018 - 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.67 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.645 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 = 0.645/2.655/4.666/2.010 ms') 2025-07-17 02:28:11,019 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-57841475-76235427 passed 2025-07-17 02:28:11,178 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-17 02:28:11,179 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-57841475-76235427, IP 85.232.178.3, Port 22 2025-07-17 02:28:11,334 - DEBUG - VM ctest-TestRoutersBasic-57841475-76235427 is ready for SSH connections 2025-07-17 02:28:11,334 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-17 02:28:11,334 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 85.232.178.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.242, gateway password: c0ntrail123 2025-07-17 02:28:11,334 - DEBUG - ping -s 56 -c 3 -W 1 85.232.178.3 2025-07-17 02:28:15,568 - DEBUG - PING 85.232.178.3 (85.232.178.3): 56 data bytes 64 bytes from 85.232.178.3: seq=0 ttl=62 time=7.538 ms 64 bytes from 85.232.178.3: seq=1 ttl=62 time=0.876 ms 64 bytes from 85.232.178.3: seq=2 ttl=62 time=0.970 ms --- 85.232.178.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.876/3.128/7.538 ms 2025-07-17 02:28:15,568 - INFO - Ping to IP 85.232.178.3 from VM ctest-TestRoutersBasic-57841475-77703225 passed 2025-07-17 02:28:15,568 - INFO - Deleting interface with subnet_id 98b3c726-3721-4d6d-8e53-2bf5c2645f1d, port_id None from router 6fe2d962-33ee-407f-8ccf-dae407e3a959 2025-07-17 02:28:15,789 - INFO - Deleting VM ctest-TestRoutersBasic-57841475-76235427 2025-07-17 02:28:15,877 - INFO - Deleting VM ctest-TestRoutersBasic-57841475-77703225 2025-07-17 02:28:15,960 - INFO - Deleting VN ctest-ext_vn-62395408 2025-07-17 02:28:16,034 - DEBUG - VN 8d346a23-2808-47ff-9fc5-f2fc500fd161 still in use: Unable to complete operation on network 8d346a23-2808-47ff-9fc5-f2fc500fd161. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-de45b809-3907-46a3-b364-4d4013240e20'] 2025-07-17 02:28:16,034 - WARNING - Deleting VN ctest-ext_vn-62395408 failed..Will retry 2025-07-17 02:28:18,148 - DEBUG - Response for deleting network () 2025-07-17 02:28:18,148 - INFO - Deleting VN ctest-vn-31638700 2025-07-17 02:28:18,273 - DEBUG - Response for deleting network () 2025-07-17 02:28:18,533 - DEBUG - No XMPP flaps were noticed during the test
2025-07-17 02:28:18,533 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27]
2025-07-17 02:28:18,533 - INFO - -------------------------------------------------------------------------------- 2025-07-17 02:28:19,283 - INFO - Deleted project: ctest-TestRoutersBasic-57841475, ID : 01c309e3-e9ac-4ae7-82fb-46d2f1e60a4c