2025-10-09 14:56:13,230 - INFO - Domain Default found not creating 2025-10-09 14:56:13,386 - INFO - Project ctest-TestRoutersBasic-52355081 not found, creating it 2025-10-09 14:56:13,838 - INFO - Created Project:ctest-TestRoutersBasic-52355081, ID : 0631b8d5-dad6-43a8-b83f-3e3e242b80bf 2025-10-09 14:56:15,227 - INFO - ================================================================================ 2025-10-09 14:56:15,227 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-10-09 14:56:15,227 - 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-09 14:56:15,484 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.25': '0'}} with 2025-10-09 14:56:15,484 - INFO - Initial checks done. Running the testcase now 2025-10-09 14:56:15,484 - INFO - 2025-10-09 14:56:16,185 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-52355081 2025-10-09 14:56:16,279 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-52355081 2025-10-09 14:56:16,599 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-52355081', 'default']} 2025-10-09 14:56:16,888 - DEBUG - Response for create_network : {'network': {'id': 'd4acbe00-6527-4d5c-89d1-e886bc131e04', 'name': 'ctest-vn-41116016', 'tenant_id': '0631b8d5dad643a8b83f3e3e242b80bf', 'project_id': '0631b8d5dad643a8b83f3e3e242b80bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-52355081', 'ctest-vn-41116016'], 'port_security_enabled': True, 'description': ''}} 2025-10-09 14:56:17,052 - DEBUG - Response for create_subnet : {'subnet': {'id': '9c3181d6-566f-4051-850a-d55e92d87197', 'name': '', 'tenant_id': '0631b8d5dad643a8b83f3e3e242b80bf', 'network_id': 'd4acbe00-6527-4d5c-89d1-e886bc131e04', 'ip_version': 4, 'cidr': '150.177.130.192/26', 'allocation_pools': [{'start': '150.177.130.194', 'end': '150.177.130.254'}], 'gateway_ip': '150.177.130.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.177.130.194', 'tags': [], 'project_id': '0631b8d5dad643a8b83f3e3e242b80bf'}} 2025-10-09 14:56:17,075 - INFO - Created VN ctest-vn-41116016 2025-10-09 14:56:17,127 - DEBUG - VN ctest-vn-41116016 UUID is d4acbe00-6527-4d5c-89d1-e886bc131e04 2025-10-09 14:56:17,445 - DEBUG - Response for create_network : {'network': {'id': 'a661170b-6373-472c-9bf5-cc000924bd2f', 'name': 'ctest-ext_vn-47110449', 'tenant_id': '0631b8d5dad643a8b83f3e3e242b80bf', 'project_id': '0631b8d5dad643a8b83f3e3e242b80bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-52355081', 'ctest-ext_vn-47110449'], 'port_security_enabled': True, 'description': ''}} 2025-10-09 14:56:17,681 - DEBUG - Response for create_subnet : {'subnet': {'id': '8f531637-9f8c-4236-9560-7b78c29d1b4f', 'name': '', 'tenant_id': '0631b8d5dad643a8b83f3e3e242b80bf', 'network_id': 'a661170b-6373-472c-9bf5-cc000924bd2f', 'ip_version': 4, 'cidr': '61.71.207.192/26', 'allocation_pools': [{'start': '61.71.207.194', 'end': '61.71.207.254'}], 'gateway_ip': '61.71.207.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '61.71.207.194', 'tags': [], 'project_id': '0631b8d5dad643a8b83f3e3e242b80bf'}} 2025-10-09 14:56:17,699 - INFO - Created VN ctest-ext_vn-47110449 2025-10-09 14:56:17,755 - DEBUG - VN ctest-ext_vn-47110449 UUID is a661170b-6373-472c-9bf5-cc000924bd2f 2025-10-09 14:56:17,953 - DEBUG - Services list from nova: [, , ] 2025-10-09 14:56:18,943 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4265-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4265-1) 2025-10-09 14:56:20,078 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4265-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4265-1) 2025-10-09 14:56:20,149 - INFO - Setting gateway for router bec1c54c-302c-4d6c-a047-0261a2f26e87 to network a661170b-6373-472c-9bf5-cc000924bd2f 2025-10-09 14:56:20,209 - INFO - Adding interface with subnet_id 9c3181d6-566f-4051-850a-d55e92d87197, port_id None to router bec1c54c-302c-4d6c-a047-0261a2f26e87 2025-10-09 14:56:20,534 - INFO - Waiting for VM ctest-TestRoutersBasic-52355081-95116257 to be up.. 2025-10-09 14:56:20,680 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-09 14:56:25,765 - DEBUG - VM is in ACTIVE state now 2025-10-09 14:56:25,765 - INFO - VM name : ctest-TestRoutersBasic-52355081-95116257 2025-10-09 14:56:25,843 - DEBUG - VM ctest-TestRoutersBasic-52355081-95116257 ID is 248a1a9b-b32b-4e44-a7ac-2482d5d0ecff 2025-10-09 14:56:25,863 - DEBUG - VM ctest-TestRoutersBasic-52355081-95116257 launched on Node cn-jenkins-deploy-platform-ansible-os-4265-1 2025-10-09 14:56:25,935 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/248a1a9b-b32b-4e44-a7ac-2482d5d0ecff 2025-10-09 14:56:26,251 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/248a1a9b-b32b-4e44-a7ac-2482d5d0ecff 2025-10-09 14:56:26,290 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/0dcc6c6a-ab40-486c-b2c3-2f1862c27980 2025-10-09 14:56:29,540 - 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 1015ms') 2025-10-09 14:56:29,540 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-52355081-95116257 failed! 2025-10-09 14:56:29,595 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-52355081:ctest-vn-41116016 is 150.177.130.193 and allocation pool is NOT set 2025-10-09 14:56:31,653 - 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.05 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.502 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.502/1.777/3.052/1.275 ms') 2025-10-09 14:56:31,653 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-52355081-95116257 passed 2025-10-09 14:56:31,803 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 14:56:31,803 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-52355081-95116257, IP 150.177.130.195, Port 22 2025-10-09 14:56:31,959 - DEBUG - VM ctest-TestRoutersBasic-52355081-95116257 is ready for SSH connections 2025-10-09 14:56:31,959 - INFO - Waiting for VM ctest-TestRoutersBasic-52355081-62905606 to be up.. 2025-10-09 14:56:32,029 - DEBUG - VM is in ACTIVE state now 2025-10-09 14:56:32,029 - INFO - VM name : ctest-TestRoutersBasic-52355081-62905606 2025-10-09 14:56:32,099 - DEBUG - VM ctest-TestRoutersBasic-52355081-62905606 ID is 68699691-ef50-4cde-b8df-6eca4b8ab264 2025-10-09 14:56:32,099 - DEBUG - VM ctest-TestRoutersBasic-52355081-62905606 launched on Node cn-jenkins-deploy-platform-ansible-os-4265-1 2025-10-09 14:56:32,168 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/68699691-ef50-4cde-b8df-6eca4b8ab264 2025-10-09 14:56:32,176 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/9c4114ad-9d3c-44df-8509-8048dc98895c 2025-10-09 14:56:33,406 - 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.49 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.60 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 = 1.597/3.045/4.494/1.448 ms') 2025-10-09 14:56:33,406 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-52355081-62905606 passed 2025-10-09 14:56:33,599 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 14:56:33,599 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-52355081-62905606, IP 61.71.207.195, Port 22 2025-10-09 14:56:33,754 - DEBUG - VM ctest-TestRoutersBasic-52355081-62905606 is ready for SSH connections 2025-10-09 14:56:33,754 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-09 14:56:33,754 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 61.71.207.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2025-10-09 14:56:33,754 - DEBUG - ping -s 56 -c 3 -W 1 61.71.207.195 2025-10-09 14:56:37,472 - DEBUG - PING 61.71.207.195 (61.71.207.195): 56 data bytes 64 bytes from 61.71.207.195: seq=0 ttl=62 time=7.392 ms 64 bytes from 61.71.207.195: seq=1 ttl=62 time=0.879 ms 64 bytes from 61.71.207.195: seq=2 ttl=62 time=0.815 ms --- 61.71.207.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.815/3.028/7.392 ms 2025-10-09 14:56:37,472 - INFO - Ping to IP 61.71.207.195 from VM ctest-TestRoutersBasic-52355081-95116257 passed 2025-10-09 14:56:37,472 - INFO - Deleting interface with subnet_id 9c3181d6-566f-4051-850a-d55e92d87197, port_id None from router bec1c54c-302c-4d6c-a047-0261a2f26e87 2025-10-09 14:56:37,660 - INFO - Deleting VM ctest-TestRoutersBasic-52355081-62905606 2025-10-09 14:56:37,739 - INFO - Deleting VM ctest-TestRoutersBasic-52355081-95116257 2025-10-09 14:56:37,819 - INFO - Deleting VN ctest-ext_vn-47110449 2025-10-09 14:56:37,880 - DEBUG - VN a661170b-6373-472c-9bf5-cc000924bd2f still in use: Unable to complete operation on network a661170b-6373-472c-9bf5-cc000924bd2f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e1ac7a1e-8791-4f49-b7da-daa5a77f9872'] 2025-10-09 14:56:37,880 - WARNING - Deleting VN ctest-ext_vn-47110449 failed..Will retry 2025-10-09 14:56:39,979 - DEBUG - Response for deleting network () 2025-10-09 14:56:39,979 - INFO - Deleting VN ctest-vn-41116016 2025-10-09 14:56:40,074 - DEBUG - Response for deleting network () 2025-10-09 14:56:40,328 - DEBUG - No XMPP flaps were noticed during the test
2025-10-09 14:56:40,328 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25]
2025-10-09 14:56:40,328 - INFO - -------------------------------------------------------------------------------- 2025-10-09 14:56:41,010 - INFO - Deleted project: ctest-TestRoutersBasic-52355081, ID : 0631b8d5-dad6-43a8-b83f-3e3e242b80bf