2025-09-04 20:25:11,344 - INFO - Domain Default found not creating 2025-09-04 20:25:11,522 - INFO - Project ctest-TestRoutersBasic-80513523 not found, creating it 2025-09-04 20:25:12,011 - INFO - Created Project:ctest-TestRoutersBasic-80513523, ID : 3145f033-f02f-4138-9d9b-8f58b52c1030 2025-09-04 20:25:13,594 - INFO - ================================================================================ 2025-09-04 20:25:13,594 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-09-04 20:25:13,594 - 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-09-04 20:25:13,849 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2025-09-04 20:25:13,849 - INFO - Initial checks done. Running the testcase now 2025-09-04 20:25:13,849 - INFO - 2025-09-04 20:25:14,627 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-80513523 2025-09-04 20:25:14,722 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-80513523 2025-09-04 20:25:15,058 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-80513523', 'default']} 2025-09-04 20:25:15,346 - DEBUG - Response for create_network : {'network': {'id': '483f9196-86a6-4642-8ac1-15e3e845b2ee', 'name': 'ctest-vn-27508502', 'tenant_id': '3145f033f02f41389d9b8f58b52c1030', 'project_id': '3145f033f02f41389d9b8f58b52c1030', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-80513523', 'ctest-vn-27508502'], 'port_security_enabled': True, 'description': ''}} 2025-09-04 20:25:15,570 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dd87d062-c169-4169-9545-b315aede42ce', 'name': '', 'tenant_id': '3145f033f02f41389d9b8f58b52c1030', 'network_id': '483f9196-86a6-4642-8ac1-15e3e845b2ee', 'ip_version': 4, 'cidr': '69.57.72.192/26', 'allocation_pools': [{'start': '69.57.72.194', 'end': '69.57.72.254'}], 'gateway_ip': '69.57.72.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '69.57.72.194', 'tags': [], 'project_id': '3145f033f02f41389d9b8f58b52c1030'}} 2025-09-04 20:25:15,588 - INFO - Created VN ctest-vn-27508502 2025-09-04 20:25:15,642 - DEBUG - VN ctest-vn-27508502 UUID is 483f9196-86a6-4642-8ac1-15e3e845b2ee 2025-09-04 20:25:15,954 - DEBUG - Response for create_network : {'network': {'id': '01a0c425-03ae-4660-a121-86819b685749', 'name': 'ctest-ext_vn-63613379', 'tenant_id': '3145f033f02f41389d9b8f58b52c1030', 'project_id': '3145f033f02f41389d9b8f58b52c1030', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-80513523', 'ctest-ext_vn-63613379'], 'port_security_enabled': True, 'description': ''}} 2025-09-04 20:25:16,126 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd6ec8be9-4df2-4586-88d2-854c13df17a2', 'name': '', 'tenant_id': '3145f033f02f41389d9b8f58b52c1030', 'network_id': '01a0c425-03ae-4660-a121-86819b685749', 'ip_version': 4, 'cidr': '22.77.253.64/26', 'allocation_pools': [{'start': '22.77.253.66', 'end': '22.77.253.126'}], 'gateway_ip': '22.77.253.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.77.253.66', 'tags': [], 'project_id': '3145f033f02f41389d9b8f58b52c1030'}} 2025-09-04 20:25:16,145 - INFO - Created VN ctest-ext_vn-63613379 2025-09-04 20:25:16,198 - DEBUG - VN ctest-ext_vn-63613379 UUID is 01a0c425-03ae-4660-a121-86819b685749 2025-09-04 20:25:16,372 - DEBUG - Services list from nova: [, , ] 2025-09-04 20:25:17,497 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4020-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4020-1) 2025-09-04 20:25:18,701 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4020-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4020-1) 2025-09-04 20:25:18,765 - INFO - Setting gateway for router ab862a77-78f8-456b-a1e5-fd51a185215a to network 01a0c425-03ae-4660-a121-86819b685749 2025-09-04 20:25:18,851 - INFO - Adding interface with subnet_id dd87d062-c169-4169-9545-b315aede42ce, port_id None to router ab862a77-78f8-456b-a1e5-fd51a185215a 2025-09-04 20:25:19,218 - INFO - Waiting for VM ctest-TestRoutersBasic-80513523-83749926 to be up.. 2025-09-04 20:25:19,358 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-04 20:25:24,431 - DEBUG - VM is in ACTIVE state now 2025-09-04 20:25:24,431 - INFO - VM name : ctest-TestRoutersBasic-80513523-83749926 2025-09-04 20:25:24,503 - DEBUG - VM ctest-TestRoutersBasic-80513523-83749926 ID is 9ecc14ed-8536-4c50-8d32-07c0bf08d173 2025-09-04 20:25:24,533 - DEBUG - VM ctest-TestRoutersBasic-80513523-83749926 launched on Node cn-jenkins-deploy-platform-ansible-os-4020-1 2025-09-04 20:25:24,600 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/9ecc14ed-8536-4c50-8d32-07c0bf08d173 2025-09-04 20:25:24,932 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/9ecc14ed-8536-4c50-8d32-07c0bf08d173 2025-09-04 20:25:24,965 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/7b08d3b9-f903-4cb2-84f0-cf64f68b9952 2025-09-04 20:25:28,206 - 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 1003ms') 2025-09-04 20:25:28,206 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-80513523-83749926 failed! 2025-09-04 20:25:28,258 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-80513523:ctest-vn-27508502 is 69.57.72.193 and allocation pool is NOT set 2025-09-04 20:25:30,322 - 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=4.99 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.22 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 = 1.219/3.106/4.993/1.887 ms') 2025-09-04 20:25:30,322 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-80513523-83749926 passed 2025-09-04 20:25:30,470 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-04 20:25:30,470 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-80513523-83749926, IP 69.57.72.195, Port 22 2025-09-04 20:25:30,625 - DEBUG - VM ctest-TestRoutersBasic-80513523-83749926 is ready for SSH connections 2025-09-04 20:25:30,626 - INFO - Waiting for VM ctest-TestRoutersBasic-80513523-63134082 to be up.. 2025-09-04 20:25:30,698 - DEBUG - VM is in ACTIVE state now 2025-09-04 20:25:30,698 - INFO - VM name : ctest-TestRoutersBasic-80513523-63134082 2025-09-04 20:25:30,769 - DEBUG - VM ctest-TestRoutersBasic-80513523-63134082 ID is a5886654-ba74-4a4e-b067-b1cdbf0dc49e 2025-09-04 20:25:30,769 - DEBUG - VM ctest-TestRoutersBasic-80513523-63134082 launched on Node cn-jenkins-deploy-platform-ansible-os-4020-1 2025-09-04 20:25:30,840 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/a5886654-ba74-4a4e-b067-b1cdbf0dc49e 2025-09-04 20:25:30,847 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/7bdaeb87-55dc-43ae-80d4-b04cd3e53b5e 2025-09-04 20:25:32,082 - 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.46 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.17 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 = 2.172/3.816/5.460/1.644 ms') 2025-09-04 20:25:32,082 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-80513523-63134082 passed 2025-09-04 20:25:32,234 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-04 20:25:32,234 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-80513523-63134082, IP 22.77.253.67, Port 22 2025-09-04 20:25:32,289 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-09-04 20:25:32,360 - DEBUG - VM ctest-TestRoutersBasic-80513523-63134082 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-04 20:25:37,360 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-04 20:25:37,361 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-80513523-63134082, IP 22.77.253.67, Port 22 2025-09-04 20:25:37,528 - DEBUG - VM ctest-TestRoutersBasic-80513523-63134082 is ready for SSH connections 2025-09-04 20:25:37,528 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-04 20:25:37,528 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 22.77.253.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-09-04 20:25:37,528 - DEBUG - ping -s 56 -c 3 -W 1 22.77.253.67 2025-09-04 20:25:41,255 - DEBUG - PING 22.77.253.67 (22.77.253.67): 56 data bytes 64 bytes from 22.77.253.67: seq=0 ttl=62 time=7.286 ms 64 bytes from 22.77.253.67: seq=1 ttl=62 time=1.001 ms 64 bytes from 22.77.253.67: seq=2 ttl=62 time=0.788 ms --- 22.77.253.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.788/3.025/7.286 ms 2025-09-04 20:25:41,255 - INFO - Ping to IP 22.77.253.67 from VM ctest-TestRoutersBasic-80513523-83749926 passed 2025-09-04 20:25:41,255 - INFO - Deleting interface with subnet_id dd87d062-c169-4169-9545-b315aede42ce, port_id None from router ab862a77-78f8-456b-a1e5-fd51a185215a 2025-09-04 20:25:41,426 - INFO - Deleting VM ctest-TestRoutersBasic-80513523-63134082 2025-09-04 20:25:41,496 - INFO - Deleting VM ctest-TestRoutersBasic-80513523-83749926 2025-09-04 20:25:41,596 - INFO - Deleting VN ctest-ext_vn-63613379 2025-09-04 20:25:41,675 - DEBUG - VN 01a0c425-03ae-4660-a121-86819b685749 still in use: Unable to complete operation on network 01a0c425-03ae-4660-a121-86819b685749. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0e78e0ca-9094-4f1e-921a-0a1269987f19'] 2025-09-04 20:25:41,675 - WARNING - Deleting VN ctest-ext_vn-63613379 failed..Will retry 2025-09-04 20:25:43,782 - DEBUG - Response for deleting network () 2025-09-04 20:25:43,782 - INFO - Deleting VN ctest-vn-27508502 2025-09-04 20:25:43,892 - DEBUG - Response for deleting network () 2025-09-04 20:25:44,150 - DEBUG - No XMPP flaps were noticed during the test
2025-09-04 20:25:44,150 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31]
2025-09-04 20:25:44,150 - INFO - -------------------------------------------------------------------------------- 2025-09-04 20:25:44,858 - INFO - Deleted project: ctest-TestRoutersBasic-80513523, ID : 3145f033-f02f-4138-9d9b-8f58b52c1030