2024-09-13 18:50:56,293 - INFO - Domain Default found not creating 2024-09-13 18:50:56,826 - INFO - Project ctest-TestRoutersBasic-68022577 not found, creating it 2024-09-13 18:50:57,963 - INFO - Created Project:ctest-TestRoutersBasic-68022577, ID : d94666c9-010d-4a7f-88e7-ca40c9af7108 2024-09-13 18:51:00,481 - INFO - ================================================================================ 2024-09-13 18:51:00,481 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-13 18:51:00,481 - 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-09-13 18:51:00,802 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.27': '0'}} with 2024-09-13 18:51:00,803 - INFO - Initial checks done. Running the testcase now 2024-09-13 18:51:00,803 - INFO - 2024-09-13 18:51:01,810 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-68022577 2024-09-13 18:51:01,922 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-68022577 2024-09-13 18:51:02,393 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-68022577', 'default']} 2024-09-13 18:51:02,869 - DEBUG - Response for create_network : {'network': {'id': '7afbcb94-ba6d-4dbb-9ed0-5297ca382262', 'name': 'ctest-vn-80132639', 'tenant_id': 'd94666c9010d4a7f88e7ca40c9af7108', 'project_id': 'd94666c9010d4a7f88e7ca40c9af7108', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-68022577', 'ctest-vn-80132639'], 'port_security_enabled': True, 'description': ''}} 2024-09-13 18:51:03,147 - DEBUG - Response for create_subnet : {'subnet': {'id': '6d57b903-43f6-4ec2-a047-f042e4b086da', 'name': '', 'tenant_id': 'd94666c9010d4a7f88e7ca40c9af7108', 'network_id': '7afbcb94-ba6d-4dbb-9ed0-5297ca382262', 'ip_version': 4, 'cidr': '91.178.212.128/26', 'allocation_pools': [{'start': '91.178.212.130', 'end': '91.178.212.190'}], 'gateway_ip': '91.178.212.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '91.178.212.130', 'tags': [], 'project_id': 'd94666c9010d4a7f88e7ca40c9af7108'}} 2024-09-13 18:51:03,171 - INFO - Created VN ctest-vn-80132639 2024-09-13 18:51:03,233 - DEBUG - VN ctest-vn-80132639 UUID is 7afbcb94-ba6d-4dbb-9ed0-5297ca382262 2024-09-13 18:51:03,846 - DEBUG - Response for create_network : {'network': {'id': '98b48e46-4e50-46e4-9cd6-bac164d59c92', 'name': 'ctest-ext_vn-66573708', 'tenant_id': 'd94666c9010d4a7f88e7ca40c9af7108', 'project_id': 'd94666c9010d4a7f88e7ca40c9af7108', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-68022577', 'ctest-ext_vn-66573708'], 'port_security_enabled': True, 'description': ''}} 2024-09-13 18:51:04,067 - DEBUG - Response for create_subnet : {'subnet': {'id': '43ab2ff5-c810-48d0-8022-1a2b73a9bf46', 'name': '', 'tenant_id': 'd94666c9010d4a7f88e7ca40c9af7108', 'network_id': '98b48e46-4e50-46e4-9cd6-bac164d59c92', 'ip_version': 4, 'cidr': '5.128.101.192/26', 'allocation_pools': [{'start': '5.128.101.194', 'end': '5.128.101.254'}], 'gateway_ip': '5.128.101.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.128.101.194', 'tags': [], 'project_id': 'd94666c9010d4a7f88e7ca40c9af7108'}} 2024-09-13 18:51:04,097 - INFO - Created VN ctest-ext_vn-66573708 2024-09-13 18:51:04,161 - DEBUG - VN ctest-ext_vn-66573708 UUID is 98b48e46-4e50-46e4-9cd6-bac164d59c92 2024-09-13 18:51:04,517 - DEBUG - Services list from nova: [, , ] 2024-09-13 18:51:06,142 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1928-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1928-1) 2024-09-13 18:51:07,679 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1928-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1928-1) 2024-09-13 18:51:07,785 - INFO - Setting gateway for router ce3d63a9-8b52-4431-aad6-7085879dcccf to network 98b48e46-4e50-46e4-9cd6-bac164d59c92 2024-09-13 18:51:07,856 - INFO - Adding interface with subnet_id 6d57b903-43f6-4ec2-a047-f042e4b086da, port_id None to router ce3d63a9-8b52-4431-aad6-7085879dcccf 2024-09-13 18:51:08,246 - INFO - Waiting for VM ctest-TestRoutersBasic-68022577-02390583 to be up.. 2024-09-13 18:51:08,522 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-13 18:51:13,684 - DEBUG - VM is in ACTIVE state now 2024-09-13 18:51:13,684 - INFO - VM name : ctest-TestRoutersBasic-68022577-02390583 2024-09-13 18:51:13,814 - DEBUG - VM ctest-TestRoutersBasic-68022577-02390583 ID is 8abf86a9-72a7-4264-8311-62da820f1b1a 2024-09-13 18:51:13,841 - DEBUG - VM ctest-TestRoutersBasic-68022577-02390583 launched on Node cn-jenkins-deploy-platform-ansible-os-1928-1 2024-09-13 18:51:13,999 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/8abf86a9-72a7-4264-8311-62da820f1b1a 2024-09-13 18:51:14,349 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/8abf86a9-72a7-4264-8311-62da820f1b1a 2024-09-13 18:51:14,462 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/74f9e154-4361-464a-ac99-e301e0d3d619 2024-09-13 18:51:17,766 - 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 1001ms') 2024-09-13 18:51:17,766 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-68022577-02390583 failed! 2024-09-13 18:51:17,865 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-68022577:ctest-vn-80132639 is 91.178.212.129 and allocation pool is NOT set 2024-09-13 18:51:19,932 - 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=7.86 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.87 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.867/4.865/7.864/2.998 ms') 2024-09-13 18:51:19,932 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-68022577-02390583 passed 2024-09-13 18:51:20,129 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 18:51:20,130 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-68022577-02390583, IP 91.178.212.131, Port 22 2024-09-13 18:51:20,194 - 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-09-13 18:51:20,367 - DEBUG - VM ctest-TestRoutersBasic-68022577-02390583 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-13 18:51:25,368 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 18:51:25,369 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-68022577-02390583, IP 91.178.212.131, Port 22 2024-09-13 18:51:25,580 - DEBUG - VM ctest-TestRoutersBasic-68022577-02390583 is ready for SSH connections 2024-09-13 18:51:25,580 - INFO - Waiting for VM ctest-TestRoutersBasic-68022577-65222652 to be up.. 2024-09-13 18:51:25,825 - DEBUG - VM is in ACTIVE state now 2024-09-13 18:51:25,825 - INFO - VM name : ctest-TestRoutersBasic-68022577-65222652 2024-09-13 18:51:26,065 - DEBUG - VM ctest-TestRoutersBasic-68022577-65222652 ID is 4b0abfc6-53ef-4e07-8c2b-28dc5ea6f8e0 2024-09-13 18:51:26,065 - DEBUG - VM ctest-TestRoutersBasic-68022577-65222652 launched on Node cn-jenkins-deploy-platform-ansible-os-1928-1 2024-09-13 18:51:26,279 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/4b0abfc6-53ef-4e07-8c2b-28dc5ea6f8e0 2024-09-13 18:51:26,309 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/96d8bab2-8ec8-4dac-bfcf-c5d367ae6009 2024-09-13 18:51:27,696 - 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=9.81 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.746 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 = 0.746/5.276/9.807/4.530 ms') 2024-09-13 18:51:27,696 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-68022577-65222652 passed 2024-09-13 18:51:27,894 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 18:51:27,894 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-68022577-65222652, IP 5.128.101.195, Port 22 2024-09-13 18:51:28,096 - DEBUG - VM ctest-TestRoutersBasic-68022577-65222652 is ready for SSH connections 2024-09-13 18:51:28,096 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 18:51:28,096 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 5.128.101.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-09-13 18:51:28,097 - DEBUG - ping -s 56 -c 3 -W 1 5.128.101.195 2024-09-13 18:51:32,220 - DEBUG - PING 5.128.101.195 (5.128.101.195): 56 data bytes 64 bytes from 5.128.101.195: seq=0 ttl=62 time=5.339 ms 64 bytes from 5.128.101.195: seq=1 ttl=62 time=2.171 ms 64 bytes from 5.128.101.195: seq=2 ttl=62 time=2.291 ms --- 5.128.101.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 2.171/3.267/5.339 ms 2024-09-13 18:51:32,220 - INFO - Ping to IP 5.128.101.195 from VM ctest-TestRoutersBasic-68022577-02390583 passed 2024-09-13 18:51:32,221 - INFO - Deleting interface with subnet_id 6d57b903-43f6-4ec2-a047-f042e4b086da, port_id None from router ce3d63a9-8b52-4431-aad6-7085879dcccf 2024-09-13 18:51:32,570 - INFO - Deleting VM ctest-TestRoutersBasic-68022577-65222652 2024-09-13 18:51:32,660 - INFO - Deleting VM ctest-TestRoutersBasic-68022577-02390583 2024-09-13 18:51:32,756 - INFO - Deleting VN ctest-ext_vn-66573708 2024-09-13 18:51:32,841 - DEBUG - VN 98b48e46-4e50-46e4-9cd6-bac164d59c92 still in use: Unable to complete operation on network 98b48e46-4e50-46e4-9cd6-bac164d59c92. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-19383406-6b0e-4cfb-ae2c-f2bfc736df84'] 2024-09-13 18:51:32,842 - WARNING - Deleting VN ctest-ext_vn-66573708 failed..Will retry 2024-09-13 18:51:35,115 - DEBUG - Response for deleting network () 2024-09-13 18:51:35,115 - INFO - Deleting VN ctest-vn-80132639 2024-09-13 18:51:35,316 - DEBUG - Response for deleting network () 2024-09-13 18:51:35,650 - DEBUG - No XMPP flaps were noticed during the test 2024-09-13 18:51:35,650 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:35] 2024-09-13 18:51:35,651 - INFO - -------------------------------------------------------------------------------- 2024-09-13 18:51:36,982 - INFO - Deleted project: ctest-TestRoutersBasic-68022577, ID : d94666c9-010d-4a7f-88e7-ca40c9af7108