2025-08-08 07:14:43,229 - INFO - Domain Default found not creating 2025-08-08 07:14:43,473 - INFO - Project ctest-TestRoutersBasic-31497062 not found, creating it 2025-08-08 07:14:44,061 - INFO - Created Project:ctest-TestRoutersBasic-31497062, ID : 1459601e-2201-44f8-b4ee-d7bda08298d0 2025-08-08 07:14:45,864 - INFO - ================================================================================ 2025-08-08 07:14:45,864 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-08-08 07:14:45,868 - 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-08 07:14:47,167 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.254': '0', '10.20.0.25': '0'}, '10.0.0.27': {'10.20.0.254': '0', '10.20.0.25': '0'}} with 2025-08-08 07:14:47,167 - INFO - Initial checks done. Running the testcase now 2025-08-08 07:14:47,167 - INFO - 2025-08-08 07:14:48,019 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-31497062 2025-08-08 07:14:48,084 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-31497062 2025-08-08 07:14:48,404 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-31497062', 'default']} 2025-08-08 07:14:48,851 - DEBUG - Response for create_network : {'network': {'id': '586dcaad-13e5-45c8-bfef-ba087c07be5c', 'name': 'ctest-vn-30108225', 'tenant_id': '1459601e220144f8b4eed7bda08298d0', 'project_id': '1459601e220144f8b4eed7bda08298d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-31497062', 'ctest-vn-30108225'], 'port_security_enabled': True, 'description': ''}} 2025-08-08 07:14:49,188 - DEBUG - Response for create_subnet : {'subnet': {'id': '6ea29540-88c9-4894-8005-9dea11c295f0', 'name': '', 'tenant_id': '1459601e220144f8b4eed7bda08298d0', 'network_id': '586dcaad-13e5-45c8-bfef-ba087c07be5c', 'ip_version': 4, 'cidr': '88.209.95.128/26', 'allocation_pools': [{'start': '88.209.95.130', 'end': '88.209.95.190'}], 'gateway_ip': '88.209.95.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.209.95.130', 'tags': [], 'project_id': '1459601e220144f8b4eed7bda08298d0'}} 2025-08-08 07:14:49,214 - INFO - Created VN ctest-vn-30108225 2025-08-08 07:14:49,226 - DEBUG - VN ctest-vn-30108225 UUID is 586dcaad-13e5-45c8-bfef-ba087c07be5c 2025-08-08 07:14:49,704 - DEBUG - Response for create_network : {'network': {'id': '0f194ca0-5469-4fe8-9287-a57323fd8404', 'name': 'ctest-ext_vn-42200457', 'tenant_id': '1459601e220144f8b4eed7bda08298d0', 'project_id': '1459601e220144f8b4eed7bda08298d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-31497062', 'ctest-ext_vn-42200457'], 'port_security_enabled': True, 'description': ''}} 2025-08-08 07:14:49,960 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b73a20ca-c5cb-4178-86ce-2a473db9e56e', 'name': '', 'tenant_id': '1459601e220144f8b4eed7bda08298d0', 'network_id': '0f194ca0-5469-4fe8-9287-a57323fd8404', 'ip_version': 4, 'cidr': '172.211.234.192/26', 'allocation_pools': [{'start': '172.211.234.194', 'end': '172.211.234.254'}], 'gateway_ip': '172.211.234.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.211.234.194', 'tags': [], 'project_id': '1459601e220144f8b4eed7bda08298d0'}} 2025-08-08 07:14:49,998 - INFO - Created VN ctest-ext_vn-42200457 2025-08-08 07:14:50,013 - DEBUG - VN ctest-ext_vn-42200457 UUID is 0f194ca0-5469-4fe8-9287-a57323fd8404 2025-08-08 07:14:50,196 - DEBUG - Services list from nova: [, , , ] 2025-08-08 07:14:51,382 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3781-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3781-2) 2025-08-08 07:14:52,983 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3781-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3781-1) 2025-08-08 07:14:53,208 - INFO - Setting gateway for router be117a71-52d9-427f-aa99-5ff201c86cf1 to network 0f194ca0-5469-4fe8-9287-a57323fd8404 2025-08-08 07:14:53,333 - INFO - Adding interface with subnet_id 6ea29540-88c9-4894-8005-9dea11c295f0, port_id None to router be117a71-52d9-427f-aa99-5ff201c86cf1 2025-08-08 07:14:53,896 - INFO - Waiting for VM ctest-TestRoutersBasic-31497062-22460840 to be up.. 2025-08-08 07:14:54,106 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-08 07:14:59,217 - DEBUG - VM is in ACTIVE state now 2025-08-08 07:14:59,217 - INFO - VM name : ctest-TestRoutersBasic-31497062-22460840 2025-08-08 07:14:59,318 - DEBUG - VM ctest-TestRoutersBasic-31497062-22460840 ID is b429d051-9ec1-46f2-8326-fb4fef53d52c 2025-08-08 07:14:59,349 - DEBUG - VM ctest-TestRoutersBasic-31497062-22460840 launched on Node an-jenkins-deploy-platform-ansible-os-3781-2 2025-08-08 07:14:59,446 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/b429d051-9ec1-46f2-8326-fb4fef53d52c 2025-08-08 07:14:59,754 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/b429d051-9ec1-46f2-8326-fb4fef53d52c 2025-08-08 07:14:59,802 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/f17b0fed-2682-48ea-8a2c-9223fdae5639 2025-08-08 07:15:03,056 - 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-08-08 07:15:03,056 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-31497062-22460840 failed! 2025-08-08 07:15:03,071 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-31497062:ctest-vn-30108225 is 88.209.95.129 and allocation pool is NOT set 2025-08-08 07:15:05,143 - 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.80 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.03 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.031/3.413/5.795/2.382 ms') 2025-08-08 07:15:05,143 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-31497062-22460840 passed 2025-08-08 07:15:05,263 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-08 07:15:05,263 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-31497062-22460840, IP 88.209.95.131, Port 22 2025-08-08 07:15:05,330 - 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-08 07:15:05,428 - DEBUG - VM ctest-TestRoutersBasic-31497062-22460840 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-08 07:15:10,428 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-08 07:15:10,428 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-31497062-22460840, IP 88.209.95.131, Port 22 2025-08-08 07:15:10,602 - DEBUG - VM ctest-TestRoutersBasic-31497062-22460840 is ready for SSH connections 2025-08-08 07:15:10,602 - INFO - Waiting for VM ctest-TestRoutersBasic-31497062-14231605 to be up.. 2025-08-08 07:15:10,693 - DEBUG - VM is in ACTIVE state now 2025-08-08 07:15:10,693 - INFO - VM name : ctest-TestRoutersBasic-31497062-14231605 2025-08-08 07:15:10,790 - DEBUG - VM ctest-TestRoutersBasic-31497062-14231605 ID is ea5d2f41-f63c-4240-8dbb-0435abe9f772 2025-08-08 07:15:10,791 - DEBUG - VM ctest-TestRoutersBasic-31497062-14231605 launched on Node an-jenkins-deploy-platform-ansible-os-3781-1 2025-08-08 07:15:10,918 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/ea5d2f41-f63c-4240-8dbb-0435abe9f772 2025-08-08 07:15:10,935 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/3e4b57be-9fe8-4c59-aa88-a9a47717ade3 2025-08-08 07:15:12,170 - 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.86 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.451 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.451/2.153/3.855/1.702 ms') 2025-08-08 07:15:12,170 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-31497062-14231605 passed 2025-08-08 07:15:12,291 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-08 07:15:12,292 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-31497062-14231605, IP 172.211.234.195, Port 22 2025-08-08 07:15:12,451 - DEBUG - VM ctest-TestRoutersBasic-31497062-14231605 is ready for SSH connections 2025-08-08 07:15:12,451 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-08 07:15:12,451 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 172.211.234.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-08-08 07:15:12,452 - DEBUG - ping -s 56 -c 3 -W 1 172.211.234.195 2025-08-08 07:15:16,185 - DEBUG - PING 172.211.234.195 (172.211.234.195): 56 data bytes 64 bytes from 172.211.234.195: seq=0 ttl=62 time=10.642 ms 64 bytes from 172.211.234.195: seq=1 ttl=62 time=1.386 ms 64 bytes from 172.211.234.195: seq=2 ttl=62 time=2.697 ms --- 172.211.234.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.386/4.908/10.642 ms 2025-08-08 07:15:16,186 - INFO - Ping to IP 172.211.234.195 from VM ctest-TestRoutersBasic-31497062-22460840 passed 2025-08-08 07:15:16,186 - INFO - Deleting interface with subnet_id 6ea29540-88c9-4894-8005-9dea11c295f0, port_id None from router be117a71-52d9-427f-aa99-5ff201c86cf1 2025-08-08 07:15:16,655 - INFO - Deleting VM ctest-TestRoutersBasic-31497062-14231605 2025-08-08 07:15:16,899 - INFO - Deleting VM ctest-TestRoutersBasic-31497062-22460840 2025-08-08 07:15:17,049 - INFO - Deleting VN ctest-ext_vn-42200457 2025-08-08 07:15:17,195 - DEBUG - VN 0f194ca0-5469-4fe8-9287-a57323fd8404 still in use: Unable to complete operation on network 0f194ca0-5469-4fe8-9287-a57323fd8404. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ec5775f1-dcd4-47fa-9e14-bf10f40af43c'] 2025-08-08 07:15:17,195 - WARNING - Deleting VN ctest-ext_vn-42200457 failed..Will retry 2025-08-08 07:15:19,455 - DEBUG - Response for deleting network () 2025-08-08 07:15:19,455 - INFO - Deleting VN ctest-vn-30108225 2025-08-08 07:15:19,675 - DEBUG - Response for deleting network () 2025-08-08 07:15:20,990 - DEBUG - No XMPP flaps were noticed during the test 2025-08-08 07:15:20,990 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:35] 2025-08-08 07:15:20,990 - INFO - -------------------------------------------------------------------------------- 2025-08-08 07:15:21,798 - INFO - Deleted project: ctest-TestRoutersBasic-31497062, ID : 1459601e-2201-44f8-b4ee-d7bda08298d0