2025-03-27 20:26:42,756 - INFO - Domain Default found not creating 2025-03-27 20:26:42,945 - INFO - Project ctest-TestRoutersBasic-88167279 not found, creating it 2025-03-27 20:26:43,480 - INFO - Created Project:ctest-TestRoutersBasic-88167279, ID : 2042b81e-69bb-45d6-9a50-56d2d1caa6d0 2025-03-27 20:26:45,073 - INFO - ================================================================================ 2025-03-27 20:26:45,073 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-03-27 20:26:45,073 - 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-03-27 20:26:45,330 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.7': '0'}} with 2025-03-27 20:26:45,331 - INFO - Initial checks done. Running the testcase now 2025-03-27 20:26:45,331 - INFO - 2025-03-27 20:26:46,105 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-88167279 2025-03-27 20:26:46,207 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-88167279 2025-03-27 20:26:46,550 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-88167279', 'default']} 2025-03-27 20:26:46,867 - DEBUG - Response for create_network : {'network': {'id': 'f611ce4f-1b33-407b-9a99-700020ca6efc', 'name': 'ctest-vn-60239567', 'tenant_id': '2042b81e69bb45d69a5056d2d1caa6d0', 'project_id': '2042b81e69bb45d69a5056d2d1caa6d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-88167279', 'ctest-vn-60239567'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 20:26:47,044 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd37eb06e-287c-494c-baf5-50678e888362', 'name': '', 'tenant_id': '2042b81e69bb45d69a5056d2d1caa6d0', 'network_id': 'f611ce4f-1b33-407b-9a99-700020ca6efc', 'ip_version': 4, 'cidr': '14.214.79.64/26', 'allocation_pools': [{'start': '14.214.79.66', 'end': '14.214.79.126'}], 'gateway_ip': '14.214.79.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.214.79.66', 'tags': [], 'project_id': '2042b81e69bb45d69a5056d2d1caa6d0'}} 2025-03-27 20:26:47,065 - INFO - Created VN ctest-vn-60239567 2025-03-27 20:26:47,118 - DEBUG - VN ctest-vn-60239567 UUID is f611ce4f-1b33-407b-9a99-700020ca6efc 2025-03-27 20:26:47,508 - DEBUG - Response for create_network : {'network': {'id': '3e54790a-e22a-4ef3-b808-5d77b14265db', 'name': 'ctest-ext_vn-67691564', 'tenant_id': '2042b81e69bb45d69a5056d2d1caa6d0', 'project_id': '2042b81e69bb45d69a5056d2d1caa6d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-88167279', 'ctest-ext_vn-67691564'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 20:26:47,726 - DEBUG - Response for create_subnet : {'subnet': {'id': '6de14bc6-e667-40f2-95f1-38b6d8b753e6', 'name': '', 'tenant_id': '2042b81e69bb45d69a5056d2d1caa6d0', 'network_id': '3e54790a-e22a-4ef3-b808-5d77b14265db', 'ip_version': 4, 'cidr': '154.209.75.0/26', 'allocation_pools': [{'start': '154.209.75.2', 'end': '154.209.75.62'}], 'gateway_ip': '154.209.75.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.209.75.2', 'tags': [], 'project_id': '2042b81e69bb45d69a5056d2d1caa6d0'}} 2025-03-27 20:26:47,749 - INFO - Created VN ctest-ext_vn-67691564 2025-03-27 20:26:47,802 - DEBUG - VN ctest-ext_vn-67691564 UUID is 3e54790a-e22a-4ef3-b808-5d77b14265db 2025-03-27 20:26:47,987 - DEBUG - Services list from nova: [, , ] 2025-03-27 20:26:49,065 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2984-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2984-1) 2025-03-27 20:26:50,262 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2984-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2984-1) 2025-03-27 20:26:50,338 - INFO - Setting gateway for router bc9a35d3-34b1-4b32-9df3-6d098d7808fe to network 3e54790a-e22a-4ef3-b808-5d77b14265db 2025-03-27 20:26:50,418 - INFO - Adding interface with subnet_id d37eb06e-287c-494c-baf5-50678e888362, port_id None to router bc9a35d3-34b1-4b32-9df3-6d098d7808fe 2025-03-27 20:26:50,827 - INFO - Waiting for VM ctest-TestRoutersBasic-88167279-25901358 to be up.. 2025-03-27 20:26:50,983 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-27 20:26:56,087 - DEBUG - VM is in ACTIVE state now 2025-03-27 20:26:56,087 - INFO - VM name : ctest-TestRoutersBasic-88167279-25901358 2025-03-27 20:26:56,180 - DEBUG - VM ctest-TestRoutersBasic-88167279-25901358 ID is e02798ae-4412-49dd-a0a8-2c4df1440a39 2025-03-27 20:26:56,200 - DEBUG - VM ctest-TestRoutersBasic-88167279-25901358 launched on Node cn-jenkins-deploy-platform-ansible-os-2984-1 2025-03-27 20:26:56,289 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/e02798ae-4412-49dd-a0a8-2c4df1440a39 2025-03-27 20:26:56,618 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/e02798ae-4412-49dd-a0a8-2c4df1440a39 2025-03-27 20:26:56,654 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/d2dcfaef-75b6-4dcf-85a3-75628724b53c 2025-03-27 20:26:59,917 - 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 1023ms') 2025-03-27 20:26:59,917 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-88167279-25901358 failed! 2025-03-27 20:26:59,975 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-88167279:ctest-vn-60239567 is 14.214.79.65 and allocation pool is NOT set 2025-03-27 20:27:02,042 - 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.86 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.28 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.282/3.071/4.861/1.789 ms') 2025-03-27 20:27:02,043 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-88167279-25901358 passed 2025-03-27 20:27:02,207 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 20:27:02,207 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-88167279-25901358, IP 14.214.79.67, Port 22 2025-03-27 20:27:02,368 - DEBUG - VM ctest-TestRoutersBasic-88167279-25901358 is ready for SSH connections 2025-03-27 20:27:02,368 - INFO - Waiting for VM ctest-TestRoutersBasic-88167279-72585576 to be up.. 2025-03-27 20:27:02,466 - DEBUG - VM is in ACTIVE state now 2025-03-27 20:27:02,467 - INFO - VM name : ctest-TestRoutersBasic-88167279-72585576 2025-03-27 20:27:02,570 - DEBUG - VM ctest-TestRoutersBasic-88167279-72585576 ID is c54682f6-ba83-4214-b26b-1f8b7111d8a6 2025-03-27 20:27:02,571 - DEBUG - VM ctest-TestRoutersBasic-88167279-72585576 launched on Node cn-jenkins-deploy-platform-ansible-os-2984-1 2025-03-27 20:27:02,663 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/c54682f6-ba83-4214-b26b-1f8b7111d8a6 2025-03-27 20:27:02,674 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/10285d29-b817-4ed3-a5fb-688e278e05eb 2025-03-27 20:27:03,934 - 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=4.21 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.904 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.904/2.558/4.212/1.654 ms') 2025-03-27 20:27:03,934 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-88167279-72585576 passed 2025-03-27 20:27:04,090 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 20:27:04,091 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-88167279-72585576, IP 154.209.75.3, Port 22 2025-03-27 20:27:04,156 - 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-03-27 20:27:04,258 - DEBUG - VM ctest-TestRoutersBasic-88167279-72585576 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-27 20:27:09,259 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 20:27:09,259 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-88167279-72585576, IP 154.209.75.3, Port 22 2025-03-27 20:27:09,424 - DEBUG - VM ctest-TestRoutersBasic-88167279-72585576 is ready for SSH connections 2025-03-27 20:27:09,424 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 20:27:09,425 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 154.209.75.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-03-27 20:27:09,425 - DEBUG - ping -s 56 -c 3 -W 1 154.209.75.3 2025-03-27 20:27:13,160 - DEBUG - PING 154.209.75.3 (154.209.75.3): 56 data bytes 64 bytes from 154.209.75.3: seq=0 ttl=62 time=6.058 ms 64 bytes from 154.209.75.3: seq=1 ttl=62 time=1.155 ms 64 bytes from 154.209.75.3: seq=2 ttl=62 time=1.080 ms --- 154.209.75.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.080/2.764/6.058 ms 2025-03-27 20:27:13,160 - INFO - Ping to IP 154.209.75.3 from VM ctest-TestRoutersBasic-88167279-25901358 passed 2025-03-27 20:27:13,160 - INFO - Deleting interface with subnet_id d37eb06e-287c-494c-baf5-50678e888362, port_id None from router bc9a35d3-34b1-4b32-9df3-6d098d7808fe 2025-03-27 20:27:13,400 - INFO - Deleting VM ctest-TestRoutersBasic-88167279-72585576 2025-03-27 20:27:13,498 - INFO - Deleting VM ctest-TestRoutersBasic-88167279-25901358 2025-03-27 20:27:13,611 - INFO - Deleting VN ctest-ext_vn-67691564 2025-03-27 20:27:13,696 - DEBUG - VN 3e54790a-e22a-4ef3-b808-5d77b14265db still in use: Unable to complete operation on network 3e54790a-e22a-4ef3-b808-5d77b14265db. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-61dcc6ef-b2df-48e9-838c-88ac0ebec256'] 2025-03-27 20:27:13,696 - WARNING - Deleting VN ctest-ext_vn-67691564 failed..Will retry 2025-03-27 20:27:15,833 - DEBUG - Response for deleting network () 2025-03-27 20:27:15,834 - INFO - Deleting VN ctest-vn-60239567 2025-03-27 20:27:15,977 - DEBUG - Response for deleting network () 2025-03-27 20:27:16,237 - DEBUG - No XMPP flaps were noticed during the test 2025-03-27 20:27:16,237 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2025-03-27 20:27:16,237 - INFO - -------------------------------------------------------------------------------- 2025-03-27 20:27:17,104 - INFO - Deleted project: ctest-TestRoutersBasic-88167279, ID : 2042b81e-69bb-45d6-9a50-56d2d1caa6d0