2025-10-24 13:19:47,473 - INFO - Domain Default found not creating 2025-10-24 13:19:47,616 - INFO - Project ctest-TestRoutersBasic-08305575 not found, creating it 2025-10-24 13:19:48,109 - INFO - Created Project:ctest-TestRoutersBasic-08305575, ID : 7c2156af-f462-446c-a139-39691d6032d6 2025-10-24 13:19:49,546 - INFO - ================================================================================ 2025-10-24 13:19:49,547 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-10-24 13:19:49,547 - 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-24 13:19:49,808 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-24 13:19:49,808 - INFO - Initial checks done. Running the testcase now 2025-10-24 13:19:49,808 - INFO - 2025-10-24 13:19:50,486 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-08305575 2025-10-24 13:19:50,585 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-08305575 2025-10-24 13:19:50,904 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-08305575', 'default']} 2025-10-24 13:19:51,171 - DEBUG - Response for create_network : {'network': {'id': 'f2ed3ab4-b545-41fc-a288-93423f9c271b', 'name': 'ctest-vn-58043850', 'tenant_id': '7c2156aff462446ca13939691d6032d6', 'project_id': '7c2156aff462446ca13939691d6032d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-08305575', 'ctest-vn-58043850'], 'port_security_enabled': True, 'description': ''}} 2025-10-24 13:19:51,365 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c5d61981-7219-4485-8d73-c999e4c5d538', 'name': '', 'tenant_id': '7c2156aff462446ca13939691d6032d6', 'network_id': 'f2ed3ab4-b545-41fc-a288-93423f9c271b', 'ip_version': 4, 'cidr': '23.202.144.0/26', 'allocation_pools': [{'start': '23.202.144.2', 'end': '23.202.144.62'}], 'gateway_ip': '23.202.144.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.202.144.2', 'tags': [], 'project_id': '7c2156aff462446ca13939691d6032d6'}} 2025-10-24 13:19:51,381 - INFO - Created VN ctest-vn-58043850 2025-10-24 13:19:51,437 - DEBUG - VN ctest-vn-58043850 UUID is f2ed3ab4-b545-41fc-a288-93423f9c271b 2025-10-24 13:19:51,761 - DEBUG - Response for create_network : {'network': {'id': '1ff583a7-a7ae-4394-a677-6a1791c5dc57', 'name': 'ctest-ext_vn-20817234', 'tenant_id': '7c2156aff462446ca13939691d6032d6', 'project_id': '7c2156aff462446ca13939691d6032d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-08305575', 'ctest-ext_vn-20817234'], 'port_security_enabled': True, 'description': ''}} 2025-10-24 13:19:51,907 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f214a0d9-02c5-4e4f-be38-ae0247f22cb3', 'name': '', 'tenant_id': '7c2156aff462446ca13939691d6032d6', 'network_id': '1ff583a7-a7ae-4394-a677-6a1791c5dc57', 'ip_version': 4, 'cidr': '222.144.7.128/26', 'allocation_pools': [{'start': '222.144.7.130', 'end': '222.144.7.190'}], 'gateway_ip': '222.144.7.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.144.7.130', 'tags': [], 'project_id': '7c2156aff462446ca13939691d6032d6'}} 2025-10-24 13:19:51,927 - INFO - Created VN ctest-ext_vn-20817234 2025-10-24 13:19:51,977 - DEBUG - VN ctest-ext_vn-20817234 UUID is 1ff583a7-a7ae-4394-a677-6a1791c5dc57 2025-10-24 13:19:52,178 - DEBUG - Services list from nova: [, , ] 2025-10-24 13:19:53,174 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4476-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4476-1) 2025-10-24 13:19:54,308 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4476-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4476-1) 2025-10-24 13:19:54,385 - INFO - Setting gateway for router 9e879c9d-1e3f-4b24-aba4-dec2f3820248 to network 1ff583a7-a7ae-4394-a677-6a1791c5dc57 2025-10-24 13:19:54,435 - INFO - Adding interface with subnet_id c5d61981-7219-4485-8d73-c999e4c5d538, port_id None to router 9e879c9d-1e3f-4b24-aba4-dec2f3820248 2025-10-24 13:19:54,712 - INFO - Waiting for VM ctest-TestRoutersBasic-08305575-46956079 to be up.. 2025-10-24 13:19:54,830 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-24 13:19:59,951 - DEBUG - VM is in ACTIVE state now 2025-10-24 13:19:59,951 - INFO - VM name : ctest-TestRoutersBasic-08305575-46956079 2025-10-24 13:20:00,049 - DEBUG - VM ctest-TestRoutersBasic-08305575-46956079 ID is 0808b9ec-64d0-4b1d-90ce-81b97f24b19a 2025-10-24 13:20:00,071 - DEBUG - VM ctest-TestRoutersBasic-08305575-46956079 launched on Node cn-jenkins-deploy-platform-ansible-os-4476-1 2025-10-24 13:20:00,141 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/0808b9ec-64d0-4b1d-90ce-81b97f24b19a 2025-10-24 13:20:00,436 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/0808b9ec-64d0-4b1d-90ce-81b97f24b19a 2025-10-24 13:20:00,468 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/eefca892-ceab-4e3f-915d-b831a343d911 2025-10-24 13:20:03,715 - 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 1012ms') 2025-10-24 13:20:03,715 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-08305575-46956079 failed! 2025-10-24 13:20:03,769 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-08305575:ctest-vn-58043850 is 23.202.144.1 and allocation pool is NOT set 2025-10-24 13:20:05,827 - 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=2.79 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.602 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.602/1.697/2.793/1.095 ms') 2025-10-24 13:20:05,827 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-08305575-46956079 passed 2025-10-24 13:20:05,985 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-24 13:20:05,985 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-08305575-46956079, IP 23.202.144.3, Port 22 2025-10-24 13:20:06,144 - DEBUG - VM ctest-TestRoutersBasic-08305575-46956079 is ready for SSH connections 2025-10-24 13:20:06,144 - INFO - Waiting for VM ctest-TestRoutersBasic-08305575-33713337 to be up.. 2025-10-24 13:20:06,219 - DEBUG - VM is in ACTIVE state now 2025-10-24 13:20:06,219 - INFO - VM name : ctest-TestRoutersBasic-08305575-33713337 2025-10-24 13:20:06,290 - DEBUG - VM ctest-TestRoutersBasic-08305575-33713337 ID is c88807bc-2b31-4adb-8c82-cde3e73fd276 2025-10-24 13:20:06,290 - DEBUG - VM ctest-TestRoutersBasic-08305575-33713337 launched on Node cn-jenkins-deploy-platform-ansible-os-4476-1 2025-10-24 13:20:06,366 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/c88807bc-2b31-4adb-8c82-cde3e73fd276 2025-10-24 13:20:06,375 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/b6f0191e-5c1d-4aef-9e24-ee7a37f90251 2025-10-24 13:20:07,614 - 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.49 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.536 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.536/2.013/3.491/1.477 ms') 2025-10-24 13:20:07,614 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-08305575-33713337 passed 2025-10-24 13:20:07,765 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-24 13:20:07,765 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-08305575-33713337, IP 222.144.7.131, Port 22 2025-10-24 13:20:07,928 - DEBUG - VM ctest-TestRoutersBasic-08305575-33713337 is ready for SSH connections 2025-10-24 13:20:07,928 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-24 13:20:07,928 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 222.144.7.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-10-24 13:20:07,928 - DEBUG - ping -s 56 -c 3 -W 1 222.144.7.131 2025-10-24 13:20:11,927 - DEBUG - PING 222.144.7.131 (222.144.7.131): 56 data bytes 64 bytes from 222.144.7.131: seq=0 ttl=62 time=6.821 ms 64 bytes from 222.144.7.131: seq=1 ttl=62 time=1.027 ms 64 bytes from 222.144.7.131: seq=2 ttl=62 time=0.968 ms --- 222.144.7.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.968/2.938/6.821 ms 2025-10-24 13:20:11,927 - INFO - Ping to IP 222.144.7.131 from VM ctest-TestRoutersBasic-08305575-46956079 passed 2025-10-24 13:20:11,927 - INFO - Deleting interface with subnet_id c5d61981-7219-4485-8d73-c999e4c5d538, port_id None from router 9e879c9d-1e3f-4b24-aba4-dec2f3820248 2025-10-24 13:20:12,115 - INFO - Deleting VM ctest-TestRoutersBasic-08305575-33713337 2025-10-24 13:20:12,184 - INFO - Deleting VM ctest-TestRoutersBasic-08305575-46956079 2025-10-24 13:20:12,264 - INFO - Deleting VN ctest-ext_vn-20817234 2025-10-24 13:20:12,322 - DEBUG - VN 1ff583a7-a7ae-4394-a677-6a1791c5dc57 still in use: Unable to complete operation on network 1ff583a7-a7ae-4394-a677-6a1791c5dc57. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-980b08a3-6891-4f74-b9dd-e737647e2783'] 2025-10-24 13:20:12,323 - WARNING - Deleting VN ctest-ext_vn-20817234 failed..Will retry 2025-10-24 13:20:14,431 - DEBUG - Response for deleting network () 2025-10-24 13:20:14,432 - INFO - Deleting VN ctest-vn-58043850 2025-10-24 13:20:14,528 - DEBUG - Response for deleting network () 2025-10-24 13:20:14,781 - DEBUG - No XMPP flaps were noticed during the test 2025-10-24 13:20:14,782 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:25] 2025-10-24 13:20:14,782 - INFO - -------------------------------------------------------------------------------- 2025-10-24 13:20:15,456 - INFO - Deleted project: ctest-TestRoutersBasic-08305575, ID : 7c2156af-f462-446c-a139-39691d6032d6