2025-10-31 16:24:51,846 - INFO - Domain Default found not creating 2025-10-31 16:24:52,242 - INFO - Project ctest-TestRoutersBasic-35048706 not found, creating it 2025-10-31 16:24:52,998 - INFO - Created Project:ctest-TestRoutersBasic-35048706, ID : 1584c664-86de-4c6d-99ec-67a601444a19 2025-10-31 16:24:55,215 - INFO - ================================================================================ 2025-10-31 16:24:55,215 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-10-31 16:24:55,216 - 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-10-31 16:24:55,536 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-10-31 16:24:55,536 - INFO - Initial checks done. Running the testcase now 2025-10-31 16:24:55,536 - INFO - 2025-10-31 16:24:56,457 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-35048706 2025-10-31 16:24:56,574 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-35048706 2025-10-31 16:24:56,973 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-35048706', 'default']} 2025-10-31 16:24:57,374 - DEBUG - Response for create_network : {'network': {'id': '3181baa0-7b41-47e7-ab96-f275f31d5b35', 'name': 'ctest-vn-61154272', 'tenant_id': '1584c66486de4c6d99ec67a601444a19', 'project_id': '1584c66486de4c6d99ec67a601444a19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-35048706', 'ctest-vn-61154272'], 'port_security_enabled': True, 'description': ''}} 2025-10-31 16:24:57,584 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd7518fc8-692c-4fcf-ae97-a1e57d9de6a1', 'name': '', 'tenant_id': '1584c66486de4c6d99ec67a601444a19', 'network_id': '3181baa0-7b41-47e7-ab96-f275f31d5b35', 'ip_version': 4, 'cidr': '61.224.171.128/26', 'allocation_pools': [{'start': '61.224.171.130', 'end': '61.224.171.190'}], 'gateway_ip': '61.224.171.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '61.224.171.130', 'tags': [], 'project_id': '1584c66486de4c6d99ec67a601444a19'}} 2025-10-31 16:24:57,612 - INFO - Created VN ctest-vn-61154272 2025-10-31 16:24:57,665 - DEBUG - VN ctest-vn-61154272 UUID is 3181baa0-7b41-47e7-ab96-f275f31d5b35 2025-10-31 16:24:58,265 - DEBUG - Response for create_network : {'network': {'id': '2d9b2b6f-6848-4a63-9460-7cefe7ff8ce6', 'name': 'ctest-ext_vn-80973157', 'tenant_id': '1584c66486de4c6d99ec67a601444a19', 'project_id': '1584c66486de4c6d99ec67a601444a19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-35048706', 'ctest-ext_vn-80973157'], 'port_security_enabled': True, 'description': ''}} 2025-10-31 16:24:58,518 - DEBUG - Response for create_subnet : {'subnet': {'id': '1a938deb-8564-4594-9a66-b68b87498d8d', 'name': '', 'tenant_id': '1584c66486de4c6d99ec67a601444a19', 'network_id': '2d9b2b6f-6848-4a63-9460-7cefe7ff8ce6', 'ip_version': 4, 'cidr': '66.225.196.192/26', 'allocation_pools': [{'start': '66.225.196.194', 'end': '66.225.196.254'}], 'gateway_ip': '66.225.196.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.225.196.194', 'tags': [], 'project_id': '1584c66486de4c6d99ec67a601444a19'}} 2025-10-31 16:24:58,551 - INFO - Created VN ctest-ext_vn-80973157 2025-10-31 16:24:58,613 - DEBUG - VN ctest-ext_vn-80973157 UUID is 2d9b2b6f-6848-4a63-9460-7cefe7ff8ce6 2025-10-31 16:24:58,939 - DEBUG - Services list from nova: [, , ] 2025-10-31 16:25:00,410 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4579-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4579-1) 2025-10-31 16:25:01,818 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4579-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4579-1) 2025-10-31 16:25:01,902 - INFO - Setting gateway for router 8ce0f210-8e15-48b0-8d59-ecb7c7151aa1 to network 2d9b2b6f-6848-4a63-9460-7cefe7ff8ce6 2025-10-31 16:25:02,000 - INFO - Adding interface with subnet_id d7518fc8-692c-4fcf-ae97-a1e57d9de6a1, port_id None to router 8ce0f210-8e15-48b0-8d59-ecb7c7151aa1 2025-10-31 16:25:02,334 - INFO - Waiting for VM ctest-TestRoutersBasic-35048706-44250610 to be up.. 2025-10-31 16:25:02,513 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-31 16:25:07,644 - DEBUG - VM is in ACTIVE state now 2025-10-31 16:25:07,644 - INFO - VM name : ctest-TestRoutersBasic-35048706-44250610 2025-10-31 16:25:07,741 - DEBUG - VM ctest-TestRoutersBasic-35048706-44250610 ID is 14fbd205-dc56-4920-9235-e1dd9fec3a2b 2025-10-31 16:25:07,763 - DEBUG - VM ctest-TestRoutersBasic-35048706-44250610 launched on Node cn-jenkins-deploy-platform-ansible-os-4579-1 2025-10-31 16:25:07,859 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/14fbd205-dc56-4920-9235-e1dd9fec3a2b 2025-10-31 16:25:08,154 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/14fbd205-dc56-4920-9235-e1dd9fec3a2b 2025-10-31 16:25:08,200 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/73f482b6-3d1a-454f-ae7a-50b213536a76 2025-10-31 16:25:11,501 - 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 1005ms') 2025-10-31 16:25:11,502 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-35048706-44250610 failed! 2025-10-31 16:25:11,569 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-35048706:ctest-vn-61154272 is 61.224.171.129 and allocation pool is NOT set 2025-10-31 16:25:13,650 - 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=7.09 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.27 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.265/4.178/7.091/2.913 ms') 2025-10-31 16:25:13,650 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-35048706-44250610 passed 2025-10-31 16:25:13,809 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-31 16:25:13,809 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-35048706-44250610, IP 61.224.171.131, Port 22 2025-10-31 16:25:13,890 - 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-10-31 16:25:14,030 - DEBUG - VM ctest-TestRoutersBasic-35048706-44250610 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-31 16:25:19,031 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-31 16:25:19,032 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-35048706-44250610, IP 61.224.171.131, Port 22 2025-10-31 16:25:19,208 - DEBUG - VM ctest-TestRoutersBasic-35048706-44250610 is ready for SSH connections 2025-10-31 16:25:19,208 - INFO - Waiting for VM ctest-TestRoutersBasic-35048706-46753398 to be up.. 2025-10-31 16:25:19,310 - DEBUG - VM is in ACTIVE state now 2025-10-31 16:25:19,310 - INFO - VM name : ctest-TestRoutersBasic-35048706-46753398 2025-10-31 16:25:19,433 - DEBUG - VM ctest-TestRoutersBasic-35048706-46753398 ID is 46b5eb77-9811-4cf2-a1b4-356c0fd279b5 2025-10-31 16:25:19,434 - DEBUG - VM ctest-TestRoutersBasic-35048706-46753398 launched on Node cn-jenkins-deploy-platform-ansible-os-4579-1 2025-10-31 16:25:19,535 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/46b5eb77-9811-4cf2-a1b4-356c0fd279b5 2025-10-31 16:25:19,547 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/7175698b-cac0-4aaa-83cb-5bcf8f520e4a 2025-10-31 16:25:20,838 - 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.75 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.685 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.685/4.717/8.750/4.032 ms') 2025-10-31 16:25:20,838 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-35048706-46753398 passed 2025-10-31 16:25:21,009 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-31 16:25:21,009 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-35048706-46753398, IP 66.225.196.195, Port 22 2025-10-31 16:25:21,202 - DEBUG - VM ctest-TestRoutersBasic-35048706-46753398 is ready for SSH connections 2025-10-31 16:25:21,202 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-31 16:25:21,203 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 66.225.196.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-10-31 16:25:21,203 - DEBUG - ping -s 56 -c 3 -W 1 66.225.196.195 2025-10-31 16:25:25,389 - DEBUG - PING 66.225.196.195 (66.225.196.195): 56 data bytes 64 bytes from 66.225.196.195: seq=0 ttl=62 time=6.293 ms 64 bytes from 66.225.196.195: seq=1 ttl=62 time=1.755 ms 64 bytes from 66.225.196.195: seq=2 ttl=62 time=1.412 ms --- 66.225.196.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.412/3.153/6.293 ms 2025-10-31 16:25:25,389 - INFO - Ping to IP 66.225.196.195 from VM ctest-TestRoutersBasic-35048706-44250610 passed 2025-10-31 16:25:25,389 - INFO - Deleting interface with subnet_id d7518fc8-692c-4fcf-ae97-a1e57d9de6a1, port_id None from router 8ce0f210-8e15-48b0-8d59-ecb7c7151aa1 2025-10-31 16:25:25,640 - INFO - Deleting VM ctest-TestRoutersBasic-35048706-46753398 2025-10-31 16:25:25,709 - INFO - Deleting VM ctest-TestRoutersBasic-35048706-44250610 2025-10-31 16:25:25,796 - INFO - Deleting VN ctest-ext_vn-80973157 2025-10-31 16:25:25,863 - DEBUG - VN 2d9b2b6f-6848-4a63-9460-7cefe7ff8ce6 still in use: Unable to complete operation on network 2d9b2b6f-6848-4a63-9460-7cefe7ff8ce6. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-960b0582-e91c-4829-81df-52dfac17cae3'] 2025-10-31 16:25:25,864 - WARNING - Deleting VN ctest-ext_vn-80973157 failed..Will retry 2025-10-31 16:25:28,048 - DEBUG - Response for deleting network () 2025-10-31 16:25:28,048 - INFO - Deleting VN ctest-vn-61154272 2025-10-31 16:25:28,164 - DEBUG - Response for deleting network () 2025-10-31 16:25:28,486 - DEBUG - No XMPP flaps were noticed during the test 2025-10-31 16:25:28,487 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:33] 2025-10-31 16:25:28,487 - INFO - -------------------------------------------------------------------------------- 2025-10-31 16:25:29,294 - INFO - Deleted project: ctest-TestRoutersBasic-35048706, ID : 1584c664-86de-4c6d-99ec-67a601444a19