2025-10-27 06:30:59,025 - INFO - Domain Default found not creating 2025-10-27 06:30:59,280 - INFO - Project ctest-TestRoutersBasic-47316011 not found, creating it 2025-10-27 06:30:59,854 - INFO - Created Project:ctest-TestRoutersBasic-47316011, ID : 256d6035-e8a9-44f8-9e30-7fc9a60cca98 2025-10-27 06:31:01,780 - INFO - ================================================================================ 2025-10-27 06:31:01,780 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-10-27 06:31:01,781 - 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-27 06:31:02,069 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-10-27 06:31:02,069 - INFO - Initial checks done. Running the testcase now 2025-10-27 06:31:02,069 - INFO - 2025-10-27 06:31:02,943 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-47316011 2025-10-27 06:31:03,045 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-47316011 2025-10-27 06:31:03,409 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-47316011', 'default']} 2025-10-27 06:31:03,843 - DEBUG - Response for create_network : {'network': {'id': 'b8adb551-d60d-4e7c-9314-c796521f4e55', 'name': 'ctest-vn-51945998', 'tenant_id': '256d6035e8a944f89e307fc9a60cca98', 'project_id': '256d6035e8a944f89e307fc9a60cca98', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-47316011', 'ctest-vn-51945998'], 'port_security_enabled': True, 'description': ''}} 2025-10-27 06:31:04,129 - DEBUG - Response for create_subnet : {'subnet': {'id': '4a8414d4-7ca5-403d-bf3b-a1da87ebf2db', 'name': '', 'tenant_id': '256d6035e8a944f89e307fc9a60cca98', 'network_id': 'b8adb551-d60d-4e7c-9314-c796521f4e55', 'ip_version': 4, 'cidr': '97.106.143.192/26', 'allocation_pools': [{'start': '97.106.143.194', 'end': '97.106.143.254'}], 'gateway_ip': '97.106.143.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.106.143.194', 'tags': [], 'project_id': '256d6035e8a944f89e307fc9a60cca98'}} 2025-10-27 06:31:04,159 - INFO - Created VN ctest-vn-51945998 2025-10-27 06:31:04,217 - DEBUG - VN ctest-vn-51945998 UUID is b8adb551-d60d-4e7c-9314-c796521f4e55 2025-10-27 06:31:04,682 - DEBUG - Response for create_network : {'network': {'id': '009686bb-2bc7-4d34-bc85-b359b90d7edf', 'name': 'ctest-ext_vn-46270402', 'tenant_id': '256d6035e8a944f89e307fc9a60cca98', 'project_id': '256d6035e8a944f89e307fc9a60cca98', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-47316011', 'ctest-ext_vn-46270402'], 'port_security_enabled': True, 'description': ''}} 2025-10-27 06:31:04,928 - DEBUG - Response for create_subnet : {'subnet': {'id': '90fdc805-4d2c-4f60-85b6-4af4bdf8814d', 'name': '', 'tenant_id': '256d6035e8a944f89e307fc9a60cca98', 'network_id': '009686bb-2bc7-4d34-bc85-b359b90d7edf', 'ip_version': 4, 'cidr': '12.200.221.64/26', 'allocation_pools': [{'start': '12.200.221.66', 'end': '12.200.221.126'}], 'gateway_ip': '12.200.221.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '12.200.221.66', 'tags': [], 'project_id': '256d6035e8a944f89e307fc9a60cca98'}} 2025-10-27 06:31:04,955 - INFO - Created VN ctest-ext_vn-46270402 2025-10-27 06:31:05,013 - DEBUG - VN ctest-ext_vn-46270402 UUID is 009686bb-2bc7-4d34-bc85-b359b90d7edf 2025-10-27 06:31:05,249 - DEBUG - Services list from nova: [, , ] 2025-10-27 06:31:06,479 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4494-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4494-1) 2025-10-27 06:31:07,821 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4494-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4494-1) 2025-10-27 06:31:07,912 - INFO - Setting gateway for router a5ad2331-5498-4dc9-ab83-0d56b7e098e9 to network 009686bb-2bc7-4d34-bc85-b359b90d7edf 2025-10-27 06:31:08,005 - INFO - Adding interface with subnet_id 4a8414d4-7ca5-403d-bf3b-a1da87ebf2db, port_id None to router a5ad2331-5498-4dc9-ab83-0d56b7e098e9 2025-10-27 06:31:08,469 - INFO - Waiting for VM ctest-TestRoutersBasic-47316011-63352416 to be up.. 2025-10-27 06:31:08,675 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-27 06:31:13,782 - DEBUG - VM is in ACTIVE state now 2025-10-27 06:31:13,785 - INFO - VM name : ctest-TestRoutersBasic-47316011-63352416 2025-10-27 06:31:13,910 - DEBUG - VM ctest-TestRoutersBasic-47316011-63352416 ID is 4516496d-89b6-42a9-a293-edc215ea7e1d 2025-10-27 06:31:13,941 - DEBUG - VM ctest-TestRoutersBasic-47316011-63352416 launched on Node cn-jenkins-deploy-platform-ansible-os-4494-1 2025-10-27 06:31:14,046 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/4516496d-89b6-42a9-a293-edc215ea7e1d 2025-10-27 06:31:14,354 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/4516496d-89b6-42a9-a293-edc215ea7e1d 2025-10-27 06:31:14,397 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/ee2444c9-ae02-42f2-8ace-58f4920d98f9 2025-10-27 06:31:17,689 - 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 1029ms') 2025-10-27 06:31:17,689 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-47316011-63352416 failed! 2025-10-27 06:31:17,749 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-47316011:ctest-vn-51945998 is 97.106.143.193 and allocation pool is NOT set 2025-10-27 06:31:19,813 - 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=5.45 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.91 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.908/3.680/5.452/1.772 ms') 2025-10-27 06:31:19,813 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-47316011-63352416 passed 2025-10-27 06:31:19,973 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-27 06:31:19,973 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-47316011-63352416, IP 97.106.143.195, Port 22 2025-10-27 06:31:20,156 - DEBUG - VM ctest-TestRoutersBasic-47316011-63352416 is ready for SSH connections 2025-10-27 06:31:20,156 - INFO - Waiting for VM ctest-TestRoutersBasic-47316011-36196963 to be up.. 2025-10-27 06:31:20,266 - DEBUG - VM is in ACTIVE state now 2025-10-27 06:31:20,266 - INFO - VM name : ctest-TestRoutersBasic-47316011-36196963 2025-10-27 06:31:20,371 - DEBUG - VM ctest-TestRoutersBasic-47316011-36196963 ID is dfafa10d-e303-462c-90a5-9b8897d4ac00 2025-10-27 06:31:20,371 - DEBUG - VM ctest-TestRoutersBasic-47316011-36196963 launched on Node cn-jenkins-deploy-platform-ansible-os-4494-1 2025-10-27 06:31:20,475 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/dfafa10d-e303-462c-90a5-9b8897d4ac00 2025-10-27 06:31:20,487 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/fef9d1be-5d52-4202-8e0e-402f542c4b59 2025-10-27 06:31:21,757 - 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=4.39 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.91 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 = 1.907/3.149/4.392/1.242 ms') 2025-10-27 06:31:21,757 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-47316011-36196963 passed 2025-10-27 06:31:21,913 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-27 06:31:21,913 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-47316011-36196963, IP 12.200.221.67, Port 22 2025-10-27 06:31:21,973 - 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-10-27 06:31:22,068 - DEBUG - VM ctest-TestRoutersBasic-47316011-36196963 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-27 06:31:27,069 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-27 06:31:27,069 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-47316011-36196963, IP 12.200.221.67, Port 22 2025-10-27 06:31:27,247 - DEBUG - VM ctest-TestRoutersBasic-47316011-36196963 is ready for SSH connections 2025-10-27 06:31:27,248 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-27 06:31:27,248 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 12.200.221.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-10-27 06:31:27,248 - DEBUG - ping -s 56 -c 3 -W 1 12.200.221.67 2025-10-27 06:31:31,014 - DEBUG - PING 12.200.221.67 (12.200.221.67): 56 data bytes 64 bytes from 12.200.221.67: seq=0 ttl=62 time=6.669 ms 64 bytes from 12.200.221.67: seq=1 ttl=62 time=1.118 ms 64 bytes from 12.200.221.67: seq=2 ttl=62 time=1.339 ms --- 12.200.221.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.118/3.042/6.669 ms 2025-10-27 06:31:31,015 - INFO - Ping to IP 12.200.221.67 from VM ctest-TestRoutersBasic-47316011-63352416 passed 2025-10-27 06:31:31,015 - INFO - Deleting interface with subnet_id 4a8414d4-7ca5-403d-bf3b-a1da87ebf2db, port_id None from router a5ad2331-5498-4dc9-ab83-0d56b7e098e9 2025-10-27 06:31:31,312 - INFO - Deleting VM ctest-TestRoutersBasic-47316011-36196963 2025-10-27 06:31:31,435 - INFO - Deleting VM ctest-TestRoutersBasic-47316011-63352416 2025-10-27 06:31:31,547 - INFO - Deleting VN ctest-ext_vn-46270402 2025-10-27 06:31:31,637 - DEBUG - VN 009686bb-2bc7-4d34-bc85-b359b90d7edf still in use: Unable to complete operation on network 009686bb-2bc7-4d34-bc85-b359b90d7edf. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7a2072b0-6426-40dc-a0c6-800753bc6e47'] 2025-10-27 06:31:31,638 - WARNING - Deleting VN ctest-ext_vn-46270402 failed..Will retry 2025-10-27 06:31:33,781 - DEBUG - Response for deleting network () 2025-10-27 06:31:33,781 - INFO - Deleting VN ctest-vn-51945998 2025-10-27 06:31:34,022 - DEBUG - Response for deleting network () 2025-10-27 06:31:34,299 - DEBUG - No XMPP flaps were noticed during the test 2025-10-27 06:31:34,300 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:33] 2025-10-27 06:31:34,300 - INFO - -------------------------------------------------------------------------------- 2025-10-27 06:31:35,043 - INFO - Deleted project: ctest-TestRoutersBasic-47316011, ID : 256d6035-e8a9-44f8-9e30-7fc9a60cca98