2024-10-28 13:37:57,971 - INFO - Domain Default found not creating 2024-10-28 13:37:58,139 - INFO - Project ctest-TestRoutersBasic-80772580 not found, creating it 2024-10-28 13:37:58,641 - INFO - Created Project:ctest-TestRoutersBasic-80772580, ID : a2bf458b-db52-4e17-afb9-3509e3d0fd52 2024-10-28 13:38:00,258 - INFO - ================================================================================ 2024-10-28 13:38:00,258 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-28 13:38:00,258 - 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-10-28 13:38:00,514 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.6': '0'}} with 2024-10-28 13:38:00,515 - INFO - Initial checks done. Running the testcase now 2024-10-28 13:38:00,515 - INFO - 2024-10-28 13:38:01,240 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-80772580 2024-10-28 13:38:01,344 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-80772580 2024-10-28 13:38:01,687 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-80772580', 'default']} 2024-10-28 13:38:01,999 - DEBUG - Response for create_network : {'network': {'id': 'e1115397-7111-41b5-b87e-f0fd1adebac2', 'name': 'ctest-vn-80173652', 'tenant_id': 'a2bf458bdb524e17afb93509e3d0fd52', 'project_id': 'a2bf458bdb524e17afb93509e3d0fd52', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-80772580', 'ctest-vn-80173652'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 13:38:02,168 - DEBUG - Response for create_subnet : {'subnet': {'id': '9aee5451-f896-42e8-8a8e-277ecb5b56d9', 'name': '', 'tenant_id': 'a2bf458bdb524e17afb93509e3d0fd52', 'network_id': 'e1115397-7111-41b5-b87e-f0fd1adebac2', 'ip_version': 4, 'cidr': '97.220.157.128/26', 'allocation_pools': [{'start': '97.220.157.130', 'end': '97.220.157.190'}], 'gateway_ip': '97.220.157.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.220.157.130', 'tags': [], 'project_id': 'a2bf458bdb524e17afb93509e3d0fd52'}} 2024-10-28 13:38:02,193 - INFO - Created VN ctest-vn-80173652 2024-10-28 13:38:02,252 - DEBUG - VN ctest-vn-80173652 UUID is e1115397-7111-41b5-b87e-f0fd1adebac2 2024-10-28 13:38:02,751 - DEBUG - Response for create_network : {'network': {'id': '46bc694b-48a0-4eb8-b4a1-6f0ef36d1e26', 'name': 'ctest-ext_vn-93206884', 'tenant_id': 'a2bf458bdb524e17afb93509e3d0fd52', 'project_id': 'a2bf458bdb524e17afb93509e3d0fd52', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-80772580', 'ctest-ext_vn-93206884'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 13:38:02,920 - DEBUG - Response for create_subnet : {'subnet': {'id': '7069f211-4821-4e9f-9353-932fb590cf1f', 'name': '', 'tenant_id': 'a2bf458bdb524e17afb93509e3d0fd52', 'network_id': '46bc694b-48a0-4eb8-b4a1-6f0ef36d1e26', 'ip_version': 4, 'cidr': '25.61.228.192/26', 'allocation_pools': [{'start': '25.61.228.194', 'end': '25.61.228.254'}], 'gateway_ip': '25.61.228.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.61.228.194', 'tags': [], 'project_id': 'a2bf458bdb524e17afb93509e3d0fd52'}} 2024-10-28 13:38:02,941 - INFO - Created VN ctest-ext_vn-93206884 2024-10-28 13:38:03,000 - DEBUG - VN ctest-ext_vn-93206884 UUID is 46bc694b-48a0-4eb8-b4a1-6f0ef36d1e26 2024-10-28 13:38:03,178 - DEBUG - Services list from nova: [, , ] 2024-10-28 13:38:04,251 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2162-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2162-1) 2024-10-28 13:38:05,475 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2162-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2162-1) 2024-10-28 13:38:05,562 - INFO - Setting gateway for router f812a7d3-8ff3-46bb-93ce-ad26363c1ecf to network 46bc694b-48a0-4eb8-b4a1-6f0ef36d1e26 2024-10-28 13:38:05,656 - INFO - Adding interface with subnet_id 9aee5451-f896-42e8-8a8e-277ecb5b56d9, port_id None to router f812a7d3-8ff3-46bb-93ce-ad26363c1ecf 2024-10-28 13:38:06,139 - INFO - Waiting for VM ctest-TestRoutersBasic-80772580-14303352 to be up.. 2024-10-28 13:38:06,291 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-28 13:38:11,419 - DEBUG - VM is in ACTIVE state now 2024-10-28 13:38:11,419 - INFO - VM name : ctest-TestRoutersBasic-80772580-14303352 2024-10-28 13:38:11,520 - DEBUG - VM ctest-TestRoutersBasic-80772580-14303352 ID is 0e119c8a-ec21-4e68-aad0-99a926caa40b 2024-10-28 13:38:11,544 - DEBUG - VM ctest-TestRoutersBasic-80772580-14303352 launched on Node cn-jenkins-deploy-platform-ansible-os-2162-1 2024-10-28 13:38:11,642 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/0e119c8a-ec21-4e68-aad0-99a926caa40b 2024-10-28 13:38:11,938 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/0e119c8a-ec21-4e68-aad0-99a926caa40b 2024-10-28 13:38:11,980 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/ab6af7ae-eaea-4f0d-858d-1c26c59f312d 2024-10-28 13:38:15,242 - 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 1006ms') 2024-10-28 13:38:15,242 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-80772580-14303352 failed! 2024-10-28 13:38:15,300 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-80772580:ctest-vn-80173652 is 97.220.157.129 and allocation pool is NOT set 2024-10-28 13:38:17,360 - 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.11 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.98 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.976/3.045/4.114/1.069 ms') 2024-10-28 13:38:17,360 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-80772580-14303352 passed 2024-10-28 13:38:17,520 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 13:38:17,520 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-80772580-14303352, IP 97.220.157.131, Port 22 2024-10-28 13:38:17,690 - DEBUG - VM ctest-TestRoutersBasic-80772580-14303352 is ready for SSH connections 2024-10-28 13:38:17,690 - INFO - Waiting for VM ctest-TestRoutersBasic-80772580-33221098 to be up.. 2024-10-28 13:38:17,777 - DEBUG - VM is in ACTIVE state now 2024-10-28 13:38:17,777 - INFO - VM name : ctest-TestRoutersBasic-80772580-33221098 2024-10-28 13:38:17,866 - DEBUG - VM ctest-TestRoutersBasic-80772580-33221098 ID is 84a3c602-362f-4ae1-8c41-00c44a91cc6e 2024-10-28 13:38:17,866 - DEBUG - VM ctest-TestRoutersBasic-80772580-33221098 launched on Node cn-jenkins-deploy-platform-ansible-os-2162-1 2024-10-28 13:38:17,949 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/84a3c602-362f-4ae1-8c41-00c44a91cc6e 2024-10-28 13:38:17,960 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/eb6d3c78-417b-4606-8433-2b6e6eb59283 2024-10-28 13:38:19,213 - 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=2.94 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.416 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.416/1.678/2.941/1.262 ms') 2024-10-28 13:38:19,213 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-80772580-33221098 passed 2024-10-28 13:38:19,367 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 13:38:19,368 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-80772580-33221098, IP 25.61.228.195, Port 22 2024-10-28 13:38:19,523 - DEBUG - VM ctest-TestRoutersBasic-80772580-33221098 is ready for SSH connections 2024-10-28 13:38:19,523 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 13:38:19,523 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 25.61.228.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-10-28 13:38:19,524 - DEBUG - ping -s 56 -c 3 -W 1 25.61.228.195 2024-10-28 13:38:23,213 - DEBUG - PING 25.61.228.195 (25.61.228.195): 56 data bytes 64 bytes from 25.61.228.195: seq=0 ttl=62 time=6.289 ms 64 bytes from 25.61.228.195: seq=1 ttl=62 time=0.957 ms 64 bytes from 25.61.228.195: seq=2 ttl=62 time=1.145 ms --- 25.61.228.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.957/2.797/6.289 ms 2024-10-28 13:38:23,213 - INFO - Ping to IP 25.61.228.195 from VM ctest-TestRoutersBasic-80772580-14303352 passed 2024-10-28 13:38:23,213 - INFO - Deleting interface with subnet_id 9aee5451-f896-42e8-8a8e-277ecb5b56d9, port_id None from router f812a7d3-8ff3-46bb-93ce-ad26363c1ecf 2024-10-28 13:38:23,449 - INFO - Deleting VM ctest-TestRoutersBasic-80772580-33221098 2024-10-28 13:38:23,518 - INFO - Deleting VM ctest-TestRoutersBasic-80772580-14303352 2024-10-28 13:38:23,588 - INFO - Deleting VN ctest-ext_vn-93206884 2024-10-28 13:38:23,678 - DEBUG - VN 46bc694b-48a0-4eb8-b4a1-6f0ef36d1e26 still in use: Unable to complete operation on network 46bc694b-48a0-4eb8-b4a1-6f0ef36d1e26. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-284af3a8-32ca-4a2d-89c8-312670faa4b1'] 2024-10-28 13:38:23,678 - WARNING - Deleting VN ctest-ext_vn-93206884 failed..Will retry 2024-10-28 13:38:25,823 - DEBUG - Response for deleting network () 2024-10-28 13:38:25,823 - INFO - Deleting VN ctest-vn-80173652 2024-10-28 13:38:25,943 - DEBUG - Response for deleting network () 2024-10-28 13:38:26,198 - DEBUG - No XMPP flaps were noticed during the test 2024-10-28 13:38:26,198 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-10-28 13:38:26,198 - INFO - -------------------------------------------------------------------------------- 2024-10-28 13:38:26,961 - INFO - Deleted project: ctest-TestRoutersBasic-80772580, ID : a2bf458b-db52-4e17-afb9-3509e3d0fd52