2024-08-27 04:15:46,523 - INFO - Domain Default found not creating 2024-08-27 04:15:46,694 - INFO - Project ctest-TestRoutersBasic-64415056 not found, creating it 2024-08-27 04:15:47,184 - INFO - Created Project:ctest-TestRoutersBasic-64415056, ID : 2767f02a-b64f-4dfd-9123-c7e5dc217941 2024-08-27 04:15:48,838 - INFO - ================================================================================ 2024-08-27 04:15:48,839 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-27 04:15:48,839 - 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 2024-08-27 04:15:49,103 - DEBUG - Nothing to compare xmpp stats {'10.0.0.59': {'10.20.0.10': '0'}} with 2024-08-27 04:15:49,103 - INFO - Initial checks done. Running the testcase now 2024-08-27 04:15:49,103 - INFO - 2024-08-27 04:15:49,822 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-64415056 2024-08-27 04:15:49,916 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-64415056 2024-08-27 04:15:50,236 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-64415056', 'default']} 2024-08-27 04:15:50,540 - DEBUG - Response for create_network : {'network': {'id': '7d7a67cd-3f80-4998-b8b4-aa34ff7fb4a9', 'name': 'ctest-vn-28823237', 'tenant_id': '2767f02ab64f4dfd9123c7e5dc217941', 'project_id': '2767f02ab64f4dfd9123c7e5dc217941', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-64415056', 'ctest-vn-28823237'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 04:15:55,406 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a4449df4-1e01-474a-89a9-6a2175d39e97', 'name': '', 'tenant_id': '2767f02ab64f4dfd9123c7e5dc217941', 'network_id': '7d7a67cd-3f80-4998-b8b4-aa34ff7fb4a9', 'ip_version': 4, 'cidr': '13.182.239.192/26', 'allocation_pools': [{'start': '13.182.239.194', 'end': '13.182.239.254'}], 'gateway_ip': '13.182.239.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.182.239.194', 'tags': [], 'project_id': '2767f02ab64f4dfd9123c7e5dc217941'}} 2024-08-27 04:15:55,429 - INFO - Created VN ctest-vn-28823237 2024-08-27 04:15:55,484 - DEBUG - VN ctest-vn-28823237 UUID is 7d7a67cd-3f80-4998-b8b4-aa34ff7fb4a9 2024-08-27 04:15:55,895 - DEBUG - Response for create_network : {'network': {'id': '2ce1177d-fd23-4828-bead-0b5c72fe95a0', 'name': 'ctest-ext_vn-71696456', 'tenant_id': '2767f02ab64f4dfd9123c7e5dc217941', 'project_id': '2767f02ab64f4dfd9123c7e5dc217941', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-64415056', 'ctest-ext_vn-71696456'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 04:15:56,116 - DEBUG - Response for create_subnet : {'subnet': {'id': '90e93119-583e-4dd6-8ec8-8ec69845c127', 'name': '', 'tenant_id': '2767f02ab64f4dfd9123c7e5dc217941', 'network_id': '2ce1177d-fd23-4828-bead-0b5c72fe95a0', 'ip_version': 4, 'cidr': '210.31.152.128/26', 'allocation_pools': [{'start': '210.31.152.130', 'end': '210.31.152.190'}], 'gateway_ip': '210.31.152.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '210.31.152.130', 'tags': [], 'project_id': '2767f02ab64f4dfd9123c7e5dc217941'}} 2024-08-27 04:15:56,137 - INFO - Created VN ctest-ext_vn-71696456 2024-08-27 04:15:56,192 - DEBUG - VN ctest-ext_vn-71696456 UUID is 2ce1177d-fd23-4828-bead-0b5c72fe95a0 2024-08-27 04:15:56,368 - DEBUG - Services list from nova: [, , ] 2024-08-27 04:15:57,413 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1788-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1788-1) 2024-08-27 04:15:58,572 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1788-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1788-1) 2024-08-27 04:15:58,648 - INFO - Setting gateway for router e2eae211-385b-4e95-9f89-31f17ffac3c0 to network 2ce1177d-fd23-4828-bead-0b5c72fe95a0 2024-08-27 04:15:58,706 - INFO - Adding interface with subnet_id a4449df4-1e01-474a-89a9-6a2175d39e97, port_id None to router e2eae211-385b-4e95-9f89-31f17ffac3c0 2024-08-27 04:15:59,148 - INFO - Waiting for VM ctest-TestRoutersBasic-64415056-15290077 to be up.. 2024-08-27 04:15:59,311 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-27 04:16:04,387 - DEBUG - VM is in ACTIVE state now 2024-08-27 04:16:04,387 - INFO - VM name : ctest-TestRoutersBasic-64415056-15290077 2024-08-27 04:16:04,468 - DEBUG - VM ctest-TestRoutersBasic-64415056-15290077 ID is 1373ab91-7552-4b41-aa4b-e5b6e71f3b98 2024-08-27 04:16:04,487 - DEBUG - VM ctest-TestRoutersBasic-64415056-15290077 launched on Node cn-jenkins-deploy-platform-ansible-os-1788-1 2024-08-27 04:16:04,566 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-machine/1373ab91-7552-4b41-aa4b-e5b6e71f3b98 2024-08-27 04:16:04,867 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-machine/1373ab91-7552-4b41-aa4b-e5b6e71f3b98 2024-08-27 04:16:04,903 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-machine-interface/5a9845f8-93ec-434d-99f8-0520a875fca0 2024-08-27 04:16:08,158 - 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 1015ms') 2024-08-27 04:16:08,158 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-64415056-15290077 failed! 2024-08-27 04:16:08,216 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-64415056:ctest-vn-28823237 is 13.182.239.193 and allocation pool is NOT set 2024-08-27 04:16:10,275 - 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=5.28 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.53 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 1.534/3.408/5.283/1.874 ms') 2024-08-27 04:16:10,275 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-64415056-15290077 passed 2024-08-27 04:16:10,428 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 04:16:10,428 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-64415056-15290077, IP 13.182.239.195, Port 22 2024-08-27 04:16:10,484 - 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': ''} 2024-08-27 04:16:10,563 - DEBUG - VM ctest-TestRoutersBasic-64415056-15290077 is NOT ready for SSH connections, VM status: ACTIVE 2024-08-27 04:16:15,564 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 04:16:15,564 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-64415056-15290077, IP 13.182.239.195, Port 22 2024-08-27 04:16:15,730 - DEBUG - VM ctest-TestRoutersBasic-64415056-15290077 is ready for SSH connections 2024-08-27 04:16:15,730 - INFO - Waiting for VM ctest-TestRoutersBasic-64415056-75556869 to be up.. 2024-08-27 04:16:15,836 - DEBUG - VM is in ACTIVE state now 2024-08-27 04:16:15,836 - INFO - VM name : ctest-TestRoutersBasic-64415056-75556869 2024-08-27 04:16:15,930 - DEBUG - VM ctest-TestRoutersBasic-64415056-75556869 ID is f7a0d0d2-0f08-463f-92cf-e35d1a47c74e 2024-08-27 04:16:15,931 - DEBUG - VM ctest-TestRoutersBasic-64415056-75556869 launched on Node cn-jenkins-deploy-platform-ansible-os-1788-1 2024-08-27 04:16:16,027 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-machine/f7a0d0d2-0f08-463f-92cf-e35d1a47c74e 2024-08-27 04:16:16,040 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-machine-interface/24215c41-b1c5-4050-9c7d-41a6ba890696 2024-08-27 04:16:17,304 - 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.13 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.460 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.460/1.795/3.130/1.335 ms') 2024-08-27 04:16:17,305 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-64415056-75556869 passed 2024-08-27 04:16:17,456 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 04:16:17,456 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-64415056-75556869, IP 210.31.152.131, Port 22 2024-08-27 04:16:17,612 - DEBUG - VM ctest-TestRoutersBasic-64415056-75556869 is ready for SSH connections 2024-08-27 04:16:17,612 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 04:16:17,612 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 210.31.152.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.59, gateway password: c0ntrail123 2024-08-27 04:16:17,612 - DEBUG - ping -s 56 -c 3 -W 1 210.31.152.131 2024-08-27 04:16:24,138 - DEBUG - PING 210.31.152.131 (210.31.152.131): 56 data bytes 64 bytes from 210.31.152.131: seq=0 ttl=62 time=5.116 ms 64 bytes from 210.31.152.131: seq=1 ttl=62 time=0.842 ms 64 bytes from 210.31.152.131: seq=2 ttl=62 time=1.036 ms --- 210.31.152.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.842/2.331/5.116 ms 2024-08-27 04:16:24,138 - INFO - Ping to IP 210.31.152.131 from VM ctest-TestRoutersBasic-64415056-15290077 passed 2024-08-27 04:16:24,138 - INFO - Deleting interface with subnet_id a4449df4-1e01-474a-89a9-6a2175d39e97, port_id None from router e2eae211-385b-4e95-9f89-31f17ffac3c0 2024-08-27 04:16:25,406 - INFO - Deleting VM ctest-TestRoutersBasic-64415056-75556869 2024-08-27 04:16:28,629 - INFO - Deleting VM ctest-TestRoutersBasic-64415056-15290077 2024-08-27 04:16:28,743 - INFO - Deleting VN ctest-ext_vn-71696456 2024-08-27 04:16:28,825 - DEBUG - VN 2ce1177d-fd23-4828-bead-0b5c72fe95a0 still in use: Unable to complete operation on network 2ce1177d-fd23-4828-bead-0b5c72fe95a0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b2b77e69-3b90-477c-9623-853986675287'] 2024-08-27 04:16:28,825 - WARNING - Deleting VN ctest-ext_vn-71696456 failed..Will retry 2024-08-27 04:16:31,993 - DEBUG - Response for deleting network () 2024-08-27 04:16:31,994 - INFO - Deleting VN ctest-vn-28823237 2024-08-27 04:16:32,120 - DEBUG - Response for deleting network () 2024-08-27 04:16:32,381 - DEBUG - No XMPP flaps were noticed during the test 2024-08-27 04:16:32,381 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:44] 2024-08-27 04:16:32,381 - INFO - -------------------------------------------------------------------------------- 2024-08-27 04:16:35,238 - INFO - Deleted project: ctest-TestRoutersBasic-64415056, ID : 2767f02a-b64f-4dfd-9123-c7e5dc217941