2024-10-18 21:41:08,583 - INFO - Domain Default found not creating 2024-10-18 21:41:08,746 - INFO - Project ctest-TestRoutersBasic-85399027 not found, creating it 2024-10-18 21:41:09,277 - INFO - Created Project:ctest-TestRoutersBasic-85399027, ID : 9989df4b-66bf-4c87-ab8d-faefc30fba8b 2024-10-18 21:41:10,785 - INFO - ================================================================================ 2024-10-18 21:41:10,785 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-18 21:41:10,785 - 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-10-18 21:41:11,043 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.29': '0'}} with 2024-10-18 21:41:11,043 - INFO - Initial checks done. Running the testcase now 2024-10-18 21:41:11,044 - INFO - 2024-10-18 21:41:11,765 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-85399027 2024-10-18 21:41:11,865 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-85399027 2024-10-18 21:41:12,197 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-85399027', 'default']} 2024-10-18 21:41:12,521 - DEBUG - Response for create_network : {'network': {'id': '35c1528b-f9f6-4197-878c-51367eab2613', 'name': 'ctest-vn-00183332', 'tenant_id': '9989df4b66bf4c87ab8dfaefc30fba8b', 'project_id': '9989df4b66bf4c87ab8dfaefc30fba8b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-85399027', 'ctest-vn-00183332'], 'port_security_enabled': True, 'description': ''}} 2024-10-18 21:41:12,747 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd3ed64d6-87f1-43ef-842a-171ba5297d82', 'name': '', 'tenant_id': '9989df4b66bf4c87ab8dfaefc30fba8b', 'network_id': '35c1528b-f9f6-4197-878c-51367eab2613', 'ip_version': 4, 'cidr': '70.15.168.192/26', 'allocation_pools': [{'start': '70.15.168.194', 'end': '70.15.168.254'}], 'gateway_ip': '70.15.168.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.15.168.194', 'tags': [], 'project_id': '9989df4b66bf4c87ab8dfaefc30fba8b'}} 2024-10-18 21:41:12,766 - INFO - Created VN ctest-vn-00183332 2024-10-18 21:41:12,826 - DEBUG - VN ctest-vn-00183332 UUID is 35c1528b-f9f6-4197-878c-51367eab2613 2024-10-18 21:41:13,191 - DEBUG - Response for create_network : {'network': {'id': '1b88bd40-2728-4822-b5fc-ebdca0db82c9', 'name': 'ctest-ext_vn-34671408', 'tenant_id': '9989df4b66bf4c87ab8dfaefc30fba8b', 'project_id': '9989df4b66bf4c87ab8dfaefc30fba8b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-85399027', 'ctest-ext_vn-34671408'], 'port_security_enabled': True, 'description': ''}} 2024-10-18 21:41:13,397 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cd183f9e-3002-49aa-8bc5-768077cb743b', 'name': '', 'tenant_id': '9989df4b66bf4c87ab8dfaefc30fba8b', 'network_id': '1b88bd40-2728-4822-b5fc-ebdca0db82c9', 'ip_version': 4, 'cidr': '176.43.67.0/26', 'allocation_pools': [{'start': '176.43.67.2', 'end': '176.43.67.62'}], 'gateway_ip': '176.43.67.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '176.43.67.2', 'tags': [], 'project_id': '9989df4b66bf4c87ab8dfaefc30fba8b'}} 2024-10-18 21:41:13,419 - INFO - Created VN ctest-ext_vn-34671408 2024-10-18 21:41:13,477 - DEBUG - VN ctest-ext_vn-34671408 UUID is 1b88bd40-2728-4822-b5fc-ebdca0db82c9 2024-10-18 21:41:13,663 - DEBUG - Services list from nova: [, , ] 2024-10-18 21:41:14,681 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2112-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2112-1) 2024-10-18 21:41:15,855 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2112-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2112-1) 2024-10-18 21:41:15,938 - INFO - Setting gateway for router bc6d7fb8-cbee-4e1e-bcd5-0843a0fe07d9 to network 1b88bd40-2728-4822-b5fc-ebdca0db82c9 2024-10-18 21:41:16,007 - INFO - Adding interface with subnet_id d3ed64d6-87f1-43ef-842a-171ba5297d82, port_id None to router bc6d7fb8-cbee-4e1e-bcd5-0843a0fe07d9 2024-10-18 21:41:16,396 - INFO - Waiting for VM ctest-TestRoutersBasic-85399027-57693289 to be up.. 2024-10-18 21:41:16,539 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-18 21:41:21,643 - DEBUG - VM is in ACTIVE state now 2024-10-18 21:41:21,643 - INFO - VM name : ctest-TestRoutersBasic-85399027-57693289 2024-10-18 21:41:21,729 - DEBUG - VM ctest-TestRoutersBasic-85399027-57693289 ID is ccb0f49f-e40f-410c-a5e5-0fbb502e3e9f 2024-10-18 21:41:21,749 - DEBUG - VM ctest-TestRoutersBasic-85399027-57693289 launched on Node cn-jenkins-deploy-platform-ansible-os-2112-1 2024-10-18 21:41:21,842 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/ccb0f49f-e40f-410c-a5e5-0fbb502e3e9f 2024-10-18 21:41:22,139 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/ccb0f49f-e40f-410c-a5e5-0fbb502e3e9f 2024-10-18 21:41:22,175 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/bc6daa92-70a8-4064-84cf-c01ebdcb9b19 2024-10-18 21:41:25,440 - 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-10-18 21:41:25,440 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-85399027-57693289 failed! 2024-10-18 21:41:25,505 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-85399027:ctest-vn-00183332 is 70.15.168.193 and allocation pool is NOT set 2024-10-18 21:41:27,561 - 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.17 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.501 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.501/1.835/3.170/1.334 ms') 2024-10-18 21:41:27,561 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-85399027-57693289 passed 2024-10-18 21:41:27,718 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-18 21:41:27,718 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-85399027-57693289, IP 70.15.168.195, Port 22 2024-10-18 21:41:27,873 - DEBUG - VM ctest-TestRoutersBasic-85399027-57693289 is ready for SSH connections 2024-10-18 21:41:27,873 - INFO - Waiting for VM ctest-TestRoutersBasic-85399027-49272946 to be up.. 2024-10-18 21:41:27,953 - DEBUG - VM is in ACTIVE state now 2024-10-18 21:41:27,953 - INFO - VM name : ctest-TestRoutersBasic-85399027-49272946 2024-10-18 21:41:28,030 - DEBUG - VM ctest-TestRoutersBasic-85399027-49272946 ID is 3050e1a8-2546-463d-b9fb-5296e90f2eed 2024-10-18 21:41:28,030 - DEBUG - VM ctest-TestRoutersBasic-85399027-49272946 launched on Node cn-jenkins-deploy-platform-ansible-os-2112-1 2024-10-18 21:41:28,112 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/3050e1a8-2546-463d-b9fb-5296e90f2eed 2024-10-18 21:41:28,122 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/16d6e1eb-abb2-4975-9a91-d60762868108 2024-10-18 21:41:29,388 - 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=3.42 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.567 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.567/1.994/3.422/1.427 ms') 2024-10-18 21:41:29,388 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-85399027-49272946 passed 2024-10-18 21:41:29,545 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-18 21:41:29,545 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-85399027-49272946, IP 176.43.67.3, Port 22 2024-10-18 21:41:29,701 - DEBUG - VM ctest-TestRoutersBasic-85399027-49272946 is ready for SSH connections 2024-10-18 21:41:29,701 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-18 21:41:29,701 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 176.43.67.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-10-18 21:41:29,702 - DEBUG - ping -s 56 -c 3 -W 1 176.43.67.3 2024-10-18 21:41:33,385 - DEBUG - PING 176.43.67.3 (176.43.67.3): 56 data bytes 64 bytes from 176.43.67.3: seq=0 ttl=62 time=7.269 ms 64 bytes from 176.43.67.3: seq=1 ttl=62 time=0.867 ms 64 bytes from 176.43.67.3: seq=2 ttl=62 time=0.934 ms --- 176.43.67.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.867/3.023/7.269 ms 2024-10-18 21:41:33,386 - INFO - Ping to IP 176.43.67.3 from VM ctest-TestRoutersBasic-85399027-57693289 passed 2024-10-18 21:41:33,386 - INFO - Deleting interface with subnet_id d3ed64d6-87f1-43ef-842a-171ba5297d82, port_id None from router bc6d7fb8-cbee-4e1e-bcd5-0843a0fe07d9 2024-10-18 21:41:33,617 - INFO - Deleting VM ctest-TestRoutersBasic-85399027-49272946 2024-10-18 21:41:33,682 - INFO - Deleting VM ctest-TestRoutersBasic-85399027-57693289 2024-10-18 21:41:33,775 - INFO - Deleting VN ctest-ext_vn-34671408 2024-10-18 21:41:33,861 - DEBUG - VN 1b88bd40-2728-4822-b5fc-ebdca0db82c9 still in use: Unable to complete operation on network 1b88bd40-2728-4822-b5fc-ebdca0db82c9. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-5e6c358b-a2d1-475d-a247-be34004234aa'] 2024-10-18 21:41:33,861 - WARNING - Deleting VN ctest-ext_vn-34671408 failed..Will retry 2024-10-18 21:41:35,975 - DEBUG - Response for deleting network () 2024-10-18 21:41:35,975 - INFO - Deleting VN ctest-vn-00183332 2024-10-18 21:41:36,087 - DEBUG - Response for deleting network () 2024-10-18 21:41:36,356 - DEBUG - No XMPP flaps were noticed during the test 2024-10-18 21:41:36,356 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-10-18 21:41:36,356 - INFO - -------------------------------------------------------------------------------- 2024-10-18 21:41:37,052 - INFO - Deleted project: ctest-TestRoutersBasic-85399027, ID : 9989df4b-66bf-4c87-ab8d-faefc30fba8b