2024-09-17 20:18:37,683 - INFO - Domain Default found not creating 2024-09-17 20:18:37,871 - INFO - Project ctest-TestRoutersBasic-67581286 not found, creating it 2024-09-17 20:18:38,395 - INFO - Created Project:ctest-TestRoutersBasic-67581286, ID : 40968a1e-a67d-4890-9efe-7dfbe80737d9 2024-09-17 20:18:39,980 - INFO - ================================================================================ 2024-09-17 20:18:39,980 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-17 20:18:39,980 - 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-17 20:18:40,237 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.5': '0'}} with 2024-09-17 20:18:40,237 - INFO - Initial checks done. Running the testcase now 2024-09-17 20:18:40,237 - INFO - 2024-09-17 20:18:40,964 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-67581286 2024-09-17 20:18:41,067 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-67581286 2024-09-17 20:18:41,442 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-67581286', 'default']} 2024-09-17 20:18:41,770 - DEBUG - Response for create_network : {'network': {'id': '1678b98b-90b7-4c0d-ac8b-79c1cf4eb889', 'name': 'ctest-vn-08691602', 'tenant_id': '40968a1ea67d48909efe7dfbe80737d9', 'project_id': '40968a1ea67d48909efe7dfbe80737d9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-67581286', 'ctest-vn-08691602'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 20:18:41,929 - DEBUG - Response for create_subnet : {'subnet': {'id': '5c28e020-85d9-444c-9688-8725deede830', 'name': '', 'tenant_id': '40968a1ea67d48909efe7dfbe80737d9', 'network_id': '1678b98b-90b7-4c0d-ac8b-79c1cf4eb889', 'ip_version': 4, 'cidr': '161.145.39.64/26', 'allocation_pools': [{'start': '161.145.39.66', 'end': '161.145.39.126'}], 'gateway_ip': '161.145.39.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '161.145.39.66', 'tags': [], 'project_id': '40968a1ea67d48909efe7dfbe80737d9'}} 2024-09-17 20:18:41,950 - INFO - Created VN ctest-vn-08691602 2024-09-17 20:18:42,010 - DEBUG - VN ctest-vn-08691602 UUID is 1678b98b-90b7-4c0d-ac8b-79c1cf4eb889 2024-09-17 20:18:42,386 - DEBUG - Response for create_network : {'network': {'id': '864b800f-52ee-412a-9287-5d1768e81a4a', 'name': 'ctest-ext_vn-43844528', 'tenant_id': '40968a1ea67d48909efe7dfbe80737d9', 'project_id': '40968a1ea67d48909efe7dfbe80737d9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-67581286', 'ctest-ext_vn-43844528'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 20:18:42,548 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aaf6e5ef-a01e-49f9-bbd8-1988350ca780', 'name': '', 'tenant_id': '40968a1ea67d48909efe7dfbe80737d9', 'network_id': '864b800f-52ee-412a-9287-5d1768e81a4a', 'ip_version': 4, 'cidr': '130.141.36.64/26', 'allocation_pools': [{'start': '130.141.36.66', 'end': '130.141.36.126'}], 'gateway_ip': '130.141.36.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.141.36.66', 'tags': [], 'project_id': '40968a1ea67d48909efe7dfbe80737d9'}} 2024-09-17 20:18:42,569 - INFO - Created VN ctest-ext_vn-43844528 2024-09-17 20:18:42,626 - DEBUG - VN ctest-ext_vn-43844528 UUID is 864b800f-52ee-412a-9287-5d1768e81a4a 2024-09-17 20:18:42,794 - DEBUG - Services list from nova: [, , ] 2024-09-17 20:18:43,852 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1971-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1971-1) 2024-09-17 20:18:45,097 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1971-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1971-1) 2024-09-17 20:18:45,173 - INFO - Setting gateway for router e7c71218-a7fc-4a0e-8a03-959709640017 to network 864b800f-52ee-412a-9287-5d1768e81a4a 2024-09-17 20:18:45,247 - INFO - Adding interface with subnet_id 5c28e020-85d9-444c-9688-8725deede830, port_id None to router e7c71218-a7fc-4a0e-8a03-959709640017 2024-09-17 20:18:45,732 - INFO - Waiting for VM ctest-TestRoutersBasic-67581286-58360878 to be up.. 2024-09-17 20:18:45,900 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-17 20:18:50,985 - DEBUG - VM is in ACTIVE state now 2024-09-17 20:18:50,985 - INFO - VM name : ctest-TestRoutersBasic-67581286-58360878 2024-09-17 20:18:51,064 - DEBUG - VM ctest-TestRoutersBasic-67581286-58360878 ID is 4ac9f5b4-5066-44de-8a94-f3be20ce73f3 2024-09-17 20:18:51,083 - DEBUG - VM ctest-TestRoutersBasic-67581286-58360878 launched on Node cn-jenkins-deploy-platform-ansible-os-1971-1 2024-09-17 20:18:51,160 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/4ac9f5b4-5066-44de-8a94-f3be20ce73f3 2024-09-17 20:18:51,464 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/4ac9f5b4-5066-44de-8a94-f3be20ce73f3 2024-09-17 20:18:51,505 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/c2ebf9c6-be8a-413a-a4d0-f783396b2242 2024-09-17 20:18:54,767 - 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-09-17 20:18:54,767 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-67581286-58360878 failed! 2024-09-17 20:18:54,830 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-67581286:ctest-vn-08691602 is 161.145.39.65 and allocation pool is NOT set 2024-09-17 20:18:56,900 - 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=3.49 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.487 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.487/1.989/3.492/1.502 ms') 2024-09-17 20:18:56,901 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-67581286-58360878 passed 2024-09-17 20:18:57,058 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 20:18:57,058 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-67581286-58360878, IP 161.145.39.67, Port 22 2024-09-17 20:18:57,214 - DEBUG - VM ctest-TestRoutersBasic-67581286-58360878 is ready for SSH connections 2024-09-17 20:18:57,215 - INFO - Waiting for VM ctest-TestRoutersBasic-67581286-09175970 to be up.. 2024-09-17 20:18:57,360 - DEBUG - VM is in ACTIVE state now 2024-09-17 20:18:57,360 - INFO - VM name : ctest-TestRoutersBasic-67581286-09175970 2024-09-17 20:18:57,437 - DEBUG - VM ctest-TestRoutersBasic-67581286-09175970 ID is f2febedd-d175-4d8e-a7c6-69c7ee9bf348 2024-09-17 20:18:57,437 - DEBUG - VM ctest-TestRoutersBasic-67581286-09175970 launched on Node cn-jenkins-deploy-platform-ansible-os-1971-1 2024-09-17 20:18:57,512 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/f2febedd-d175-4d8e-a7c6-69c7ee9bf348 2024-09-17 20:18:57,522 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/79cdb61d-1f8c-439f-8997-b9104b664ea5 2024-09-17 20:18:58,769 - 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.88 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.663 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.663/1.773/2.883/1.110 ms') 2024-09-17 20:18:58,769 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-67581286-09175970 passed 2024-09-17 20:18:58,930 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 20:18:58,930 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-67581286-09175970, IP 130.141.36.67, Port 22 2024-09-17 20:18:59,086 - DEBUG - VM ctest-TestRoutersBasic-67581286-09175970 is ready for SSH connections 2024-09-17 20:18:59,086 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 20:18:59,086 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 130.141.36.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2024-09-17 20:18:59,086 - DEBUG - ping -s 56 -c 3 -W 1 130.141.36.67 2024-09-17 20:19:02,805 - DEBUG - PING 130.141.36.67 (130.141.36.67): 56 data bytes 64 bytes from 130.141.36.67: seq=0 ttl=62 time=5.470 ms 64 bytes from 130.141.36.67: seq=1 ttl=62 time=1.173 ms 64 bytes from 130.141.36.67: seq=2 ttl=62 time=0.792 ms --- 130.141.36.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.792/2.478/5.470 ms 2024-09-17 20:19:02,806 - INFO - Ping to IP 130.141.36.67 from VM ctest-TestRoutersBasic-67581286-58360878 passed 2024-09-17 20:19:02,806 - INFO - Deleting interface with subnet_id 5c28e020-85d9-444c-9688-8725deede830, port_id None from router e7c71218-a7fc-4a0e-8a03-959709640017 2024-09-17 20:19:03,032 - INFO - Deleting VM ctest-TestRoutersBasic-67581286-09175970 2024-09-17 20:19:03,103 - INFO - Deleting VM ctest-TestRoutersBasic-67581286-58360878 2024-09-17 20:19:03,196 - INFO - Deleting VN ctest-ext_vn-43844528 2024-09-17 20:19:03,276 - DEBUG - VN 864b800f-52ee-412a-9287-5d1768e81a4a still in use: Unable to complete operation on network 864b800f-52ee-412a-9287-5d1768e81a4a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-1051d64f-a8ed-462d-b839-7a4e45541b58'] 2024-09-17 20:19:03,276 - WARNING - Deleting VN ctest-ext_vn-43844528 failed..Will retry 2024-09-17 20:19:05,381 - DEBUG - Response for deleting network () 2024-09-17 20:19:05,381 - INFO - Deleting VN ctest-vn-08691602 2024-09-17 20:19:05,484 - DEBUG - Response for deleting network () 2024-09-17 20:19:05,740 - DEBUG - No XMPP flaps were noticed during the test
2024-09-17 20:19:05,740 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2024-09-17 20:19:05,740 - INFO - -------------------------------------------------------------------------------- 2024-09-17 20:19:06,411 - INFO - Deleted project: ctest-TestRoutersBasic-67581286, ID : 40968a1e-a67d-4890-9efe-7dfbe80737d9