2025-09-18 23:51:23,051 - INFO - Domain Default found not creating 2025-09-18 23:51:23,192 - INFO - Project ctest-TestRoutersBasic-53313556 not found, creating it 2025-09-18 23:51:23,637 - INFO - Created Project:ctest-TestRoutersBasic-53313556, ID : 4a0d6804-1bf4-4460-a3f6-789ba21826f9 2025-09-18 23:51:25,087 - INFO - ================================================================================ 2025-09-18 23:51:25,087 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-09-18 23:51:25,087 - 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-09-18 23:51:25,347 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-09-18 23:51:25,347 - INFO - Initial checks done. Running the testcase now 2025-09-18 23:51:25,347 - INFO - 2025-09-18 23:51:26,096 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-53313556 2025-09-18 23:51:26,193 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-53313556 2025-09-18 23:51:26,533 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-53313556', 'default']} 2025-09-18 23:51:26,843 - DEBUG - Response for create_network : {'network': {'id': '669eb8df-67b4-4bfb-812e-1641855bbe30', 'name': 'ctest-vn-03167020', 'tenant_id': '4a0d68041bf44460a3f6789ba21826f9', 'project_id': '4a0d68041bf44460a3f6789ba21826f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-53313556', 'ctest-vn-03167020'], 'port_security_enabled': True, 'description': ''}} 2025-09-18 23:51:27,001 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd5bb8877-8bd2-4531-ae96-0837926b6e1c', 'name': '', 'tenant_id': '4a0d68041bf44460a3f6789ba21826f9', 'network_id': '669eb8df-67b4-4bfb-812e-1641855bbe30', 'ip_version': 4, 'cidr': '98.20.3.0/26', 'allocation_pools': [{'start': '98.20.3.2', 'end': '98.20.3.62'}], 'gateway_ip': '98.20.3.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.20.3.2', 'tags': [], 'project_id': '4a0d68041bf44460a3f6789ba21826f9'}} 2025-09-18 23:51:27,020 - INFO - Created VN ctest-vn-03167020 2025-09-18 23:51:27,073 - DEBUG - VN ctest-vn-03167020 UUID is 669eb8df-67b4-4bfb-812e-1641855bbe30 2025-09-18 23:51:27,407 - DEBUG - Response for create_network : {'network': {'id': '1e884b1f-e876-4e53-87d4-064e6d1a2621', 'name': 'ctest-ext_vn-86663415', 'tenant_id': '4a0d68041bf44460a3f6789ba21826f9', 'project_id': '4a0d68041bf44460a3f6789ba21826f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-53313556', 'ctest-ext_vn-86663415'], 'port_security_enabled': True, 'description': ''}} 2025-09-18 23:51:27,595 - DEBUG - Response for create_subnet : {'subnet': {'id': '60b9837f-fc48-4ff9-918e-8e7653f875e8', 'name': '', 'tenant_id': '4a0d68041bf44460a3f6789ba21826f9', 'network_id': '1e884b1f-e876-4e53-87d4-064e6d1a2621', 'ip_version': 4, 'cidr': '220.95.255.128/26', 'allocation_pools': [{'start': '220.95.255.130', 'end': '220.95.255.190'}], 'gateway_ip': '220.95.255.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.95.255.130', 'tags': [], 'project_id': '4a0d68041bf44460a3f6789ba21826f9'}} 2025-09-18 23:51:27,617 - INFO - Created VN ctest-ext_vn-86663415 2025-09-18 23:51:27,669 - DEBUG - VN ctest-ext_vn-86663415 UUID is 1e884b1f-e876-4e53-87d4-064e6d1a2621 2025-09-18 23:51:27,845 - DEBUG - Services list from nova: [, , ] 2025-09-18 23:51:28,873 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4143-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4143-1) 2025-09-18 23:51:30,057 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4143-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4143-1) 2025-09-18 23:51:30,121 - INFO - Setting gateway for router 91151699-d13d-4756-a1b4-88a095bf2db2 to network 1e884b1f-e876-4e53-87d4-064e6d1a2621 2025-09-18 23:51:30,172 - INFO - Adding interface with subnet_id d5bb8877-8bd2-4531-ae96-0837926b6e1c, port_id None to router 91151699-d13d-4756-a1b4-88a095bf2db2 2025-09-18 23:51:30,523 - INFO - Waiting for VM ctest-TestRoutersBasic-53313556-72778647 to be up.. 2025-09-18 23:51:30,641 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-18 23:51:35,715 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-18 23:51:40,804 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-18 23:51:45,882 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-18 23:51:50,957 - DEBUG - VM is in ACTIVE state now 2025-09-18 23:51:50,957 - INFO - VM name : ctest-TestRoutersBasic-53313556-72778647 2025-09-18 23:51:51,039 - DEBUG - VM ctest-TestRoutersBasic-53313556-72778647 ID is afe87ef3-1f43-47d8-a94a-c57efa5fe18b 2025-09-18 23:51:51,059 - DEBUG - VM ctest-TestRoutersBasic-53313556-72778647 launched on Node cn-jenkins-deploy-platform-ansible-os-4143-1 2025-09-18 23:51:51,131 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/afe87ef3-1f43-47d8-a94a-c57efa5fe18b 2025-09-18 23:51:51,432 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/afe87ef3-1f43-47d8-a94a-c57efa5fe18b 2025-09-18 23:51:51,466 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/32797384-7e4c-41d3-9e95-c0431a8af04f 2025-09-18 23:51:54,736 - 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 1018ms') 2025-09-18 23:51:54,736 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-53313556-72778647 failed! 2025-09-18 23:51:54,794 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-53313556:ctest-vn-03167020 is 98.20.3.1 and allocation pool is NOT set 2025-09-18 23:51:56,859 - 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.98 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.71 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.711/3.343/3.975/0.632 ms') 2025-09-18 23:51:56,859 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-53313556-72778647 passed 2025-09-18 23:51:56,973 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-18 23:51:56,974 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-53313556-72778647, IP 98.20.3.3, Port 22 2025-09-18 23:51:57,039 - 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-09-18 23:51:57,114 - DEBUG - VM ctest-TestRoutersBasic-53313556-72778647 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-18 23:52:02,114 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-18 23:52:02,115 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-53313556-72778647, IP 98.20.3.3, Port 22 2025-09-18 23:52:02,272 - DEBUG - VM ctest-TestRoutersBasic-53313556-72778647 is ready for SSH connections 2025-09-18 23:52:02,273 - INFO - Waiting for VM ctest-TestRoutersBasic-53313556-75761103 to be up.. 2025-09-18 23:52:02,364 - DEBUG - VM is in ACTIVE state now 2025-09-18 23:52:02,365 - INFO - VM name : ctest-TestRoutersBasic-53313556-75761103 2025-09-18 23:52:02,432 - DEBUG - VM ctest-TestRoutersBasic-53313556-75761103 ID is 89f7fd95-75af-468d-a168-ab6e63fa74f4 2025-09-18 23:52:02,432 - DEBUG - VM ctest-TestRoutersBasic-53313556-75761103 launched on Node cn-jenkins-deploy-platform-ansible-os-4143-1 2025-09-18 23:52:02,496 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/89f7fd95-75af-468d-a168-ab6e63fa74f4 2025-09-18 23:52:02,504 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/b05f860b-8330-4ab0-a815-755f1274236c 2025-09-18 23:52:03,739 - 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.46 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.507 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.507/1.985/3.464/1.478 ms') 2025-09-18 23:52:03,739 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-53313556-75761103 passed 2025-09-18 23:52:03,885 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-18 23:52:03,885 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-53313556-75761103, IP 220.95.255.131, Port 22 2025-09-18 23:52:04,048 - DEBUG - VM ctest-TestRoutersBasic-53313556-75761103 is ready for SSH connections 2025-09-18 23:52:04,048 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-18 23:52:04,049 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 220.95.255.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-09-18 23:52:04,049 - DEBUG - ping -s 56 -c 3 -W 1 220.95.255.131 2025-09-18 23:52:07,714 - DEBUG - PING 220.95.255.131 (220.95.255.131): 56 data bytes 64 bytes from 220.95.255.131: seq=0 ttl=62 time=6.863 ms 64 bytes from 220.95.255.131: seq=1 ttl=62 time=1.082 ms 64 bytes from 220.95.255.131: seq=2 ttl=62 time=0.902 ms --- 220.95.255.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.902/2.949/6.863 ms 2025-09-18 23:52:07,714 - INFO - Ping to IP 220.95.255.131 from VM ctest-TestRoutersBasic-53313556-72778647 passed 2025-09-18 23:52:07,715 - INFO - Deleting interface with subnet_id d5bb8877-8bd2-4531-ae96-0837926b6e1c, port_id None from router 91151699-d13d-4756-a1b4-88a095bf2db2 2025-09-18 23:52:07,888 - INFO - Deleting VM ctest-TestRoutersBasic-53313556-75761103 2025-09-18 23:52:07,949 - INFO - Deleting VM ctest-TestRoutersBasic-53313556-72778647 2025-09-18 23:52:08,035 - INFO - Deleting VN ctest-ext_vn-86663415 2025-09-18 23:52:08,106 - DEBUG - VN 1e884b1f-e876-4e53-87d4-064e6d1a2621 still in use: Unable to complete operation on network 1e884b1f-e876-4e53-87d4-064e6d1a2621. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7ff40de1-caab-4535-a413-954126e7c25e'] 2025-09-18 23:52:08,106 - WARNING - Deleting VN ctest-ext_vn-86663415 failed..Will retry 2025-09-18 23:52:10,230 - DEBUG - Response for deleting network () 2025-09-18 23:52:10,230 - INFO - Deleting VN ctest-vn-03167020 2025-09-18 23:52:10,360 - DEBUG - Response for deleting network () 2025-09-18 23:52:10,615 - DEBUG - No XMPP flaps were noticed during the test 2025-09-18 23:52:10,615 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:45] 2025-09-18 23:52:10,615 - INFO - -------------------------------------------------------------------------------- 2025-09-18 23:52:11,280 - INFO - Deleted project: ctest-TestRoutersBasic-53313556, ID : 4a0d6804-1bf4-4460-a3f6-789ba21826f9