2024-09-17 09:42:24,549 - INFO - Domain Default found not creating 2024-09-17 09:42:24,735 - INFO - Project ctest-TestRoutersBasic-46257827 not found, creating it 2024-09-17 09:42:25,255 - INFO - Created Project:ctest-TestRoutersBasic-46257827, ID : ecb51be0-219b-4cb7-8bbf-61476b56cc57 2024-09-17 09:42:27,096 - INFO - ================================================================================ 2024-09-17 09:42:27,096 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-17 09:42:27,096 - 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 09:42:27,357 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.20': '0'}} with 2024-09-17 09:42:27,357 - INFO - Initial checks done. Running the testcase now 2024-09-17 09:42:27,357 - INFO - 2024-09-17 09:42:28,179 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-46257827 2024-09-17 09:42:28,281 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-46257827 2024-09-17 09:42:28,629 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-46257827', 'default']} 2024-09-17 09:42:28,984 - DEBUG - Response for create_network : {'network': {'id': '87a4615b-82c1-4c97-97af-e02a4e4779db', 'name': 'ctest-vn-37899732', 'tenant_id': 'ecb51be0219b4cb78bbf61476b56cc57', 'project_id': 'ecb51be0219b4cb78bbf61476b56cc57', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-46257827', 'ctest-vn-37899732'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 09:42:29,197 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f43946fb-b0d1-4042-a12f-07953b65e383', 'name': '', 'tenant_id': 'ecb51be0219b4cb78bbf61476b56cc57', 'network_id': '87a4615b-82c1-4c97-97af-e02a4e4779db', 'ip_version': 4, 'cidr': '49.16.106.64/26', 'allocation_pools': [{'start': '49.16.106.66', 'end': '49.16.106.126'}], 'gateway_ip': '49.16.106.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.16.106.66', 'tags': [], 'project_id': 'ecb51be0219b4cb78bbf61476b56cc57'}} 2024-09-17 09:42:29,223 - INFO - Created VN ctest-vn-37899732 2024-09-17 09:42:29,281 - DEBUG - VN ctest-vn-37899732 UUID is 87a4615b-82c1-4c97-97af-e02a4e4779db 2024-09-17 09:42:29,685 - DEBUG - Response for create_network : {'network': {'id': 'ef67ac1d-f0f3-45dc-a129-ac9128563eb5', 'name': 'ctest-ext_vn-24311509', 'tenant_id': 'ecb51be0219b4cb78bbf61476b56cc57', 'project_id': 'ecb51be0219b4cb78bbf61476b56cc57', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-46257827', 'ctest-ext_vn-24311509'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 09:42:30,000 - DEBUG - Response for create_subnet : {'subnet': {'id': '9505bd0a-359e-44bc-83ba-12eaa2706d44', 'name': '', 'tenant_id': 'ecb51be0219b4cb78bbf61476b56cc57', 'network_id': 'ef67ac1d-f0f3-45dc-a129-ac9128563eb5', 'ip_version': 4, 'cidr': '7.242.174.192/26', 'allocation_pools': [{'start': '7.242.174.194', 'end': '7.242.174.254'}], 'gateway_ip': '7.242.174.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.242.174.194', 'tags': [], 'project_id': 'ecb51be0219b4cb78bbf61476b56cc57'}} 2024-09-17 09:42:30,027 - INFO - Created VN ctest-ext_vn-24311509 2024-09-17 09:42:30,089 - DEBUG - VN ctest-ext_vn-24311509 UUID is ef67ac1d-f0f3-45dc-a129-ac9128563eb5 2024-09-17 09:42:30,287 - DEBUG - Services list from nova: [, , ] 2024-09-17 09:42:31,551 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1958-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1958-1) 2024-09-17 09:42:32,948 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1958-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1958-1) 2024-09-17 09:42:33,040 - INFO - Setting gateway for router e0ee22ea-4fe4-4c5d-861b-56bfb729f80f to network ef67ac1d-f0f3-45dc-a129-ac9128563eb5 2024-09-17 09:42:33,120 - INFO - Adding interface with subnet_id f43946fb-b0d1-4042-a12f-07953b65e383, port_id None to router e0ee22ea-4fe4-4c5d-861b-56bfb729f80f 2024-09-17 09:42:33,526 - INFO - Waiting for VM ctest-TestRoutersBasic-46257827-70753429 to be up.. 2024-09-17 09:42:33,706 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-17 09:42:38,807 - DEBUG - VM is in ACTIVE state now 2024-09-17 09:42:38,807 - INFO - VM name : ctest-TestRoutersBasic-46257827-70753429 2024-09-17 09:42:38,900 - DEBUG - VM ctest-TestRoutersBasic-46257827-70753429 ID is d51a6cb0-38ce-4803-8e3a-fb1f3df4da08 2024-09-17 09:42:38,922 - DEBUG - VM ctest-TestRoutersBasic-46257827-70753429 launched on Node cn-jenkins-deploy-platform-ansible-os-1958-1 2024-09-17 09:42:39,014 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/d51a6cb0-38ce-4803-8e3a-fb1f3df4da08 2024-09-17 09:42:39,357 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/d51a6cb0-38ce-4803-8e3a-fb1f3df4da08 2024-09-17 09:42:39,397 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/8a26bb1d-7826-40bc-b805-04a55513a2fc 2024-09-17 09:42:42,676 - 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 1014ms') 2024-09-17 09:42:42,676 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-46257827-70753429 failed! 2024-09-17 09:42:42,745 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-46257827:ctest-vn-37899732 is 49.16.106.65 and allocation pool is NOT set 2024-09-17 09:42:44,813 - 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.29 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.474 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.474/1.884/3.294/1.410 ms') 2024-09-17 09:42:44,813 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-46257827-70753429 passed 2024-09-17 09:42:44,977 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 09:42:44,977 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-46257827-70753429, IP 49.16.106.67, Port 22 2024-09-17 09:42:45,148 - DEBUG - VM ctest-TestRoutersBasic-46257827-70753429 is ready for SSH connections 2024-09-17 09:42:45,148 - INFO - Waiting for VM ctest-TestRoutersBasic-46257827-26109484 to be up.. 2024-09-17 09:42:45,239 - DEBUG - VM is in ACTIVE state now 2024-09-17 09:42:45,239 - INFO - VM name : ctest-TestRoutersBasic-46257827-26109484 2024-09-17 09:42:45,322 - DEBUG - VM ctest-TestRoutersBasic-46257827-26109484 ID is a54f0a8b-f367-4393-9c11-c4807bca8b23 2024-09-17 09:42:45,322 - DEBUG - VM ctest-TestRoutersBasic-46257827-26109484 launched on Node cn-jenkins-deploy-platform-ansible-os-1958-1 2024-09-17 09:42:45,418 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/a54f0a8b-f367-4393-9c11-c4807bca8b23 2024-09-17 09:42:45,430 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/cb1f284c-05f3-411d-bb96-20268cd00598 2024-09-17 09:42:46,689 - 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=5.29 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.956 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.956/3.122/5.288/2.166 ms') 2024-09-17 09:42:46,689 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-46257827-26109484 passed 2024-09-17 09:42:46,849 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 09:42:46,849 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-46257827-26109484, IP 7.242.174.195, Port 22 2024-09-17 09:42:47,031 - DEBUG - VM ctest-TestRoutersBasic-46257827-26109484 is ready for SSH connections 2024-09-17 09:42:47,031 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 09:42:47,031 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 7.242.174.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2024-09-17 09:42:47,031 - DEBUG - ping -s 56 -c 3 -W 1 7.242.174.195 2024-09-17 09:42:50,795 - DEBUG - PING 7.242.174.195 (7.242.174.195): 56 data bytes 64 bytes from 7.242.174.195: seq=0 ttl=62 time=7.800 ms 64 bytes from 7.242.174.195: seq=1 ttl=62 time=0.891 ms 64 bytes from 7.242.174.195: seq=2 ttl=62 time=1.763 ms --- 7.242.174.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.891/3.484/7.800 ms 2024-09-17 09:42:50,795 - INFO - Ping to IP 7.242.174.195 from VM ctest-TestRoutersBasic-46257827-70753429 passed 2024-09-17 09:42:50,796 - INFO - Deleting interface with subnet_id f43946fb-b0d1-4042-a12f-07953b65e383, port_id None from router e0ee22ea-4fe4-4c5d-861b-56bfb729f80f 2024-09-17 09:42:51,097 - INFO - Deleting VM ctest-TestRoutersBasic-46257827-26109484 2024-09-17 09:42:51,179 - INFO - Deleting VM ctest-TestRoutersBasic-46257827-70753429 2024-09-17 09:42:51,294 - INFO - Deleting VN ctest-ext_vn-24311509 2024-09-17 09:42:51,423 - DEBUG - VN ef67ac1d-f0f3-45dc-a129-ac9128563eb5 still in use: Unable to complete operation on network ef67ac1d-f0f3-45dc-a129-ac9128563eb5. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-88ffb9e7-dff6-489b-a660-0f88c31a6afa'] 2024-09-17 09:42:51,424 - WARNING - Deleting VN ctest-ext_vn-24311509 failed..Will retry 2024-09-17 09:42:53,552 - DEBUG - Response for deleting network () 2024-09-17 09:42:53,552 - INFO - Deleting VN ctest-vn-37899732 2024-09-17 09:42:53,740 - DEBUG - Response for deleting network () 2024-09-17 09:42:54,002 - DEBUG - No XMPP flaps were noticed during the test 2024-09-17 09:42:54,002 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:27] 2024-09-17 09:42:54,002 - INFO - -------------------------------------------------------------------------------- 2024-09-17 09:42:54,801 - INFO - Deleted project: ctest-TestRoutersBasic-46257827, ID : ecb51be0-219b-4cb7-8bbf-61476b56cc57