2024-08-21 14:44:45,449 - INFO - Domain Default found not creating 2024-08-21 14:44:45,614 - INFO - Project ctest-TestRoutersBasic-28038443 not found, creating it 2024-08-21 14:44:46,095 - INFO - Created Project:ctest-TestRoutersBasic-28038443, ID : 8759d34f-2c83-403c-a300-a5d598e1ca5b 2024-08-21 14:44:47,673 - INFO - ================================================================================ 2024-08-21 14:44:47,673 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-21 14:44:47,673 - 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-21 14:44:47,934 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.5': '0'}} with 2024-08-21 14:44:47,934 - INFO - Initial checks done. Running the testcase now 2024-08-21 14:44:47,934 - INFO - 2024-08-21 14:44:48,653 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-28038443 2024-08-21 14:44:48,753 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-28038443 2024-08-21 14:44:49,076 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28038443', 'default']} 2024-08-21 14:44:49,361 - DEBUG - Response for create_network : {'network': {'id': 'bbe4797c-9726-4be1-87dd-2098a6b8ecd9', 'name': 'ctest-vn-51496745', 'tenant_id': '8759d34f2c83403ca300a5d598e1ca5b', 'project_id': '8759d34f2c83403ca300a5d598e1ca5b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28038443', 'ctest-vn-51496745'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 14:44:49,588 - DEBUG - Response for create_subnet : {'subnet': {'id': '641e3c62-cbf5-492b-9b56-1059b0200824', 'name': '', 'tenant_id': '8759d34f2c83403ca300a5d598e1ca5b', 'network_id': 'bbe4797c-9726-4be1-87dd-2098a6b8ecd9', 'ip_version': 4, 'cidr': '160.244.69.64/26', 'allocation_pools': [{'start': '160.244.69.66', 'end': '160.244.69.126'}], 'gateway_ip': '160.244.69.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.244.69.66', 'tags': [], 'project_id': '8759d34f2c83403ca300a5d598e1ca5b'}} 2024-08-21 14:44:49,609 - INFO - Created VN ctest-vn-51496745 2024-08-21 14:44:49,660 - DEBUG - VN ctest-vn-51496745 UUID is bbe4797c-9726-4be1-87dd-2098a6b8ecd9 2024-08-21 14:44:49,961 - DEBUG - Response for create_network : {'network': {'id': '11349ad2-63ae-48a3-ba20-d89830e04c6d', 'name': 'ctest-ext_vn-42765137', 'tenant_id': '8759d34f2c83403ca300a5d598e1ca5b', 'project_id': '8759d34f2c83403ca300a5d598e1ca5b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28038443', 'ctest-ext_vn-42765137'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 14:44:50,112 - DEBUG - Response for create_subnet : {'subnet': {'id': '2cedf832-f244-4911-accf-610ed780242b', 'name': '', 'tenant_id': '8759d34f2c83403ca300a5d598e1ca5b', 'network_id': '11349ad2-63ae-48a3-ba20-d89830e04c6d', 'ip_version': 4, 'cidr': '102.230.141.192/26', 'allocation_pools': [{'start': '102.230.141.194', 'end': '102.230.141.254'}], 'gateway_ip': '102.230.141.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '102.230.141.194', 'tags': [], 'project_id': '8759d34f2c83403ca300a5d598e1ca5b'}} 2024-08-21 14:44:50,131 - INFO - Created VN ctest-ext_vn-42765137 2024-08-21 14:44:50,180 - DEBUG - VN ctest-ext_vn-42765137 UUID is 11349ad2-63ae-48a3-ba20-d89830e04c6d 2024-08-21 14:44:50,343 - DEBUG - Services list from nova: [, , ] 2024-08-21 14:44:51,351 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1691-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1691-1) 2024-08-21 14:44:52,487 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1691-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1691-1) 2024-08-21 14:44:52,570 - INFO - Setting gateway for router 79a1e20e-4276-4e0a-a594-e622b849905b to network 11349ad2-63ae-48a3-ba20-d89830e04c6d 2024-08-21 14:44:52,655 - INFO - Adding interface with subnet_id 641e3c62-cbf5-492b-9b56-1059b0200824, port_id None to router 79a1e20e-4276-4e0a-a594-e622b849905b 2024-08-21 14:44:53,203 - INFO - Waiting for VM ctest-TestRoutersBasic-28038443-27169156 to be up.. 2024-08-21 14:44:53,377 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-21 14:44:58,457 - DEBUG - VM is in ACTIVE state now 2024-08-21 14:44:58,458 - INFO - VM name : ctest-TestRoutersBasic-28038443-27169156 2024-08-21 14:44:58,538 - DEBUG - VM ctest-TestRoutersBasic-28038443-27169156 ID is ea452ff6-41d3-448d-ab3f-f9de1ec48ed2 2024-08-21 14:44:58,557 - DEBUG - VM ctest-TestRoutersBasic-28038443-27169156 launched on Node cn-jenkins-deploy-platform-ansible-os-1691-1 2024-08-21 14:44:58,636 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/ea452ff6-41d3-448d-ab3f-f9de1ec48ed2 2024-08-21 14:44:58,929 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/ea452ff6-41d3-448d-ab3f-f9de1ec48ed2 2024-08-21 14:44:58,962 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/53282615-b52e-431b-9d1a-9c616a416f25 2024-08-21 14:45:02,209 - 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 1007ms') 2024-08-21 14:45:02,209 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-28038443-27169156 failed! 2024-08-21 14:45:02,265 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-28038443:ctest-vn-51496745 is 160.244.69.65 and allocation pool is NOT set 2024-08-21 14:45:04,321 - 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.91 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.306 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.306/1.605/2.905/1.299 ms') 2024-08-21 14:45:04,321 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-28038443-27169156 passed 2024-08-21 14:45:04,468 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 14:45:04,469 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-28038443-27169156, IP 160.244.69.67, Port 22 2024-08-21 14:45:04,647 - DEBUG - VM ctest-TestRoutersBasic-28038443-27169156 is ready for SSH connections 2024-08-21 14:45:04,647 - INFO - Waiting for VM ctest-TestRoutersBasic-28038443-23015848 to be up.. 2024-08-21 14:45:04,743 - DEBUG - VM is in ACTIVE state now 2024-08-21 14:45:04,744 - INFO - VM name : ctest-TestRoutersBasic-28038443-23015848 2024-08-21 14:45:04,831 - DEBUG - VM ctest-TestRoutersBasic-28038443-23015848 ID is 79b9bb97-cebe-412b-8089-10ff6c35e4c4 2024-08-21 14:45:04,831 - DEBUG - VM ctest-TestRoutersBasic-28038443-23015848 launched on Node cn-jenkins-deploy-platform-ansible-os-1691-1 2024-08-21 14:45:04,914 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/79b9bb97-cebe-412b-8089-10ff6c35e4c4 2024-08-21 14:45:04,924 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/8f65c77d-ecc2-46ea-adbd-096f0e03ad33 2024-08-21 14:45:06,182 - 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.79 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.388 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.388/1.588/2.788/1.200 ms') 2024-08-21 14:45:06,182 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-28038443-23015848 passed 2024-08-21 14:45:06,332 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 14:45:06,333 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-28038443-23015848, IP 102.230.141.195, Port 22 2024-08-21 14:45:06,484 - DEBUG - VM ctest-TestRoutersBasic-28038443-23015848 is ready for SSH connections 2024-08-21 14:45:06,484 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 14:45:06,485 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 102.230.141.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2024-08-21 14:45:06,485 - DEBUG - ping -s 56 -c 3 -W 1 102.230.141.195 2024-08-21 14:45:10,479 - DEBUG - PING 102.230.141.195 (102.230.141.195): 56 data bytes 64 bytes from 102.230.141.195: seq=0 ttl=62 time=5.307 ms 64 bytes from 102.230.141.195: seq=1 ttl=62 time=0.797 ms 64 bytes from 102.230.141.195: seq=2 ttl=62 time=0.805 ms --- 102.230.141.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.797/2.303/5.307 ms 2024-08-21 14:45:10,479 - INFO - Ping to IP 102.230.141.195 from VM ctest-TestRoutersBasic-28038443-27169156 passed 2024-08-21 14:45:10,480 - INFO - Deleting interface with subnet_id 641e3c62-cbf5-492b-9b56-1059b0200824, port_id None from router 79a1e20e-4276-4e0a-a594-e622b849905b 2024-08-21 14:45:10,687 - INFO - Deleting VM ctest-TestRoutersBasic-28038443-23015848 2024-08-21 14:45:10,749 - INFO - Deleting VM ctest-TestRoutersBasic-28038443-27169156 2024-08-21 14:45:10,818 - INFO - Deleting VN ctest-ext_vn-42765137 2024-08-21 14:45:10,887 - DEBUG - VN 11349ad2-63ae-48a3-ba20-d89830e04c6d still in use: Unable to complete operation on network 11349ad2-63ae-48a3-ba20-d89830e04c6d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9fb68512-a97f-4c01-836e-a368ca4bcc82'] 2024-08-21 14:45:10,887 - WARNING - Deleting VN ctest-ext_vn-42765137 failed..Will retry 2024-08-21 14:45:13,360 - DEBUG - Response for deleting network () 2024-08-21 14:45:13,361 - INFO - Deleting VN ctest-vn-51496745 2024-08-21 14:45:13,482 - DEBUG - Response for deleting network () 2024-08-21 14:45:13,738 - DEBUG - No XMPP flaps were noticed during the test
2024-08-21 14:45:13,738 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2024-08-21 14:45:13,738 - INFO - -------------------------------------------------------------------------------- 2024-08-21 14:45:14,410 - INFO - Deleted project: ctest-TestRoutersBasic-28038443, ID : 8759d34f-2c83-403c-a300-a5d598e1ca5b