2024-11-11 01:50:46,658 - INFO - Domain Default found not creating 2024-11-11 01:50:46,814 - INFO - Project ctest-TestRoutersBasic-66254360 not found, creating it 2024-11-11 01:50:47,291 - INFO - Created Project:ctest-TestRoutersBasic-66254360, ID : e189042c-9e42-4ea4-913d-139c2e68ff21 2024-11-11 01:50:48,895 - INFO - ================================================================================ 2024-11-11 01:50:48,895 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-11 01:50:48,895 - 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-11-11 01:50:49,158 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.29': '0'}} with 2024-11-11 01:50:49,158 - INFO - Initial checks done. Running the testcase now 2024-11-11 01:50:49,158 - INFO - 2024-11-11 01:50:49,906 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-66254360 2024-11-11 01:50:50,008 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-66254360 2024-11-11 01:50:50,344 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-66254360', 'default']} 2024-11-11 01:50:50,661 - DEBUG - Response for create_network : {'network': {'id': '2d42c09c-503d-4484-af52-6cda7012de96', 'name': 'ctest-vn-64047084', 'tenant_id': 'e189042c9e424ea4913d139c2e68ff21', 'project_id': 'e189042c9e424ea4913d139c2e68ff21', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-66254360', 'ctest-vn-64047084'], 'port_security_enabled': True, 'description': ''}} 2024-11-11 01:50:50,815 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e5dccf95-c401-441f-a94d-a974bdc1bbe3', 'name': '', 'tenant_id': 'e189042c9e424ea4913d139c2e68ff21', 'network_id': '2d42c09c-503d-4484-af52-6cda7012de96', 'ip_version': 4, 'cidr': '133.113.14.128/26', 'allocation_pools': [{'start': '133.113.14.130', 'end': '133.113.14.190'}], 'gateway_ip': '133.113.14.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.113.14.130', 'tags': [], 'project_id': 'e189042c9e424ea4913d139c2e68ff21'}} 2024-11-11 01:50:50,832 - INFO - Created VN ctest-vn-64047084 2024-11-11 01:50:50,888 - DEBUG - VN ctest-vn-64047084 UUID is 2d42c09c-503d-4484-af52-6cda7012de96 2024-11-11 01:50:51,244 - DEBUG - Response for create_network : {'network': {'id': '244c3821-6287-4771-a6bf-991241800a40', 'name': 'ctest-ext_vn-76695066', 'tenant_id': 'e189042c9e424ea4913d139c2e68ff21', 'project_id': 'e189042c9e424ea4913d139c2e68ff21', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-66254360', 'ctest-ext_vn-76695066'], 'port_security_enabled': True, 'description': ''}} 2024-11-11 01:50:51,404 - DEBUG - Response for create_subnet : {'subnet': {'id': '34fe4cd7-aab6-4c77-bd61-6eefcc9cc05e', 'name': '', 'tenant_id': 'e189042c9e424ea4913d139c2e68ff21', 'network_id': '244c3821-6287-4771-a6bf-991241800a40', 'ip_version': 4, 'cidr': '28.77.189.64/26', 'allocation_pools': [{'start': '28.77.189.66', 'end': '28.77.189.126'}], 'gateway_ip': '28.77.189.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.77.189.66', 'tags': [], 'project_id': 'e189042c9e424ea4913d139c2e68ff21'}} 2024-11-11 01:50:51,424 - INFO - Created VN ctest-ext_vn-76695066 2024-11-11 01:50:51,480 - DEBUG - VN ctest-ext_vn-76695066 UUID is 244c3821-6287-4771-a6bf-991241800a40 2024-11-11 01:50:51,653 - DEBUG - Services list from nova: [, , ] 2024-11-11 01:50:52,733 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2271-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2271-1) 2024-11-11 01:50:53,916 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2271-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2271-1) 2024-11-11 01:50:53,983 - INFO - Setting gateway for router 7d5f316c-3e94-4c06-843f-912913e8ba8e to network 244c3821-6287-4771-a6bf-991241800a40 2024-11-11 01:50:54,052 - INFO - Adding interface with subnet_id e5dccf95-c401-441f-a94d-a974bdc1bbe3, port_id None to router 7d5f316c-3e94-4c06-843f-912913e8ba8e 2024-11-11 01:50:54,520 - INFO - Waiting for VM ctest-TestRoutersBasic-66254360-57249412 to be up.. 2024-11-11 01:50:54,703 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-11 01:50:59,784 - DEBUG - VM is in ACTIVE state now 2024-11-11 01:50:59,785 - INFO - VM name : ctest-TestRoutersBasic-66254360-57249412 2024-11-11 01:50:59,864 - DEBUG - VM ctest-TestRoutersBasic-66254360-57249412 ID is af236f51-6f24-4cfc-9bd7-2f78feeb07ef 2024-11-11 01:50:59,881 - DEBUG - VM ctest-TestRoutersBasic-66254360-57249412 launched on Node cn-jenkins-deploy-platform-ansible-os-2271-1 2024-11-11 01:50:59,954 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/af236f51-6f24-4cfc-9bd7-2f78feeb07ef 2024-11-11 01:51:00,246 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/af236f51-6f24-4cfc-9bd7-2f78feeb07ef 2024-11-11 01:51:00,280 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/a327b9a1-254d-4491-a46e-27f4f9d0f024 2024-11-11 01:51:03,570 - 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 1029ms') 2024-11-11 01:51:03,570 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-66254360-57249412 failed! 2024-11-11 01:51:03,632 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-66254360:ctest-vn-64047084 is 133.113.14.129 and allocation pool is NOT set 2024-11-11 01:51:05,694 - 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.13 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.376 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.376/1.751/3.126/1.375 ms') 2024-11-11 01:51:05,695 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-66254360-57249412 passed 2024-11-11 01:51:05,856 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-11 01:51:05,856 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-66254360-57249412, IP 133.113.14.131, Port 22 2024-11-11 01:51:06,008 - DEBUG - VM ctest-TestRoutersBasic-66254360-57249412 is ready for SSH connections 2024-11-11 01:51:06,008 - INFO - Waiting for VM ctest-TestRoutersBasic-66254360-42442054 to be up.. 2024-11-11 01:51:06,090 - DEBUG - VM is in ACTIVE state now 2024-11-11 01:51:06,090 - INFO - VM name : ctest-TestRoutersBasic-66254360-42442054 2024-11-11 01:51:06,171 - DEBUG - VM ctest-TestRoutersBasic-66254360-42442054 ID is a6057d54-d232-41f5-bf3a-a26980feccae 2024-11-11 01:51:06,171 - DEBUG - VM ctest-TestRoutersBasic-66254360-42442054 launched on Node cn-jenkins-deploy-platform-ansible-os-2271-1 2024-11-11 01:51:06,266 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/a6057d54-d232-41f5-bf3a-a26980feccae 2024-11-11 01:51:06,276 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/7fd63a0a-28b2-4a66-a703-961fefebfb40 2024-11-11 01:51:07,531 - 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.97 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.339 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.339/1.653/2.968/1.314 ms') 2024-11-11 01:51:07,531 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-66254360-42442054 passed 2024-11-11 01:51:07,688 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-11 01:51:07,688 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-66254360-42442054, IP 28.77.189.67, Port 22 2024-11-11 01:51:07,844 - DEBUG - VM ctest-TestRoutersBasic-66254360-42442054 is ready for SSH connections 2024-11-11 01:51:07,844 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-11 01:51:07,844 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 28.77.189.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-11-11 01:51:07,844 - DEBUG - ping -s 56 -c 3 -W 1 28.77.189.67 2024-11-11 01:51:11,812 - DEBUG - PING 28.77.189.67 (28.77.189.67): 56 data bytes 64 bytes from 28.77.189.67: seq=0 ttl=62 time=7.588 ms 64 bytes from 28.77.189.67: seq=1 ttl=62 time=0.961 ms 64 bytes from 28.77.189.67: seq=2 ttl=62 time=1.006 ms --- 28.77.189.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.961/3.185/7.588 ms 2024-11-11 01:51:11,812 - INFO - Ping to IP 28.77.189.67 from VM ctest-TestRoutersBasic-66254360-57249412 passed 2024-11-11 01:51:11,812 - INFO - Deleting interface with subnet_id e5dccf95-c401-441f-a94d-a974bdc1bbe3, port_id None from router 7d5f316c-3e94-4c06-843f-912913e8ba8e 2024-11-11 01:51:12,048 - INFO - Deleting VM ctest-TestRoutersBasic-66254360-42442054 2024-11-11 01:51:12,112 - INFO - Deleting VM ctest-TestRoutersBasic-66254360-57249412 2024-11-11 01:51:12,191 - INFO - Deleting VN ctest-ext_vn-76695066 2024-11-11 01:51:12,264 - DEBUG - VN 244c3821-6287-4771-a6bf-991241800a40 still in use: Unable to complete operation on network 244c3821-6287-4771-a6bf-991241800a40. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-703e22ab-2ebf-4f60-ab1f-6f1121d21266'] 2024-11-11 01:51:12,265 - WARNING - Deleting VN ctest-ext_vn-76695066 failed..Will retry 2024-11-11 01:51:14,402 - DEBUG - Response for deleting network () 2024-11-11 01:51:14,402 - INFO - Deleting VN ctest-vn-64047084 2024-11-11 01:51:14,541 - DEBUG - Response for deleting network () 2024-11-11 01:51:14,799 - DEBUG - No XMPP flaps were noticed during the test 2024-11-11 01:51:14,799 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-11-11 01:51:14,799 - INFO - -------------------------------------------------------------------------------- 2024-11-11 01:51:15,540 - INFO - Deleted project: ctest-TestRoutersBasic-66254360, ID : e189042c-9e42-4ea4-913d-139c2e68ff21