2025-04-28 15:56:24,885 - INFO - Domain Default found not creating 2025-04-28 15:56:25,017 - INFO - Project ctest-TestRoutersBasic-28232761 not found, creating it 2025-04-28 15:56:25,457 - INFO - Created Project:ctest-TestRoutersBasic-28232761, ID : 9ff3f898-0683-4b51-9a5b-9f5749696226 2025-04-28 15:56:26,843 - INFO - ================================================================================ 2025-04-28 15:56:26,844 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2025-04-28 15:56:26,844 - 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-04-28 15:56:27,099 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.193': '0'}} with 2025-04-28 15:56:27,099 - INFO - Initial checks done. Running the testcase now 2025-04-28 15:56:27,099 - INFO - 2025-04-28 15:56:27,788 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-28232761 2025-04-28 15:56:27,889 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-28232761 2025-04-28 15:56:28,216 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28232761', 'default']} 2025-04-28 15:56:28,524 - DEBUG - Response for create_network : {'network': {'id': 'a7d997d5-b096-4786-8772-cf0f762aa965', 'name': 'ctest-vn-51439343', 'tenant_id': '9ff3f89806834b519a5b9f5749696226', 'project_id': '9ff3f89806834b519a5b9f5749696226', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28232761', 'ctest-vn-51439343'], 'port_security_enabled': True, 'description': ''}} 2025-04-28 15:56:28,738 - DEBUG - Response for create_subnet : {'subnet': {'id': '580f194d-6df2-4ec0-8b67-d3e4a8ac57d5', 'name': '', 'tenant_id': '9ff3f89806834b519a5b9f5749696226', 'network_id': 'a7d997d5-b096-4786-8772-cf0f762aa965', 'ip_version': 4, 'cidr': '25.45.73.192/26', 'allocation_pools': [{'start': '25.45.73.194', 'end': '25.45.73.254'}], 'gateway_ip': '25.45.73.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.45.73.194', 'tags': [], 'project_id': '9ff3f89806834b519a5b9f5749696226'}} 2025-04-28 15:56:28,760 - INFO - Created VN ctest-vn-51439343 2025-04-28 15:56:28,817 - DEBUG - VN ctest-vn-51439343 UUID is a7d997d5-b096-4786-8772-cf0f762aa965 2025-04-28 15:56:29,157 - DEBUG - Response for create_network : {'network': {'id': 'f4adf62e-fffb-4430-8e11-e19715056aa7', 'name': 'ctest-ext_vn-87172313', 'tenant_id': '9ff3f89806834b519a5b9f5749696226', 'project_id': '9ff3f89806834b519a5b9f5749696226', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28232761', 'ctest-ext_vn-87172313'], 'port_security_enabled': True, 'description': ''}} 2025-04-28 15:56:29,346 - DEBUG - Response for create_subnet : {'subnet': {'id': 'be792821-ea71-422f-8693-52c0a994cc4f', 'name': '', 'tenant_id': '9ff3f89806834b519a5b9f5749696226', 'network_id': 'f4adf62e-fffb-4430-8e11-e19715056aa7', 'ip_version': 4, 'cidr': '102.244.197.64/26', 'allocation_pools': [{'start': '102.244.197.66', 'end': '102.244.197.126'}], 'gateway_ip': '102.244.197.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '102.244.197.66', 'tags': [], 'project_id': '9ff3f89806834b519a5b9f5749696226'}} 2025-04-28 15:56:29,364 - INFO - Created VN ctest-ext_vn-87172313 2025-04-28 15:56:29,416 - DEBUG - VN ctest-ext_vn-87172313 UUID is f4adf62e-fffb-4430-8e11-e19715056aa7 2025-04-28 15:56:29,583 - DEBUG - Services list from nova: [, , ] 2025-04-28 15:56:30,586 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3242-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3242-1) 2025-04-28 15:56:31,787 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3242-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3242-1) 2025-04-28 15:56:31,854 - INFO - Setting gateway for router fd0bb2b8-5045-4477-885f-d0540be12d45 to network f4adf62e-fffb-4430-8e11-e19715056aa7 2025-04-28 15:56:31,920 - INFO - Adding interface with subnet_id 580f194d-6df2-4ec0-8b67-d3e4a8ac57d5, port_id None to router fd0bb2b8-5045-4477-885f-d0540be12d45 2025-04-28 15:56:32,219 - INFO - Waiting for VM ctest-TestRoutersBasic-28232761-24773903 to be up.. 2025-04-28 15:56:32,423 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-28 15:56:37,512 - DEBUG - VM is in ACTIVE state now 2025-04-28 15:56:37,512 - INFO - VM name : ctest-TestRoutersBasic-28232761-24773903 2025-04-28 15:56:37,585 - DEBUG - VM ctest-TestRoutersBasic-28232761-24773903 ID is c95eacdd-8ec2-439f-a231-6c3dc84434b0 2025-04-28 15:56:37,606 - DEBUG - VM ctest-TestRoutersBasic-28232761-24773903 launched on Node cn-jenkins-deploy-platform-ansible-os-3242-1 2025-04-28 15:56:37,685 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/c95eacdd-8ec2-439f-a231-6c3dc84434b0 2025-04-28 15:56:37,982 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/c95eacdd-8ec2-439f-a231-6c3dc84434b0 2025-04-28 15:56:38,020 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/78479d1f-a7db-44d1-82af-f9692a05dd3d 2025-04-28 15:56:41,286 - 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 1019ms') 2025-04-28 15:56:41,286 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-28232761-24773903 failed! 2025-04-28 15:56:41,357 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-28232761:ctest-vn-51439343 is 25.45.73.193 and allocation pool is NOT set 2025-04-28 15:56:43,417 - 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=2.83 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.419 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.419/1.622/2.825/1.203 ms') 2025-04-28 15:56:43,417 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-28232761-24773903 passed 2025-04-28 15:56:43,572 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-28 15:56:43,573 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-28232761-24773903, IP 25.45.73.195, Port 22 2025-04-28 15:56:43,725 - DEBUG - VM ctest-TestRoutersBasic-28232761-24773903 is ready for SSH connections 2025-04-28 15:56:43,725 - INFO - Waiting for VM ctest-TestRoutersBasic-28232761-43946708 to be up.. 2025-04-28 15:56:43,796 - DEBUG - VM is in ACTIVE state now 2025-04-28 15:56:43,796 - INFO - VM name : ctest-TestRoutersBasic-28232761-43946708 2025-04-28 15:56:43,867 - DEBUG - VM ctest-TestRoutersBasic-28232761-43946708 ID is 6b7b03b6-d4e0-4a75-bb3d-47d94fc2d9fd 2025-04-28 15:56:43,867 - DEBUG - VM ctest-TestRoutersBasic-28232761-43946708 launched on Node cn-jenkins-deploy-platform-ansible-os-3242-1 2025-04-28 15:56:43,938 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/6b7b03b6-d4e0-4a75-bb3d-47d94fc2d9fd 2025-04-28 15:56:43,950 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/db8fb385-2d59-48e5-8ad2-4cc354e1d0ba 2025-04-28 15:56:45,195 - 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.07 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.30 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 = 1.295/2.684/4.073/1.389 ms') 2025-04-28 15:56:45,195 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-28232761-43946708 passed 2025-04-28 15:56:45,353 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-28 15:56:45,353 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-28232761-43946708, IP 102.244.197.67, Port 22 2025-04-28 15:56:45,408 - 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-04-28 15:56:45,487 - DEBUG - VM ctest-TestRoutersBasic-28232761-43946708 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-28 15:56:50,488 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-28 15:56:50,488 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-28232761-43946708, IP 102.244.197.67, Port 22 2025-04-28 15:56:50,648 - DEBUG - VM ctest-TestRoutersBasic-28232761-43946708 is ready for SSH connections 2025-04-28 15:56:50,649 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-28 15:56:50,649 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 102.244.197.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-04-28 15:56:50,649 - DEBUG - ping -s 56 -c 3 -W 1 102.244.197.67 2025-04-28 15:56:54,615 - DEBUG - PING 102.244.197.67 (102.244.197.67): 56 data bytes 64 bytes from 102.244.197.67: seq=0 ttl=62 time=5.920 ms 64 bytes from 102.244.197.67: seq=1 ttl=62 time=0.833 ms 64 bytes from 102.244.197.67: seq=2 ttl=62 time=1.040 ms --- 102.244.197.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.833/2.597/5.920 ms 2025-04-28 15:56:54,615 - INFO - Ping to IP 102.244.197.67 from VM ctest-TestRoutersBasic-28232761-24773903 passed 2025-04-28 15:56:54,616 - INFO - Deleting interface with subnet_id 580f194d-6df2-4ec0-8b67-d3e4a8ac57d5, port_id None from router fd0bb2b8-5045-4477-885f-d0540be12d45 2025-04-28 15:56:54,809 - INFO - Deleting VM ctest-TestRoutersBasic-28232761-43946708 2025-04-28 15:56:54,873 - INFO - Deleting VM ctest-TestRoutersBasic-28232761-24773903 2025-04-28 15:56:54,965 - INFO - Deleting VN ctest-ext_vn-87172313 2025-04-28 15:56:55,036 - DEBUG - VN f4adf62e-fffb-4430-8e11-e19715056aa7 still in use: Unable to complete operation on network f4adf62e-fffb-4430-8e11-e19715056aa7. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-48aa8b43-603c-4e4d-bf07-b3b41d01d887'] 2025-04-28 15:56:55,036 - WARNING - Deleting VN ctest-ext_vn-87172313 failed..Will retry 2025-04-28 15:56:57,155 - DEBUG - Response for deleting network () 2025-04-28 15:56:57,155 - INFO - Deleting VN ctest-vn-51439343 2025-04-28 15:56:57,266 - DEBUG - Response for deleting network () 2025-04-28 15:56:57,531 - DEBUG - No XMPP flaps were noticed during the test 2025-04-28 15:56:57,531 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:31] 2025-04-28 15:56:57,531 - INFO - -------------------------------------------------------------------------------- 2025-04-28 15:56:58,216 - INFO - Deleted project: ctest-TestRoutersBasic-28232761, ID : 9ff3f898-0683-4b51-9a5b-9f5749696226