2024-11-10 23:22:46,646 - INFO - Domain Default found not creating 2024-11-10 23:22:47,029 - INFO - Project ctest-TestRoutersBasic-40533459 not found, creating it 2024-11-10 23:22:47,666 - INFO - Created Project:ctest-TestRoutersBasic-40533459, ID : c4099b53-f88a-4c57-a308-bddefa780800 2024-11-10 23:22:49,881 - INFO - ================================================================================ 2024-11-10 23:22:49,881 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-10 23:22:49,881 - 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-10 23:22:50,181 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.13': '0'}} with 2024-11-10 23:22:50,181 - INFO - Initial checks done. Running the testcase now 2024-11-10 23:22:50,181 - INFO - 2024-11-10 23:22:51,169 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-40533459 2024-11-10 23:22:51,278 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-40533459 2024-11-10 23:22:51,717 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-40533459', 'default']} 2024-11-10 23:22:52,138 - DEBUG - Response for create_network : {'network': {'id': 'ef7da703-3f7b-4c0e-8a4d-d7249d83b336', 'name': 'ctest-vn-25928666', 'tenant_id': 'c4099b53f88a4c57a308bddefa780800', 'project_id': 'c4099b53f88a4c57a308bddefa780800', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-40533459', 'ctest-vn-25928666'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 23:22:52,401 - DEBUG - Response for create_subnet : {'subnet': {'id': '3d820d56-6fa6-4c91-852b-7070b3d555f8', 'name': '', 'tenant_id': 'c4099b53f88a4c57a308bddefa780800', 'network_id': 'ef7da703-3f7b-4c0e-8a4d-d7249d83b336', 'ip_version': 4, 'cidr': '149.1.6.192/26', 'allocation_pools': [{'start': '149.1.6.194', 'end': '149.1.6.254'}], 'gateway_ip': '149.1.6.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.1.6.194', 'tags': [], 'project_id': 'c4099b53f88a4c57a308bddefa780800'}} 2024-11-10 23:22:52,429 - INFO - Created VN ctest-vn-25928666 2024-11-10 23:22:52,494 - DEBUG - VN ctest-vn-25928666 UUID is ef7da703-3f7b-4c0e-8a4d-d7249d83b336 2024-11-10 23:22:53,159 - DEBUG - Response for create_network : {'network': {'id': '8ed3ba99-2850-43cb-a4a7-7948382696b3', 'name': 'ctest-ext_vn-49243130', 'tenant_id': 'c4099b53f88a4c57a308bddefa780800', 'project_id': 'c4099b53f88a4c57a308bddefa780800', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-40533459', 'ctest-ext_vn-49243130'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 23:22:53,370 - DEBUG - Response for create_subnet : {'subnet': {'id': '35c6cdff-30fc-415e-a179-4d9a77cdd9c6', 'name': '', 'tenant_id': 'c4099b53f88a4c57a308bddefa780800', 'network_id': '8ed3ba99-2850-43cb-a4a7-7948382696b3', 'ip_version': 4, 'cidr': '181.197.104.192/26', 'allocation_pools': [{'start': '181.197.104.194', 'end': '181.197.104.254'}], 'gateway_ip': '181.197.104.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '181.197.104.194', 'tags': [], 'project_id': 'c4099b53f88a4c57a308bddefa780800'}} 2024-11-10 23:22:53,397 - INFO - Created VN ctest-ext_vn-49243130 2024-11-10 23:22:53,465 - DEBUG - VN ctest-ext_vn-49243130 UUID is 8ed3ba99-2850-43cb-a4a7-7948382696b3 2024-11-10 23:22:53,797 - DEBUG - Services list from nova: [, , ] 2024-11-10 23:22:55,342 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2268-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2268-1) 2024-11-10 23:22:56,883 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2268-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2268-1) 2024-11-10 23:22:56,971 - INFO - Setting gateway for router 57b1a53b-2da7-4bc3-a56b-f2f2a8df2e81 to network 8ed3ba99-2850-43cb-a4a7-7948382696b3 2024-11-10 23:22:57,066 - INFO - Adding interface with subnet_id 3d820d56-6fa6-4c91-852b-7070b3d555f8, port_id None to router 57b1a53b-2da7-4bc3-a56b-f2f2a8df2e81 2024-11-10 23:22:57,522 - INFO - Waiting for VM ctest-TestRoutersBasic-40533459-71555475 to be up.. 2024-11-10 23:22:57,776 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-10 23:23:02,918 - DEBUG - VM is in ACTIVE state now 2024-11-10 23:23:02,918 - INFO - VM name : ctest-TestRoutersBasic-40533459-71555475 2024-11-10 23:23:03,076 - DEBUG - VM ctest-TestRoutersBasic-40533459-71555475 ID is d71c4df7-0eb1-4aa6-b528-d187478851f5 2024-11-10 23:23:03,100 - DEBUG - VM ctest-TestRoutersBasic-40533459-71555475 launched on Node cn-jenkins-deploy-platform-ansible-os-2268-1 2024-11-10 23:23:03,198 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/d71c4df7-0eb1-4aa6-b528-d187478851f5 2024-11-10 23:23:03,525 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/d71c4df7-0eb1-4aa6-b528-d187478851f5 2024-11-10 23:23:03,588 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/7027d3b7-2dff-402f-b525-7394c62c0ba4 2024-11-10 23:23:06,881 - 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-11-10 23:23:06,881 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-40533459-71555475 failed! 2024-11-10 23:23:06,960 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-40533459:ctest-vn-25928666 is 149.1.6.193 and allocation pool is NOT set 2024-11-10 23:23:09,023 - 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=5.36 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.21 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 = 1.211/3.283/5.356/2.072 ms') 2024-11-10 23:23:09,023 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-40533459-71555475 passed 2024-11-10 23:23:09,210 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 23:23:09,210 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-40533459-71555475, IP 149.1.6.195, Port 22 2024-11-10 23:23:09,280 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-11-10 23:23:09,483 - DEBUG - VM ctest-TestRoutersBasic-40533459-71555475 is NOT ready for SSH connections, VM status: ACTIVE 2024-11-10 23:23:14,484 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 23:23:14,484 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-40533459-71555475, IP 149.1.6.195, Port 22 2024-11-10 23:23:14,691 - DEBUG - VM ctest-TestRoutersBasic-40533459-71555475 is ready for SSH connections 2024-11-10 23:23:14,691 - INFO - Waiting for VM ctest-TestRoutersBasic-40533459-99546226 to be up.. 2024-11-10 23:23:14,936 - DEBUG - VM is in ACTIVE state now 2024-11-10 23:23:14,936 - INFO - VM name : ctest-TestRoutersBasic-40533459-99546226 2024-11-10 23:23:15,095 - DEBUG - VM ctest-TestRoutersBasic-40533459-99546226 ID is b306de9b-c392-4f03-8329-40cf549d72b5 2024-11-10 23:23:15,095 - DEBUG - VM ctest-TestRoutersBasic-40533459-99546226 launched on Node cn-jenkins-deploy-platform-ansible-os-2268-1 2024-11-10 23:23:15,268 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/b306de9b-c392-4f03-8329-40cf549d72b5 2024-11-10 23:23:15,284 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/5719aab6-3bb4-4c06-b2dc-733e4ece698f 2024-11-10 23:23:16,605 - 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=8.49 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.635 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.635/4.561/8.488/3.926 ms') 2024-11-10 23:23:16,605 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-40533459-99546226 passed 2024-11-10 23:23:16,818 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 23:23:16,818 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-40533459-99546226, IP 181.197.104.195, Port 22 2024-11-10 23:23:17,027 - DEBUG - VM ctest-TestRoutersBasic-40533459-99546226 is ready for SSH connections 2024-11-10 23:23:17,028 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 23:23:17,028 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 181.197.104.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2024-11-10 23:23:17,028 - DEBUG - ping -s 56 -c 3 -W 1 181.197.104.195 2024-11-10 23:23:21,131 - DEBUG - PING 181.197.104.195 (181.197.104.195): 56 data bytes 64 bytes from 181.197.104.195: seq=0 ttl=62 time=9.899 ms 64 bytes from 181.197.104.195: seq=1 ttl=62 time=2.035 ms 64 bytes from 181.197.104.195: seq=2 ttl=62 time=2.126 ms --- 181.197.104.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 2.035/4.686/9.899 ms 2024-11-10 23:23:21,131 - INFO - Ping to IP 181.197.104.195 from VM ctest-TestRoutersBasic-40533459-71555475 passed 2024-11-10 23:23:21,131 - INFO - Deleting interface with subnet_id 3d820d56-6fa6-4c91-852b-7070b3d555f8, port_id None from router 57b1a53b-2da7-4bc3-a56b-f2f2a8df2e81 2024-11-10 23:23:21,519 - INFO - Deleting VM ctest-TestRoutersBasic-40533459-99546226 2024-11-10 23:23:21,596 - INFO - Deleting VM ctest-TestRoutersBasic-40533459-71555475 2024-11-10 23:23:21,681 - INFO - Deleting VN ctest-ext_vn-49243130 2024-11-10 23:23:21,769 - DEBUG - VN 8ed3ba99-2850-43cb-a4a7-7948382696b3 still in use: Unable to complete operation on network 8ed3ba99-2850-43cb-a4a7-7948382696b3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-cf698d55-25e0-4ab2-bf73-c04946d333ee'] 2024-11-10 23:23:21,769 - WARNING - Deleting VN ctest-ext_vn-49243130 failed..Will retry 2024-11-10 23:23:23,990 - DEBUG - Response for deleting network () 2024-11-10 23:23:23,990 - INFO - Deleting VN ctest-vn-25928666 2024-11-10 23:23:24,194 - DEBUG - Response for deleting network () 2024-11-10 23:23:24,464 - DEBUG - No XMPP flaps were noticed during the test
2024-11-10 23:23:24,465 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:35]
2024-11-10 23:23:24,465 - INFO - -------------------------------------------------------------------------------- 2024-11-10 23:23:25,258 - INFO - Deleted project: ctest-TestRoutersBasic-40533459, ID : c4099b53-f88a-4c57-a308-bddefa780800