2025-09-13 23:16:50,405 - INFO - Domain Default found not creating 2025-09-13 23:16:50,864 - INFO - Project ctest-TestRoutersBasic-12029813 not found, creating it 2025-09-13 23:16:51,660 - INFO - Created Project:ctest-TestRoutersBasic-12029813, ID : 04e0c522-1871-4f9d-a985-28a7861f1f17 2025-09-13 23:16:53,129 - INFO - ================================================================================ 2025-09-13 23:16:53,129 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-09-13 23:16:53,129 - 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-13 23:16:53,388 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-09-13 23:16:53,388 - INFO - Initial checks done. Running the testcase now 2025-09-13 23:16:53,388 - INFO - 2025-09-13 23:16:54,107 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-12029813 2025-09-13 23:16:54,203 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-12029813 2025-09-13 23:16:54,531 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-12029813', 'default']} 2025-09-13 23:16:54,813 - DEBUG - Response for create_network : {'network': {'id': '45153c51-4d77-4d3a-a96b-02010dc5747c', 'name': 'ctest-vn-37652650', 'tenant_id': '04e0c52218714f9da98528a7861f1f17', 'project_id': '04e0c52218714f9da98528a7861f1f17', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-12029813', 'ctest-vn-37652650'], 'port_security_enabled': True, 'description': ''}} 2025-09-13 23:16:54,983 - DEBUG - Response for create_subnet : {'subnet': {'id': '08d1203c-c98f-4589-be60-3ddbc6b04367', 'name': '', 'tenant_id': '04e0c52218714f9da98528a7861f1f17', 'network_id': '45153c51-4d77-4d3a-a96b-02010dc5747c', 'ip_version': 4, 'cidr': '203.13.191.192/26', 'allocation_pools': [{'start': '203.13.191.194', 'end': '203.13.191.254'}], 'gateway_ip': '203.13.191.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.13.191.194', 'tags': [], 'project_id': '04e0c52218714f9da98528a7861f1f17'}} 2025-09-13 23:16:55,001 - INFO - Created VN ctest-vn-37652650 2025-09-13 23:16:55,055 - DEBUG - VN ctest-vn-37652650 UUID is 45153c51-4d77-4d3a-a96b-02010dc5747c 2025-09-13 23:16:55,399 - DEBUG - Response for create_network : {'network': {'id': '02aca0f2-2d39-4184-b017-827f99e0ce01', 'name': 'ctest-ext_vn-96799954', 'tenant_id': '04e0c52218714f9da98528a7861f1f17', 'project_id': '04e0c52218714f9da98528a7861f1f17', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-12029813', 'ctest-ext_vn-96799954'], 'port_security_enabled': True, 'description': ''}} 2025-09-13 23:16:55,547 - DEBUG - Response for create_subnet : {'subnet': {'id': '30322858-59ed-47dc-b032-3b8c1e365af1', 'name': '', 'tenant_id': '04e0c52218714f9da98528a7861f1f17', 'network_id': '02aca0f2-2d39-4184-b017-827f99e0ce01', 'ip_version': 4, 'cidr': '101.241.226.0/26', 'allocation_pools': [{'start': '101.241.226.2', 'end': '101.241.226.62'}], 'gateway_ip': '101.241.226.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.241.226.2', 'tags': [], 'project_id': '04e0c52218714f9da98528a7861f1f17'}} 2025-09-13 23:16:55,564 - INFO - Created VN ctest-ext_vn-96799954 2025-09-13 23:16:55,615 - DEBUG - VN ctest-ext_vn-96799954 UUID is 02aca0f2-2d39-4184-b017-827f99e0ce01 2025-09-13 23:16:55,817 - DEBUG - Services list from nova: [, , ] 2025-09-13 23:16:56,832 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4105-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4105-1) 2025-09-13 23:16:57,961 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4105-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4105-1) 2025-09-13 23:16:58,035 - INFO - Setting gateway for router 99ac9866-b6cb-439a-bd73-43ea8affce01 to network 02aca0f2-2d39-4184-b017-827f99e0ce01 2025-09-13 23:16:58,093 - INFO - Adding interface with subnet_id 08d1203c-c98f-4589-be60-3ddbc6b04367, port_id None to router 99ac9866-b6cb-439a-bd73-43ea8affce01 2025-09-13 23:16:58,396 - INFO - Waiting for VM ctest-TestRoutersBasic-12029813-76146370 to be up.. 2025-09-13 23:16:58,511 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-13 23:17:03,589 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-13 23:17:08,665 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-13 23:17:13,740 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-13 23:17:18,820 - DEBUG - VM is in ACTIVE state now 2025-09-13 23:17:18,820 - INFO - VM name : ctest-TestRoutersBasic-12029813-76146370 2025-09-13 23:17:18,898 - DEBUG - VM ctest-TestRoutersBasic-12029813-76146370 ID is 1297e43a-c6f4-4e02-9508-bed25d5c61db 2025-09-13 23:17:18,920 - DEBUG - VM ctest-TestRoutersBasic-12029813-76146370 launched on Node cn-jenkins-deploy-platform-ansible-os-4105-1 2025-09-13 23:17:19,003 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/1297e43a-c6f4-4e02-9508-bed25d5c61db 2025-09-13 23:17:19,305 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/1297e43a-c6f4-4e02-9508-bed25d5c61db 2025-09-13 23:17:19,339 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/2a507fa5-6017-4027-9efb-a7bd3d017cd2 2025-09-13 23:17:22,613 - 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 1029ms') 2025-09-13 23:17:22,613 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-12029813-76146370 failed! 2025-09-13 23:17:22,675 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-12029813:ctest-vn-37652650 is 203.13.191.193 and allocation pool is NOT set 2025-09-13 23:17:24,743 - 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=8.58 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.429 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.429/4.506/8.583/4.077 ms') 2025-09-13 23:17:24,743 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-12029813-76146370 passed 2025-09-13 23:17:24,895 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-13 23:17:24,895 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-12029813-76146370, IP 203.13.191.195, Port 22 2025-09-13 23:17:25,055 - DEBUG - VM ctest-TestRoutersBasic-12029813-76146370 is ready for SSH connections 2025-09-13 23:17:25,055 - INFO - Waiting for VM ctest-TestRoutersBasic-12029813-82184832 to be up.. 2025-09-13 23:17:25,143 - DEBUG - VM is in ACTIVE state now 2025-09-13 23:17:25,143 - INFO - VM name : ctest-TestRoutersBasic-12029813-82184832 2025-09-13 23:17:25,231 - DEBUG - VM ctest-TestRoutersBasic-12029813-82184832 ID is c00526fa-962b-418b-bdc1-b3a3d85775de 2025-09-13 23:17:25,231 - DEBUG - VM ctest-TestRoutersBasic-12029813-82184832 launched on Node cn-jenkins-deploy-platform-ansible-os-4105-1 2025-09-13 23:17:25,316 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/c00526fa-962b-418b-bdc1-b3a3d85775de 2025-09-13 23:17:25,326 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/bd4dfc94-2a30-4b93-b2e6-65bc613df565 2025-09-13 23:17:26,568 - 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=11.3 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.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 = 1.147/6.236/11.325/5.089 ms') 2025-09-13 23:17:26,568 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-12029813-82184832 passed 2025-09-13 23:17:26,719 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-13 23:17:26,719 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-12029813-82184832, IP 101.241.226.3, Port 22 2025-09-13 23:17:26,784 - 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-09-13 23:17:26,859 - DEBUG - VM ctest-TestRoutersBasic-12029813-82184832 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-13 23:17:31,860 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-13 23:17:31,860 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-12029813-82184832, IP 101.241.226.3, Port 22 2025-09-13 23:17:32,018 - DEBUG - VM ctest-TestRoutersBasic-12029813-82184832 is ready for SSH connections 2025-09-13 23:17:32,019 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-13 23:17:32,019 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 101.241.226.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-09-13 23:17:32,019 - DEBUG - ping -s 56 -c 3 -W 1 101.241.226.3 2025-09-13 23:17:35,726 - DEBUG - PING 101.241.226.3 (101.241.226.3): 56 data bytes 64 bytes from 101.241.226.3: seq=0 ttl=62 time=4.863 ms 64 bytes from 101.241.226.3: seq=1 ttl=62 time=0.998 ms 64 bytes from 101.241.226.3: seq=2 ttl=62 time=1.198 ms --- 101.241.226.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.998/2.353/4.863 ms 2025-09-13 23:17:35,726 - INFO - Ping to IP 101.241.226.3 from VM ctest-TestRoutersBasic-12029813-76146370 passed 2025-09-13 23:17:35,726 - INFO - Deleting interface with subnet_id 08d1203c-c98f-4589-be60-3ddbc6b04367, port_id None from router 99ac9866-b6cb-439a-bd73-43ea8affce01 2025-09-13 23:17:35,923 - INFO - Deleting VM ctest-TestRoutersBasic-12029813-82184832 2025-09-13 23:17:36,000 - INFO - Deleting VM ctest-TestRoutersBasic-12029813-76146370 2025-09-13 23:17:36,084 - INFO - Deleting VN ctest-ext_vn-96799954 2025-09-13 23:17:36,163 - DEBUG - VN 02aca0f2-2d39-4184-b017-827f99e0ce01 still in use: Unable to complete operation on network 02aca0f2-2d39-4184-b017-827f99e0ce01. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-169a7d04-8964-4a3f-9e14-ac88294a023f'] 2025-09-13 23:17:36,163 - WARNING - Deleting VN ctest-ext_vn-96799954 failed..Will retry 2025-09-13 23:17:38,274 - DEBUG - Response for deleting network () 2025-09-13 23:17:38,274 - INFO - Deleting VN ctest-vn-37652650 2025-09-13 23:17:38,382 - DEBUG - Response for deleting network () 2025-09-13 23:17:38,638 - DEBUG - No XMPP flaps were noticed during the test 2025-09-13 23:17:38,638 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:45] 2025-09-13 23:17:38,638 - INFO - -------------------------------------------------------------------------------- 2025-09-13 23:17:39,307 - INFO - Deleted project: ctest-TestRoutersBasic-12029813, ID : 04e0c522-1871-4f9d-a985-28a7861f1f17