2025-03-27 16:20:49,784 - INFO - Domain Default found not creating 2025-03-27 16:20:49,945 - INFO - Project ctest-TestRoutersBasic-07819241 not found, creating it 2025-03-27 16:20:50,454 - INFO - Created Project:ctest-TestRoutersBasic-07819241, ID : ca498c51-a55c-452c-afd5-d529a6718890 2025-03-27 16:20:52,088 - INFO - ================================================================================ 2025-03-27 16:20:52,089 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-03-27 16:20:52,089 - 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-03-27 16:20:52,350 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.25': '0'}} with 2025-03-27 16:20:52,350 - INFO - Initial checks done. Running the testcase now 2025-03-27 16:20:52,350 - INFO - 2025-03-27 16:20:53,179 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-07819241 2025-03-27 16:20:53,279 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-07819241 2025-03-27 16:20:53,623 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-07819241', 'default']} 2025-03-27 16:20:53,946 - DEBUG - Response for create_network : {'network': {'id': '670f03d3-421f-41c9-aab1-e852f8a3ce1c', 'name': 'ctest-vn-09123889', 'tenant_id': 'ca498c51a55c452cafd5d529a6718890', 'project_id': 'ca498c51a55c452cafd5d529a6718890', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-07819241', 'ctest-vn-09123889'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 16:20:54,151 - DEBUG - Response for create_subnet : {'subnet': {'id': '34321fd2-1bb1-44ea-ba53-3eb4090c0e26', 'name': '', 'tenant_id': 'ca498c51a55c452cafd5d529a6718890', 'network_id': '670f03d3-421f-41c9-aab1-e852f8a3ce1c', 'ip_version': 4, 'cidr': '27.117.224.128/26', 'allocation_pools': [{'start': '27.117.224.130', 'end': '27.117.224.190'}], 'gateway_ip': '27.117.224.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.117.224.130', 'tags': [], 'project_id': 'ca498c51a55c452cafd5d529a6718890'}} 2025-03-27 16:20:54,172 - INFO - Created VN ctest-vn-09123889 2025-03-27 16:20:54,227 - DEBUG - VN ctest-vn-09123889 UUID is 670f03d3-421f-41c9-aab1-e852f8a3ce1c 2025-03-27 16:20:54,589 - DEBUG - Response for create_network : {'network': {'id': '898bfe73-b594-4b93-83de-c3b90b4584d8', 'name': 'ctest-ext_vn-77051293', 'tenant_id': 'ca498c51a55c452cafd5d529a6718890', 'project_id': 'ca498c51a55c452cafd5d529a6718890', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-07819241', 'ctest-ext_vn-77051293'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 16:20:54,778 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fac8ea05-c2fa-478b-8a56-b34b3cacea23', 'name': '', 'tenant_id': 'ca498c51a55c452cafd5d529a6718890', 'network_id': '898bfe73-b594-4b93-83de-c3b90b4584d8', 'ip_version': 4, 'cidr': '1.150.30.0/26', 'allocation_pools': [{'start': '1.150.30.2', 'end': '1.150.30.62'}], 'gateway_ip': '1.150.30.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '1.150.30.2', 'tags': [], 'project_id': 'ca498c51a55c452cafd5d529a6718890'}} 2025-03-27 16:20:54,807 - INFO - Created VN ctest-ext_vn-77051293 2025-03-27 16:20:54,863 - DEBUG - VN ctest-ext_vn-77051293 UUID is 898bfe73-b594-4b93-83de-c3b90b4584d8 2025-03-27 16:20:55,065 - DEBUG - Services list from nova: [, , ] 2025-03-27 16:20:56,239 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2978-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2978-1) 2025-03-27 16:20:57,538 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2978-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2978-1) 2025-03-27 16:20:57,623 - INFO - Setting gateway for router 61e9fd9c-4a68-47d9-8457-97784001772f to network 898bfe73-b594-4b93-83de-c3b90b4584d8 2025-03-27 16:20:57,702 - INFO - Adding interface with subnet_id 34321fd2-1bb1-44ea-ba53-3eb4090c0e26, port_id None to router 61e9fd9c-4a68-47d9-8457-97784001772f 2025-03-27 16:20:58,397 - INFO - Waiting for VM ctest-TestRoutersBasic-07819241-81096747 to be up.. 2025-03-27 16:20:58,542 - DEBUG - VM is in ACTIVE state now 2025-03-27 16:20:58,542 - INFO - VM name : ctest-TestRoutersBasic-07819241-81096747 2025-03-27 16:20:58,684 - DEBUG - VM ctest-TestRoutersBasic-07819241-81096747 ID is b3830986-8498-49dd-a206-b447adc94aac 2025-03-27 16:20:58,717 - DEBUG - VM ctest-TestRoutersBasic-07819241-81096747 launched on Node cn-jenkins-deploy-platform-ansible-os-2978-1 2025-03-27 16:20:58,875 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/b3830986-8498-49dd-a206-b447adc94aac 2025-03-27 16:20:59,258 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/b3830986-8498-49dd-a206-b447adc94aac 2025-03-27 16:20:59,306 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/ee1cc2b8-96d7-4e2f-b75a-55ad2f4e9f4a 2025-03-27 16:21:02,600 - 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 1026ms') 2025-03-27 16:21:02,601 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-07819241-81096747 failed! 2025-03-27 16:21:02,659 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-07819241:ctest-vn-09123889 is 27.117.224.129 and allocation pool is NOT set 2025-03-27 16:21:06,726 - 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-03-27 16:21:06,727 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-07819241-81096747 failed! 2025-03-27 16:21:06,787 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-07819241:ctest-vn-09123889 is 27.117.224.129 and allocation pool is NOT set 2025-03-27 16:21:08,853 - 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=4.46 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.42 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 = 3.420/3.940/4.460/0.520 ms') 2025-03-27 16:21:08,853 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-07819241-81096747 passed 2025-03-27 16:21:09,011 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 16:21:09,012 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-07819241-81096747, IP 27.117.224.131, Port 22 2025-03-27 16:21:09,081 - 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-03-27 16:21:09,184 - DEBUG - VM ctest-TestRoutersBasic-07819241-81096747 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-27 16:21:14,185 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 16:21:14,186 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-07819241-81096747, IP 27.117.224.131, Port 22 2025-03-27 16:21:14,342 - DEBUG - VM ctest-TestRoutersBasic-07819241-81096747 is ready for SSH connections 2025-03-27 16:21:14,343 - INFO - Waiting for VM ctest-TestRoutersBasic-07819241-73977929 to be up.. 2025-03-27 16:21:14,425 - DEBUG - VM is in ACTIVE state now 2025-03-27 16:21:14,425 - INFO - VM name : ctest-TestRoutersBasic-07819241-73977929 2025-03-27 16:21:14,501 - DEBUG - VM ctest-TestRoutersBasic-07819241-73977929 ID is f5ee65f4-377d-487d-8eb3-77f8200139c5 2025-03-27 16:21:14,501 - DEBUG - VM ctest-TestRoutersBasic-07819241-73977929 launched on Node cn-jenkins-deploy-platform-ansible-os-2978-1 2025-03-27 16:21:14,578 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/f5ee65f4-377d-487d-8eb3-77f8200139c5 2025-03-27 16:21:14,588 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/5e5978c0-e63a-4742-938c-2faa2c063e9f 2025-03-27 16:21:15,836 - 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.85 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.416 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.416/2.130/3.845/1.714 ms') 2025-03-27 16:21:15,836 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-07819241-73977929 passed 2025-03-27 16:21:15,991 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 16:21:15,991 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-07819241-73977929, IP 1.150.30.3, Port 22 2025-03-27 16:21:16,147 - DEBUG - VM ctest-TestRoutersBasic-07819241-73977929 is ready for SSH connections 2025-03-27 16:21:16,148 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 16:21:16,148 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 1.150.30.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2025-03-27 16:21:16,148 - DEBUG - ping -s 56 -c 3 -W 1 1.150.30.3 2025-03-27 16:21:19,913 - DEBUG - PING 1.150.30.3 (1.150.30.3): 56 data bytes 64 bytes from 1.150.30.3: seq=0 ttl=62 time=5.820 ms 64 bytes from 1.150.30.3: seq=1 ttl=62 time=1.086 ms 64 bytes from 1.150.30.3: seq=2 ttl=62 time=1.058 ms --- 1.150.30.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.058/2.654/5.820 ms 2025-03-27 16:21:19,913 - INFO - Ping to IP 1.150.30.3 from VM ctest-TestRoutersBasic-07819241-81096747 passed 2025-03-27 16:21:19,913 - INFO - Deleting interface with subnet_id 34321fd2-1bb1-44ea-ba53-3eb4090c0e26, port_id None from router 61e9fd9c-4a68-47d9-8457-97784001772f 2025-03-27 16:21:20,141 - INFO - Deleting VM ctest-TestRoutersBasic-07819241-73977929 2025-03-27 16:21:20,215 - INFO - Deleting VM ctest-TestRoutersBasic-07819241-81096747 2025-03-27 16:21:20,316 - INFO - Deleting VN ctest-ext_vn-77051293 2025-03-27 16:21:20,406 - DEBUG - VN 898bfe73-b594-4b93-83de-c3b90b4584d8 still in use: Unable to complete operation on network 898bfe73-b594-4b93-83de-c3b90b4584d8. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-adcc1e2c-5603-462d-9110-5beeb86ea087'] 2025-03-27 16:21:20,406 - WARNING - Deleting VN ctest-ext_vn-77051293 failed..Will retry 2025-03-27 16:21:22,533 - DEBUG - Response for deleting network () 2025-03-27 16:21:22,533 - INFO - Deleting VN ctest-vn-09123889 2025-03-27 16:21:22,646 - DEBUG - Response for deleting network () 2025-03-27 16:21:22,903 - DEBUG - No XMPP flaps were noticed during the test
2025-03-27 16:21:22,903 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:30]
2025-03-27 16:21:22,903 - INFO - -------------------------------------------------------------------------------- 2025-03-27 16:21:23,614 - INFO - Deleted project: ctest-TestRoutersBasic-07819241, ID : ca498c51-a55c-452c-afd5-d529a6718890