2025-11-01 05:21:38,867 - INFO - Domain Default found not creating 2025-11-01 05:21:39,047 - INFO - Project ctest-TestRoutersBasic-89958445 not found, creating it 2025-11-01 05:21:39,556 - INFO - Created Project:ctest-TestRoutersBasic-89958445, ID : 1d564453-f751-4da1-8807-7b53126c2733 2025-11-01 05:21:41,239 - INFO - ================================================================================ 2025-11-01 05:21:41,240 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-11-01 05:21:41,240 - 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-01 05:21:41,513 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-11-01 05:21:41,513 - INFO - Initial checks done. Running the testcase now 2025-11-01 05:21:41,513 - INFO - 2025-11-01 05:21:42,333 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-89958445 2025-11-01 05:21:42,428 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-89958445 2025-11-01 05:21:42,756 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-89958445', 'default']} 2025-11-01 05:21:43,053 - DEBUG - Response for create_network : {'network': {'id': '0c76b8a3-6c57-4b81-9288-f3629b5daea1', 'name': 'ctest-vn-60089682', 'tenant_id': '1d564453f7514da188077b53126c2733', 'project_id': '1d564453f7514da188077b53126c2733', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-89958445', 'ctest-vn-60089682'], 'port_security_enabled': True, 'description': ''}} 2025-11-01 05:21:43,234 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cfac5fdf-de3d-4682-a34c-06e1448fcf23', 'name': '', 'tenant_id': '1d564453f7514da188077b53126c2733', 'network_id': '0c76b8a3-6c57-4b81-9288-f3629b5daea1', 'ip_version': 4, 'cidr': '52.163.124.192/26', 'allocation_pools': [{'start': '52.163.124.194', 'end': '52.163.124.254'}], 'gateway_ip': '52.163.124.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.163.124.194', 'tags': [], 'project_id': '1d564453f7514da188077b53126c2733'}} 2025-11-01 05:21:43,254 - INFO - Created VN ctest-vn-60089682 2025-11-01 05:21:43,308 - DEBUG - VN ctest-vn-60089682 UUID is 0c76b8a3-6c57-4b81-9288-f3629b5daea1 2025-11-01 05:21:43,636 - DEBUG - Response for create_network : {'network': {'id': '9ae84c6b-9653-499b-86c7-4faf9f43c6c1', 'name': 'ctest-ext_vn-46908866', 'tenant_id': '1d564453f7514da188077b53126c2733', 'project_id': '1d564453f7514da188077b53126c2733', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-89958445', 'ctest-ext_vn-46908866'], 'port_security_enabled': True, 'description': ''}} 2025-11-01 05:21:43,796 - DEBUG - Response for create_subnet : {'subnet': {'id': '84c38c8e-3963-40f6-b444-d36c76f15d20', 'name': '', 'tenant_id': '1d564453f7514da188077b53126c2733', 'network_id': '9ae84c6b-9653-499b-86c7-4faf9f43c6c1', 'ip_version': 4, 'cidr': '119.114.113.192/26', 'allocation_pools': [{'start': '119.114.113.194', 'end': '119.114.113.254'}], 'gateway_ip': '119.114.113.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '119.114.113.194', 'tags': [], 'project_id': '1d564453f7514da188077b53126c2733'}} 2025-11-01 05:21:43,815 - INFO - Created VN ctest-ext_vn-46908866 2025-11-01 05:21:43,868 - DEBUG - VN ctest-ext_vn-46908866 UUID is 9ae84c6b-9653-499b-86c7-4faf9f43c6c1 2025-11-01 05:21:44,056 - DEBUG - Services list from nova: [, , ] 2025-11-01 05:21:45,220 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4585-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4585-1) 2025-11-01 05:21:46,496 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4585-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4585-1) 2025-11-01 05:21:46,583 - INFO - Setting gateway for router 00dfcdf1-98a4-4dc1-becc-8094af2e283f to network 9ae84c6b-9653-499b-86c7-4faf9f43c6c1 2025-11-01 05:21:46,651 - INFO - Adding interface with subnet_id cfac5fdf-de3d-4682-a34c-06e1448fcf23, port_id None to router 00dfcdf1-98a4-4dc1-becc-8094af2e283f 2025-11-01 05:21:46,962 - INFO - Waiting for VM ctest-TestRoutersBasic-89958445-79367397 to be up.. 2025-11-01 05:21:47,109 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-01 05:21:52,202 - DEBUG - VM is in ACTIVE state now 2025-11-01 05:21:52,202 - INFO - VM name : ctest-TestRoutersBasic-89958445-79367397 2025-11-01 05:21:52,306 - DEBUG - VM ctest-TestRoutersBasic-89958445-79367397 ID is b1ff98db-7fd6-4cac-bf8a-9247227f0471 2025-11-01 05:21:52,326 - DEBUG - VM ctest-TestRoutersBasic-89958445-79367397 launched on Node cn-jenkins-deploy-platform-ansible-os-4585-1 2025-11-01 05:21:52,407 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/b1ff98db-7fd6-4cac-bf8a-9247227f0471 2025-11-01 05:21:52,753 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/b1ff98db-7fd6-4cac-bf8a-9247227f0471 2025-11-01 05:21:52,788 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/39b3b9ed-e28e-4281-a8fc-a5c1bd749b78 2025-11-01 05:21:56,051 - 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 1013ms') 2025-11-01 05:21:56,052 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-89958445-79367397 failed! 2025-11-01 05:21:56,104 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-89958445:ctest-vn-60089682 is 52.163.124.193 and allocation pool is NOT set 2025-11-01 05:21:58,167 - 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.43 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.506 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.506/1.967/3.429/1.461 ms') 2025-11-01 05:21:58,167 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-89958445-79367397 passed 2025-11-01 05:21:58,328 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-01 05:21:58,329 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-89958445-79367397, IP 52.163.124.195, Port 22 2025-11-01 05:21:58,494 - DEBUG - VM ctest-TestRoutersBasic-89958445-79367397 is ready for SSH connections 2025-11-01 05:21:58,494 - INFO - Waiting for VM ctest-TestRoutersBasic-89958445-51644887 to be up.. 2025-11-01 05:21:58,585 - DEBUG - VM is in ACTIVE state now 2025-11-01 05:21:58,585 - INFO - VM name : ctest-TestRoutersBasic-89958445-51644887 2025-11-01 05:21:58,677 - DEBUG - VM ctest-TestRoutersBasic-89958445-51644887 ID is e7097bb0-cc41-4632-954a-9eaf61c5443e 2025-11-01 05:21:58,678 - DEBUG - VM ctest-TestRoutersBasic-89958445-51644887 launched on Node cn-jenkins-deploy-platform-ansible-os-4585-1 2025-11-01 05:21:58,757 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/e7097bb0-cc41-4632-954a-9eaf61c5443e 2025-11-01 05:21:58,766 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/27af0e5b-856d-4e9d-8a11-1aba1c74c018 2025-11-01 05:22:00,014 - 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.73 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=4.15 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 = 3.734/3.940/4.146/0.206 ms') 2025-11-01 05:22:00,014 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-89958445-51644887 passed 2025-11-01 05:22:00,168 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-01 05:22:00,168 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-89958445-51644887, IP 119.114.113.195, Port 22 2025-11-01 05:22:00,235 - 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-11-01 05:22:00,318 - DEBUG - VM ctest-TestRoutersBasic-89958445-51644887 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-01 05:22:05,318 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-01 05:22:05,318 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-89958445-51644887, IP 119.114.113.195, Port 22 2025-11-01 05:22:05,486 - DEBUG - VM ctest-TestRoutersBasic-89958445-51644887 is ready for SSH connections 2025-11-01 05:22:05,486 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-01 05:22:05,486 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 119.114.113.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-11-01 05:22:05,486 - DEBUG - ping -s 56 -c 3 -W 1 119.114.113.195 2025-11-01 05:22:09,255 - DEBUG - PING 119.114.113.195 (119.114.113.195): 56 data bytes 64 bytes from 119.114.113.195: seq=0 ttl=62 time=6.270 ms 64 bytes from 119.114.113.195: seq=1 ttl=62 time=0.904 ms 64 bytes from 119.114.113.195: seq=2 ttl=62 time=1.737 ms --- 119.114.113.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.904/2.970/6.270 ms 2025-11-01 05:22:09,255 - INFO - Ping to IP 119.114.113.195 from VM ctest-TestRoutersBasic-89958445-79367397 passed 2025-11-01 05:22:09,255 - INFO - Deleting interface with subnet_id cfac5fdf-de3d-4682-a34c-06e1448fcf23, port_id None from router 00dfcdf1-98a4-4dc1-becc-8094af2e283f 2025-11-01 05:22:09,486 - INFO - Deleting VM ctest-TestRoutersBasic-89958445-51644887 2025-11-01 05:22:09,584 - INFO - Deleting VM ctest-TestRoutersBasic-89958445-79367397 2025-11-01 05:22:09,669 - INFO - Deleting VN ctest-ext_vn-46908866 2025-11-01 05:22:09,760 - DEBUG - VN 9ae84c6b-9653-499b-86c7-4faf9f43c6c1 still in use: Unable to complete operation on network 9ae84c6b-9653-499b-86c7-4faf9f43c6c1. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-13fde2da-de61-4873-80d0-0bea26b356cb'] 2025-11-01 05:22:09,760 - WARNING - Deleting VN ctest-ext_vn-46908866 failed..Will retry 2025-11-01 05:22:11,879 - DEBUG - Response for deleting network () 2025-11-01 05:22:11,879 - INFO - Deleting VN ctest-vn-60089682 2025-11-01 05:22:11,996 - DEBUG - Response for deleting network () 2025-11-01 05:22:12,265 - DEBUG - No XMPP flaps were noticed during the test 2025-11-01 05:22:12,265 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2025-11-01 05:22:12,265 - INFO - -------------------------------------------------------------------------------- 2025-11-01 05:22:13,027 - INFO - Deleted project: ctest-TestRoutersBasic-89958445, ID : 1d564453-f751-4da1-8807-7b53126c2733