2025-10-31 22:28:54,374 - INFO - Domain Default found not creating 2025-10-31 22:28:54,525 - INFO - Project ctest-TestRoutersBasic-40004515 not found, creating it 2025-10-31 22:28:54,951 - INFO - Created Project:ctest-TestRoutersBasic-40004515, ID : e436c0a4-90f3-40b4-992b-a78b8a118ca7 2025-10-31 22:28:56,464 - INFO - ================================================================================ 2025-10-31 22:28:56,464 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-10-31 22:28:56,464 - 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-10-31 22:28:56,718 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.14': '0'}} with 2025-10-31 22:28:56,718 - INFO - Initial checks done. Running the testcase now 2025-10-31 22:28:56,718 - INFO - 2025-10-31 22:28:57,488 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-40004515 2025-10-31 22:28:57,585 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-40004515 2025-10-31 22:28:57,905 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-40004515', 'default']} 2025-10-31 22:28:58,184 - DEBUG - Response for create_network : {'network': {'id': '7203eb5b-1d7d-4bc8-a2dd-824aafe76b63', 'name': 'ctest-vn-65226207', 'tenant_id': 'e436c0a490f340b4992ba78b8a118ca7', 'project_id': 'e436c0a490f340b4992ba78b8a118ca7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-40004515', 'ctest-vn-65226207'], 'port_security_enabled': True, 'description': ''}} 2025-10-31 22:28:58,388 - DEBUG - Response for create_subnet : {'subnet': {'id': '75f37b4b-7b68-45d9-8078-de92929a4e52', 'name': '', 'tenant_id': 'e436c0a490f340b4992ba78b8a118ca7', 'network_id': '7203eb5b-1d7d-4bc8-a2dd-824aafe76b63', 'ip_version': 4, 'cidr': '3.14.249.192/26', 'allocation_pools': [{'start': '3.14.249.194', 'end': '3.14.249.254'}], 'gateway_ip': '3.14.249.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.14.249.194', 'tags': [], 'project_id': 'e436c0a490f340b4992ba78b8a118ca7'}} 2025-10-31 22:28:58,405 - INFO - Created VN ctest-vn-65226207 2025-10-31 22:28:58,457 - DEBUG - VN ctest-vn-65226207 UUID is 7203eb5b-1d7d-4bc8-a2dd-824aafe76b63 2025-10-31 22:28:58,793 - DEBUG - Response for create_network : {'network': {'id': '363bcd83-0b36-4c88-918e-b85f4e2a65ac', 'name': 'ctest-ext_vn-57096282', 'tenant_id': 'e436c0a490f340b4992ba78b8a118ca7', 'project_id': 'e436c0a490f340b4992ba78b8a118ca7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-40004515', 'ctest-ext_vn-57096282'], 'port_security_enabled': True, 'description': ''}} 2025-10-31 22:28:58,935 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd8d947a9-31c7-4563-aa00-27a791580b71', 'name': '', 'tenant_id': 'e436c0a490f340b4992ba78b8a118ca7', 'network_id': '363bcd83-0b36-4c88-918e-b85f4e2a65ac', 'ip_version': 4, 'cidr': '159.12.29.0/26', 'allocation_pools': [{'start': '159.12.29.2', 'end': '159.12.29.62'}], 'gateway_ip': '159.12.29.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '159.12.29.2', 'tags': [], 'project_id': 'e436c0a490f340b4992ba78b8a118ca7'}} 2025-10-31 22:28:58,952 - INFO - Created VN ctest-ext_vn-57096282 2025-10-31 22:28:59,005 - DEBUG - VN ctest-ext_vn-57096282 UUID is 363bcd83-0b36-4c88-918e-b85f4e2a65ac 2025-10-31 22:28:59,203 - DEBUG - Services list from nova: [, , ] 2025-10-31 22:29:00,271 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4583-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4583-1) 2025-10-31 22:29:01,444 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4583-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4583-1) 2025-10-31 22:29:01,517 - INFO - Setting gateway for router e753ec2f-a5b1-477c-963e-0aba294aa2ba to network 363bcd83-0b36-4c88-918e-b85f4e2a65ac 2025-10-31 22:29:01,578 - INFO - Adding interface with subnet_id 75f37b4b-7b68-45d9-8078-de92929a4e52, port_id None to router e753ec2f-a5b1-477c-963e-0aba294aa2ba 2025-10-31 22:29:01,964 - INFO - Waiting for VM ctest-TestRoutersBasic-40004515-93761857 to be up.. 2025-10-31 22:29:02,118 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-31 22:29:07,198 - DEBUG - VM is in ACTIVE state now 2025-10-31 22:29:07,198 - INFO - VM name : ctest-TestRoutersBasic-40004515-93761857 2025-10-31 22:29:07,275 - DEBUG - VM ctest-TestRoutersBasic-40004515-93761857 ID is a454546f-5bb1-4687-9679-33d36c015690 2025-10-31 22:29:07,293 - DEBUG - VM ctest-TestRoutersBasic-40004515-93761857 launched on Node cn-jenkins-deploy-platform-ansible-os-4583-1 2025-10-31 22:29:07,373 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/a454546f-5bb1-4687-9679-33d36c015690 2025-10-31 22:29:07,717 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/a454546f-5bb1-4687-9679-33d36c015690 2025-10-31 22:29:07,760 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/d1511a6e-220e-4a11-8357-7503acf7e00a 2025-10-31 22:29:11,025 - 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 1031ms') 2025-10-31 22:29:11,025 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-40004515-93761857 failed! 2025-10-31 22:29:11,077 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-40004515:ctest-vn-65226207 is 3.14.249.193 and allocation pool is NOT set 2025-10-31 22:29:13,138 - 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.17 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.779 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.779/1.974/3.169/1.195 ms') 2025-10-31 22:29:13,138 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-40004515-93761857 passed 2025-10-31 22:29:13,285 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-31 22:29:13,285 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-40004515-93761857, IP 3.14.249.195, Port 22 2025-10-31 22:29:13,354 - 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-10-31 22:29:13,430 - DEBUG - VM ctest-TestRoutersBasic-40004515-93761857 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-31 22:29:18,431 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-31 22:29:18,431 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-40004515-93761857, IP 3.14.249.195, Port 22 2025-10-31 22:29:18,598 - DEBUG - VM ctest-TestRoutersBasic-40004515-93761857 is ready for SSH connections 2025-10-31 22:29:18,599 - INFO - Waiting for VM ctest-TestRoutersBasic-40004515-17995834 to be up.. 2025-10-31 22:29:18,670 - DEBUG - VM is in ACTIVE state now 2025-10-31 22:29:18,670 - INFO - VM name : ctest-TestRoutersBasic-40004515-17995834 2025-10-31 22:29:18,746 - DEBUG - VM ctest-TestRoutersBasic-40004515-17995834 ID is 0411f4ca-0ca1-4b79-8c3c-6896727e7e0b 2025-10-31 22:29:18,746 - DEBUG - VM ctest-TestRoutersBasic-40004515-17995834 launched on Node cn-jenkins-deploy-platform-ansible-os-4583-1 2025-10-31 22:29:18,822 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/0411f4ca-0ca1-4b79-8c3c-6896727e7e0b 2025-10-31 22:29:18,830 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/27640c05-7314-441f-a7f6-678cfcfbf564 2025-10-31 22:29:20,070 - 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.41 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.355 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 = 0.355/1.883/3.412/1.528 ms') 2025-10-31 22:29:20,070 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-40004515-17995834 passed 2025-10-31 22:29:20,217 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-31 22:29:20,217 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-40004515-17995834, IP 159.12.29.3, Port 22 2025-10-31 22:29:20,372 - DEBUG - VM ctest-TestRoutersBasic-40004515-17995834 is ready for SSH connections 2025-10-31 22:29:20,372 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-31 22:29:20,373 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 159.12.29.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-10-31 22:29:20,373 - DEBUG - ping -s 56 -c 3 -W 1 159.12.29.3 2025-10-31 22:29:24,120 - DEBUG - PING 159.12.29.3 (159.12.29.3): 56 data bytes 64 bytes from 159.12.29.3: seq=0 ttl=62 time=5.151 ms 64 bytes from 159.12.29.3: seq=1 ttl=62 time=1.136 ms 64 bytes from 159.12.29.3: seq=2 ttl=62 time=0.917 ms --- 159.12.29.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.917/2.401/5.151 ms 2025-10-31 22:29:24,120 - INFO - Ping to IP 159.12.29.3 from VM ctest-TestRoutersBasic-40004515-93761857 passed 2025-10-31 22:29:24,120 - INFO - Deleting interface with subnet_id 75f37b4b-7b68-45d9-8078-de92929a4e52, port_id None from router e753ec2f-a5b1-477c-963e-0aba294aa2ba 2025-10-31 22:29:24,313 - INFO - Deleting VM ctest-TestRoutersBasic-40004515-17995834 2025-10-31 22:29:24,403 - INFO - Deleting VM ctest-TestRoutersBasic-40004515-93761857 2025-10-31 22:29:24,485 - INFO - Deleting VN ctest-ext_vn-57096282 2025-10-31 22:29:24,557 - DEBUG - VN 363bcd83-0b36-4c88-918e-b85f4e2a65ac still in use: Unable to complete operation on network 363bcd83-0b36-4c88-918e-b85f4e2a65ac. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-5104b616-579e-4033-98ea-593ead786e14'] 2025-10-31 22:29:24,557 - WARNING - Deleting VN ctest-ext_vn-57096282 failed..Will retry 2025-10-31 22:29:26,663 - DEBUG - Response for deleting network () 2025-10-31 22:29:26,664 - INFO - Deleting VN ctest-vn-65226207 2025-10-31 22:29:26,756 - DEBUG - Response for deleting network () 2025-10-31 22:29:27,016 - DEBUG - No XMPP flaps were noticed during the test 2025-10-31 22:29:27,016 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2025-10-31 22:29:27,016 - INFO - -------------------------------------------------------------------------------- 2025-10-31 22:29:27,724 - INFO - Deleted project: ctest-TestRoutersBasic-40004515, ID : e436c0a4-90f3-40b4-992b-a78b8a118ca7