2025-08-20 15:56:12,464 - INFO - Domain Default found not creating 2025-08-20 15:56:12,599 - INFO - Project ctest-TestRoutersBasic-06764159 not found, creating it 2025-08-20 15:56:13,044 - INFO - Created Project:ctest-TestRoutersBasic-06764159, ID : 2dd1f5fb-2a72-46d3-b546-21c62bf127d0 2025-08-20 15:56:14,413 - INFO - ================================================================================ 2025-08-20 15:56:14,413 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-08-20 15:56:14,413 - 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-08-20 15:56:14,680 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with 2025-08-20 15:56:14,680 - INFO - Initial checks done. Running the testcase now 2025-08-20 15:56:14,680 - INFO - 2025-08-20 15:56:15,367 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-06764159 2025-08-20 15:56:15,462 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-06764159 2025-08-20 15:56:15,786 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-06764159', 'default']} 2025-08-20 15:56:16,085 - DEBUG - Response for create_network : {'network': {'id': '9c6e0d8a-05fe-4408-bfc7-8c6c614409db', 'name': 'ctest-vn-33298033', 'tenant_id': '2dd1f5fb2a7246d3b54621c62bf127d0', 'project_id': '2dd1f5fb2a7246d3b54621c62bf127d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-06764159', 'ctest-vn-33298033'], 'port_security_enabled': True, 'description': ''}} 2025-08-20 15:56:16,232 - DEBUG - Response for create_subnet : {'subnet': {'id': '30f8121c-71e5-41ff-9458-21babe360b2b', 'name': '', 'tenant_id': '2dd1f5fb2a7246d3b54621c62bf127d0', 'network_id': '9c6e0d8a-05fe-4408-bfc7-8c6c614409db', 'ip_version': 4, 'cidr': '8.17.253.0/26', 'allocation_pools': [{'start': '8.17.253.2', 'end': '8.17.253.62'}], 'gateway_ip': '8.17.253.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.17.253.2', 'tags': [], 'project_id': '2dd1f5fb2a7246d3b54621c62bf127d0'}} 2025-08-20 15:56:16,248 - INFO - Created VN ctest-vn-33298033 2025-08-20 15:56:16,298 - DEBUG - VN ctest-vn-33298033 UUID is 9c6e0d8a-05fe-4408-bfc7-8c6c614409db 2025-08-20 15:56:16,633 - DEBUG - Response for create_network : {'network': {'id': '79e2a50c-a9a6-415e-8762-c57d4ded8021', 'name': 'ctest-ext_vn-36926989', 'tenant_id': '2dd1f5fb2a7246d3b54621c62bf127d0', 'project_id': '2dd1f5fb2a7246d3b54621c62bf127d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-06764159', 'ctest-ext_vn-36926989'], 'port_security_enabled': True, 'description': ''}} 2025-08-20 15:56:16,833 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e8edb7b3-5d81-4bc0-b536-5324b44b2a1b', 'name': '', 'tenant_id': '2dd1f5fb2a7246d3b54621c62bf127d0', 'network_id': '79e2a50c-a9a6-415e-8762-c57d4ded8021', 'ip_version': 4, 'cidr': '206.63.229.64/26', 'allocation_pools': [{'start': '206.63.229.66', 'end': '206.63.229.126'}], 'gateway_ip': '206.63.229.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.63.229.66', 'tags': [], 'project_id': '2dd1f5fb2a7246d3b54621c62bf127d0'}} 2025-08-20 15:56:16,850 - INFO - Created VN ctest-ext_vn-36926989 2025-08-20 15:56:16,902 - DEBUG - VN ctest-ext_vn-36926989 UUID is 79e2a50c-a9a6-415e-8762-c57d4ded8021 2025-08-20 15:56:17,088 - DEBUG - Services list from nova: [, , ] 2025-08-20 15:56:18,132 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3898-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3898-1) 2025-08-20 15:56:19,175 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3898-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3898-1) 2025-08-20 15:56:19,231 - INFO - Setting gateway for router 6cdeeac2-47cf-447c-a375-0da46690f865 to network 79e2a50c-a9a6-415e-8762-c57d4ded8021 2025-08-20 15:56:19,301 - INFO - Adding interface with subnet_id 30f8121c-71e5-41ff-9458-21babe360b2b, port_id None to router 6cdeeac2-47cf-447c-a375-0da46690f865 2025-08-20 15:56:19,621 - INFO - Waiting for VM ctest-TestRoutersBasic-06764159-39128823 to be up.. 2025-08-20 15:56:19,751 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-20 15:56:24,827 - DEBUG - VM is in ACTIVE state now 2025-08-20 15:56:24,827 - INFO - VM name : ctest-TestRoutersBasic-06764159-39128823 2025-08-20 15:56:24,908 - DEBUG - VM ctest-TestRoutersBasic-06764159-39128823 ID is 6bfaa596-41c5-4a79-aa2e-e5ffc03c47f5 2025-08-20 15:56:24,926 - DEBUG - VM ctest-TestRoutersBasic-06764159-39128823 launched on Node cn-jenkins-deploy-platform-ansible-os-3898-1 2025-08-20 15:56:24,998 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/6bfaa596-41c5-4a79-aa2e-e5ffc03c47f5 2025-08-20 15:56:25,290 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/6bfaa596-41c5-4a79-aa2e-e5ffc03c47f5 2025-08-20 15:56:25,321 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/728cb966-69e9-4158-bc89-b265025c005b 2025-08-20 15:56:28,567 - 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 1003ms') 2025-08-20 15:56:28,567 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-06764159-39128823 failed! 2025-08-20 15:56:28,622 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-06764159:ctest-vn-33298033 is 8.17.253.1 and allocation pool is NOT set 2025-08-20 15:56:30,687 - 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=3.20 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.973 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.973/2.087/3.201/1.114 ms') 2025-08-20 15:56:30,688 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-06764159-39128823 passed 2025-08-20 15:56:30,846 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-20 15:56:30,846 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-06764159-39128823, IP 8.17.253.3, Port 22 2025-08-20 15:56:30,902 - 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-08-20 15:56:30,968 - DEBUG - VM ctest-TestRoutersBasic-06764159-39128823 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-20 15:56:35,968 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-20 15:56:35,968 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-06764159-39128823, IP 8.17.253.3, Port 22 2025-08-20 15:56:36,126 - DEBUG - VM ctest-TestRoutersBasic-06764159-39128823 is ready for SSH connections 2025-08-20 15:56:36,126 - INFO - Waiting for VM ctest-TestRoutersBasic-06764159-87189513 to be up.. 2025-08-20 15:56:36,194 - DEBUG - VM is in ACTIVE state now 2025-08-20 15:56:36,194 - INFO - VM name : ctest-TestRoutersBasic-06764159-87189513 2025-08-20 15:56:36,263 - DEBUG - VM ctest-TestRoutersBasic-06764159-87189513 ID is 38907f2c-bfc5-416a-a323-b9204577fee0 2025-08-20 15:56:36,264 - DEBUG - VM ctest-TestRoutersBasic-06764159-87189513 launched on Node cn-jenkins-deploy-platform-ansible-os-3898-1 2025-08-20 15:56:36,327 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/38907f2c-bfc5-416a-a323-b9204577fee0 2025-08-20 15:56:36,335 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/6b7f5dd8-4ce3-4d27-97d1-9f3a95f6b047 2025-08-20 15:56:37,568 - 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=2.71 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.314 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.314/1.510/2.706/1.196 ms') 2025-08-20 15:56:37,568 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-06764159-87189513 passed 2025-08-20 15:56:37,726 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-20 15:56:37,726 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-06764159-87189513, IP 206.63.229.67, Port 22 2025-08-20 15:56:37,885 - DEBUG - VM ctest-TestRoutersBasic-06764159-87189513 is ready for SSH connections 2025-08-20 15:56:37,885 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-20 15:56:37,885 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 206.63.229.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-08-20 15:56:37,885 - DEBUG - ping -s 56 -c 3 -W 1 206.63.229.67 2025-08-20 15:56:41,841 - DEBUG - PING 206.63.229.67 (206.63.229.67): 56 data bytes 64 bytes from 206.63.229.67: seq=0 ttl=62 time=6.187 ms 64 bytes from 206.63.229.67: seq=1 ttl=62 time=0.985 ms 64 bytes from 206.63.229.67: seq=2 ttl=62 time=0.731 ms --- 206.63.229.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.731/2.634/6.187 ms 2025-08-20 15:56:41,841 - INFO - Ping to IP 206.63.229.67 from VM ctest-TestRoutersBasic-06764159-39128823 passed 2025-08-20 15:56:41,841 - INFO - Deleting interface with subnet_id 30f8121c-71e5-41ff-9458-21babe360b2b, port_id None from router 6cdeeac2-47cf-447c-a375-0da46690f865 2025-08-20 15:56:42,015 - INFO - Deleting VM ctest-TestRoutersBasic-06764159-87189513 2025-08-20 15:56:42,076 - INFO - Deleting VM ctest-TestRoutersBasic-06764159-39128823 2025-08-20 15:56:42,149 - INFO - Deleting VN ctest-ext_vn-36926989 2025-08-20 15:56:42,203 - DEBUG - VN 79e2a50c-a9a6-415e-8762-c57d4ded8021 still in use: Unable to complete operation on network 79e2a50c-a9a6-415e-8762-c57d4ded8021. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f68150f4-1ef8-4a64-aeae-84dbc5282770'] 2025-08-20 15:56:42,204 - WARNING - Deleting VN ctest-ext_vn-36926989 failed..Will retry 2025-08-20 15:56:44,305 - DEBUG - Response for deleting network () 2025-08-20 15:56:44,305 - INFO - Deleting VN ctest-vn-33298033 2025-08-20 15:56:44,393 - DEBUG - Response for deleting network () 2025-08-20 15:56:44,652 - DEBUG - No XMPP flaps were noticed during the test 2025-08-20 15:56:44,652 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:30] 2025-08-20 15:56:44,652 - INFO - -------------------------------------------------------------------------------- 2025-08-20 15:56:45,316 - INFO - Deleted project: ctest-TestRoutersBasic-06764159, ID : 2dd1f5fb-2a72-46d3-b546-21c62bf127d0