2025-08-08 18:19:15,241 - INFO - Domain Default found not creating 2025-08-08 18:19:15,359 - INFO - Project ctest-TestRoutersBasic-39436591 not found, creating it 2025-08-08 18:19:15,762 - INFO - Created Project:ctest-TestRoutersBasic-39436591, ID : 52abe7ac-8442-4429-bebd-016f8c14ed00 2025-08-08 18:19:17,050 - INFO - ================================================================================ 2025-08-08 18:19:17,050 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-08-08 18:19:17,050 - 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-08 18:19:17,309 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.0.0.50': '0'}} with 2025-08-08 18:19:17,309 - INFO - Initial checks done. Running the testcase now 2025-08-08 18:19:17,309 - INFO - 2025-08-08 18:19:17,974 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-39436591 2025-08-08 18:19:18,069 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-39436591 2025-08-08 18:19:18,376 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-39436591', 'default']} 2025-08-08 18:19:18,656 - DEBUG - Response for create_network : {'network': {'id': '97f910db-0189-4ca9-b13d-bd87680b332f', 'name': 'ctest-vn-94926052', 'tenant_id': '52abe7ac84424429bebd016f8c14ed00', 'project_id': '52abe7ac84424429bebd016f8c14ed00', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-39436591', 'ctest-vn-94926052'], 'port_security_enabled': True, 'description': ''}} 2025-08-08 18:19:18,852 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fcda4587-9116-43e7-a483-cde5de896363', 'name': '', 'tenant_id': '52abe7ac84424429bebd016f8c14ed00', 'network_id': '97f910db-0189-4ca9-b13d-bd87680b332f', 'ip_version': 4, 'cidr': '85.229.32.192/26', 'allocation_pools': [{'start': '85.229.32.194', 'end': '85.229.32.254'}], 'gateway_ip': '85.229.32.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.229.32.194', 'tags': [], 'project_id': '52abe7ac84424429bebd016f8c14ed00'}} 2025-08-08 18:19:18,867 - INFO - Created VN ctest-vn-94926052 2025-08-08 18:19:18,916 - DEBUG - VN ctest-vn-94926052 UUID is 97f910db-0189-4ca9-b13d-bd87680b332f 2025-08-08 18:19:19,235 - DEBUG - Response for create_network : {'network': {'id': 'bfb2c6b5-aa69-4e66-bea0-567cbcb49116', 'name': 'ctest-ext_vn-34999203', 'tenant_id': '52abe7ac84424429bebd016f8c14ed00', 'project_id': '52abe7ac84424429bebd016f8c14ed00', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-39436591', 'ctest-ext_vn-34999203'], 'port_security_enabled': True, 'description': ''}} 2025-08-08 18:19:19,409 - DEBUG - Response for create_subnet : {'subnet': {'id': '909cf199-f107-4810-8940-5599db9171f6', 'name': '', 'tenant_id': '52abe7ac84424429bebd016f8c14ed00', 'network_id': 'bfb2c6b5-aa69-4e66-bea0-567cbcb49116', 'ip_version': 4, 'cidr': '60.248.226.64/26', 'allocation_pools': [{'start': '60.248.226.66', 'end': '60.248.226.126'}], 'gateway_ip': '60.248.226.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.248.226.66', 'tags': [], 'project_id': '52abe7ac84424429bebd016f8c14ed00'}} 2025-08-08 18:19:19,424 - INFO - Created VN ctest-ext_vn-34999203 2025-08-08 18:19:19,472 - DEBUG - VN ctest-ext_vn-34999203 UUID is bfb2c6b5-aa69-4e66-bea0-567cbcb49116 2025-08-08 18:19:19,647 - DEBUG - Services list from nova: [, , ] 2025-08-08 18:19:20,581 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3784-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3784-1) 2025-08-08 18:19:21,714 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3784-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3784-1) 2025-08-08 18:19:21,794 - INFO - Setting gateway for router cabee293-1a75-43d8-a75e-e3c89192fb71 to network bfb2c6b5-aa69-4e66-bea0-567cbcb49116 2025-08-08 18:19:21,851 - INFO - Adding interface with subnet_id fcda4587-9116-43e7-a483-cde5de896363, port_id None to router cabee293-1a75-43d8-a75e-e3c89192fb71 2025-08-08 18:19:22,305 - INFO - Waiting for VM ctest-TestRoutersBasic-39436591-27559981 to be up.. 2025-08-08 18:19:22,511 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-08 18:19:27,590 - DEBUG - VM is in ACTIVE state now 2025-08-08 18:19:27,590 - INFO - VM name : ctest-TestRoutersBasic-39436591-27559981 2025-08-08 18:19:27,662 - DEBUG - VM ctest-TestRoutersBasic-39436591-27559981 ID is 80a91eb3-03ed-4f76-b236-9975e537058e 2025-08-08 18:19:27,678 - DEBUG - VM ctest-TestRoutersBasic-39436591-27559981 launched on Node cn-jenkins-deploy-platform-ansible-os-3784-1. 2025-08-08 18:19:27,749 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/80a91eb3-03ed-4f76-b236-9975e537058e 2025-08-08 18:19:28,038 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/80a91eb3-03ed-4f76-b236-9975e537058e 2025-08-08 18:19:28,064 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/7d85fe75-4d43-431c-8f56-5925983bab61 2025-08-08 18:19:31,294 - 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=2 ttl=63 time=10.1 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1003ms\r\nrtt min/avg/max/mdev = 10.059/10.059/10.059/0.000 ms') 2025-08-08 18:19:31,295 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-39436591-27559981 passed 2025-08-08 18:19:31,436 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-08 18:19:31,437 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-39436591-27559981, IP 85.229.32.195, Port 22 2025-08-08 18:19:31,603 - DEBUG - VM ctest-TestRoutersBasic-39436591-27559981 is ready for SSH connections 2025-08-08 18:19:31,603 - INFO - Waiting for VM ctest-TestRoutersBasic-39436591-75333664 to be up.. 2025-08-08 18:19:31,664 - DEBUG - VM is in ACTIVE state now 2025-08-08 18:19:31,665 - INFO - VM name : ctest-TestRoutersBasic-39436591-75333664 2025-08-08 18:19:31,723 - DEBUG - VM ctest-TestRoutersBasic-39436591-75333664 ID is 25ca90ec-cada-4106-98e0-fdd2e8583fdb 2025-08-08 18:19:31,723 - DEBUG - VM ctest-TestRoutersBasic-39436591-75333664 launched on Node cn-jenkins-deploy-platform-ansible-os-3784-1. 2025-08-08 18:19:31,787 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/25ca90ec-cada-4106-98e0-fdd2e8583fdb 2025-08-08 18:19:31,793 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/d97c35a2-ce52-46c6-b6d9-58318b5bbc67 2025-08-08 18:19:33,013 - 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.20 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.61 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 = 1.612/2.903/4.195/1.291 ms') 2025-08-08 18:19:33,013 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-39436591-75333664 passed 2025-08-08 18:19:33,164 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-08 18:19:33,165 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-39436591-75333664, IP 60.248.226.67, Port 22 2025-08-08 18:19:33,220 - 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-08-08 18:19:33,305 - DEBUG - VM ctest-TestRoutersBasic-39436591-75333664 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-08 18:19:38,306 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-08 18:19:38,306 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-39436591-75333664, IP 60.248.226.67, Port 22 2025-08-08 18:19:38,464 - DEBUG - VM ctest-TestRoutersBasic-39436591-75333664 is ready for SSH connections 2025-08-08 18:19:38,464 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-08 18:19:38,465 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 60.248.226.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-08-08 18:19:38,465 - DEBUG - ping -s 56 -c 3 -W 1 60.248.226.67 2025-08-08 18:19:42,413 - DEBUG - PING 60.248.226.67 (60.248.226.67): 56 data bytes 64 bytes from 60.248.226.67: seq=0 ttl=62 time=7.594 ms 64 bytes from 60.248.226.67: seq=1 ttl=62 time=0.923 ms 64 bytes from 60.248.226.67: seq=2 ttl=62 time=0.815 ms --- 60.248.226.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.815/3.110/7.594 ms 2025-08-08 18:19:42,413 - INFO - Ping to IP 60.248.226.67 from VM ctest-TestRoutersBasic-39436591-27559981 passed 2025-08-08 18:19:42,413 - INFO - Deleting interface with subnet_id fcda4587-9116-43e7-a483-cde5de896363, port_id None from router cabee293-1a75-43d8-a75e-e3c89192fb71 2025-08-08 18:19:42,586 - INFO - Deleting VM ctest-TestRoutersBasic-39436591-75333664 2025-08-08 18:19:42,653 - INFO - Deleting VM ctest-TestRoutersBasic-39436591-27559981 2025-08-08 18:19:42,743 - INFO - Deleting VN ctest-ext_vn-34999203 2025-08-08 18:19:42,811 - DEBUG - VN bfb2c6b5-aa69-4e66-bea0-567cbcb49116 still in use: Unable to complete operation on network bfb2c6b5-aa69-4e66-bea0-567cbcb49116. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b1132ae8-c3f9-4f17-90f3-1756abfd8d2c'] 2025-08-08 18:19:42,811 - WARNING - Deleting VN ctest-ext_vn-34999203 failed..Will retry 2025-08-08 18:19:44,914 - DEBUG - Response for deleting network () 2025-08-08 18:19:44,914 - INFO - Deleting VN ctest-vn-94926052 2025-08-08 18:19:45,006 - DEBUG - Response for deleting network () 2025-08-08 18:19:45,260 - DEBUG - No XMPP flaps were noticed during the test
2025-08-08 18:19:45,261 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:28]
2025-08-08 18:19:45,261 - INFO - -------------------------------------------------------------------------------- 2025-08-08 18:19:45,903 - INFO - Deleted project: ctest-TestRoutersBasic-39436591, ID : 52abe7ac-8442-4429-bebd-016f8c14ed00