2025-06-25 11:20:13,793 - INFO - Domain Default found not creating 2025-06-25 11:20:13,992 - INFO - Project ctest-TestRoutersBasic-68660045 not found, creating it 2025-06-25 11:20:14,498 - INFO - Created Project:ctest-TestRoutersBasic-68660045, ID : 52d6193b-6539-435f-8249-fd0ff6da33f0 2025-06-25 11:20:16,298 - INFO - ================================================================================ 2025-06-25 11:20:16,298 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-06-25 11:20:16,298 - 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-06-25 11:20:16,573 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with 2025-06-25 11:20:16,573 - INFO - Initial checks done. Running the testcase now 2025-06-25 11:20:16,573 - INFO - 2025-06-25 11:20:17,434 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-68660045 2025-06-25 11:20:17,538 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-68660045 2025-06-25 11:20:17,898 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-68660045', 'default']} 2025-06-25 11:20:18,233 - DEBUG - Response for create_network : {'network': {'id': '6d2a0f75-fa8f-4cab-ad4c-7fde4d9f5fa9', 'name': 'ctest-vn-02339884', 'tenant_id': '52d6193b6539435f8249fd0ff6da33f0', 'project_id': '52d6193b6539435f8249fd0ff6da33f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-68660045', 'ctest-vn-02339884'], 'port_security_enabled': True, 'description': ''}} 2025-06-25 11:20:18,424 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cd5de5a1-43da-434d-b6f0-3b4d4088f6f1', 'name': '', 'tenant_id': '52d6193b6539435f8249fd0ff6da33f0', 'network_id': '6d2a0f75-fa8f-4cab-ad4c-7fde4d9f5fa9', 'ip_version': 4, 'cidr': '100.142.177.128/26', 'allocation_pools': [{'start': '100.142.177.130', 'end': '100.142.177.190'}], 'gateway_ip': '100.142.177.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '100.142.177.130', 'tags': [], 'project_id': '52d6193b6539435f8249fd0ff6da33f0'}} 2025-06-25 11:20:18,449 - INFO - Created VN ctest-vn-02339884 2025-06-25 11:20:18,506 - DEBUG - VN ctest-vn-02339884 UUID is 6d2a0f75-fa8f-4cab-ad4c-7fde4d9f5fa9 2025-06-25 11:20:18,890 - DEBUG - Response for create_network : {'network': {'id': '21be0c3f-f979-45d6-b1a5-c4b3a9cd897b', 'name': 'ctest-ext_vn-27709830', 'tenant_id': '52d6193b6539435f8249fd0ff6da33f0', 'project_id': '52d6193b6539435f8249fd0ff6da33f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-68660045', 'ctest-ext_vn-27709830'], 'port_security_enabled': True, 'description': ''}} 2025-06-25 11:20:19,125 - DEBUG - Response for create_subnet : {'subnet': {'id': '8af0b665-0606-4e92-af9a-868a8a56bbd6', 'name': '', 'tenant_id': '52d6193b6539435f8249fd0ff6da33f0', 'network_id': '21be0c3f-f979-45d6-b1a5-c4b3a9cd897b', 'ip_version': 4, 'cidr': '134.190.243.0/26', 'allocation_pools': [{'start': '134.190.243.2', 'end': '134.190.243.62'}], 'gateway_ip': '134.190.243.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.190.243.2', 'tags': [], 'project_id': '52d6193b6539435f8249fd0ff6da33f0'}} 2025-06-25 11:20:19,147 - INFO - Created VN ctest-ext_vn-27709830 2025-06-25 11:20:19,206 - DEBUG - VN ctest-ext_vn-27709830 UUID is 21be0c3f-f979-45d6-b1a5-c4b3a9cd897b 2025-06-25 11:20:19,417 - DEBUG - Services list from nova: [, , ] 2025-06-25 11:20:20,683 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3547-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3547-1) 2025-06-25 11:20:22,056 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3547-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3547-1) 2025-06-25 11:20:22,173 - INFO - Setting gateway for router ac337647-4d7d-41ed-90e8-859b87c7416f to network 21be0c3f-f979-45d6-b1a5-c4b3a9cd897b 2025-06-25 11:20:22,251 - INFO - Adding interface with subnet_id cd5de5a1-43da-434d-b6f0-3b4d4088f6f1, port_id None to router ac337647-4d7d-41ed-90e8-859b87c7416f 2025-06-25 11:20:22,882 - INFO - Waiting for VM ctest-TestRoutersBasic-68660045-84139902 to be up.. 2025-06-25 11:20:23,084 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-25 11:20:28,337 - DEBUG - VM is in ACTIVE state now 2025-06-25 11:20:28,337 - INFO - VM name : ctest-TestRoutersBasic-68660045-84139902 2025-06-25 11:20:28,503 - DEBUG - VM ctest-TestRoutersBasic-68660045-84139902 ID is 10439834-dede-42d5-b898-b9bf0851e86f 2025-06-25 11:20:28,536 - DEBUG - VM ctest-TestRoutersBasic-68660045-84139902 launched on Node cn-jenkins-deploy-platform-ansible-os-3547-1 2025-06-25 11:20:28,648 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine/10439834-dede-42d5-b898-b9bf0851e86f 2025-06-25 11:20:29,007 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine/10439834-dede-42d5-b898-b9bf0851e86f 2025-06-25 11:20:29,058 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine-interface/24865021-7f18-42cb-82b5-5834bde389af 2025-06-25 11:20:32,347 - 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 1012ms') 2025-06-25 11:20:32,347 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-68660045-84139902 failed! 2025-06-25 11:20:32,406 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-68660045:ctest-vn-02339884 is 100.142.177.129 and allocation pool is NOT set 2025-06-25 11:20:34,475 - 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=9.42 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.870 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.870/5.142/9.415/4.272 ms') 2025-06-25 11:20:34,476 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-68660045-84139902 passed 2025-06-25 11:20:34,598 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-25 11:20:34,598 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-68660045-84139902, IP 100.142.177.131, Port 22 2025-06-25 11:20:34,784 - DEBUG - VM ctest-TestRoutersBasic-68660045-84139902 is ready for SSH connections 2025-06-25 11:20:34,784 - INFO - Waiting for VM ctest-TestRoutersBasic-68660045-17555911 to be up.. 2025-06-25 11:20:34,939 - DEBUG - VM is in ACTIVE state now 2025-06-25 11:20:34,939 - INFO - VM name : ctest-TestRoutersBasic-68660045-17555911 2025-06-25 11:20:35,080 - DEBUG - VM ctest-TestRoutersBasic-68660045-17555911 ID is 64f429be-cd87-4cf4-887c-84b2fc76c468 2025-06-25 11:20:35,080 - DEBUG - VM ctest-TestRoutersBasic-68660045-17555911 launched on Node cn-jenkins-deploy-platform-ansible-os-3547-1 2025-06-25 11:20:35,201 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine/64f429be-cd87-4cf4-887c-84b2fc76c468 2025-06-25 11:20:35,215 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-machine-interface/6ca321d2-43ba-4bd9-b56d-c6b95cc0faa1 2025-06-25 11:20:36,517 - 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=5.52 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=3.09 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 = 3.088/4.304/5.521/1.216 ms') 2025-06-25 11:20:36,518 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-68660045-17555911 passed 2025-06-25 11:20:36,674 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-25 11:20:36,674 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-68660045-17555911, IP 134.190.243.3, Port 22 2025-06-25 11:20:36,745 - 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-06-25 11:20:36,866 - DEBUG - VM ctest-TestRoutersBasic-68660045-17555911 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-25 11:20:41,866 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-25 11:20:41,867 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-68660045-17555911, IP 134.190.243.3, Port 22 2025-06-25 11:20:42,030 - DEBUG - VM ctest-TestRoutersBasic-68660045-17555911 is ready for SSH connections 2025-06-25 11:20:42,030 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-25 11:20:42,031 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 134.190.243.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.141, gateway password: c0ntrail123 2025-06-25 11:20:42,031 - DEBUG - ping -s 56 -c 3 -W 1 134.190.243.3 2025-06-25 11:20:45,817 - DEBUG - PING 134.190.243.3 (134.190.243.3): 56 data bytes 64 bytes from 134.190.243.3: seq=0 ttl=62 time=7.269 ms 64 bytes from 134.190.243.3: seq=1 ttl=62 time=1.727 ms 64 bytes from 134.190.243.3: seq=2 ttl=62 time=1.827 ms --- 134.190.243.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.727/3.607/7.269 ms 2025-06-25 11:20:45,817 - INFO - Ping to IP 134.190.243.3 from VM ctest-TestRoutersBasic-68660045-84139902 passed 2025-06-25 11:20:45,817 - INFO - Deleting interface with subnet_id cd5de5a1-43da-434d-b6f0-3b4d4088f6f1, port_id None from router ac337647-4d7d-41ed-90e8-859b87c7416f 2025-06-25 11:20:46,101 - INFO - Deleting VM ctest-TestRoutersBasic-68660045-17555911 2025-06-25 11:20:46,192 - INFO - Deleting VM ctest-TestRoutersBasic-68660045-84139902 2025-06-25 11:20:46,297 - INFO - Deleting VN ctest-ext_vn-27709830 2025-06-25 11:20:46,372 - DEBUG - VN 21be0c3f-f979-45d6-b1a5-c4b3a9cd897b still in use: Unable to complete operation on network 21be0c3f-f979-45d6-b1a5-c4b3a9cd897b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7cae0b3d-73bc-43b1-a761-ff35ed57a6bf'] 2025-06-25 11:20:46,372 - WARNING - Deleting VN ctest-ext_vn-27709830 failed..Will retry 2025-06-25 11:20:48,496 - DEBUG - Response for deleting network () 2025-06-25 11:20:48,496 - INFO - Deleting VN ctest-vn-02339884 2025-06-25 11:20:48,643 - DEBUG - Response for deleting network () 2025-06-25 11:20:48,906 - DEBUG - No XMPP flaps were noticed during the test
2025-06-25 11:20:48,906 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32]
2025-06-25 11:20:48,906 - INFO - -------------------------------------------------------------------------------- 2025-06-25 11:20:49,703 - INFO - Deleted project: ctest-TestRoutersBasic-68660045, ID : 52d6193b-6539-435f-8249-fd0ff6da33f0