2024-09-11 22:14:07,923 - INFO - Domain Default found not creating 2024-09-11 22:14:08,116 - INFO - Project ctest-TestRoutersBasic-77877728 not found, creating it 2024-09-11 22:14:08,891 - INFO - Created Project:ctest-TestRoutersBasic-77877728, ID : aa7e1bfa-6e39-4da1-8bb7-e2c4bd8bf8fb 2024-09-11 22:14:10,686 - INFO - ================================================================================ 2024-09-11 22:14:10,686 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-11 22:14:10,687 - 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-11 22:14:10,946 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.11': '0'}} with 2024-09-11 22:14:10,946 - INFO - Initial checks done. Running the testcase now 2024-09-11 22:14:10,946 - INFO - 2024-09-11 22:14:11,793 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-77877728 2024-09-11 22:14:11,898 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-77877728 2024-09-11 22:14:12,254 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-77877728', 'default']} 2024-09-11 22:14:12,585 - DEBUG - Response for create_network : {'network': {'id': 'fb3d777b-ae9a-408f-ae34-404401948f01', 'name': 'ctest-vn-12748728', 'tenant_id': 'aa7e1bfa6e394da18bb7e2c4bd8bf8fb', 'project_id': 'aa7e1bfa6e394da18bb7e2c4bd8bf8fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-77877728', 'ctest-vn-12748728'], 'port_security_enabled': True, 'description': ''}} 2024-09-11 22:14:12,781 - DEBUG - Response for create_subnet : {'subnet': {'id': '5c7837dd-2168-46c6-ba69-591658247c57', 'name': '', 'tenant_id': 'aa7e1bfa6e394da18bb7e2c4bd8bf8fb', 'network_id': 'fb3d777b-ae9a-408f-ae34-404401948f01', 'ip_version': 4, 'cidr': '4.167.19.0/26', 'allocation_pools': [{'start': '4.167.19.2', 'end': '4.167.19.62'}], 'gateway_ip': '4.167.19.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.167.19.2', 'tags': [], 'project_id': 'aa7e1bfa6e394da18bb7e2c4bd8bf8fb'}} 2024-09-11 22:14:12,804 - INFO - Created VN ctest-vn-12748728 2024-09-11 22:14:12,862 - DEBUG - VN ctest-vn-12748728 UUID is fb3d777b-ae9a-408f-ae34-404401948f01 2024-09-11 22:14:13,267 - DEBUG - Response for create_network : {'network': {'id': '897f8797-0998-4bb3-bde7-70287d43e440', 'name': 'ctest-ext_vn-20155728', 'tenant_id': 'aa7e1bfa6e394da18bb7e2c4bd8bf8fb', 'project_id': 'aa7e1bfa6e394da18bb7e2c4bd8bf8fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-77877728', 'ctest-ext_vn-20155728'], 'port_security_enabled': True, 'description': ''}} 2024-09-11 22:14:13,485 - DEBUG - Response for create_subnet : {'subnet': {'id': '49a46313-a07f-4a8d-a526-f8a2fb4101a7', 'name': '', 'tenant_id': 'aa7e1bfa6e394da18bb7e2c4bd8bf8fb', 'network_id': '897f8797-0998-4bb3-bde7-70287d43e440', 'ip_version': 4, 'cidr': '214.165.151.0/26', 'allocation_pools': [{'start': '214.165.151.2', 'end': '214.165.151.62'}], 'gateway_ip': '214.165.151.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.165.151.2', 'tags': [], 'project_id': 'aa7e1bfa6e394da18bb7e2c4bd8bf8fb'}} 2024-09-11 22:14:13,506 - INFO - Created VN ctest-ext_vn-20155728 2024-09-11 22:14:13,566 - DEBUG - VN ctest-ext_vn-20155728 UUID is 897f8797-0998-4bb3-bde7-70287d43e440 2024-09-11 22:14:13,764 - DEBUG - Services list from nova: [, , ] 2024-09-11 22:14:15,019 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1901-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1901-1) 2024-09-11 22:14:16,492 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1901-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1901-1) 2024-09-11 22:14:16,617 - INFO - Setting gateway for router 2ed3d8d8-145b-44a0-ba3c-b9060233b5db to network 897f8797-0998-4bb3-bde7-70287d43e440 2024-09-11 22:14:16,721 - INFO - Adding interface with subnet_id 5c7837dd-2168-46c6-ba69-591658247c57, port_id None to router 2ed3d8d8-145b-44a0-ba3c-b9060233b5db 2024-09-11 22:14:17,409 - INFO - Waiting for VM ctest-TestRoutersBasic-77877728-75147314 to be up.. 2024-09-11 22:14:17,639 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-11 22:14:22,730 - DEBUG - VM is in ACTIVE state now 2024-09-11 22:14:22,731 - INFO - VM name : ctest-TestRoutersBasic-77877728-75147314 2024-09-11 22:14:22,847 - DEBUG - VM ctest-TestRoutersBasic-77877728-75147314 ID is 5b3aa9a3-1451-4cbe-b77d-d02cf1496e5b 2024-09-11 22:14:22,874 - DEBUG - VM ctest-TestRoutersBasic-77877728-75147314 launched on Node cn-jenkins-deploy-platform-ansible-os-1901-1 2024-09-11 22:14:22,978 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/5b3aa9a3-1451-4cbe-b77d-d02cf1496e5b 2024-09-11 22:14:23,319 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/5b3aa9a3-1451-4cbe-b77d-d02cf1496e5b 2024-09-11 22:14:23,358 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/bb027646-d17a-4a5a-8440-44df9a9ef822 2024-09-11 22:14:26,621 - 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 1004ms') 2024-09-11 22:14:26,622 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-77877728-75147314 failed! 2024-09-11 22:14:26,682 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-77877728:ctest-vn-12748728 is 4.167.19.1 and allocation pool is NOT set 2024-09-11 22:14:28,757 - 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.63 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.844 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 = 0.844/2.736/4.629/1.892 ms') 2024-09-11 22:14:28,758 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-77877728-75147314 passed 2024-09-11 22:14:28,918 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 22:14:28,918 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-77877728-75147314, IP 4.167.19.3, Port 22 2024-09-11 22:14:29,083 - DEBUG - VM ctest-TestRoutersBasic-77877728-75147314 is ready for SSH connections 2024-09-11 22:14:29,083 - INFO - Waiting for VM ctest-TestRoutersBasic-77877728-09054381 to be up.. 2024-09-11 22:14:29,175 - DEBUG - VM is in ACTIVE state now 2024-09-11 22:14:29,175 - INFO - VM name : ctest-TestRoutersBasic-77877728-09054381 2024-09-11 22:14:29,262 - DEBUG - VM ctest-TestRoutersBasic-77877728-09054381 ID is 4a7d6199-a4f7-4f6f-aec6-0e92bbad5d66 2024-09-11 22:14:29,262 - DEBUG - VM ctest-TestRoutersBasic-77877728-09054381 launched on Node cn-jenkins-deploy-platform-ansible-os-1901-1 2024-09-11 22:14:29,365 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/4a7d6199-a4f7-4f6f-aec6-0e92bbad5d66 2024-09-11 22:14:29,378 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/8d14cb00-39b4-41a5-8417-f9a098440c68 2024-09-11 22:14:30,642 - 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.29 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.953 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.953/2.121/3.290/1.168 ms') 2024-09-11 22:14:30,642 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-77877728-09054381 passed 2024-09-11 22:14:30,802 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 22:14:30,802 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-77877728-09054381, IP 214.165.151.3, Port 22 2024-09-11 22:14:30,868 - 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': ''} 2024-09-11 22:14:30,961 - DEBUG - VM ctest-TestRoutersBasic-77877728-09054381 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-11 22:14:35,962 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 22:14:35,962 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-77877728-09054381, IP 214.165.151.3, Port 22 2024-09-11 22:14:36,117 - DEBUG - VM ctest-TestRoutersBasic-77877728-09054381 is ready for SSH connections 2024-09-11 22:14:36,117 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 22:14:36,118 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 214.165.151.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2024-09-11 22:14:36,118 - DEBUG - ping -s 56 -c 3 -W 1 214.165.151.3 2024-09-11 22:14:39,907 - DEBUG - PING 214.165.151.3 (214.165.151.3): 56 data bytes 64 bytes from 214.165.151.3: seq=0 ttl=62 time=5.618 ms 64 bytes from 214.165.151.3: seq=1 ttl=62 time=2.166 ms 64 bytes from 214.165.151.3: seq=2 ttl=62 time=1.392 ms --- 214.165.151.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.392/3.058/5.618 ms 2024-09-11 22:14:39,907 - INFO - Ping to IP 214.165.151.3 from VM ctest-TestRoutersBasic-77877728-75147314 passed 2024-09-11 22:14:39,907 - INFO - Deleting interface with subnet_id 5c7837dd-2168-46c6-ba69-591658247c57, port_id None from router 2ed3d8d8-145b-44a0-ba3c-b9060233b5db 2024-09-11 22:14:40,162 - INFO - Deleting VM ctest-TestRoutersBasic-77877728-09054381 2024-09-11 22:14:40,253 - INFO - Deleting VM ctest-TestRoutersBasic-77877728-75147314 2024-09-11 22:14:40,338 - INFO - Deleting VN ctest-ext_vn-20155728 2024-09-11 22:14:40,438 - DEBUG - VN 897f8797-0998-4bb3-bde7-70287d43e440 still in use: Unable to complete operation on network 897f8797-0998-4bb3-bde7-70287d43e440. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-bd22b3ae-327a-45b3-808b-f4b9fa1882f7'] 2024-09-11 22:14:40,438 - WARNING - Deleting VN ctest-ext_vn-20155728 failed..Will retry 2024-09-11 22:14:42,567 - DEBUG - Response for deleting network () 2024-09-11 22:14:42,567 - INFO - Deleting VN ctest-vn-12748728 2024-09-11 22:14:42,688 - DEBUG - Response for deleting network () 2024-09-11 22:14:42,948 - DEBUG - No XMPP flaps were noticed during the test 2024-09-11 22:14:42,948 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32] 2024-09-11 22:14:42,948 - INFO - -------------------------------------------------------------------------------- 2024-09-11 22:14:43,709 - INFO - Deleted project: ctest-TestRoutersBasic-77877728, ID : aa7e1bfa-6e39-4da1-8bb7-e2c4bd8bf8fb