2025-08-22 13:33:20,440 - INFO - Domain Default found not creating 2025-08-22 13:33:20,563 - INFO - Project ctest-TestRoutersBasic-30984684 not found, creating it 2025-08-22 13:33:21,026 - INFO - Created Project:ctest-TestRoutersBasic-30984684, ID : 88f0fbbb-6210-42a7-b798-8be69c73a12d 2025-08-22 13:33:22,343 - INFO - ================================================================================ 2025-08-22 13:33:22,343 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-08-22 13:33:22,343 - 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-22 13:33:22,592 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with 2025-08-22 13:33:22,592 - INFO - Initial checks done. Running the testcase now 2025-08-22 13:33:22,592 - INFO - 2025-08-22 13:33:23,266 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-30984684 2025-08-22 13:33:23,363 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-30984684 2025-08-22 13:33:23,678 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-30984684', 'default']} 2025-08-22 13:33:24,017 - DEBUG - Response for create_network : {'network': {'id': 'e75d5c46-33a2-4afe-9fc0-abdd484f3203', 'name': 'ctest-vn-91597686', 'tenant_id': '88f0fbbb621042a7b7988be69c73a12d', 'project_id': '88f0fbbb621042a7b7988be69c73a12d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-30984684', 'ctest-vn-91597686'], 'port_security_enabled': True, 'description': ''}} 2025-08-22 13:33:24,185 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b58394c4-c303-4d7e-bd7b-628205868044', 'name': '', 'tenant_id': '88f0fbbb621042a7b7988be69c73a12d', 'network_id': 'e75d5c46-33a2-4afe-9fc0-abdd484f3203', 'ip_version': 4, 'cidr': '137.29.207.0/26', 'allocation_pools': [{'start': '137.29.207.2', 'end': '137.29.207.62'}], 'gateway_ip': '137.29.207.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.29.207.2', 'tags': [], 'project_id': '88f0fbbb621042a7b7988be69c73a12d'}} 2025-08-22 13:33:24,200 - INFO - Created VN ctest-vn-91597686 2025-08-22 13:33:24,251 - DEBUG - VN ctest-vn-91597686 UUID is e75d5c46-33a2-4afe-9fc0-abdd484f3203 2025-08-22 13:33:24,628 - DEBUG - Response for create_network : {'network': {'id': '2dfaec95-3f42-4dd3-a0ca-f8d6ca4c8764', 'name': 'ctest-ext_vn-07465965', 'tenant_id': '88f0fbbb621042a7b7988be69c73a12d', 'project_id': '88f0fbbb621042a7b7988be69c73a12d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-30984684', 'ctest-ext_vn-07465965'], 'port_security_enabled': True, 'description': ''}} 2025-08-22 13:33:24,792 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f8ed7243-43bc-4827-bf3d-c092f2decce8', 'name': '', 'tenant_id': '88f0fbbb621042a7b7988be69c73a12d', 'network_id': '2dfaec95-3f42-4dd3-a0ca-f8d6ca4c8764', 'ip_version': 4, 'cidr': '49.113.144.192/26', 'allocation_pools': [{'start': '49.113.144.194', 'end': '49.113.144.254'}], 'gateway_ip': '49.113.144.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.113.144.194', 'tags': [], 'project_id': '88f0fbbb621042a7b7988be69c73a12d'}} 2025-08-22 13:33:24,807 - INFO - Created VN ctest-ext_vn-07465965 2025-08-22 13:33:24,859 - DEBUG - VN ctest-ext_vn-07465965 UUID is 2dfaec95-3f42-4dd3-a0ca-f8d6ca4c8764 2025-08-22 13:33:25,047 - DEBUG - Services list from nova: [, , ] 2025-08-22 13:33:26,044 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3909-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3909-1) 2025-08-22 13:33:27,174 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3909-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3909-1) 2025-08-22 13:33:27,261 - INFO - Setting gateway for router bbb38513-5c77-4076-b466-54555eff0405 to network 2dfaec95-3f42-4dd3-a0ca-f8d6ca4c8764 2025-08-22 13:33:27,337 - INFO - Adding interface with subnet_id b58394c4-c303-4d7e-bd7b-628205868044, port_id None to router bbb38513-5c77-4076-b466-54555eff0405 2025-08-22 13:33:27,785 - INFO - Waiting for VM ctest-TestRoutersBasic-30984684-80241696 to be up.. 2025-08-22 13:33:27,964 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-22 13:33:33,053 - DEBUG - VM is in ACTIVE state now 2025-08-22 13:33:33,053 - INFO - VM name : ctest-TestRoutersBasic-30984684-80241696 2025-08-22 13:33:33,147 - DEBUG - VM ctest-TestRoutersBasic-30984684-80241696 ID is e884d3b0-fcb3-4674-9314-4c1bba6ae9ec 2025-08-22 13:33:33,165 - DEBUG - VM ctest-TestRoutersBasic-30984684-80241696 launched on Node cn-jenkins-deploy-platform-ansible-os-3909-1. 2025-08-22 13:33:33,249 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/e884d3b0-fcb3-4674-9314-4c1bba6ae9ec 2025-08-22 13:33:33,568 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/e884d3b0-fcb3-4674-9314-4c1bba6ae9ec 2025-08-22 13:33:33,597 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/7f4a6180-e85d-4de1-88b4-c12efffae91e 2025-08-22 13:33:36,866 - 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=2 ttl=63 time=7.18 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1016ms\r\nrtt min/avg/max/mdev = 7.176/7.176/7.176/0.000 ms') 2025-08-22 13:33:36,866 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-30984684-80241696 passed 2025-08-22 13:33:37,015 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-22 13:33:37,015 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-30984684-80241696, IP 137.29.207.3, Port 22 2025-08-22 13:33:37,070 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-08-22 13:33:37,158 - DEBUG - VM ctest-TestRoutersBasic-30984684-80241696 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-22 13:33:42,159 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-22 13:33:42,160 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-30984684-80241696, IP 137.29.207.3, Port 22 2025-08-22 13:33:42,332 - DEBUG - VM ctest-TestRoutersBasic-30984684-80241696 is ready for SSH connections 2025-08-22 13:33:42,333 - INFO - Waiting for VM ctest-TestRoutersBasic-30984684-25406411 to be up.. 2025-08-22 13:33:42,396 - DEBUG - VM is in ACTIVE state now 2025-08-22 13:33:42,396 - INFO - VM name : ctest-TestRoutersBasic-30984684-25406411 2025-08-22 13:33:42,469 - DEBUG - VM ctest-TestRoutersBasic-30984684-25406411 ID is a1e83fd3-1492-4f92-b2eb-cfeffd862809 2025-08-22 13:33:42,470 - DEBUG - VM ctest-TestRoutersBasic-30984684-25406411 launched on Node cn-jenkins-deploy-platform-ansible-os-3909-1. 2025-08-22 13:33:42,540 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/a1e83fd3-1492-4f92-b2eb-cfeffd862809 2025-08-22 13:33:42,547 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/4a0238f8-6b95-409c-8e41-911b6886f259 2025-08-22 13:33:43,795 - 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.33 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.358 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.358/1.842/3.327/1.484 ms') 2025-08-22 13:33:43,795 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-30984684-25406411 passed 2025-08-22 13:33:43,947 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-22 13:33:43,947 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-30984684-25406411, IP 49.113.144.195, Port 22 2025-08-22 13:33:44,102 - DEBUG - VM ctest-TestRoutersBasic-30984684-25406411 is ready for SSH connections 2025-08-22 13:33:44,102 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-22 13:33:44,102 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 49.113.144.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-08-22 13:33:44,102 - DEBUG - ping -s 56 -c 3 -W 1 49.113.144.195 2025-08-22 13:33:48,197 - DEBUG - PING 49.113.144.195 (49.113.144.195): 56 data bytes 64 bytes from 49.113.144.195: seq=0 ttl=62 time=5.482 ms 64 bytes from 49.113.144.195: seq=1 ttl=62 time=0.784 ms 64 bytes from 49.113.144.195: seq=2 ttl=62 time=0.912 ms --- 49.113.144.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.784/2.392/5.482 ms 2025-08-22 13:33:48,197 - INFO - Ping to IP 49.113.144.195 from VM ctest-TestRoutersBasic-30984684-80241696 passed 2025-08-22 13:33:48,197 - INFO - Deleting interface with subnet_id b58394c4-c303-4d7e-bd7b-628205868044, port_id None from router bbb38513-5c77-4076-b466-54555eff0405 2025-08-22 13:33:48,435 - INFO - Deleting VM ctest-TestRoutersBasic-30984684-25406411 2025-08-22 13:33:48,504 - INFO - Deleting VM ctest-TestRoutersBasic-30984684-80241696 2025-08-22 13:33:48,582 - INFO - Deleting VN ctest-ext_vn-07465965 2025-08-22 13:33:48,652 - DEBUG - VN 2dfaec95-3f42-4dd3-a0ca-f8d6ca4c8764 still in use: Unable to complete operation on network 2dfaec95-3f42-4dd3-a0ca-f8d6ca4c8764. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-21cbbd16-f906-4d23-87d1-e846baa6981a'] 2025-08-22 13:33:48,652 - WARNING - Deleting VN ctest-ext_vn-07465965 failed..Will retry 2025-08-22 13:33:50,762 - DEBUG - Response for deleting network () 2025-08-22 13:33:50,762 - INFO - Deleting VN ctest-vn-91597686 2025-08-22 13:33:50,924 - DEBUG - Response for deleting network () 2025-08-22 13:33:51,184 - DEBUG - No XMPP flaps were noticed during the test 2025-08-22 13:33:51,184 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:29] 2025-08-22 13:33:51,184 - INFO - -------------------------------------------------------------------------------- 2025-08-22 13:33:51,859 - INFO - Deleted project: ctest-TestRoutersBasic-30984684, ID : 88f0fbbb-6210-42a7-b798-8be69c73a12d