2025-06-24 13:38:45,071 - INFO - Domain Default found not creating 2025-06-24 13:38:45,220 - INFO - Project ctest-TestRoutersBasic-35922548 not found, creating it 2025-06-24 13:38:45,672 - INFO - Created Project:ctest-TestRoutersBasic-35922548, ID : d1e6f81b-cad5-45cc-a136-c02a6775a329 2025-06-24 13:38:47,121 - INFO - ================================================================================ 2025-06-24 13:38:47,121 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-06-24 13:38:47,121 - 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-06-24 13:38:47,386 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.14': '0'}} with 2025-06-24 13:38:47,386 - INFO - Initial checks done. Running the testcase now 2025-06-24 13:38:47,386 - INFO - 2025-06-24 13:38:48,127 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-35922548 2025-06-24 13:38:48,228 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-35922548 2025-06-24 13:38:48,568 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-35922548', 'default']} 2025-06-24 13:38:48,884 - DEBUG - Response for create_network : {'network': {'id': '1e38086b-bbc4-4726-975e-fc1d70894d58', 'name': 'ctest-vn-67866864', 'tenant_id': 'd1e6f81bcad545cca136c02a6775a329', 'project_id': 'd1e6f81bcad545cca136c02a6775a329', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-35922548', 'ctest-vn-67866864'], 'port_security_enabled': True, 'description': ''}} 2025-06-24 13:38:49,030 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e088ae9e-03bf-44ae-8318-0d934218e289', 'name': '', 'tenant_id': 'd1e6f81bcad545cca136c02a6775a329', 'network_id': '1e38086b-bbc4-4726-975e-fc1d70894d58', 'ip_version': 4, 'cidr': '57.205.80.192/26', 'allocation_pools': [{'start': '57.205.80.194', 'end': '57.205.80.254'}], 'gateway_ip': '57.205.80.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.205.80.194', 'tags': [], 'project_id': 'd1e6f81bcad545cca136c02a6775a329'}} 2025-06-24 13:38:49,051 - INFO - Created VN ctest-vn-67866864 2025-06-24 13:38:49,108 - DEBUG - VN ctest-vn-67866864 UUID is 1e38086b-bbc4-4726-975e-fc1d70894d58 2025-06-24 13:38:49,479 - DEBUG - Response for create_network : {'network': {'id': '53b6f587-774e-46d5-a929-8b0bdffcc816', 'name': 'ctest-ext_vn-62201279', 'tenant_id': 'd1e6f81bcad545cca136c02a6775a329', 'project_id': 'd1e6f81bcad545cca136c02a6775a329', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-35922548', 'ctest-ext_vn-62201279'], 'port_security_enabled': True, 'description': ''}} 2025-06-24 13:38:49,700 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c1026e50-5e95-4681-a02d-0f35062ac09e', 'name': '', 'tenant_id': 'd1e6f81bcad545cca136c02a6775a329', 'network_id': '53b6f587-774e-46d5-a929-8b0bdffcc816', 'ip_version': 4, 'cidr': '170.80.117.0/26', 'allocation_pools': [{'start': '170.80.117.2', 'end': '170.80.117.62'}], 'gateway_ip': '170.80.117.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.80.117.2', 'tags': [], 'project_id': 'd1e6f81bcad545cca136c02a6775a329'}} 2025-06-24 13:38:49,720 - INFO - Created VN ctest-ext_vn-62201279 2025-06-24 13:38:49,776 - DEBUG - VN ctest-ext_vn-62201279 UUID is 53b6f587-774e-46d5-a929-8b0bdffcc816 2025-06-24 13:38:49,951 - DEBUG - Services list from nova: [, , ] 2025-06-24 13:38:51,018 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3535-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3535-1) 2025-06-24 13:38:52,292 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3535-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3535-1) 2025-06-24 13:38:52,403 - INFO - Setting gateway for router dd584214-9461-4150-b1c7-c1b19d121e0a to network 53b6f587-774e-46d5-a929-8b0bdffcc816 2025-06-24 13:38:52,475 - INFO - Adding interface with subnet_id e088ae9e-03bf-44ae-8318-0d934218e289, port_id None to router dd584214-9461-4150-b1c7-c1b19d121e0a 2025-06-24 13:38:52,831 - INFO - Waiting for VM ctest-TestRoutersBasic-35922548-54770455 to be up.. 2025-06-24 13:38:53,031 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-24 13:38:58,116 - DEBUG - VM is in ACTIVE state now 2025-06-24 13:38:58,116 - INFO - VM name : ctest-TestRoutersBasic-35922548-54770455 2025-06-24 13:38:58,197 - DEBUG - VM ctest-TestRoutersBasic-35922548-54770455 ID is f5e0bb93-522f-43f5-9388-b360447a8046 2025-06-24 13:38:58,217 - DEBUG - VM ctest-TestRoutersBasic-35922548-54770455 launched on Node cn-jenkins-deploy-platform-ansible-os-3535-1 2025-06-24 13:38:58,301 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/f5e0bb93-522f-43f5-9388-b360447a8046 2025-06-24 13:38:58,601 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/f5e0bb93-522f-43f5-9388-b360447a8046 2025-06-24 13:38:58,635 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/5233412e-6ecd-4f1b-a395-f86271c846c2 2025-06-24 13:39:01,890 - 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 1011ms') 2025-06-24 13:39:01,890 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-35922548-54770455 failed! 2025-06-24 13:39:01,948 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-35922548:ctest-vn-67866864 is 57.205.80.193 and allocation pool is NOT set 2025-06-24 13:39:04,009 - 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=14.3 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.81 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 = 3.810/9.033/14.256/5.223 ms') 2025-06-24 13:39:04,009 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-35922548-54770455 passed 2025-06-24 13:39:04,168 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-24 13:39:04,169 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-35922548-54770455, IP 57.205.80.195, Port 22 2025-06-24 13:39:04,234 - 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-06-24 13:39:04,344 - DEBUG - VM ctest-TestRoutersBasic-35922548-54770455 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-24 13:39:09,345 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-24 13:39:09,345 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-35922548-54770455, IP 57.205.80.195, Port 22 2025-06-24 13:39:09,508 - DEBUG - VM ctest-TestRoutersBasic-35922548-54770455 is ready for SSH connections 2025-06-24 13:39:09,508 - INFO - Waiting for VM ctest-TestRoutersBasic-35922548-54802868 to be up.. 2025-06-24 13:39:09,590 - DEBUG - VM is in ACTIVE state now 2025-06-24 13:39:09,590 - INFO - VM name : ctest-TestRoutersBasic-35922548-54802868 2025-06-24 13:39:09,675 - DEBUG - VM ctest-TestRoutersBasic-35922548-54802868 ID is 306a48c8-cbdd-4144-a8ae-c303ecb28191 2025-06-24 13:39:09,675 - DEBUG - VM ctest-TestRoutersBasic-35922548-54802868 launched on Node cn-jenkins-deploy-platform-ansible-os-3535-1 2025-06-24 13:39:09,753 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/306a48c8-cbdd-4144-a8ae-c303ecb28191 2025-06-24 13:39:09,763 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/2016a9e0-c1a8-4a9c-acbb-836599c3d14a 2025-06-24 13:39:11,002 - 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.64 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.634 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.634/2.138/3.642/1.504 ms') 2025-06-24 13:39:11,002 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-35922548-54802868 passed 2025-06-24 13:39:11,156 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-24 13:39:11,156 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-35922548-54802868, IP 170.80.117.3, Port 22 2025-06-24 13:39:11,312 - DEBUG - VM ctest-TestRoutersBasic-35922548-54802868 is ready for SSH connections 2025-06-24 13:39:11,312 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-24 13:39:11,313 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 170.80.117.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-06-24 13:39:11,313 - DEBUG - ping -s 56 -c 3 -W 1 170.80.117.3 2025-06-24 13:39:15,076 - DEBUG - PING 170.80.117.3 (170.80.117.3): 56 data bytes 64 bytes from 170.80.117.3: seq=0 ttl=62 time=5.394 ms 64 bytes from 170.80.117.3: seq=1 ttl=62 time=1.209 ms 64 bytes from 170.80.117.3: seq=2 ttl=62 time=1.337 ms --- 170.80.117.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.209/2.646/5.394 ms 2025-06-24 13:39:15,076 - INFO - Ping to IP 170.80.117.3 from VM ctest-TestRoutersBasic-35922548-54770455 passed 2025-06-24 13:39:15,076 - INFO - Deleting interface with subnet_id e088ae9e-03bf-44ae-8318-0d934218e289, port_id None from router dd584214-9461-4150-b1c7-c1b19d121e0a 2025-06-24 13:39:15,283 - INFO - Deleting VM ctest-TestRoutersBasic-35922548-54802868 2025-06-24 13:39:15,358 - INFO - Deleting VM ctest-TestRoutersBasic-35922548-54770455 2025-06-24 13:39:15,438 - INFO - Deleting VN ctest-ext_vn-62201279 2025-06-24 13:39:15,509 - DEBUG - VN 53b6f587-774e-46d5-a929-8b0bdffcc816 still in use: Unable to complete operation on network 53b6f587-774e-46d5-a929-8b0bdffcc816. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-34dc8e13-79ee-4b64-857d-1cd2ac09790f'] 2025-06-24 13:39:15,509 - WARNING - Deleting VN ctest-ext_vn-62201279 failed..Will retry 2025-06-24 13:39:17,622 - DEBUG - Response for deleting network () 2025-06-24 13:39:17,623 - INFO - Deleting VN ctest-vn-67866864 2025-06-24 13:39:17,721 - DEBUG - Response for deleting network () 2025-06-24 13:39:17,976 - DEBUG - No XMPP flaps were noticed during the test 2025-06-24 13:39:17,976 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:30] 2025-06-24 13:39:17,976 - INFO - -------------------------------------------------------------------------------- 2025-06-24 13:39:18,672 - INFO - Deleted project: ctest-TestRoutersBasic-35922548, ID : d1e6f81b-cad5-45cc-a136-c02a6775a329