2025-08-25 12:30:26,946 - INFO - Domain Default found not creating 2025-08-25 12:30:27,084 - INFO - Project ctest-TestRoutersBasic-40822331 not found, creating it 2025-08-25 12:30:27,586 - INFO - Created Project:ctest-TestRoutersBasic-40822331, ID : f393f0a5-d88e-4538-bd7f-7e45cae1c6e7 2025-08-25 12:30:29,075 - INFO - ================================================================================ 2025-08-25 12:30:29,075 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-08-25 12:30:29,075 - 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-08-25 12:30:29,335 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with 2025-08-25 12:30:29,335 - INFO - Initial checks done. Running the testcase now 2025-08-25 12:30:29,335 - INFO - 2025-08-25 12:30:30,129 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-40822331 2025-08-25 12:30:30,233 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-40822331 2025-08-25 12:30:30,576 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-40822331', 'default']} 2025-08-25 12:30:30,931 - DEBUG - Response for create_network : {'network': {'id': '67227111-e807-4cf3-813d-e5549f530ff4', 'name': 'ctest-vn-65444169', 'tenant_id': 'f393f0a5d88e4538bd7f7e45cae1c6e7', 'project_id': 'f393f0a5d88e4538bd7f7e45cae1c6e7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-40822331', 'ctest-vn-65444169'], 'port_security_enabled': True, 'description': ''}} 2025-08-25 12:30:31,131 - DEBUG - Response for create_subnet : {'subnet': {'id': '9c9ef6d9-35a1-41e3-8fa6-319b289e49f6', 'name': '', 'tenant_id': 'f393f0a5d88e4538bd7f7e45cae1c6e7', 'network_id': '67227111-e807-4cf3-813d-e5549f530ff4', 'ip_version': 4, 'cidr': '69.0.235.128/26', 'allocation_pools': [{'start': '69.0.235.130', 'end': '69.0.235.190'}], 'gateway_ip': '69.0.235.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '69.0.235.130', 'tags': [], 'project_id': 'f393f0a5d88e4538bd7f7e45cae1c6e7'}} 2025-08-25 12:30:31,155 - INFO - Created VN ctest-vn-65444169 2025-08-25 12:30:31,216 - DEBUG - VN ctest-vn-65444169 UUID is 67227111-e807-4cf3-813d-e5549f530ff4 2025-08-25 12:30:31,613 - DEBUG - Response for create_network : {'network': {'id': 'bb827624-66ca-4270-ba8d-c491c8e9e2de', 'name': 'ctest-ext_vn-47335376', 'tenant_id': 'f393f0a5d88e4538bd7f7e45cae1c6e7', 'project_id': 'f393f0a5d88e4538bd7f7e45cae1c6e7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-40822331', 'ctest-ext_vn-47335376'], 'port_security_enabled': True, 'description': ''}} 2025-08-25 12:30:31,809 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd2b93186-de04-4e2b-ad3b-7b69b09547fd', 'name': '', 'tenant_id': 'f393f0a5d88e4538bd7f7e45cae1c6e7', 'network_id': 'bb827624-66ca-4270-ba8d-c491c8e9e2de', 'ip_version': 4, 'cidr': '140.119.144.192/26', 'allocation_pools': [{'start': '140.119.144.194', 'end': '140.119.144.254'}], 'gateway_ip': '140.119.144.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '140.119.144.194', 'tags': [], 'project_id': 'f393f0a5d88e4538bd7f7e45cae1c6e7'}} 2025-08-25 12:30:31,831 - INFO - Created VN ctest-ext_vn-47335376 2025-08-25 12:30:31,884 - DEBUG - VN ctest-ext_vn-47335376 UUID is bb827624-66ca-4270-ba8d-c491c8e9e2de 2025-08-25 12:30:32,054 - DEBUG - Services list from nova: [, , ] 2025-08-25 12:30:33,171 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3919-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3919-1) 2025-08-25 12:30:34,367 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3919-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3919-1) 2025-08-25 12:30:34,471 - INFO - Setting gateway for router 165cb6d0-9199-40f1-9937-59c630dfcf87 to network bb827624-66ca-4270-ba8d-c491c8e9e2de 2025-08-25 12:30:34,553 - INFO - Adding interface with subnet_id 9c9ef6d9-35a1-41e3-8fa6-319b289e49f6, port_id None to router 165cb6d0-9199-40f1-9937-59c630dfcf87 2025-08-25 12:30:35,107 - INFO - Waiting for VM ctest-TestRoutersBasic-40822331-77232383 to be up.. 2025-08-25 12:30:35,267 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-25 12:30:40,357 - DEBUG - VM is in ACTIVE state now 2025-08-25 12:30:40,357 - INFO - VM name : ctest-TestRoutersBasic-40822331-77232383 2025-08-25 12:30:40,452 - DEBUG - VM ctest-TestRoutersBasic-40822331-77232383 ID is c3284fa5-6191-484a-a180-28fb25c93632 2025-08-25 12:30:40,480 - DEBUG - VM ctest-TestRoutersBasic-40822331-77232383 launched on Node cn-jenkins-deploy-platform-ansible-os-3919-1 2025-08-25 12:30:40,572 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/c3284fa5-6191-484a-a180-28fb25c93632 2025-08-25 12:30:40,898 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/c3284fa5-6191-484a-a180-28fb25c93632 2025-08-25 12:30:40,932 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/c48a97a0-ec77-4b3e-989c-56174b766a85 2025-08-25 12:30:44,205 - 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 1031ms') 2025-08-25 12:30:44,205 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-40822331-77232383 failed! 2025-08-25 12:30:44,268 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-40822331:ctest-vn-65444169 is 69.0.235.129 and allocation pool is NOT set 2025-08-25 12:30:46,333 - 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.15 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.563 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.563/1.854/3.145/1.291 ms') 2025-08-25 12:30:46,333 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-40822331-77232383 passed 2025-08-25 12:30:46,492 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-25 12:30:46,492 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-40822331-77232383, IP 69.0.235.131, Port 22 2025-08-25 12:30:46,674 - DEBUG - VM ctest-TestRoutersBasic-40822331-77232383 is ready for SSH connections 2025-08-25 12:30:46,674 - INFO - Waiting for VM ctest-TestRoutersBasic-40822331-41811613 to be up.. 2025-08-25 12:30:46,770 - DEBUG - VM is in ACTIVE state now 2025-08-25 12:30:46,770 - INFO - VM name : ctest-TestRoutersBasic-40822331-41811613 2025-08-25 12:30:46,856 - DEBUG - VM ctest-TestRoutersBasic-40822331-41811613 ID is c408201a-6887-4b19-b057-be90f24b8e63 2025-08-25 12:30:46,856 - DEBUG - VM ctest-TestRoutersBasic-40822331-41811613 launched on Node cn-jenkins-deploy-platform-ansible-os-3919-1 2025-08-25 12:30:46,931 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/c408201a-6887-4b19-b057-be90f24b8e63 2025-08-25 12:30:46,943 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/8d95383d-5e83-4e49-8a5e-55e46a5f9981 2025-08-25 12:30:48,192 - 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=5.74 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.32 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 = 1.324/3.530/5.737/2.206 ms') 2025-08-25 12:30:48,192 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-40822331-41811613 passed 2025-08-25 12:30:48,352 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-25 12:30:48,352 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-40822331-41811613, IP 140.119.144.195, Port 22 2025-08-25 12:30:48,512 - DEBUG - VM ctest-TestRoutersBasic-40822331-41811613 is ready for SSH connections 2025-08-25 12:30:48,512 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-25 12:30:48,512 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 140.119.144.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-08-25 12:30:48,512 - DEBUG - ping -s 56 -c 3 -W 1 140.119.144.195 2025-08-25 12:30:52,172 - DEBUG - PING 140.119.144.195 (140.119.144.195): 56 data bytes 64 bytes from 140.119.144.195: seq=0 ttl=62 time=6.535 ms 64 bytes from 140.119.144.195: seq=1 ttl=62 time=0.928 ms 64 bytes from 140.119.144.195: seq=2 ttl=62 time=0.863 ms --- 140.119.144.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.863/2.775/6.535 ms 2025-08-25 12:30:52,172 - INFO - Ping to IP 140.119.144.195 from VM ctest-TestRoutersBasic-40822331-77232383 passed 2025-08-25 12:30:52,172 - INFO - Deleting interface with subnet_id 9c9ef6d9-35a1-41e3-8fa6-319b289e49f6, port_id None from router 165cb6d0-9199-40f1-9937-59c630dfcf87 2025-08-25 12:30:52,396 - INFO - Deleting VM ctest-TestRoutersBasic-40822331-41811613 2025-08-25 12:30:52,462 - INFO - Deleting VM ctest-TestRoutersBasic-40822331-77232383 2025-08-25 12:30:52,569 - INFO - Deleting VN ctest-ext_vn-47335376 2025-08-25 12:30:52,656 - DEBUG - VN bb827624-66ca-4270-ba8d-c491c8e9e2de still in use: Unable to complete operation on network bb827624-66ca-4270-ba8d-c491c8e9e2de. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-bca3a41c-e304-4b5a-bddc-9ada6ab539ea'] 2025-08-25 12:30:52,656 - WARNING - Deleting VN ctest-ext_vn-47335376 failed..Will retry 2025-08-25 12:30:54,773 - DEBUG - Response for deleting network () 2025-08-25 12:30:54,774 - INFO - Deleting VN ctest-vn-65444169 2025-08-25 12:30:55,008 - DEBUG - Response for deleting network () 2025-08-25 12:30:55,266 - DEBUG - No XMPP flaps were noticed during the test 2025-08-25 12:30:55,267 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-08-25 12:30:55,267 - INFO - -------------------------------------------------------------------------------- 2025-08-25 12:30:55,983 - INFO - Deleted project: ctest-TestRoutersBasic-40822331, ID : f393f0a5-d88e-4538-bd7f-7e45cae1c6e7