2025-11-05 16:22:21,229 - INFO - Domain Default found not creating 2025-11-05 16:22:21,421 - INFO - Project ctest-TestRoutersBasic-47562336 not found, creating it 2025-11-05 16:22:21,951 - INFO - Created Project:ctest-TestRoutersBasic-47562336, ID : efa9c287-ce2e-4002-82be-a19414097f46 2025-11-05 16:22:23,674 - INFO - ================================================================================ 2025-11-05 16:22:23,674 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-11-05 16:22:23,674 - 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-11-05 16:22:23,952 - DEBUG - Nothing to compare xmpp stats {'10.0.0.147': {'10.20.0.249': '0'}} with 2025-11-05 16:22:23,952 - INFO - Initial checks done. Running the testcase now 2025-11-05 16:22:23,952 - INFO - 2025-11-05 16:22:24,808 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-47562336 2025-11-05 16:22:24,903 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-47562336 2025-11-05 16:22:25,234 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-47562336', 'default']} 2025-11-05 16:22:25,833 - DEBUG - Response for create_network : {'network': {'id': '0fb25c95-f102-41ec-92a2-883deac6db62', 'name': 'ctest-vn-31710361', 'tenant_id': 'efa9c287ce2e400282bea19414097f46', 'project_id': 'efa9c287ce2e400282bea19414097f46', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-47562336', 'ctest-vn-31710361'], 'port_security_enabled': True, 'description': ''}} 2025-11-05 16:22:26,057 - DEBUG - Response for create_subnet : {'subnet': {'id': '3efcd742-322b-4683-a1f3-7bb4332619b8', 'name': '', 'tenant_id': 'efa9c287ce2e400282bea19414097f46', 'network_id': '0fb25c95-f102-41ec-92a2-883deac6db62', 'ip_version': 4, 'cidr': '83.211.30.0/26', 'allocation_pools': [{'start': '83.211.30.2', 'end': '83.211.30.62'}], 'gateway_ip': '83.211.30.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '83.211.30.2', 'tags': [], 'project_id': 'efa9c287ce2e400282bea19414097f46'}} 2025-11-05 16:22:26,076 - INFO - Created VN ctest-vn-31710361 2025-11-05 16:22:26,127 - DEBUG - VN ctest-vn-31710361 UUID is 0fb25c95-f102-41ec-92a2-883deac6db62 2025-11-05 16:22:26,452 - DEBUG - Response for create_network : {'network': {'id': 'dc4f9388-4374-4115-a671-035dc60c8cd2', 'name': 'ctest-ext_vn-85630095', 'tenant_id': 'efa9c287ce2e400282bea19414097f46', 'project_id': 'efa9c287ce2e400282bea19414097f46', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-47562336', 'ctest-ext_vn-85630095'], 'port_security_enabled': True, 'description': ''}} 2025-11-05 16:22:26,620 - DEBUG - Response for create_subnet : {'subnet': {'id': '42fc9d8a-5e02-41d0-8655-f1c172cc4102', 'name': '', 'tenant_id': 'efa9c287ce2e400282bea19414097f46', 'network_id': 'dc4f9388-4374-4115-a671-035dc60c8cd2', 'ip_version': 4, 'cidr': '173.194.247.0/26', 'allocation_pools': [{'start': '173.194.247.2', 'end': '173.194.247.62'}], 'gateway_ip': '173.194.247.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.194.247.2', 'tags': [], 'project_id': 'efa9c287ce2e400282bea19414097f46'}} 2025-11-05 16:22:26,639 - INFO - Created VN ctest-ext_vn-85630095 2025-11-05 16:22:26,690 - DEBUG - VN ctest-ext_vn-85630095 UUID is dc4f9388-4374-4115-a671-035dc60c8cd2 2025-11-05 16:22:26,876 - DEBUG - Services list from nova: [, , ] 2025-11-05 16:22:28,071 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4649-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4649-1) 2025-11-05 16:22:29,379 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4649-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4649-1) 2025-11-05 16:22:29,468 - INFO - Setting gateway for router a740ce8c-5f33-4463-95d6-62a61c7f4686 to network dc4f9388-4374-4115-a671-035dc60c8cd2 2025-11-05 16:22:29,559 - INFO - Adding interface with subnet_id 3efcd742-322b-4683-a1f3-7bb4332619b8, port_id None to router a740ce8c-5f33-4463-95d6-62a61c7f4686 2025-11-05 16:22:29,958 - INFO - Waiting for VM ctest-TestRoutersBasic-47562336-92789192 to be up.. 2025-11-05 16:22:30,130 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-05 16:22:35,218 - DEBUG - VM is in ACTIVE state now 2025-11-05 16:22:35,218 - INFO - VM name : ctest-TestRoutersBasic-47562336-92789192 2025-11-05 16:22:35,315 - DEBUG - VM ctest-TestRoutersBasic-47562336-92789192 ID is c8f984e0-1e00-4fbd-89a1-c8f3e8f1276b 2025-11-05 16:22:35,336 - DEBUG - VM ctest-TestRoutersBasic-47562336-92789192 launched on Node cn-jenkins-deploy-platform-ansible-os-4649-1 2025-11-05 16:22:35,419 - DEBUG - Requesting: http://10.0.0.147:8082/virtual-machine/c8f984e0-1e00-4fbd-89a1-c8f3e8f1276b 2025-11-05 16:22:35,766 - DEBUG - Requesting: http://10.0.0.147:8082/virtual-machine/c8f984e0-1e00-4fbd-89a1-c8f3e8f1276b 2025-11-05 16:22:35,803 - DEBUG - Requesting: http://10.0.0.147:8082/virtual-machine-interface/a13d3340-f0bf-41c9-8239-36e98bf3ffe8 2025-11-05 16:22:39,049 - 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 1002ms') 2025-11-05 16:22:39,049 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-47562336-92789192 failed! 2025-11-05 16:22:39,118 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-47562336:ctest-vn-31710361 is 83.211.30.1 and allocation pool is NOT set 2025-11-05 16:22:41,188 - 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.21 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.55 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.550/3.879/4.209/0.329 ms') 2025-11-05 16:22:41,188 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-47562336-92789192 passed 2025-11-05 16:22:41,343 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 16:22:41,343 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-47562336-92789192, IP 83.211.30.3, Port 22 2025-11-05 16:22:41,409 - 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-11-05 16:22:41,497 - DEBUG - VM ctest-TestRoutersBasic-47562336-92789192 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-05 16:22:46,498 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 16:22:46,498 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-47562336-92789192, IP 83.211.30.3, Port 22 2025-11-05 16:22:46,654 - DEBUG - VM ctest-TestRoutersBasic-47562336-92789192 is ready for SSH connections 2025-11-05 16:22:46,654 - INFO - Waiting for VM ctest-TestRoutersBasic-47562336-66583412 to be up.. 2025-11-05 16:22:46,742 - DEBUG - VM is in ACTIVE state now 2025-11-05 16:22:46,743 - INFO - VM name : ctest-TestRoutersBasic-47562336-66583412 2025-11-05 16:22:46,828 - DEBUG - VM ctest-TestRoutersBasic-47562336-66583412 ID is 1515999d-18f1-4f48-9f41-2027aaa51dfd 2025-11-05 16:22:46,828 - DEBUG - VM ctest-TestRoutersBasic-47562336-66583412 launched on Node cn-jenkins-deploy-platform-ansible-os-4649-1 2025-11-05 16:22:46,929 - DEBUG - Requesting: http://10.0.0.147:8082/virtual-machine/1515999d-18f1-4f48-9f41-2027aaa51dfd 2025-11-05 16:22:46,939 - DEBUG - Requesting: http://10.0.0.147:8082/virtual-machine-interface/747843bd-4922-44a7-852e-f90e3b8cf9bd 2025-11-05 16:22:48,180 - 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.77 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.470 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.470/2.119/3.768/1.649 ms') 2025-11-05 16:22:48,180 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-47562336-66583412 passed 2025-11-05 16:22:48,334 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 16:22:48,335 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-47562336-66583412, IP 173.194.247.3, Port 22 2025-11-05 16:22:48,490 - DEBUG - VM ctest-TestRoutersBasic-47562336-66583412 is ready for SSH connections 2025-11-05 16:22:48,490 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-05 16:22:48,490 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 173.194.247.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.147, gateway password: c0ntrail123 2025-11-05 16:22:48,490 - DEBUG - ping -s 56 -c 3 -W 1 173.194.247.3 2025-11-05 16:22:52,297 - DEBUG - PING 173.194.247.3 (173.194.247.3): 56 data bytes 64 bytes from 173.194.247.3: seq=0 ttl=62 time=9.024 ms 64 bytes from 173.194.247.3: seq=1 ttl=62 time=1.329 ms 64 bytes from 173.194.247.3: seq=2 ttl=62 time=1.305 ms --- 173.194.247.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.305/3.886/9.024 ms 2025-11-05 16:22:52,298 - INFO - Ping to IP 173.194.247.3 from VM ctest-TestRoutersBasic-47562336-92789192 passed 2025-11-05 16:22:52,298 - INFO - Deleting interface with subnet_id 3efcd742-322b-4683-a1f3-7bb4332619b8, port_id None from router a740ce8c-5f33-4463-95d6-62a61c7f4686 2025-11-05 16:22:52,557 - INFO - Deleting VM ctest-TestRoutersBasic-47562336-66583412 2025-11-05 16:22:52,675 - INFO - Deleting VM ctest-TestRoutersBasic-47562336-92789192 2025-11-05 16:22:52,788 - INFO - Deleting VN ctest-ext_vn-85630095 2025-11-05 16:22:52,883 - DEBUG - VN dc4f9388-4374-4115-a671-035dc60c8cd2 still in use: Unable to complete operation on network dc4f9388-4374-4115-a671-035dc60c8cd2. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ac6c1c57-e4f1-4a78-afe1-59d751b1221d'] 2025-11-05 16:22:52,883 - WARNING - Deleting VN ctest-ext_vn-85630095 failed..Will retry 2025-11-05 16:22:55,004 - DEBUG - Response for deleting network () 2025-11-05 16:22:55,004 - INFO - Deleting VN ctest-vn-31710361 2025-11-05 16:22:55,145 - DEBUG - Response for deleting network () 2025-11-05 16:22:55,409 - DEBUG - No XMPP flaps were noticed during the test 2025-11-05 16:22:55,409 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32] 2025-11-05 16:22:55,409 - INFO - -------------------------------------------------------------------------------- 2025-11-05 16:22:56,206 - INFO - Deleted project: ctest-TestRoutersBasic-47562336, ID : efa9c287-ce2e-4002-82be-a19414097f46