2025-10-23 19:13:39,621 - INFO - Domain Default found not creating 2025-10-23 19:13:39,762 - INFO - Project ctest-TestRoutersBasic-21912858 not found, creating it 2025-10-23 19:13:40,237 - INFO - Created Project:ctest-TestRoutersBasic-21912858, ID : 1737d9e3-128f-4fe1-b616-0cef2a47c01b 2025-10-23 19:13:41,782 - INFO - ================================================================================ 2025-10-23 19:13:41,782 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-10-23 19:13:41,782 - 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-23 19:13:42,036 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with 2025-10-23 19:13:42,036 - INFO - Initial checks done. Running the testcase now 2025-10-23 19:13:42,036 - INFO - 2025-10-23 19:13:42,813 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-21912858 2025-10-23 19:13:42,907 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-21912858 2025-10-23 19:13:43,231 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-21912858', 'default']} 2025-10-23 19:13:43,521 - DEBUG - Response for create_network : {'network': {'id': '2dbe9e58-dca6-42ff-9e71-2da09db0e383', 'name': 'ctest-vn-15941014', 'tenant_id': '1737d9e3128f4fe1b6160cef2a47c01b', 'project_id': '1737d9e3128f4fe1b6160cef2a47c01b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-21912858', 'ctest-vn-15941014'], 'port_security_enabled': True, 'description': ''}} 2025-10-23 19:13:43,701 - DEBUG - Response for create_subnet : {'subnet': {'id': '11a8ed2d-6ec4-496e-a70f-4826a6a5d3af', 'name': '', 'tenant_id': '1737d9e3128f4fe1b6160cef2a47c01b', 'network_id': '2dbe9e58-dca6-42ff-9e71-2da09db0e383', 'ip_version': 4, 'cidr': '99.157.164.64/26', 'allocation_pools': [{'start': '99.157.164.66', 'end': '99.157.164.126'}], 'gateway_ip': '99.157.164.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.157.164.66', 'tags': [], 'project_id': '1737d9e3128f4fe1b6160cef2a47c01b'}} 2025-10-23 19:13:43,720 - INFO - Created VN ctest-vn-15941014 2025-10-23 19:13:43,775 - DEBUG - VN ctest-vn-15941014 UUID is 2dbe9e58-dca6-42ff-9e71-2da09db0e383 2025-10-23 19:13:44,105 - DEBUG - Response for create_network : {'network': {'id': 'cbda2561-3a11-45a2-92e4-1feef4c4b7f1', 'name': 'ctest-ext_vn-22924647', 'tenant_id': '1737d9e3128f4fe1b6160cef2a47c01b', 'project_id': '1737d9e3128f4fe1b6160cef2a47c01b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-21912858', 'ctest-ext_vn-22924647'], 'port_security_enabled': True, 'description': ''}} 2025-10-23 19:13:44,286 - DEBUG - Response for create_subnet : {'subnet': {'id': '4b30f18a-010d-493e-b63a-926fad92f8f8', 'name': '', 'tenant_id': '1737d9e3128f4fe1b6160cef2a47c01b', 'network_id': 'cbda2561-3a11-45a2-92e4-1feef4c4b7f1', 'ip_version': 4, 'cidr': '24.190.208.192/26', 'allocation_pools': [{'start': '24.190.208.194', 'end': '24.190.208.254'}], 'gateway_ip': '24.190.208.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.190.208.194', 'tags': [], 'project_id': '1737d9e3128f4fe1b6160cef2a47c01b'}} 2025-10-23 19:13:44,305 - INFO - Created VN ctest-ext_vn-22924647 2025-10-23 19:13:44,359 - DEBUG - VN ctest-ext_vn-22924647 UUID is cbda2561-3a11-45a2-92e4-1feef4c4b7f1 2025-10-23 19:13:44,520 - DEBUG - Services list from nova: [, , ] 2025-10-23 19:13:45,591 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4466-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4466-1) 2025-10-23 19:13:46,774 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4466-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4466-1) 2025-10-23 19:13:46,842 - INFO - Setting gateway for router 41e1a779-9504-4433-aa1e-7e2eb0653f94 to network cbda2561-3a11-45a2-92e4-1feef4c4b7f1 2025-10-23 19:13:46,911 - INFO - Adding interface with subnet_id 11a8ed2d-6ec4-496e-a70f-4826a6a5d3af, port_id None to router 41e1a779-9504-4433-aa1e-7e2eb0653f94 2025-10-23 19:13:47,245 - INFO - Waiting for VM ctest-TestRoutersBasic-21912858-12534872 to be up.. 2025-10-23 19:13:47,421 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-23 19:13:52,499 - DEBUG - VM is in ACTIVE state now 2025-10-23 19:13:52,499 - INFO - VM name : ctest-TestRoutersBasic-21912858-12534872 2025-10-23 19:13:52,573 - DEBUG - VM ctest-TestRoutersBasic-21912858-12534872 ID is bfbf8f14-5ad4-42ae-ac62-61ee81bb5853 2025-10-23 19:13:52,592 - DEBUG - VM ctest-TestRoutersBasic-21912858-12534872 launched on Node cn-jenkins-deploy-platform-ansible-os-4466-1 2025-10-23 19:13:52,668 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/bfbf8f14-5ad4-42ae-ac62-61ee81bb5853 2025-10-23 19:13:53,001 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/bfbf8f14-5ad4-42ae-ac62-61ee81bb5853 2025-10-23 19:13:53,033 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/f3d79785-e26e-401c-ac42-99bffa3d6a3d 2025-10-23 19:13:56,280 - 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-10-23 19:13:56,280 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-21912858-12534872 failed! 2025-10-23 19:13:56,335 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-21912858:ctest-vn-15941014 is 99.157.164.65 and allocation pool is NOT set 2025-10-23 19:13:58,397 - 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.05 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.68 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 = 2.679/3.365/4.052/0.686 ms') 2025-10-23 19:13:58,398 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-21912858-12534872 passed 2025-10-23 19:13:58,551 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-23 19:13:58,551 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-21912858-12534872, IP 99.157.164.67, Port 22 2025-10-23 19:13:58,711 - DEBUG - VM ctest-TestRoutersBasic-21912858-12534872 is ready for SSH connections 2025-10-23 19:13:58,711 - INFO - Waiting for VM ctest-TestRoutersBasic-21912858-42926556 to be up.. 2025-10-23 19:13:58,787 - DEBUG - VM is in ACTIVE state now 2025-10-23 19:13:58,788 - INFO - VM name : ctest-TestRoutersBasic-21912858-42926556 2025-10-23 19:13:58,859 - DEBUG - VM ctest-TestRoutersBasic-21912858-42926556 ID is 8f779614-8f75-4b96-9a9d-804389151c21 2025-10-23 19:13:58,859 - DEBUG - VM ctest-TestRoutersBasic-21912858-42926556 launched on Node cn-jenkins-deploy-platform-ansible-os-4466-1 2025-10-23 19:13:58,928 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/8f779614-8f75-4b96-9a9d-804389151c21 2025-10-23 19:13:58,935 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/ccf38cf0-dbb9-4078-9502-e19627097c32 2025-10-23 19:14:00,178 - 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=4.49 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.46 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 = 1.457/2.972/4.487/1.515 ms') 2025-10-23 19:14:00,178 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-21912858-42926556 passed 2025-10-23 19:14:00,327 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-23 19:14:00,327 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-21912858-42926556, IP 24.190.208.195, Port 22 2025-10-23 19:14:00,393 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-10-23 19:14:00,471 - DEBUG - VM ctest-TestRoutersBasic-21912858-42926556 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-23 19:14:05,471 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-23 19:14:05,472 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-21912858-42926556, IP 24.190.208.195, Port 22 2025-10-23 19:14:05,634 - DEBUG - VM ctest-TestRoutersBasic-21912858-42926556 is ready for SSH connections 2025-10-23 19:14:05,634 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-23 19:14:05,634 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 24.190.208.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-10-23 19:14:05,634 - DEBUG - ping -s 56 -c 3 -W 1 24.190.208.195 2025-10-23 19:14:09,386 - DEBUG - PING 24.190.208.195 (24.190.208.195): 56 data bytes 64 bytes from 24.190.208.195: seq=0 ttl=62 time=7.812 ms 64 bytes from 24.190.208.195: seq=1 ttl=62 time=0.933 ms 64 bytes from 24.190.208.195: seq=2 ttl=62 time=0.747 ms --- 24.190.208.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.747/3.164/7.812 ms 2025-10-23 19:14:09,386 - INFO - Ping to IP 24.190.208.195 from VM ctest-TestRoutersBasic-21912858-12534872 passed 2025-10-23 19:14:09,387 - INFO - Deleting interface with subnet_id 11a8ed2d-6ec4-496e-a70f-4826a6a5d3af, port_id None from router 41e1a779-9504-4433-aa1e-7e2eb0653f94 2025-10-23 19:14:09,571 - INFO - Deleting VM ctest-TestRoutersBasic-21912858-42926556 2025-10-23 19:14:09,640 - INFO - Deleting VM ctest-TestRoutersBasic-21912858-12534872 2025-10-23 19:14:09,727 - INFO - Deleting VN ctest-ext_vn-22924647 2025-10-23 19:14:09,789 - DEBUG - VN cbda2561-3a11-45a2-92e4-1feef4c4b7f1 still in use: Unable to complete operation on network cbda2561-3a11-45a2-92e4-1feef4c4b7f1. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-609d29e2-afff-49a3-99f8-763756b65da4'] 2025-10-23 19:14:09,789 - WARNING - Deleting VN ctest-ext_vn-22924647 failed..Will retry 2025-10-23 19:14:11,896 - DEBUG - Response for deleting network () 2025-10-23 19:14:11,897 - INFO - Deleting VN ctest-vn-15941014 2025-10-23 19:14:12,001 - DEBUG - Response for deleting network () 2025-10-23 19:14:12,260 - DEBUG - No XMPP flaps were noticed during the test 2025-10-23 19:14:12,260 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2025-10-23 19:14:12,260 - INFO - -------------------------------------------------------------------------------- 2025-10-23 19:14:12,966 - INFO - Deleted project: ctest-TestRoutersBasic-21912858, ID : 1737d9e3-128f-4fe1-b616-0cef2a47c01b