2025-11-27 02:08:07,788 - INFO - Domain Default found not creating 2025-11-27 02:08:07,959 - INFO - Project ctest-TestRoutersBasic-34646302 not found, creating it 2025-11-27 02:08:08,444 - INFO - Created Project:ctest-TestRoutersBasic-34646302, ID : 9d03653c-bd61-4021-9c01-8a0142cbd7fe 2025-11-27 02:08:10,086 - INFO - ================================================================================ 2025-11-27 02:08:10,086 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-11-27 02:08:10,086 - 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-27 02:08:10,356 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-11-27 02:08:10,357 - INFO - Initial checks done. Running the testcase now 2025-11-27 02:08:10,357 - INFO - 2025-11-27 02:08:11,248 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-34646302 2025-11-27 02:08:11,348 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-34646302 2025-11-27 02:08:11,672 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-34646302', 'default']} 2025-11-27 02:08:11,983 - DEBUG - Response for create_network : {'network': {'id': '7f02d8dc-c2fe-4e06-8bd3-0d482c548e61', 'name': 'ctest-vn-76481687', 'tenant_id': '9d03653cbd6140219c018a0142cbd7fe', 'project_id': '9d03653cbd6140219c018a0142cbd7fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-34646302', 'ctest-vn-76481687'], 'port_security_enabled': True, 'description': ''}} 2025-11-27 02:08:12,147 - DEBUG - Response for create_subnet : {'subnet': {'id': '505c8769-8a0e-4e05-892e-9a0253b6554e', 'name': '', 'tenant_id': '9d03653cbd6140219c018a0142cbd7fe', 'network_id': '7f02d8dc-c2fe-4e06-8bd3-0d482c548e61', 'ip_version': 4, 'cidr': '13.76.63.128/26', 'allocation_pools': [{'start': '13.76.63.130', 'end': '13.76.63.190'}], 'gateway_ip': '13.76.63.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.76.63.130', 'tags': [], 'project_id': '9d03653cbd6140219c018a0142cbd7fe'}} 2025-11-27 02:08:12,165 - INFO - Created VN ctest-vn-76481687 2025-11-27 02:08:12,216 - DEBUG - VN ctest-vn-76481687 UUID is 7f02d8dc-c2fe-4e06-8bd3-0d482c548e61 2025-11-27 02:08:12,580 - DEBUG - Response for create_network : {'network': {'id': '2a9d02c4-a945-4e7d-8b58-ef77e518173d', 'name': 'ctest-ext_vn-23725507', 'tenant_id': '9d03653cbd6140219c018a0142cbd7fe', 'project_id': '9d03653cbd6140219c018a0142cbd7fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-34646302', 'ctest-ext_vn-23725507'], 'port_security_enabled': True, 'description': ''}} 2025-11-27 02:08:12,792 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd42630f9-1c0c-4770-afe2-4293f0ebc169', 'name': '', 'tenant_id': '9d03653cbd6140219c018a0142cbd7fe', 'network_id': '2a9d02c4-a945-4e7d-8b58-ef77e518173d', 'ip_version': 4, 'cidr': '137.244.23.0/26', 'allocation_pools': [{'start': '137.244.23.2', 'end': '137.244.23.62'}], 'gateway_ip': '137.244.23.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.244.23.2', 'tags': [], 'project_id': '9d03653cbd6140219c018a0142cbd7fe'}} 2025-11-27 02:08:12,812 - INFO - Created VN ctest-ext_vn-23725507 2025-11-27 02:08:12,868 - DEBUG - VN ctest-ext_vn-23725507 UUID is 2a9d02c4-a945-4e7d-8b58-ef77e518173d 2025-11-27 02:08:13,040 - DEBUG - Services list from nova: [, , ] 2025-11-27 02:08:14,194 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4817-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4817-1) 2025-11-27 02:08:15,517 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4817-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4817-1) 2025-11-27 02:08:15,593 - INFO - Setting gateway for router 4ad422a1-e23a-4c42-ba52-cb05e8da28c4 to network 2a9d02c4-a945-4e7d-8b58-ef77e518173d 2025-11-27 02:08:15,653 - INFO - Adding interface with subnet_id 505c8769-8a0e-4e05-892e-9a0253b6554e, port_id None to router 4ad422a1-e23a-4c42-ba52-cb05e8da28c4 2025-11-27 02:08:16,208 - INFO - Waiting for VM ctest-TestRoutersBasic-34646302-47169634 to be up.. 2025-11-27 02:08:16,369 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-27 02:08:21,448 - DEBUG - VM is in ACTIVE state now 2025-11-27 02:08:21,448 - INFO - VM name : ctest-TestRoutersBasic-34646302-47169634 2025-11-27 02:08:21,526 - DEBUG - VM ctest-TestRoutersBasic-34646302-47169634 ID is 22f35e2b-7bd5-46b1-82de-22624e7067a0 2025-11-27 02:08:21,545 - DEBUG - VM ctest-TestRoutersBasic-34646302-47169634 launched on Node cn-jenkins-deploy-platform-ansible-os-4817-1 2025-11-27 02:08:21,618 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/22f35e2b-7bd5-46b1-82de-22624e7067a0 2025-11-27 02:08:21,957 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/22f35e2b-7bd5-46b1-82de-22624e7067a0 2025-11-27 02:08:21,993 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/cf8d402e-ba7b-402f-9a43-90f1af408407 2025-11-27 02:08:25,236 - 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 1006ms') 2025-11-27 02:08:25,236 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-34646302-47169634 failed! 2025-11-27 02:08:25,296 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-34646302:ctest-vn-76481687 is 13.76.63.129 and allocation pool is NOT set 2025-11-27 02:08:27,359 - 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.25 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.494 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.494/1.871/3.248/1.377 ms') 2025-11-27 02:08:27,359 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-34646302-47169634 passed 2025-11-27 02:08:27,508 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-27 02:08:27,508 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-34646302-47169634, IP 13.76.63.131, Port 22 2025-11-27 02:08:27,664 - DEBUG - VM ctest-TestRoutersBasic-34646302-47169634 is ready for SSH connections 2025-11-27 02:08:27,664 - INFO - Waiting for VM ctest-TestRoutersBasic-34646302-95828068 to be up.. 2025-11-27 02:08:27,739 - DEBUG - VM is in ACTIVE state now 2025-11-27 02:08:27,739 - INFO - VM name : ctest-TestRoutersBasic-34646302-95828068 2025-11-27 02:08:27,814 - DEBUG - VM ctest-TestRoutersBasic-34646302-95828068 ID is 4a34cc93-f937-4d5c-bbfb-79db2a1a1782 2025-11-27 02:08:27,814 - DEBUG - VM ctest-TestRoutersBasic-34646302-95828068 launched on Node cn-jenkins-deploy-platform-ansible-os-4817-1 2025-11-27 02:08:27,888 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/4a34cc93-f937-4d5c-bbfb-79db2a1a1782 2025-11-27 02:08:27,897 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/bcf35285-a8cd-4489-b9fe-ef46ecad1613 2025-11-27 02:08:29,135 - 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.10 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.628 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.628/1.862/3.096/1.234 ms') 2025-11-27 02:08:29,136 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-34646302-95828068 passed 2025-11-27 02:08:29,284 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-27 02:08:29,284 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-34646302-95828068, IP 137.244.23.3, Port 22 2025-11-27 02:08:29,339 - 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-27 02:08:29,414 - DEBUG - VM ctest-TestRoutersBasic-34646302-95828068 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-27 02:08:34,415 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-27 02:08:34,415 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-34646302-95828068, IP 137.244.23.3, Port 22 2025-11-27 02:08:34,582 - DEBUG - VM ctest-TestRoutersBasic-34646302-95828068 is ready for SSH connections 2025-11-27 02:08:34,583 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-27 02:08:34,583 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 137.244.23.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-11-27 02:08:34,583 - DEBUG - ping -s 56 -c 3 -W 1 137.244.23.3 2025-11-27 02:08:38,343 - DEBUG - PING 137.244.23.3 (137.244.23.3): 56 data bytes 64 bytes from 137.244.23.3: seq=0 ttl=62 time=5.031 ms 64 bytes from 137.244.23.3: seq=1 ttl=62 time=0.965 ms 64 bytes from 137.244.23.3: seq=2 ttl=62 time=1.160 ms --- 137.244.23.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.965/2.385/5.031 ms 2025-11-27 02:08:38,343 - INFO - Ping to IP 137.244.23.3 from VM ctest-TestRoutersBasic-34646302-47169634 passed 2025-11-27 02:08:38,343 - INFO - Deleting interface with subnet_id 505c8769-8a0e-4e05-892e-9a0253b6554e, port_id None from router 4ad422a1-e23a-4c42-ba52-cb05e8da28c4 2025-11-27 02:08:38,560 - INFO - Deleting VM ctest-TestRoutersBasic-34646302-95828068 2025-11-27 02:08:38,639 - INFO - Deleting VM ctest-TestRoutersBasic-34646302-47169634 2025-11-27 02:08:38,730 - INFO - Deleting VN ctest-ext_vn-23725507 2025-11-27 02:08:38,814 - DEBUG - VN 2a9d02c4-a945-4e7d-8b58-ef77e518173d still in use: Unable to complete operation on network 2a9d02c4-a945-4e7d-8b58-ef77e518173d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-91cbbf62-a350-482f-a01f-3376bf986fc7'] 2025-11-27 02:08:38,814 - WARNING - Deleting VN ctest-ext_vn-23725507 failed..Will retry 2025-11-27 02:08:40,921 - DEBUG - Response for deleting network () 2025-11-27 02:08:40,922 - INFO - Deleting VN ctest-vn-76481687 2025-11-27 02:08:41,035 - DEBUG - Response for deleting network () 2025-11-27 02:08:41,289 - DEBUG - No XMPP flaps were noticed during the test 2025-11-27 02:08:41,289 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2025-11-27 02:08:41,289 - INFO - -------------------------------------------------------------------------------- 2025-11-27 02:08:42,025 - INFO - Deleted project: ctest-TestRoutersBasic-34646302, ID : 9d03653c-bd61-4021-9c01-8a0142cbd7fe