2025-01-15 03:24:14,811 - INFO - Domain Default found not creating 2025-01-15 03:24:15,011 - INFO - Project ctest-TestRoutersBasic-26393859 not found, creating it 2025-01-15 03:24:15,526 - INFO - Created Project:ctest-TestRoutersBasic-26393859, ID : 1abadb81-efaa-4070-92da-f29822576d36 2025-01-15 03:24:17,432 - INFO - ================================================================================ 2025-01-15 03:24:17,432 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-01-15 03:24:17,433 - 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 2025-01-15 03:24:17,693 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.6': '0'}} with 2025-01-15 03:24:17,693 - INFO - Initial checks done. Running the testcase now 2025-01-15 03:24:17,693 - INFO - 2025-01-15 03:24:18,538 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-26393859 2025-01-15 03:24:18,638 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-26393859 2025-01-15 03:24:18,978 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-26393859', 'default']} 2025-01-15 03:24:19,393 - DEBUG - Response for create_network : {'network': {'id': 'b477b353-008f-42df-8470-3ca29a08a466', 'name': 'ctest-vn-19084009', 'tenant_id': '1abadb81efaa407092daf29822576d36', 'project_id': '1abadb81efaa407092daf29822576d36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-26393859', 'ctest-vn-19084009'], 'port_security_enabled': True, 'description': ''}} 2025-01-15 03:24:19,597 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e75de7ad-43f5-4b99-a492-06e9877c610b', 'name': '', 'tenant_id': '1abadb81efaa407092daf29822576d36', 'network_id': 'b477b353-008f-42df-8470-3ca29a08a466', 'ip_version': 4, 'cidr': '62.43.181.64/26', 'allocation_pools': [{'start': '62.43.181.66', 'end': '62.43.181.126'}], 'gateway_ip': '62.43.181.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.43.181.66', 'tags': [], 'project_id': '1abadb81efaa407092daf29822576d36'}} 2025-01-15 03:24:19,619 - INFO - Created VN ctest-vn-19084009 2025-01-15 03:24:19,674 - DEBUG - VN ctest-vn-19084009 UUID is b477b353-008f-42df-8470-3ca29a08a466 2025-01-15 03:24:20,066 - DEBUG - Response for create_network : {'network': {'id': 'a4afc1fc-cc72-4b82-bc4f-8bd45f1ced0e', 'name': 'ctest-ext_vn-96015714', 'tenant_id': '1abadb81efaa407092daf29822576d36', 'project_id': '1abadb81efaa407092daf29822576d36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-26393859', 'ctest-ext_vn-96015714'], 'port_security_enabled': True, 'description': ''}} 2025-01-15 03:24:20,334 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c94906d5-71ef-41b7-8242-4fe780232391', 'name': '', 'tenant_id': '1abadb81efaa407092daf29822576d36', 'network_id': 'a4afc1fc-cc72-4b82-bc4f-8bd45f1ced0e', 'ip_version': 4, 'cidr': '3.46.232.192/26', 'allocation_pools': [{'start': '3.46.232.194', 'end': '3.46.232.254'}], 'gateway_ip': '3.46.232.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.46.232.194', 'tags': [], 'project_id': '1abadb81efaa407092daf29822576d36'}} 2025-01-15 03:24:20,366 - INFO - Created VN ctest-ext_vn-96015714 2025-01-15 03:24:20,438 - DEBUG - VN ctest-ext_vn-96015714 UUID is a4afc1fc-cc72-4b82-bc4f-8bd45f1ced0e 2025-01-15 03:24:20,674 - DEBUG - Services list from nova: [, , ] 2025-01-15 03:24:22,030 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2633-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2633-1) 2025-01-15 03:24:23,434 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2633-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2633-1) 2025-01-15 03:24:23,564 - INFO - Setting gateway for router 12e95009-9cc2-432e-8505-b4cce93f6955 to network a4afc1fc-cc72-4b82-bc4f-8bd45f1ced0e 2025-01-15 03:24:23,640 - INFO - Adding interface with subnet_id e75de7ad-43f5-4b99-a492-06e9877c610b, port_id None to router 12e95009-9cc2-432e-8505-b4cce93f6955 2025-01-15 03:24:24,077 - INFO - Waiting for VM ctest-TestRoutersBasic-26393859-91239271 to be up.. 2025-01-15 03:24:24,319 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-15 03:24:29,456 - DEBUG - VM is in ACTIVE state now 2025-01-15 03:24:29,456 - INFO - VM name : ctest-TestRoutersBasic-26393859-91239271 2025-01-15 03:24:29,569 - DEBUG - VM ctest-TestRoutersBasic-26393859-91239271 ID is 68cb5099-ba60-40da-a947-a52b0803bd79 2025-01-15 03:24:29,598 - DEBUG - VM ctest-TestRoutersBasic-26393859-91239271 launched on Node cn-jenkins-deploy-platform-ansible-os-2633-1 2025-01-15 03:24:29,701 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/68cb5099-ba60-40da-a947-a52b0803bd79 2025-01-15 03:24:30,056 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/68cb5099-ba60-40da-a947-a52b0803bd79 2025-01-15 03:24:30,107 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/8051c296-4b15-4d83-ac70-af1763d2bd6f 2025-01-15 03:24:33,390 - 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') 2025-01-15 03:24:33,390 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-26393859-91239271 failed! 2025-01-15 03:24:33,450 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-26393859:ctest-vn-19084009 is 62.43.181.65 and allocation pool is NOT set 2025-01-15 03:24:35,517 - 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=11.4 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.92 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.918/6.639/11.361/4.721 ms') 2025-01-15 03:24:35,518 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-26393859-91239271 passed 2025-01-15 03:24:35,638 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-15 03:24:35,638 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-26393859-91239271, IP 62.43.181.67, Port 22 2025-01-15 03:24:35,704 - 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': ''} 2025-01-15 03:24:35,854 - DEBUG - VM ctest-TestRoutersBasic-26393859-91239271 is NOT ready for SSH connections, VM status: ACTIVE 2025-01-15 03:24:40,855 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-15 03:24:40,855 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-26393859-91239271, IP 62.43.181.67, Port 22 2025-01-15 03:24:41,033 - DEBUG - VM ctest-TestRoutersBasic-26393859-91239271 is ready for SSH connections 2025-01-15 03:24:41,034 - INFO - Waiting for VM ctest-TestRoutersBasic-26393859-86655173 to be up.. 2025-01-15 03:24:41,132 - DEBUG - VM is in ACTIVE state now 2025-01-15 03:24:41,132 - INFO - VM name : ctest-TestRoutersBasic-26393859-86655173 2025-01-15 03:24:41,237 - DEBUG - VM ctest-TestRoutersBasic-26393859-86655173 ID is a5617cbb-85e8-4c67-aa66-6555f67057dd 2025-01-15 03:24:41,238 - DEBUG - VM ctest-TestRoutersBasic-26393859-86655173 launched on Node cn-jenkins-deploy-platform-ansible-os-2633-1 2025-01-15 03:24:41,335 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/a5617cbb-85e8-4c67-aa66-6555f67057dd 2025-01-15 03:24:41,348 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/7add6533-e92e-4a51-b3b5-a8060f42fd8f 2025-01-15 03:24:42,608 - 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.32 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.541 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.541/1.930/3.320/1.389 ms') 2025-01-15 03:24:42,608 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-26393859-86655173 passed 2025-01-15 03:24:42,766 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-15 03:24:42,766 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-26393859-86655173, IP 3.46.232.195, Port 22 2025-01-15 03:24:42,942 - DEBUG - VM ctest-TestRoutersBasic-26393859-86655173 is ready for SSH connections 2025-01-15 03:24:42,943 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-15 03:24:42,943 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 3.46.232.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-01-15 03:24:42,943 - DEBUG - ping -s 56 -c 3 -W 1 3.46.232.195 2025-01-15 03:24:46,716 - DEBUG - PING 3.46.232.195 (3.46.232.195): 56 data bytes 64 bytes from 3.46.232.195: seq=0 ttl=62 time=8.885 ms 64 bytes from 3.46.232.195: seq=1 ttl=62 time=1.157 ms 64 bytes from 3.46.232.195: seq=2 ttl=62 time=1.602 ms --- 3.46.232.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.157/3.881/8.885 ms 2025-01-15 03:24:46,717 - INFO - Ping to IP 3.46.232.195 from VM ctest-TestRoutersBasic-26393859-91239271 passed 2025-01-15 03:24:46,717 - INFO - Deleting interface with subnet_id e75de7ad-43f5-4b99-a492-06e9877c610b, port_id None from router 12e95009-9cc2-432e-8505-b4cce93f6955 2025-01-15 03:24:47,058 - INFO - Deleting VM ctest-TestRoutersBasic-26393859-86655173 2025-01-15 03:24:47,513 - INFO - Deleting VM ctest-TestRoutersBasic-26393859-91239271 2025-01-15 03:24:47,637 - INFO - Deleting VN ctest-ext_vn-96015714 2025-01-15 03:24:47,722 - DEBUG - VN a4afc1fc-cc72-4b82-bc4f-8bd45f1ced0e still in use: Unable to complete operation on network a4afc1fc-cc72-4b82-bc4f-8bd45f1ced0e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ad56e158-7552-42da-ab06-110d00f1e75c'] 2025-01-15 03:24:47,722 - WARNING - Deleting VN ctest-ext_vn-96015714 failed..Will retry 2025-01-15 03:24:49,869 - DEBUG - Response for deleting network () 2025-01-15 03:24:49,869 - INFO - Deleting VN ctest-vn-19084009 2025-01-15 03:24:50,001 - DEBUG - Response for deleting network () 2025-01-15 03:24:50,277 - DEBUG - No XMPP flaps were noticed during the test
2025-01-15 03:24:50,277 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:33]
2025-01-15 03:24:50,277 - INFO - -------------------------------------------------------------------------------- 2025-01-15 03:24:51,059 - INFO - Deleted project: ctest-TestRoutersBasic-26393859, ID : 1abadb81-efaa-4070-92da-f29822576d36