2024-11-10 18:05:02,845 - INFO - Domain Default found not creating 2024-11-10 18:05:03,090 - INFO - Project ctest-TestRoutersBasic-18807996 not found, creating it 2024-11-10 18:05:03,913 - INFO - Created Project:ctest-TestRoutersBasic-18807996, ID : 6a96e1e2-ccb2-4d8b-b8cd-0e7ce2679584 2024-11-10 18:05:06,480 - INFO - ================================================================================ 2024-11-10 18:05:06,480 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-10 18:05:06,480 - 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 2024-11-10 18:05:06,789 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.26': '0'}} with 2024-11-10 18:05:06,789 - INFO - Initial checks done. Running the testcase now 2024-11-10 18:05:06,789 - INFO - 2024-11-10 18:05:07,733 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-18807996 2024-11-10 18:05:07,854 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-18807996 2024-11-10 18:05:08,285 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-18807996', 'default']} 2024-11-10 18:05:08,718 - DEBUG - Response for create_network : {'network': {'id': '1b05be65-b97e-4ec4-acfe-7aca35d23509', 'name': 'ctest-vn-44145557', 'tenant_id': '6a96e1e2ccb24d8bb8cd0e7ce2679584', 'project_id': '6a96e1e2ccb24d8bb8cd0e7ce2679584', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-18807996', 'ctest-vn-44145557'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 18:05:08,928 - DEBUG - Response for create_subnet : {'subnet': {'id': '0855bc04-3f19-41df-b080-ec84c5968278', 'name': '', 'tenant_id': '6a96e1e2ccb24d8bb8cd0e7ce2679584', 'network_id': '1b05be65-b97e-4ec4-acfe-7aca35d23509', 'ip_version': 4, 'cidr': '175.144.219.128/26', 'allocation_pools': [{'start': '175.144.219.130', 'end': '175.144.219.190'}], 'gateway_ip': '175.144.219.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.144.219.130', 'tags': [], 'project_id': '6a96e1e2ccb24d8bb8cd0e7ce2679584'}} 2024-11-10 18:05:08,955 - INFO - Created VN ctest-vn-44145557 2024-11-10 18:05:09,021 - DEBUG - VN ctest-vn-44145557 UUID is 1b05be65-b97e-4ec4-acfe-7aca35d23509 2024-11-10 18:05:09,634 - DEBUG - Response for create_network : {'network': {'id': '72aec0e4-132c-4b53-93fd-1ed1843c95df', 'name': 'ctest-ext_vn-90004023', 'tenant_id': '6a96e1e2ccb24d8bb8cd0e7ce2679584', 'project_id': '6a96e1e2ccb24d8bb8cd0e7ce2679584', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-18807996', 'ctest-ext_vn-90004023'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 18:05:09,914 - DEBUG - Response for create_subnet : {'subnet': {'id': '2cd603cc-fd53-412b-9e7e-71781a96a647', 'name': '', 'tenant_id': '6a96e1e2ccb24d8bb8cd0e7ce2679584', 'network_id': '72aec0e4-132c-4b53-93fd-1ed1843c95df', 'ip_version': 4, 'cidr': '13.2.203.0/26', 'allocation_pools': [{'start': '13.2.203.2', 'end': '13.2.203.62'}], 'gateway_ip': '13.2.203.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.2.203.2', 'tags': [], 'project_id': '6a96e1e2ccb24d8bb8cd0e7ce2679584'}} 2024-11-10 18:05:09,956 - INFO - Created VN ctest-ext_vn-90004023 2024-11-10 18:05:10,041 - DEBUG - VN ctest-ext_vn-90004023 UUID is 72aec0e4-132c-4b53-93fd-1ed1843c95df 2024-11-10 18:05:10,394 - DEBUG - Services list from nova: [, , ] 2024-11-10 18:05:12,080 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2258-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2258-1) 2024-11-10 18:05:13,678 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2258-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2258-1) 2024-11-10 18:05:13,766 - INFO - Setting gateway for router 028484ec-343c-4c22-ab23-efc7cbd3c0c0 to network 72aec0e4-132c-4b53-93fd-1ed1843c95df 2024-11-10 18:05:13,849 - INFO - Adding interface with subnet_id 0855bc04-3f19-41df-b080-ec84c5968278, port_id None to router 028484ec-343c-4c22-ab23-efc7cbd3c0c0 2024-11-10 18:05:14,235 - INFO - Waiting for VM ctest-TestRoutersBasic-18807996-49897962 to be up.. 2024-11-10 18:05:14,459 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-10 18:05:19,704 - DEBUG - VM is in ACTIVE state now 2024-11-10 18:05:19,705 - INFO - VM name : ctest-TestRoutersBasic-18807996-49897962 2024-11-10 18:05:19,907 - DEBUG - VM ctest-TestRoutersBasic-18807996-49897962 ID is 50254d9d-b539-40e2-bf12-9999eec33f77 2024-11-10 18:05:19,968 - DEBUG - VM ctest-TestRoutersBasic-18807996-49897962 launched on Node cn-jenkins-deploy-platform-ansible-os-2258-1 2024-11-10 18:05:20,135 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/50254d9d-b539-40e2-bf12-9999eec33f77 2024-11-10 18:05:20,447 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/50254d9d-b539-40e2-bf12-9999eec33f77 2024-11-10 18:05:20,500 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/3b246fd8-5adf-4e83-8853-e97394f5a5b3 2024-11-10 18:05:23,855 - 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 1028ms') 2024-11-10 18:05:23,855 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-18807996-49897962 failed! 2024-11-10 18:05:23,953 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-18807996:ctest-vn-44145557 is 175.144.219.129 and allocation pool is NOT set 2024-11-10 18:05:26,021 - 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.69 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.34 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 = 3.337/4.511/5.686/1.174 ms') 2024-11-10 18:05:26,022 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-18807996-49897962 passed 2024-11-10 18:05:26,238 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 18:05:26,239 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-18807996-49897962, IP 175.144.219.131, Port 22 2024-11-10 18:05:26,321 - 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': ''} 2024-11-10 18:05:26,420 - DEBUG - VM ctest-TestRoutersBasic-18807996-49897962 is NOT ready for SSH connections, VM status: ACTIVE 2024-11-10 18:05:31,421 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 18:05:31,422 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-18807996-49897962, IP 175.144.219.131, Port 22 2024-11-10 18:05:31,613 - DEBUG - VM ctest-TestRoutersBasic-18807996-49897962 is ready for SSH connections 2024-11-10 18:05:31,613 - INFO - Waiting for VM ctest-TestRoutersBasic-18807996-80959905 to be up.. 2024-11-10 18:05:31,800 - DEBUG - VM is in ACTIVE state now 2024-11-10 18:05:31,801 - INFO - VM name : ctest-TestRoutersBasic-18807996-80959905 2024-11-10 18:05:31,943 - DEBUG - VM ctest-TestRoutersBasic-18807996-80959905 ID is 38ff507c-f954-433a-9d9a-e5b1b537db91 2024-11-10 18:05:31,943 - DEBUG - VM ctest-TestRoutersBasic-18807996-80959905 launched on Node cn-jenkins-deploy-platform-ansible-os-2258-1 2024-11-10 18:05:32,094 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine/38ff507c-f954-433a-9d9a-e5b1b537db91 2024-11-10 18:05:32,116 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-machine-interface/140e2604-8cbe-496e-9ecb-165d3cbdd224 2024-11-10 18:05:33,470 - 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=12.0 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.762 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.762/6.372/11.983/5.610 ms') 2024-11-10 18:05:33,471 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-18807996-80959905 passed 2024-11-10 18:05:33,682 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 18:05:33,682 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-18807996-80959905, IP 13.2.203.3, Port 22 2024-11-10 18:05:33,879 - DEBUG - VM ctest-TestRoutersBasic-18807996-80959905 is ready for SSH connections 2024-11-10 18:05:33,879 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 18:05:33,880 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 13.2.203.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.36, gateway password: c0ntrail123 2024-11-10 18:05:33,880 - DEBUG - ping -s 56 -c 3 -W 1 13.2.203.3 2024-11-10 18:05:37,886 - DEBUG - PING 13.2.203.3 (13.2.203.3): 56 data bytes 64 bytes from 13.2.203.3: seq=0 ttl=62 time=7.642 ms 64 bytes from 13.2.203.3: seq=1 ttl=62 time=1.350 ms 64 bytes from 13.2.203.3: seq=2 ttl=62 time=1.323 ms --- 13.2.203.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.323/3.438/7.642 ms 2024-11-10 18:05:37,886 - INFO - Ping to IP 13.2.203.3 from VM ctest-TestRoutersBasic-18807996-49897962 passed 2024-11-10 18:05:37,886 - INFO - Deleting interface with subnet_id 0855bc04-3f19-41df-b080-ec84c5968278, port_id None from router 028484ec-343c-4c22-ab23-efc7cbd3c0c0 2024-11-10 18:05:38,147 - INFO - Deleting VM ctest-TestRoutersBasic-18807996-80959905 2024-11-10 18:05:38,220 - INFO - Deleting VM ctest-TestRoutersBasic-18807996-49897962 2024-11-10 18:05:38,313 - INFO - Deleting VN ctest-ext_vn-90004023 2024-11-10 18:05:38,386 - DEBUG - VN 72aec0e4-132c-4b53-93fd-1ed1843c95df still in use: Unable to complete operation on network 72aec0e4-132c-4b53-93fd-1ed1843c95df. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-3006bcd4-5c9a-45cf-a1b4-0592a2fe4b09'] 2024-11-10 18:05:38,386 - WARNING - Deleting VN ctest-ext_vn-90004023 failed..Will retry 2024-11-10 18:05:40,673 - DEBUG - Response for deleting network () 2024-11-10 18:05:40,673 - INFO - Deleting VN ctest-vn-44145557 2024-11-10 18:05:40,842 - DEBUG - Response for deleting network () 2024-11-10 18:05:41,122 - DEBUG - No XMPP flaps were noticed during the test 2024-11-10 18:05:41,122 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:35] 2024-11-10 18:05:41,122 - INFO - -------------------------------------------------------------------------------- 2024-11-10 18:05:42,099 - INFO - Deleted project: ctest-TestRoutersBasic-18807996, ID : 6a96e1e2-ccb2-4d8b-b8cd-0e7ce2679584