2024-09-11 15:25:01,371 - INFO - Domain Default found not creating 2024-09-11 15:25:01,531 - INFO - Project ctest-TestRoutersBasic-90528665 not found, creating it 2024-09-11 15:25:02,009 - INFO - Created Project:ctest-TestRoutersBasic-90528665, ID : 2f3a274c-1aa5-4276-a4ff-bbf88b87c9f9 2024-09-11 15:25:03,533 - INFO - ================================================================================ 2024-09-11 15:25:03,533 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-11 15:25:03,533 - 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-11 15:25:03,790 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.20': '0'}} with 2024-09-11 15:25:03,790 - INFO - Initial checks done. Running the testcase now 2024-09-11 15:25:03,791 - INFO - 2024-09-11 15:25:04,579 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-90528665 2024-09-11 15:25:04,673 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-90528665 2024-09-11 15:25:05,000 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-90528665', 'default']} 2024-09-11 15:25:05,283 - DEBUG - Response for create_network : {'network': {'id': '9fdc8b30-c3c6-407b-8d38-05647c59eb91', 'name': 'ctest-vn-59349930', 'tenant_id': '2f3a274c1aa54276a4ffbbf88b87c9f9', 'project_id': '2f3a274c1aa54276a4ffbbf88b87c9f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-90528665', 'ctest-vn-59349930'], 'port_security_enabled': True, 'description': ''}} 2024-09-11 15:25:05,482 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a61f7f22-2e72-4c40-a44b-b7692243275f', 'name': '', 'tenant_id': '2f3a274c1aa54276a4ffbbf88b87c9f9', 'network_id': '9fdc8b30-c3c6-407b-8d38-05647c59eb91', 'ip_version': 4, 'cidr': '5.10.129.0/26', 'allocation_pools': [{'start': '5.10.129.2', 'end': '5.10.129.62'}], 'gateway_ip': '5.10.129.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.10.129.2', 'tags': [], 'project_id': '2f3a274c1aa54276a4ffbbf88b87c9f9'}} 2024-09-11 15:25:05,501 - INFO - Created VN ctest-vn-59349930 2024-09-11 15:25:05,553 - DEBUG - VN ctest-vn-59349930 UUID is 9fdc8b30-c3c6-407b-8d38-05647c59eb91 2024-09-11 15:25:05,944 - DEBUG - Response for create_network : {'network': {'id': '2a982936-6c9b-4048-82ff-313ef66b517d', 'name': 'ctest-ext_vn-87847903', 'tenant_id': '2f3a274c1aa54276a4ffbbf88b87c9f9', 'project_id': '2f3a274c1aa54276a4ffbbf88b87c9f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-90528665', 'ctest-ext_vn-87847903'], 'port_security_enabled': True, 'description': ''}} 2024-09-11 15:25:06,130 - DEBUG - Response for create_subnet : {'subnet': {'id': '52308a19-9fdb-4810-bde3-0bd98c39dfd9', 'name': '', 'tenant_id': '2f3a274c1aa54276a4ffbbf88b87c9f9', 'network_id': '2a982936-6c9b-4048-82ff-313ef66b517d', 'ip_version': 4, 'cidr': '129.187.199.192/26', 'allocation_pools': [{'start': '129.187.199.194', 'end': '129.187.199.254'}], 'gateway_ip': '129.187.199.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.187.199.194', 'tags': [], 'project_id': '2f3a274c1aa54276a4ffbbf88b87c9f9'}} 2024-09-11 15:25:06,150 - INFO - Created VN ctest-ext_vn-87847903 2024-09-11 15:25:06,201 - DEBUG - VN ctest-ext_vn-87847903 UUID is 2a982936-6c9b-4048-82ff-313ef66b517d 2024-09-11 15:25:06,367 - DEBUG - Services list from nova: [, , ] 2024-09-11 15:25:07,398 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1895-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1895-1) 2024-09-11 15:25:08,560 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1895-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1895-1) 2024-09-11 15:25:08,633 - INFO - Setting gateway for router c68a71f1-0f3c-44f9-9e6f-b8954d7226e6 to network 2a982936-6c9b-4048-82ff-313ef66b517d 2024-09-11 15:25:08,719 - INFO - Adding interface with subnet_id a61f7f22-2e72-4c40-a44b-b7692243275f, port_id None to router c68a71f1-0f3c-44f9-9e6f-b8954d7226e6 2024-09-11 15:25:09,026 - INFO - Waiting for VM ctest-TestRoutersBasic-90528665-37569698 to be up.. 2024-09-11 15:25:09,169 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-11 15:25:14,250 - DEBUG - VM is in ACTIVE state now 2024-09-11 15:25:14,251 - INFO - VM name : ctest-TestRoutersBasic-90528665-37569698 2024-09-11 15:25:14,335 - DEBUG - VM ctest-TestRoutersBasic-90528665-37569698 ID is d509b30e-131f-43eb-baab-40e746286a7a 2024-09-11 15:25:14,355 - DEBUG - VM ctest-TestRoutersBasic-90528665-37569698 launched on Node cn-jenkins-deploy-platform-ansible-os-1895-1 2024-09-11 15:25:14,429 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/d509b30e-131f-43eb-baab-40e746286a7a 2024-09-11 15:25:14,730 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/d509b30e-131f-43eb-baab-40e746286a7a 2024-09-11 15:25:14,766 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/973cea69-d699-4fe6-a259-23a9408e488b 2024-09-11 15:25:18,011 - 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 1004ms') 2024-09-11 15:25:18,011 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-90528665-37569698 failed! 2024-09-11 15:25:18,065 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-90528665:ctest-vn-59349930 is 5.10.129.1 and allocation pool is NOT set 2024-09-11 15:25:20,125 - 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.71 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.400 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.400/1.553/2.706/1.153 ms') 2024-09-11 15:25:20,125 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-90528665-37569698 passed 2024-09-11 15:25:20,277 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 15:25:20,277 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-90528665-37569698, IP 5.10.129.3, Port 22 2024-09-11 15:25:20,428 - DEBUG - VM ctest-TestRoutersBasic-90528665-37569698 is ready for SSH connections 2024-09-11 15:25:20,428 - INFO - Waiting for VM ctest-TestRoutersBasic-90528665-63721469 to be up.. 2024-09-11 15:25:20,517 - DEBUG - VM is in ACTIVE state now 2024-09-11 15:25:20,517 - INFO - VM name : ctest-TestRoutersBasic-90528665-63721469 2024-09-11 15:25:20,593 - DEBUG - VM ctest-TestRoutersBasic-90528665-63721469 ID is 8542e95e-8c4f-48f3-8591-93d3d222dba5 2024-09-11 15:25:20,593 - DEBUG - VM ctest-TestRoutersBasic-90528665-63721469 launched on Node cn-jenkins-deploy-platform-ansible-os-1895-1 2024-09-11 15:25:20,667 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/8542e95e-8c4f-48f3-8591-93d3d222dba5 2024-09-11 15:25:20,675 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/4098dadb-5f07-46cf-9689-62efd01665d7 2024-09-11 15:25:21,905 - 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.92 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.377 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.377/1.646/2.916/1.269 ms') 2024-09-11 15:25:21,905 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-90528665-63721469 passed 2024-09-11 15:25:22,057 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 15:25:22,057 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-90528665-63721469, IP 129.187.199.195, Port 22 2024-09-11 15:25:22,217 - DEBUG - VM ctest-TestRoutersBasic-90528665-63721469 is ready for SSH connections 2024-09-11 15:25:22,217 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 15:25:22,217 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 129.187.199.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.37, gateway password: c0ntrail123 2024-09-11 15:25:22,217 - DEBUG - ping -s 56 -c 3 -W 1 129.187.199.195 2024-09-11 15:25:26,304 - DEBUG - PING 129.187.199.195 (129.187.199.195): 56 data bytes 64 bytes from 129.187.199.195: seq=0 ttl=62 time=8.145 ms 64 bytes from 129.187.199.195: seq=1 ttl=62 time=0.816 ms 64 bytes from 129.187.199.195: seq=2 ttl=62 time=0.758 ms --- 129.187.199.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.758/3.239/8.145 ms 2024-09-11 15:25:26,304 - INFO - Ping to IP 129.187.199.195 from VM ctest-TestRoutersBasic-90528665-37569698 passed 2024-09-11 15:25:26,305 - INFO - Deleting interface with subnet_id a61f7f22-2e72-4c40-a44b-b7692243275f, port_id None from router c68a71f1-0f3c-44f9-9e6f-b8954d7226e6 2024-09-11 15:25:26,494 - INFO - Deleting VM ctest-TestRoutersBasic-90528665-63721469 2024-09-11 15:25:26,559 - INFO - Deleting VM ctest-TestRoutersBasic-90528665-37569698 2024-09-11 15:25:26,624 - INFO - Deleting VN ctest-ext_vn-87847903 2024-09-11 15:25:26,698 - DEBUG - VN 2a982936-6c9b-4048-82ff-313ef66b517d still in use: Unable to complete operation on network 2a982936-6c9b-4048-82ff-313ef66b517d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c216b2f3-d790-4a92-90c9-f6d253642753'] 2024-09-11 15:25:26,698 - WARNING - Deleting VN ctest-ext_vn-87847903 failed..Will retry 2024-09-11 15:25:28,805 - DEBUG - Response for deleting network () 2024-09-11 15:25:28,805 - INFO - Deleting VN ctest-vn-59349930 2024-09-11 15:25:28,924 - DEBUG - Response for deleting network () 2024-09-11 15:25:29,178 - DEBUG - No XMPP flaps were noticed during the test
2024-09-11 15:25:29,179 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26]
2024-09-11 15:25:29,179 - INFO - -------------------------------------------------------------------------------- 2024-09-11 15:25:29,838 - INFO - Deleted project: ctest-TestRoutersBasic-90528665, ID : 2f3a274c-1aa5-4276-a4ff-bbf88b87c9f9