2024-08-27 08:35:16,703 - INFO - Domain Default found not creating 2024-08-27 08:35:16,883 - INFO - Project ctest-TestRoutersBasic-68456694 not found, creating it 2024-08-27 08:35:17,396 - INFO - Created Project:ctest-TestRoutersBasic-68456694, ID : 1fdb90ac-d166-4eac-a1ca-b70d816081a0 2024-08-27 08:35:19,092 - INFO - ================================================================================ 2024-08-27 08:35:19,092 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-27 08:35:19,092 - 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-08-27 08:35:19,348 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.20': '0'}} with 2024-08-27 08:35:19,348 - INFO - Initial checks done. Running the testcase now 2024-08-27 08:35:19,348 - INFO - 2024-08-27 08:35:20,073 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-68456694 2024-08-27 08:35:20,174 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-68456694 2024-08-27 08:35:20,514 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-68456694', 'default']} 2024-08-27 08:35:20,838 - DEBUG - Response for create_network : {'network': {'id': 'cdb1ee59-987f-40b7-b113-d75830245caf', 'name': 'ctest-vn-43318789', 'tenant_id': '1fdb90acd1664eaca1cab70d816081a0', 'project_id': '1fdb90acd1664eaca1cab70d816081a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-68456694', 'ctest-vn-43318789'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 08:35:21,044 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b23d099d-b158-4c6c-b407-23eeeb6ae0e4', 'name': '', 'tenant_id': '1fdb90acd1664eaca1cab70d816081a0', 'network_id': 'cdb1ee59-987f-40b7-b113-d75830245caf', 'ip_version': 4, 'cidr': '203.221.22.192/26', 'allocation_pools': [{'start': '203.221.22.194', 'end': '203.221.22.254'}], 'gateway_ip': '203.221.22.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.221.22.194', 'tags': [], 'project_id': '1fdb90acd1664eaca1cab70d816081a0'}} 2024-08-27 08:35:21,069 - INFO - Created VN ctest-vn-43318789 2024-08-27 08:35:21,122 - DEBUG - VN ctest-vn-43318789 UUID is cdb1ee59-987f-40b7-b113-d75830245caf 2024-08-27 08:35:21,460 - DEBUG - Response for create_network : {'network': {'id': '2df231e1-4c81-4db4-8007-ec1a7b9cbf38', 'name': 'ctest-ext_vn-11333774', 'tenant_id': '1fdb90acd1664eaca1cab70d816081a0', 'project_id': '1fdb90acd1664eaca1cab70d816081a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-68456694', 'ctest-ext_vn-11333774'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 08:35:21,679 - DEBUG - Response for create_subnet : {'subnet': {'id': '0ef7f099-97bd-454d-8e78-a4f166bd887b', 'name': '', 'tenant_id': '1fdb90acd1664eaca1cab70d816081a0', 'network_id': '2df231e1-4c81-4db4-8007-ec1a7b9cbf38', 'ip_version': 4, 'cidr': '1.217.90.128/26', 'allocation_pools': [{'start': '1.217.90.130', 'end': '1.217.90.190'}], 'gateway_ip': '1.217.90.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '1.217.90.130', 'tags': [], 'project_id': '1fdb90acd1664eaca1cab70d816081a0'}} 2024-08-27 08:35:21,704 - INFO - Created VN ctest-ext_vn-11333774 2024-08-27 08:35:21,754 - DEBUG - VN ctest-ext_vn-11333774 UUID is 2df231e1-4c81-4db4-8007-ec1a7b9cbf38 2024-08-27 08:35:21,928 - DEBUG - Services list from nova: [, , ] 2024-08-27 08:35:23,003 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1794-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1794-1) 2024-08-27 08:35:24,420 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1794-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1794-1) 2024-08-27 08:35:24,661 - INFO - Setting gateway for router 34087628-20f4-477f-b4c0-0ea4f12866f5 to network 2df231e1-4c81-4db4-8007-ec1a7b9cbf38 2024-08-27 08:35:24,752 - INFO - Adding interface with subnet_id b23d099d-b158-4c6c-b407-23eeeb6ae0e4, port_id None to router 34087628-20f4-477f-b4c0-0ea4f12866f5 2024-08-27 08:35:25,315 - INFO - Waiting for VM ctest-TestRoutersBasic-68456694-58469711 to be up.. 2024-08-27 08:35:25,505 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-27 08:35:30,647 - DEBUG - VM is in ACTIVE state now 2024-08-27 08:35:30,647 - INFO - VM name : ctest-TestRoutersBasic-68456694-58469711 2024-08-27 08:35:30,798 - DEBUG - VM ctest-TestRoutersBasic-68456694-58469711 ID is f5b3f5e1-34c0-4647-a190-33dc61467f0e 2024-08-27 08:35:30,833 - DEBUG - VM ctest-TestRoutersBasic-68456694-58469711 launched on Node cn-jenkins-deploy-platform-ansible-os-1794-1 2024-08-27 08:35:30,966 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/f5b3f5e1-34c0-4647-a190-33dc61467f0e 2024-08-27 08:35:31,289 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/f5b3f5e1-34c0-4647-a190-33dc61467f0e 2024-08-27 08:35:31,336 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/12430946-cc88-449d-83fe-219d66566701 2024-08-27 08:35:34,588 - 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 1001ms') 2024-08-27 08:35:34,588 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-68456694-58469711 failed! 2024-08-27 08:35:34,642 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-68456694:ctest-vn-43318789 is 203.221.22.193 and allocation pool is NOT set 2024-08-27 08:35:36,700 - 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=2.86 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.593 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.593/1.725/2.858/1.132 ms') 2024-08-27 08:35:36,700 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-68456694-58469711 passed 2024-08-27 08:35:36,858 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 08:35:36,858 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-68456694-58469711, IP 203.221.22.195, Port 22 2024-08-27 08:35:37,013 - DEBUG - VM ctest-TestRoutersBasic-68456694-58469711 is ready for SSH connections 2024-08-27 08:35:37,013 - INFO - Waiting for VM ctest-TestRoutersBasic-68456694-68294267 to be up.. 2024-08-27 08:35:37,107 - DEBUG - VM is in ACTIVE state now 2024-08-27 08:35:37,107 - INFO - VM name : ctest-TestRoutersBasic-68456694-68294267 2024-08-27 08:35:37,202 - DEBUG - VM ctest-TestRoutersBasic-68456694-68294267 ID is bfb79520-e736-4ee3-8a1f-c8378b2247aa 2024-08-27 08:35:37,202 - DEBUG - VM ctest-TestRoutersBasic-68456694-68294267 launched on Node cn-jenkins-deploy-platform-ansible-os-1794-1 2024-08-27 08:35:37,295 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/bfb79520-e736-4ee3-8a1f-c8378b2247aa 2024-08-27 08:35:37,307 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/1efbd35e-d022-497e-90c1-c09b61b4685b 2024-08-27 08:35:38,545 - 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.99 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.421 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.421/1.707/2.993/1.286 ms') 2024-08-27 08:35:38,545 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-68456694-68294267 passed 2024-08-27 08:35:38,698 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 08:35:38,698 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-68456694-68294267, IP 1.217.90.131, Port 22 2024-08-27 08:35:38,853 - DEBUG - VM ctest-TestRoutersBasic-68456694-68294267 is ready for SSH connections 2024-08-27 08:35:38,854 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 08:35:38,854 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 1.217.90.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-08-27 08:35:38,854 - DEBUG - ping -s 56 -c 3 -W 1 1.217.90.131 2024-08-27 08:35:42,556 - DEBUG - PING 1.217.90.131 (1.217.90.131): 56 data bytes 64 bytes from 1.217.90.131: seq=0 ttl=62 time=6.142 ms 64 bytes from 1.217.90.131: seq=1 ttl=62 time=1.276 ms 64 bytes from 1.217.90.131: seq=2 ttl=62 time=0.857 ms --- 1.217.90.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.857/2.758/6.142 ms 2024-08-27 08:35:42,556 - INFO - Ping to IP 1.217.90.131 from VM ctest-TestRoutersBasic-68456694-58469711 passed 2024-08-27 08:35:42,556 - INFO - Deleting interface with subnet_id b23d099d-b158-4c6c-b407-23eeeb6ae0e4, port_id None from router 34087628-20f4-477f-b4c0-0ea4f12866f5 2024-08-27 08:35:42,764 - INFO - Deleting VM ctest-TestRoutersBasic-68456694-68294267 2024-08-27 08:35:42,836 - INFO - Deleting VM ctest-TestRoutersBasic-68456694-58469711 2024-08-27 08:35:42,921 - INFO - Deleting VN ctest-ext_vn-11333774 2024-08-27 08:35:43,018 - DEBUG - VN 2df231e1-4c81-4db4-8007-ec1a7b9cbf38 still in use: Unable to complete operation on network 2df231e1-4c81-4db4-8007-ec1a7b9cbf38. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-710c72e3-7169-49f3-be4a-e02be60ad5bf'] 2024-08-27 08:35:43,018 - WARNING - Deleting VN ctest-ext_vn-11333774 failed..Will retry 2024-08-27 08:35:45,171 - DEBUG - Response for deleting network () 2024-08-27 08:35:45,171 - INFO - Deleting VN ctest-vn-43318789 2024-08-27 08:35:45,305 - DEBUG - Response for deleting network () 2024-08-27 08:35:45,565 - DEBUG - No XMPP flaps were noticed during the test 2024-08-27 08:35:45,565 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-08-27 08:35:45,565 - INFO - -------------------------------------------------------------------------------- 2024-08-27 08:35:46,259 - INFO - Deleted project: ctest-TestRoutersBasic-68456694, ID : 1fdb90ac-d166-4eac-a1ca-b70d816081a0