2025-01-15 09:05:54,263 - INFO - Domain Default found not creating 2025-01-15 09:05:54,419 - INFO - Project ctest-TestRoutersBasic-67770228 not found, creating it 2025-01-15 09:05:54,903 - INFO - Created Project:ctest-TestRoutersBasic-67770228, ID : 14e545e8-befb-432d-bf5f-087fe189b296 2025-01-15 09:05:56,400 - INFO - ================================================================================ 2025-01-15 09:05:56,401 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-01-15 09:05:56,401 - 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 09:05:56,667 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.6': '0'}} with 2025-01-15 09:05:56,668 - INFO - Initial checks done. Running the testcase now 2025-01-15 09:05:56,668 - INFO - 2025-01-15 09:05:57,387 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-67770228 2025-01-15 09:05:57,483 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-67770228 2025-01-15 09:05:57,819 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-67770228', 'default']} 2025-01-15 09:05:58,464 - DEBUG - Response for create_network : {'network': {'id': 'a8de56b9-4147-4bc4-8ae9-bb22fe5b61ae', 'name': 'ctest-vn-17445904', 'tenant_id': '14e545e8befb432dbf5f087fe189b296', 'project_id': '14e545e8befb432dbf5f087fe189b296', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-67770228', 'ctest-vn-17445904'], 'port_security_enabled': True, 'description': ''}} 2025-01-15 09:05:58,689 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eb99ca36-8f7e-4d32-be32-310626975784', 'name': '', 'tenant_id': '14e545e8befb432dbf5f087fe189b296', 'network_id': 'a8de56b9-4147-4bc4-8ae9-bb22fe5b61ae', 'ip_version': 4, 'cidr': '81.253.80.128/26', 'allocation_pools': [{'start': '81.253.80.130', 'end': '81.253.80.190'}], 'gateway_ip': '81.253.80.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.253.80.130', 'tags': [], 'project_id': '14e545e8befb432dbf5f087fe189b296'}} 2025-01-15 09:05:58,713 - INFO - Created VN ctest-vn-17445904 2025-01-15 09:05:58,767 - DEBUG - VN ctest-vn-17445904 UUID is a8de56b9-4147-4bc4-8ae9-bb22fe5b61ae 2025-01-15 09:05:59,119 - DEBUG - Response for create_network : {'network': {'id': '0001b026-58ee-463e-8ae1-5ed26c20a1e9', 'name': 'ctest-ext_vn-87709203', 'tenant_id': '14e545e8befb432dbf5f087fe189b296', 'project_id': '14e545e8befb432dbf5f087fe189b296', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-67770228', 'ctest-ext_vn-87709203'], 'port_security_enabled': True, 'description': ''}} 2025-01-15 09:05:59,292 - DEBUG - Response for create_subnet : {'subnet': {'id': '7dcbe341-46bb-411d-a9d9-176b01b62411', 'name': '', 'tenant_id': '14e545e8befb432dbf5f087fe189b296', 'network_id': '0001b026-58ee-463e-8ae1-5ed26c20a1e9', 'ip_version': 4, 'cidr': '200.53.133.0/26', 'allocation_pools': [{'start': '200.53.133.2', 'end': '200.53.133.62'}], 'gateway_ip': '200.53.133.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.53.133.2', 'tags': [], 'project_id': '14e545e8befb432dbf5f087fe189b296'}} 2025-01-15 09:05:59,313 - INFO - Created VN ctest-ext_vn-87709203 2025-01-15 09:05:59,367 - DEBUG - VN ctest-ext_vn-87709203 UUID is 0001b026-58ee-463e-8ae1-5ed26c20a1e9 2025-01-15 09:05:59,549 - DEBUG - Services list from nova: [, , ] 2025-01-15 09:06:00,595 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2636-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2636-1) 2025-01-15 09:06:01,786 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2636-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2636-1) 2025-01-15 09:06:01,865 - INFO - Setting gateway for router 4feac310-fdf8-4103-822f-fd76020ac66b to network 0001b026-58ee-463e-8ae1-5ed26c20a1e9 2025-01-15 09:06:01,946 - INFO - Adding interface with subnet_id eb99ca36-8f7e-4d32-be32-310626975784, port_id None to router 4feac310-fdf8-4103-822f-fd76020ac66b 2025-01-15 09:06:02,208 - INFO - Waiting for VM ctest-TestRoutersBasic-67770228-71893420 to be up.. 2025-01-15 09:06:02,308 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-15 09:06:07,398 - DEBUG - VM is in ACTIVE state now 2025-01-15 09:06:07,399 - INFO - VM name : ctest-TestRoutersBasic-67770228-71893420 2025-01-15 09:06:07,479 - DEBUG - VM ctest-TestRoutersBasic-67770228-71893420 ID is 555ee6d8-8ebc-4523-a24f-53197808cc5b 2025-01-15 09:06:07,501 - DEBUG - VM ctest-TestRoutersBasic-67770228-71893420 launched on Node cn-jenkins-deploy-platform-ansible-os-2636-1 2025-01-15 09:06:07,579 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/555ee6d8-8ebc-4523-a24f-53197808cc5b 2025-01-15 09:06:07,878 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/555ee6d8-8ebc-4523-a24f-53197808cc5b 2025-01-15 09:06:07,936 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/ecb74f03-1787-419d-9ac3-feda9653593f 2025-01-15 09:06:11,231 - 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 1016ms') 2025-01-15 09:06:11,231 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-67770228-71893420 failed! 2025-01-15 09:06:11,287 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-67770228:ctest-vn-17445904 is 81.253.80.129 and allocation pool is NOT set 2025-01-15 09:06:13,408 - 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.61 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.463 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.463/2.538/4.613/2.075 ms') 2025-01-15 09:06:13,408 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-67770228-71893420 passed 2025-01-15 09:06:13,563 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-15 09:06:13,563 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-67770228-71893420, IP 81.253.80.131, Port 22 2025-01-15 09:06:13,726 - DEBUG - VM ctest-TestRoutersBasic-67770228-71893420 is ready for SSH connections 2025-01-15 09:06:13,727 - INFO - Waiting for VM ctest-TestRoutersBasic-67770228-05042993 to be up.. 2025-01-15 09:06:13,815 - DEBUG - VM is in ACTIVE state now 2025-01-15 09:06:13,815 - INFO - VM name : ctest-TestRoutersBasic-67770228-05042993 2025-01-15 09:06:13,891 - DEBUG - VM ctest-TestRoutersBasic-67770228-05042993 ID is f7e00acf-a6f0-46fd-8585-0b19fb59c665 2025-01-15 09:06:13,891 - DEBUG - VM ctest-TestRoutersBasic-67770228-05042993 launched on Node cn-jenkins-deploy-platform-ansible-os-2636-1 2025-01-15 09:06:13,979 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/f7e00acf-a6f0-46fd-8585-0b19fb59c665 2025-01-15 09:06:13,989 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/7ccfb93c-3354-4734-8e47-6114afe58141 2025-01-15 09:06:15,245 - 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.94 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.435 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.435/2.185/3.936/1.750 ms') 2025-01-15 09:06:15,245 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-67770228-05042993 passed 2025-01-15 09:06:15,403 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-15 09:06:15,403 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-67770228-05042993, IP 200.53.133.3, Port 22 2025-01-15 09:06:15,562 - DEBUG - VM ctest-TestRoutersBasic-67770228-05042993 is ready for SSH connections 2025-01-15 09:06:15,562 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-15 09:06:15,562 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 200.53.133.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2025-01-15 09:06:15,562 - DEBUG - ping -s 56 -c 3 -W 1 200.53.133.3 2025-01-15 09:06:19,655 - DEBUG - PING 200.53.133.3 (200.53.133.3): 56 data bytes 64 bytes from 200.53.133.3: seq=0 ttl=62 time=6.727 ms 64 bytes from 200.53.133.3: seq=1 ttl=62 time=0.956 ms 64 bytes from 200.53.133.3: seq=2 ttl=62 time=1.559 ms --- 200.53.133.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.956/3.080/6.727 ms 2025-01-15 09:06:19,655 - INFO - Ping to IP 200.53.133.3 from VM ctest-TestRoutersBasic-67770228-71893420 passed 2025-01-15 09:06:19,655 - INFO - Deleting interface with subnet_id eb99ca36-8f7e-4d32-be32-310626975784, port_id None from router 4feac310-fdf8-4103-822f-fd76020ac66b 2025-01-15 09:06:19,978 - INFO - Deleting VM ctest-TestRoutersBasic-67770228-05042993 2025-01-15 09:06:20,077 - INFO - Deleting VM ctest-TestRoutersBasic-67770228-71893420 2025-01-15 09:06:20,185 - INFO - Deleting VN ctest-ext_vn-87709203 2025-01-15 09:06:20,283 - DEBUG - VN 0001b026-58ee-463e-8ae1-5ed26c20a1e9 still in use: Unable to complete operation on network 0001b026-58ee-463e-8ae1-5ed26c20a1e9. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-139fbac0-8158-4bb2-ac61-0e633e5c9df2'] 2025-01-15 09:06:20,283 - WARNING - Deleting VN ctest-ext_vn-87709203 failed..Will retry 2025-01-15 09:06:22,404 - DEBUG - Response for deleting network () 2025-01-15 09:06:22,404 - INFO - Deleting VN ctest-vn-17445904 2025-01-15 09:06:22,507 - DEBUG - Response for deleting network () 2025-01-15 09:06:22,762 - DEBUG - No XMPP flaps were noticed during the test 2025-01-15 09:06:22,762 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2025-01-15 09:06:22,762 - INFO - -------------------------------------------------------------------------------- 2025-01-15 09:06:23,438 - INFO - Deleted project: ctest-TestRoutersBasic-67770228, ID : 14e545e8-befb-432d-bf5f-087fe189b296