2025-08-28 17:22:24,087 - INFO - Domain Default found not creating 2025-08-28 17:22:24,252 - INFO - Project ctest-TestRoutersBasic-07761652 not found, creating it 2025-08-28 17:22:24,742 - INFO - Created Project:ctest-TestRoutersBasic-07761652, ID : e5e26f3a-7acb-46af-8232-eada10503526 2025-08-28 17:22:26,376 - INFO - ================================================================================ 2025-08-28 17:22:26,376 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-08-28 17:22:26,376 - 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-08-28 17:22:26,633 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with 2025-08-28 17:22:26,633 - INFO - Initial checks done. Running the testcase now 2025-08-28 17:22:26,633 - INFO - 2025-08-28 17:22:27,437 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-07761652 2025-08-28 17:22:27,535 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-07761652 2025-08-28 17:22:27,867 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-07761652', 'default']} 2025-08-28 17:22:28,202 - DEBUG - Response for create_network : {'network': {'id': 'e6d5a4a4-5698-43c6-b545-b674272c24b2', 'name': 'ctest-vn-08185952', 'tenant_id': 'e5e26f3a7acb46af8232eada10503526', 'project_id': 'e5e26f3a7acb46af8232eada10503526', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-07761652', 'ctest-vn-08185952'], 'port_security_enabled': True, 'description': ''}} 2025-08-28 17:22:28,430 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa674ff5-72b6-4a98-bd48-cf84db5dac8e', 'name': '', 'tenant_id': 'e5e26f3a7acb46af8232eada10503526', 'network_id': 'e6d5a4a4-5698-43c6-b545-b674272c24b2', 'ip_version': 4, 'cidr': '117.44.99.192/26', 'allocation_pools': [{'start': '117.44.99.194', 'end': '117.44.99.254'}], 'gateway_ip': '117.44.99.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.44.99.194', 'tags': [], 'project_id': 'e5e26f3a7acb46af8232eada10503526'}} 2025-08-28 17:22:28,450 - INFO - Created VN ctest-vn-08185952 2025-08-28 17:22:28,503 - DEBUG - VN ctest-vn-08185952 UUID is e6d5a4a4-5698-43c6-b545-b674272c24b2 2025-08-28 17:22:28,826 - DEBUG - Response for create_network : {'network': {'id': '2a8a9c58-b9f8-4fb6-8c41-df860c10a325', 'name': 'ctest-ext_vn-83135787', 'tenant_id': 'e5e26f3a7acb46af8232eada10503526', 'project_id': 'e5e26f3a7acb46af8232eada10503526', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-07761652', 'ctest-ext_vn-83135787'], 'port_security_enabled': True, 'description': ''}} 2025-08-28 17:22:29,004 - DEBUG - Response for create_subnet : {'subnet': {'id': '46867118-bfa4-4edc-9c15-93ab31562f2e', 'name': '', 'tenant_id': 'e5e26f3a7acb46af8232eada10503526', 'network_id': '2a8a9c58-b9f8-4fb6-8c41-df860c10a325', 'ip_version': 4, 'cidr': '81.203.25.128/26', 'allocation_pools': [{'start': '81.203.25.130', 'end': '81.203.25.190'}], 'gateway_ip': '81.203.25.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.203.25.130', 'tags': [], 'project_id': 'e5e26f3a7acb46af8232eada10503526'}} 2025-08-28 17:22:29,022 - INFO - Created VN ctest-ext_vn-83135787 2025-08-28 17:22:29,075 - DEBUG - VN ctest-ext_vn-83135787 UUID is 2a8a9c58-b9f8-4fb6-8c41-df860c10a325 2025-08-28 17:22:29,266 - DEBUG - Services list from nova: [, , ] 2025-08-28 17:22:30,424 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3963-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3963-1) 2025-08-28 17:22:31,700 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3963-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3963-1) 2025-08-28 17:22:31,795 - INFO - Setting gateway for router 2f465c26-3937-41a2-aaad-baef11f7090f to network 2a8a9c58-b9f8-4fb6-8c41-df860c10a325 2025-08-28 17:22:31,882 - INFO - Adding interface with subnet_id aa674ff5-72b6-4a98-bd48-cf84db5dac8e, port_id None to router 2f465c26-3937-41a2-aaad-baef11f7090f 2025-08-28 17:22:32,306 - INFO - Waiting for VM ctest-TestRoutersBasic-07761652-63949610 to be up.. 2025-08-28 17:22:32,457 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-28 17:22:37,551 - DEBUG - VM is in ACTIVE state now 2025-08-28 17:22:37,551 - INFO - VM name : ctest-TestRoutersBasic-07761652-63949610 2025-08-28 17:22:37,626 - DEBUG - VM ctest-TestRoutersBasic-07761652-63949610 ID is fcddbd59-a4f7-4d36-9352-48e3b4f289c1 2025-08-28 17:22:37,647 - DEBUG - VM ctest-TestRoutersBasic-07761652-63949610 launched on Node cn-jenkins-deploy-platform-ansible-os-3963-1 2025-08-28 17:22:37,741 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/fcddbd59-a4f7-4d36-9352-48e3b4f289c1 2025-08-28 17:22:38,090 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/fcddbd59-a4f7-4d36-9352-48e3b4f289c1 2025-08-28 17:22:38,123 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/75c0ebc4-0613-4ac5-982d-c086ac11b9f8 2025-08-28 17:22:41,364 - 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 1002ms') 2025-08-28 17:22:41,364 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-07761652-63949610 failed! 2025-08-28 17:22:41,419 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-07761652:ctest-vn-08185952 is 117.44.99.193 and allocation pool is NOT set 2025-08-28 17:22:43,483 - 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.01 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.35 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 = 1.349/5.179/9.010/3.830 ms') 2025-08-28 17:22:43,483 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-07761652-63949610 passed 2025-08-28 17:22:43,647 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-28 17:22:43,647 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-07761652-63949610, IP 117.44.99.195, Port 22 2025-08-28 17:22:43,713 - 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-08-28 17:22:43,800 - DEBUG - VM ctest-TestRoutersBasic-07761652-63949610 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-28 17:22:48,800 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-28 17:22:48,801 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-07761652-63949610, IP 117.44.99.195, Port 22 2025-08-28 17:22:48,958 - DEBUG - VM ctest-TestRoutersBasic-07761652-63949610 is ready for SSH connections 2025-08-28 17:22:48,958 - INFO - Waiting for VM ctest-TestRoutersBasic-07761652-80111870 to be up.. 2025-08-28 17:22:49,040 - DEBUG - VM is in ACTIVE state now 2025-08-28 17:22:49,040 - INFO - VM name : ctest-TestRoutersBasic-07761652-80111870 2025-08-28 17:22:49,118 - DEBUG - VM ctest-TestRoutersBasic-07761652-80111870 ID is 21e2ffbd-78c6-4360-9635-1b62c3c71049 2025-08-28 17:22:49,118 - DEBUG - VM ctest-TestRoutersBasic-07761652-80111870 launched on Node cn-jenkins-deploy-platform-ansible-os-3963-1 2025-08-28 17:22:49,194 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/21e2ffbd-78c6-4360-9635-1b62c3c71049 2025-08-28 17:22:49,203 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/0c6c9b37-1487-4b5f-bf57-3196758e83a9 2025-08-28 17:22:50,448 - 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.14 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.523 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.523/1.831/3.140/1.308 ms') 2025-08-28 17:22:50,448 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-07761652-80111870 passed 2025-08-28 17:22:50,599 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-28 17:22:50,599 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-07761652-80111870, IP 81.203.25.131, Port 22 2025-08-28 17:22:50,759 - DEBUG - VM ctest-TestRoutersBasic-07761652-80111870 is ready for SSH connections 2025-08-28 17:22:50,759 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-28 17:22:50,759 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 81.203.25.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-08-28 17:22:50,759 - DEBUG - ping -s 56 -c 3 -W 1 81.203.25.131 2025-08-28 17:22:54,666 - DEBUG - PING 81.203.25.131 (81.203.25.131): 56 data bytes 64 bytes from 81.203.25.131: seq=0 ttl=62 time=10.046 ms 64 bytes from 81.203.25.131: seq=1 ttl=62 time=1.188 ms 64 bytes from 81.203.25.131: seq=2 ttl=62 time=1.147 ms --- 81.203.25.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.147/4.127/10.046 ms 2025-08-28 17:22:54,666 - INFO - Ping to IP 81.203.25.131 from VM ctest-TestRoutersBasic-07761652-63949610 passed 2025-08-28 17:22:54,666 - INFO - Deleting interface with subnet_id aa674ff5-72b6-4a98-bd48-cf84db5dac8e, port_id None from router 2f465c26-3937-41a2-aaad-baef11f7090f 2025-08-28 17:22:54,894 - INFO - Deleting VM ctest-TestRoutersBasic-07761652-80111870 2025-08-28 17:22:55,014 - INFO - Deleting VM ctest-TestRoutersBasic-07761652-63949610 2025-08-28 17:22:55,133 - INFO - Deleting VN ctest-ext_vn-83135787 2025-08-28 17:22:55,245 - DEBUG - VN 2a8a9c58-b9f8-4fb6-8c41-df860c10a325 still in use: Unable to complete operation on network 2a8a9c58-b9f8-4fb6-8c41-df860c10a325. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c153835d-9618-4dc6-b830-876e0c80639f'] 2025-08-28 17:22:55,245 - WARNING - Deleting VN ctest-ext_vn-83135787 failed..Will retry 2025-08-28 17:22:57,357 - DEBUG - Response for deleting network () 2025-08-28 17:22:57,357 - INFO - Deleting VN ctest-vn-08185952 2025-08-28 17:22:57,485 - DEBUG - Response for deleting network () 2025-08-28 17:22:57,746 - DEBUG - No XMPP flaps were noticed during the test 2025-08-28 17:22:57,746 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2025-08-28 17:22:57,746 - INFO - -------------------------------------------------------------------------------- 2025-08-28 17:22:58,552 - INFO - Deleted project: ctest-TestRoutersBasic-07761652, ID : e5e26f3a-7acb-46af-8232-eada10503526