2025-11-24 02:00:46,252 - INFO - Domain Default found not creating 2025-11-24 02:00:46,429 - INFO - Project ctest-TestRoutersBasic-04840030 not found, creating it 2025-11-24 02:00:46,887 - INFO - Created Project:ctest-TestRoutersBasic-04840030, ID : a1d41009-2363-4618-a5a9-7f1fc3b0ce7d 2025-11-24 02:00:48,494 - INFO - ================================================================================ 2025-11-24 02:00:48,494 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-11-24 02:00:48,494 - 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-24 02:00:48,752 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-11-24 02:00:48,752 - INFO - Initial checks done. Running the testcase now 2025-11-24 02:00:48,752 - INFO - 2025-11-24 02:00:49,542 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-04840030 2025-11-24 02:00:49,635 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-04840030 2025-11-24 02:00:49,951 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-04840030', 'default']} 2025-11-24 02:00:50,258 - DEBUG - Response for create_network : {'network': {'id': 'ddc034d9-cfe0-47d1-9c77-ea0d6c5db4d8', 'name': 'ctest-vn-59831374', 'tenant_id': 'a1d4100923634618a5a97f1fc3b0ce7d', 'project_id': 'a1d4100923634618a5a97f1fc3b0ce7d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-04840030', 'ctest-vn-59831374'], 'port_security_enabled': True, 'description': ''}} 2025-11-24 02:00:50,429 - DEBUG - Response for create_subnet : {'subnet': {'id': '02463cef-7da7-4743-b7b5-c887fb7c245b', 'name': '', 'tenant_id': 'a1d4100923634618a5a97f1fc3b0ce7d', 'network_id': 'ddc034d9-cfe0-47d1-9c77-ea0d6c5db4d8', 'ip_version': 4, 'cidr': '20.99.1.0/26', 'allocation_pools': [{'start': '20.99.1.2', 'end': '20.99.1.62'}], 'gateway_ip': '20.99.1.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.99.1.2', 'tags': [], 'project_id': 'a1d4100923634618a5a97f1fc3b0ce7d'}} 2025-11-24 02:00:50,445 - INFO - Created VN ctest-vn-59831374 2025-11-24 02:00:50,496 - DEBUG - VN ctest-vn-59831374 UUID is ddc034d9-cfe0-47d1-9c77-ea0d6c5db4d8 2025-11-24 02:00:50,837 - DEBUG - Response for create_network : {'network': {'id': 'dba68130-a7b4-4d17-9edc-4d771824cc35', 'name': 'ctest-ext_vn-27371600', 'tenant_id': 'a1d4100923634618a5a97f1fc3b0ce7d', 'project_id': 'a1d4100923634618a5a97f1fc3b0ce7d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-04840030', 'ctest-ext_vn-27371600'], 'port_security_enabled': True, 'description': ''}} 2025-11-24 02:00:51,048 - DEBUG - Response for create_subnet : {'subnet': {'id': '1bf9056d-d05c-4b0e-984f-ea1574307fd3', 'name': '', 'tenant_id': 'a1d4100923634618a5a97f1fc3b0ce7d', 'network_id': 'dba68130-a7b4-4d17-9edc-4d771824cc35', 'ip_version': 4, 'cidr': '56.242.148.128/26', 'allocation_pools': [{'start': '56.242.148.130', 'end': '56.242.148.190'}], 'gateway_ip': '56.242.148.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '56.242.148.130', 'tags': [], 'project_id': 'a1d4100923634618a5a97f1fc3b0ce7d'}} 2025-11-24 02:00:51,064 - INFO - Created VN ctest-ext_vn-27371600 2025-11-24 02:00:51,116 - DEBUG - VN ctest-ext_vn-27371600 UUID is dba68130-a7b4-4d17-9edc-4d771824cc35 2025-11-24 02:00:51,287 - DEBUG - Services list from nova: [, , ] 2025-11-24 02:00:52,393 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4802-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4802-1) 2025-11-24 02:00:53,634 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4802-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4802-1) 2025-11-24 02:00:53,700 - INFO - Setting gateway for router e3f3fcba-8ecd-4d06-8e55-6d17b7e89d0a to network dba68130-a7b4-4d17-9edc-4d771824cc35 2025-11-24 02:00:53,789 - INFO - Adding interface with subnet_id 02463cef-7da7-4743-b7b5-c887fb7c245b, port_id None to router e3f3fcba-8ecd-4d06-8e55-6d17b7e89d0a 2025-11-24 02:00:54,097 - INFO - Waiting for VM ctest-TestRoutersBasic-04840030-48652130 to be up.. 2025-11-24 02:00:54,233 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-24 02:00:59,311 - DEBUG - VM is in ACTIVE state now 2025-11-24 02:00:59,312 - INFO - VM name : ctest-TestRoutersBasic-04840030-48652130 2025-11-24 02:00:59,391 - DEBUG - VM ctest-TestRoutersBasic-04840030-48652130 ID is 7a8b7329-e90f-40d7-bc3c-a553e63375f8 2025-11-24 02:00:59,411 - DEBUG - VM ctest-TestRoutersBasic-04840030-48652130 launched on Node cn-jenkins-deploy-platform-ansible-os-4802-1 2025-11-24 02:00:59,482 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/7a8b7329-e90f-40d7-bc3c-a553e63375f8 2025-11-24 02:00:59,815 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/7a8b7329-e90f-40d7-bc3c-a553e63375f8 2025-11-24 02:00:59,848 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/d5f75e96-b6b2-47f0-895f-cb5e36899896 2025-11-24 02:01:03,103 - 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-11-24 02:01:03,103 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-04840030-48652130 failed! 2025-11-24 02:01:03,161 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-04840030:ctest-vn-59831374 is 20.99.1.1 and allocation pool is NOT set 2025-11-24 02:01:05,221 - 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.47 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.760 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.760/2.113/3.466/1.353 ms') 2025-11-24 02:01:05,221 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-04840030-48652130 passed 2025-11-24 02:01:05,371 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-24 02:01:05,372 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-04840030-48652130, IP 20.99.1.3, Port 22 2025-11-24 02:01:05,437 - 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-11-24 02:01:05,517 - DEBUG - VM ctest-TestRoutersBasic-04840030-48652130 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-24 02:01:10,518 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-24 02:01:10,518 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-04840030-48652130, IP 20.99.1.3, Port 22 2025-11-24 02:01:10,675 - DEBUG - VM ctest-TestRoutersBasic-04840030-48652130 is ready for SSH connections 2025-11-24 02:01:10,675 - INFO - Waiting for VM ctest-TestRoutersBasic-04840030-60878099 to be up.. 2025-11-24 02:01:10,757 - DEBUG - VM is in ACTIVE state now 2025-11-24 02:01:10,757 - INFO - VM name : ctest-TestRoutersBasic-04840030-60878099 2025-11-24 02:01:10,844 - DEBUG - VM ctest-TestRoutersBasic-04840030-60878099 ID is 9cc8fa62-2ef6-4d20-a815-23529ed0b409 2025-11-24 02:01:10,844 - DEBUG - VM ctest-TestRoutersBasic-04840030-60878099 launched on Node cn-jenkins-deploy-platform-ansible-os-4802-1 2025-11-24 02:01:10,926 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/9cc8fa62-2ef6-4d20-a815-23529ed0b409 2025-11-24 02:01:10,934 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/8ced170c-ed47-42ff-a854-5eea62e9fa21 2025-11-24 02:01:12,167 - 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.06 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.404 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.404/1.732/3.060/1.328 ms') 2025-11-24 02:01:12,167 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-04840030-60878099 passed 2025-11-24 02:01:12,320 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-24 02:01:12,320 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-04840030-60878099, IP 56.242.148.131, Port 22 2025-11-24 02:01:12,475 - DEBUG - VM ctest-TestRoutersBasic-04840030-60878099 is ready for SSH connections 2025-11-24 02:01:12,475 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-24 02:01:12,475 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 56.242.148.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-11-24 02:01:12,475 - DEBUG - ping -s 56 -c 3 -W 1 56.242.148.131 2025-11-24 02:01:16,202 - DEBUG - PING 56.242.148.131 (56.242.148.131): 56 data bytes 64 bytes from 56.242.148.131: seq=0 ttl=62 time=5.264 ms 64 bytes from 56.242.148.131: seq=1 ttl=62 time=1.315 ms 64 bytes from 56.242.148.131: seq=2 ttl=62 time=0.918 ms --- 56.242.148.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.918/2.499/5.264 ms 2025-11-24 02:01:16,202 - INFO - Ping to IP 56.242.148.131 from VM ctest-TestRoutersBasic-04840030-48652130 passed 2025-11-24 02:01:16,202 - INFO - Deleting interface with subnet_id 02463cef-7da7-4743-b7b5-c887fb7c245b, port_id None from router e3f3fcba-8ecd-4d06-8e55-6d17b7e89d0a 2025-11-24 02:01:16,382 - INFO - Deleting VM ctest-TestRoutersBasic-04840030-60878099 2025-11-24 02:01:16,453 - INFO - Deleting VM ctest-TestRoutersBasic-04840030-48652130 2025-11-24 02:01:16,537 - INFO - Deleting VN ctest-ext_vn-27371600 2025-11-24 02:01:16,605 - DEBUG - VN dba68130-a7b4-4d17-9edc-4d771824cc35 still in use: Unable to complete operation on network dba68130-a7b4-4d17-9edc-4d771824cc35. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-83d8e248-9dc4-4e2c-8f7e-9bc6f1accb6b'] 2025-11-24 02:01:16,605 - WARNING - Deleting VN ctest-ext_vn-27371600 failed..Will retry 2025-11-24 02:01:18,710 - DEBUG - Response for deleting network () 2025-11-24 02:01:18,710 - INFO - Deleting VN ctest-vn-59831374 2025-11-24 02:01:18,818 - DEBUG - Response for deleting network () 2025-11-24 02:01:19,082 - DEBUG - No XMPP flaps were noticed during the test
2025-11-24 02:01:19,082 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31]
2025-11-24 02:01:19,082 - INFO - -------------------------------------------------------------------------------- 2025-11-24 02:01:19,782 - INFO - Deleted project: ctest-TestRoutersBasic-04840030, ID : a1d41009-2363-4618-a5a9-7f1fc3b0ce7d