2025-07-10 02:12:30,492 - INFO - Domain Default found not creating 2025-07-10 02:12:30,657 - INFO - Project ctest-TestRoutersBasic-22767154 not found, creating it 2025-07-10 02:12:31,140 - INFO - Created Project:ctest-TestRoutersBasic-22767154, ID : f9b5c42f-cc8d-48cf-aff8-7a9c45d86b05 2025-07-10 02:12:32,583 - INFO - ================================================================================ 2025-07-10 02:12:32,583 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-07-10 02:12:32,583 - 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-10 02:12:32,843 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.192': '0'}} with 2025-07-10 02:12:32,843 - INFO - Initial checks done. Running the testcase now 2025-07-10 02:12:32,843 - INFO - 2025-07-10 02:12:33,549 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-22767154 2025-07-10 02:12:33,649 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-22767154 2025-07-10 02:12:33,973 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-22767154', 'default']} 2025-07-10 02:12:34,281 - DEBUG - Response for create_network : {'network': {'id': '8c78f6c5-2b36-46d3-aa00-999b5b9b4d4f', 'name': 'ctest-vn-50413096', 'tenant_id': 'f9b5c42fcc8d48cfaff87a9c45d86b05', 'project_id': 'f9b5c42fcc8d48cfaff87a9c45d86b05', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-22767154', 'ctest-vn-50413096'], 'port_security_enabled': True, 'description': ''}} 2025-07-10 02:12:34,442 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dadb151c-d428-4930-b6e8-e799c3779679', 'name': '', 'tenant_id': 'f9b5c42fcc8d48cfaff87a9c45d86b05', 'network_id': '8c78f6c5-2b36-46d3-aa00-999b5b9b4d4f', 'ip_version': 4, 'cidr': '115.43.163.0/26', 'allocation_pools': [{'start': '115.43.163.2', 'end': '115.43.163.62'}], 'gateway_ip': '115.43.163.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.43.163.2', 'tags': [], 'project_id': 'f9b5c42fcc8d48cfaff87a9c45d86b05'}} 2025-07-10 02:12:34,460 - INFO - Created VN ctest-vn-50413096 2025-07-10 02:12:34,513 - DEBUG - VN ctest-vn-50413096 UUID is 8c78f6c5-2b36-46d3-aa00-999b5b9b4d4f 2025-07-10 02:12:34,850 - DEBUG - Response for create_network : {'network': {'id': 'cac88b8c-fb49-41d0-b66a-d0649660e193', 'name': 'ctest-ext_vn-39825592', 'tenant_id': 'f9b5c42fcc8d48cfaff87a9c45d86b05', 'project_id': 'f9b5c42fcc8d48cfaff87a9c45d86b05', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-22767154', 'ctest-ext_vn-39825592'], 'port_security_enabled': True, 'description': ''}} 2025-07-10 02:12:35,025 - DEBUG - Response for create_subnet : {'subnet': {'id': '8048e7ae-3f70-49da-9cc5-5dc5d60c4a43', 'name': '', 'tenant_id': 'f9b5c42fcc8d48cfaff87a9c45d86b05', 'network_id': 'cac88b8c-fb49-41d0-b66a-d0649660e193', 'ip_version': 4, 'cidr': '197.167.7.192/26', 'allocation_pools': [{'start': '197.167.7.194', 'end': '197.167.7.254'}], 'gateway_ip': '197.167.7.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.167.7.194', 'tags': [], 'project_id': 'f9b5c42fcc8d48cfaff87a9c45d86b05'}} 2025-07-10 02:12:35,044 - INFO - Created VN ctest-ext_vn-39825592 2025-07-10 02:12:35,101 - DEBUG - VN ctest-ext_vn-39825592 UUID is cac88b8c-fb49-41d0-b66a-d0649660e193 2025-07-10 02:12:35,271 - DEBUG - Services list from nova: [, , ] 2025-07-10 02:12:36,273 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3622-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3622-1) 2025-07-10 02:12:37,407 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3622-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3622-1) 2025-07-10 02:12:37,484 - INFO - Setting gateway for router f101aace-ce34-44e3-8356-d0f63296e666 to network cac88b8c-fb49-41d0-b66a-d0649660e193 2025-07-10 02:12:37,546 - INFO - Adding interface with subnet_id dadb151c-d428-4930-b6e8-e799c3779679, port_id None to router f101aace-ce34-44e3-8356-d0f63296e666 2025-07-10 02:12:37,918 - INFO - Waiting for VM ctest-TestRoutersBasic-22767154-51037412 to be up.. 2025-07-10 02:12:38,064 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-10 02:12:43,144 - DEBUG - VM is in ACTIVE state now 2025-07-10 02:12:43,144 - INFO - VM name : ctest-TestRoutersBasic-22767154-51037412 2025-07-10 02:12:43,215 - DEBUG - VM ctest-TestRoutersBasic-22767154-51037412 ID is d6082483-90e3-42a7-a732-27721c8f13bc 2025-07-10 02:12:43,236 - DEBUG - VM ctest-TestRoutersBasic-22767154-51037412 launched on Node cn-jenkins-deploy-platform-ansible-os-3622-1 2025-07-10 02:12:43,320 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine/d6082483-90e3-42a7-a732-27721c8f13bc 2025-07-10 02:12:43,617 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine/d6082483-90e3-42a7-a732-27721c8f13bc 2025-07-10 02:12:43,651 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine-interface/e2d4f558-04c0-454c-852a-8fd7f5a52073 2025-07-10 02:12:46,922 - 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 1026ms') 2025-07-10 02:12:46,922 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-22767154-51037412 failed! 2025-07-10 02:12:46,981 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-22767154:ctest-vn-50413096 is 115.43.163.1 and allocation pool is NOT set 2025-07-10 02:12:49,045 - 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.68 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.434 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.434/2.057/3.680/1.623 ms') 2025-07-10 02:12:49,045 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-22767154-51037412 passed 2025-07-10 02:12:49,197 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-10 02:12:49,197 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-22767154-51037412, IP 115.43.163.3, Port 22 2025-07-10 02:12:49,370 - DEBUG - VM ctest-TestRoutersBasic-22767154-51037412 is ready for SSH connections 2025-07-10 02:12:49,370 - INFO - Waiting for VM ctest-TestRoutersBasic-22767154-22969935 to be up.. 2025-07-10 02:12:49,446 - DEBUG - VM is in ACTIVE state now 2025-07-10 02:12:49,446 - INFO - VM name : ctest-TestRoutersBasic-22767154-22969935 2025-07-10 02:12:49,519 - DEBUG - VM ctest-TestRoutersBasic-22767154-22969935 ID is bf25df35-0862-4079-8eaa-48bede566873 2025-07-10 02:12:49,520 - DEBUG - VM ctest-TestRoutersBasic-22767154-22969935 launched on Node cn-jenkins-deploy-platform-ansible-os-3622-1 2025-07-10 02:12:49,590 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine/bf25df35-0862-4079-8eaa-48bede566873 2025-07-10 02:12:49,601 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-machine-interface/7b0b8202-79c8-4659-bfb6-35a1d37eaa91 2025-07-10 02:12:50,844 - 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=2.91 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.408 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.408/1.656/2.905/1.248 ms') 2025-07-10 02:12:50,844 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-22767154-22969935 passed 2025-07-10 02:12:50,997 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-10 02:12:50,997 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-22767154-22969935, IP 197.167.7.195, Port 22 2025-07-10 02:12:51,148 - DEBUG - VM ctest-TestRoutersBasic-22767154-22969935 is ready for SSH connections 2025-07-10 02:12:51,148 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-10 02:12:51,149 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 197.167.7.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.137, gateway password: c0ntrail123 2025-07-10 02:12:51,149 - DEBUG - ping -s 56 -c 3 -W 1 197.167.7.195 2025-07-10 02:12:55,197 - DEBUG - PING 197.167.7.195 (197.167.7.195): 56 data bytes 64 bytes from 197.167.7.195: seq=0 ttl=62 time=5.372 ms 64 bytes from 197.167.7.195: seq=1 ttl=62 time=1.085 ms 64 bytes from 197.167.7.195: seq=2 ttl=62 time=0.987 ms --- 197.167.7.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.987/2.481/5.372 ms 2025-07-10 02:12:55,198 - INFO - Ping to IP 197.167.7.195 from VM ctest-TestRoutersBasic-22767154-51037412 passed 2025-07-10 02:12:55,198 - INFO - Deleting interface with subnet_id dadb151c-d428-4930-b6e8-e799c3779679, port_id None from router f101aace-ce34-44e3-8356-d0f63296e666 2025-07-10 02:12:55,389 - INFO - Deleting VM ctest-TestRoutersBasic-22767154-22969935 2025-07-10 02:12:55,464 - INFO - Deleting VM ctest-TestRoutersBasic-22767154-51037412 2025-07-10 02:12:55,543 - INFO - Deleting VN ctest-ext_vn-39825592 2025-07-10 02:12:55,617 - DEBUG - VN cac88b8c-fb49-41d0-b66a-d0649660e193 still in use: Unable to complete operation on network cac88b8c-fb49-41d0-b66a-d0649660e193. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ca1e1ca8-8c88-4ad8-85d5-292004d2e96d'] 2025-07-10 02:12:55,617 - WARNING - Deleting VN ctest-ext_vn-39825592 failed..Will retry 2025-07-10 02:12:57,720 - DEBUG - Response for deleting network () 2025-07-10 02:12:57,720 - INFO - Deleting VN ctest-vn-50413096 2025-07-10 02:12:57,826 - DEBUG - Response for deleting network () 2025-07-10 02:12:58,078 - DEBUG - No XMPP flaps were noticed during the test 2025-07-10 02:12:58,078 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-07-10 02:12:58,078 - INFO - -------------------------------------------------------------------------------- 2025-07-10 02:12:58,748 - INFO - Deleted project: ctest-TestRoutersBasic-22767154, ID : f9b5c42f-cc8d-48cf-aff8-7a9c45d86b05