2024-09-16 02:17:05,115 - INFO - Domain Default found not creating 2024-09-16 02:17:05,276 - INFO - Project ctest-TestRoutersBasic-70355372 not found, creating it 2024-09-16 02:17:05,771 - INFO - Created Project:ctest-TestRoutersBasic-70355372, ID : 22636e79-f98f-446e-a740-e55cd41bae72 2024-09-16 02:17:07,285 - INFO - ================================================================================ 2024-09-16 02:17:07,285 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-16 02:17:07,285 - 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-09-16 02:17:07,540 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.8': '0'}} with 2024-09-16 02:17:07,540 - INFO - Initial checks done. Running the testcase now 2024-09-16 02:17:07,540 - INFO - 2024-09-16 02:17:08,254 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-70355372 2024-09-16 02:17:08,355 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-70355372 2024-09-16 02:17:08,690 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-70355372', 'default']} 2024-09-16 02:17:08,997 - DEBUG - Response for create_network : {'network': {'id': 'cd27e21d-b527-4868-9802-74a89b158742', 'name': 'ctest-vn-99112650', 'tenant_id': '22636e79f98f446ea740e55cd41bae72', 'project_id': '22636e79f98f446ea740e55cd41bae72', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-70355372', 'ctest-vn-99112650'], 'port_security_enabled': True, 'description': ''}} 2024-09-16 02:17:09,184 - DEBUG - Response for create_subnet : {'subnet': {'id': '136002b5-6651-4128-b94c-f5c9e0f87c7b', 'name': '', 'tenant_id': '22636e79f98f446ea740e55cd41bae72', 'network_id': 'cd27e21d-b527-4868-9802-74a89b158742', 'ip_version': 4, 'cidr': '61.255.84.0/26', 'allocation_pools': [{'start': '61.255.84.2', 'end': '61.255.84.62'}], 'gateway_ip': '61.255.84.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '61.255.84.2', 'tags': [], 'project_id': '22636e79f98f446ea740e55cd41bae72'}} 2024-09-16 02:17:09,204 - INFO - Created VN ctest-vn-99112650 2024-09-16 02:17:09,262 - DEBUG - VN ctest-vn-99112650 UUID is cd27e21d-b527-4868-9802-74a89b158742 2024-09-16 02:17:09,599 - DEBUG - Response for create_network : {'network': {'id': '68f25125-e3a7-48bd-86aa-16e341984547', 'name': 'ctest-ext_vn-76273539', 'tenant_id': '22636e79f98f446ea740e55cd41bae72', 'project_id': '22636e79f98f446ea740e55cd41bae72', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-70355372', 'ctest-ext_vn-76273539'], 'port_security_enabled': True, 'description': ''}} 2024-09-16 02:17:09,752 - DEBUG - Response for create_subnet : {'subnet': {'id': '5373c4ff-d3b4-4209-8579-79705be1436b', 'name': '', 'tenant_id': '22636e79f98f446ea740e55cd41bae72', 'network_id': '68f25125-e3a7-48bd-86aa-16e341984547', 'ip_version': 4, 'cidr': '49.50.227.128/26', 'allocation_pools': [{'start': '49.50.227.130', 'end': '49.50.227.190'}], 'gateway_ip': '49.50.227.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.50.227.130', 'tags': [], 'project_id': '22636e79f98f446ea740e55cd41bae72'}} 2024-09-16 02:17:09,770 - INFO - Created VN ctest-ext_vn-76273539 2024-09-16 02:17:09,826 - DEBUG - VN ctest-ext_vn-76273539 UUID is 68f25125-e3a7-48bd-86aa-16e341984547 2024-09-16 02:17:10,055 - DEBUG - Services list from nova: [, , ] 2024-09-16 02:17:11,080 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1943-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1943-1) 2024-09-16 02:17:12,238 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1943-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1943-1) 2024-09-16 02:17:12,356 - INFO - Setting gateway for router ca4915d3-1ac0-4d9d-ab07-5689439ec5d4 to network 68f25125-e3a7-48bd-86aa-16e341984547 2024-09-16 02:17:12,435 - INFO - Adding interface with subnet_id 136002b5-6651-4128-b94c-f5c9e0f87c7b, port_id None to router ca4915d3-1ac0-4d9d-ab07-5689439ec5d4 2024-09-16 02:17:12,862 - INFO - Waiting for VM ctest-TestRoutersBasic-70355372-66830449 to be up.. 2024-09-16 02:17:13,088 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-16 02:17:18,166 - DEBUG - VM is in ACTIVE state now 2024-09-16 02:17:18,166 - INFO - VM name : ctest-TestRoutersBasic-70355372-66830449 2024-09-16 02:17:18,246 - DEBUG - VM ctest-TestRoutersBasic-70355372-66830449 ID is 1bbf3369-415c-475a-b5e8-8a57f75feb0c 2024-09-16 02:17:18,265 - DEBUG - VM ctest-TestRoutersBasic-70355372-66830449 launched on Node cn-jenkins-deploy-platform-ansible-os-1943-1 2024-09-16 02:17:18,342 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/1bbf3369-415c-475a-b5e8-8a57f75feb0c 2024-09-16 02:17:18,639 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/1bbf3369-415c-475a-b5e8-8a57f75feb0c 2024-09-16 02:17:18,675 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/43cc7601-7996-45e0-bf9d-e1fc90d9ac2c 2024-09-16 02:17:21,929 - 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 1004ms') 2024-09-16 02:17:21,930 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-70355372-66830449 failed! 2024-09-16 02:17:21,990 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-70355372:ctest-vn-99112650 is 61.255.84.1 and allocation pool is NOT set 2024-09-16 02:17:24,054 - 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.89 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.488 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.488/1.688/2.889/1.200 ms') 2024-09-16 02:17:24,054 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-70355372-66830449 passed 2024-09-16 02:17:24,211 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-16 02:17:24,211 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-70355372-66830449, IP 61.255.84.3, Port 22 2024-09-16 02:17:24,370 - DEBUG - VM ctest-TestRoutersBasic-70355372-66830449 is ready for SSH connections 2024-09-16 02:17:24,370 - INFO - Waiting for VM ctest-TestRoutersBasic-70355372-95278791 to be up.. 2024-09-16 02:17:24,568 - DEBUG - VM is in ACTIVE state now 2024-09-16 02:17:24,568 - INFO - VM name : ctest-TestRoutersBasic-70355372-95278791 2024-09-16 02:17:24,645 - DEBUG - VM ctest-TestRoutersBasic-70355372-95278791 ID is b9597cb7-b651-4058-98b4-e08d793b20fd 2024-09-16 02:17:24,646 - DEBUG - VM ctest-TestRoutersBasic-70355372-95278791 launched on Node cn-jenkins-deploy-platform-ansible-os-1943-1 2024-09-16 02:17:24,721 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/b9597cb7-b651-4058-98b4-e08d793b20fd 2024-09-16 02:17:24,732 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/0a75f7c7-1fc0-46c4-91f6-0d0316c36299 2024-09-16 02:17:25,981 - 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.08 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.537 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.537/1.808/3.080/1.271 ms') 2024-09-16 02:17:25,981 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-70355372-95278791 passed 2024-09-16 02:17:26,134 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-16 02:17:26,135 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-70355372-95278791, IP 49.50.227.131, Port 22 2024-09-16 02:17:26,286 - DEBUG - VM ctest-TestRoutersBasic-70355372-95278791 is ready for SSH connections 2024-09-16 02:17:26,286 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-16 02:17:26,286 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 49.50.227.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-09-16 02:17:26,286 - DEBUG - ping -s 56 -c 3 -W 1 49.50.227.131 2024-09-16 02:17:30,252 - DEBUG - PING 49.50.227.131 (49.50.227.131): 56 data bytes 64 bytes from 49.50.227.131: seq=0 ttl=62 time=6.146 ms 64 bytes from 49.50.227.131: seq=1 ttl=62 time=0.753 ms 64 bytes from 49.50.227.131: seq=2 ttl=62 time=0.782 ms --- 49.50.227.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.753/2.560/6.146 ms 2024-09-16 02:17:30,252 - INFO - Ping to IP 49.50.227.131 from VM ctest-TestRoutersBasic-70355372-66830449 passed 2024-09-16 02:17:30,252 - INFO - Deleting interface with subnet_id 136002b5-6651-4128-b94c-f5c9e0f87c7b, port_id None from router ca4915d3-1ac0-4d9d-ab07-5689439ec5d4 2024-09-16 02:17:30,461 - INFO - Deleting VM ctest-TestRoutersBasic-70355372-95278791 2024-09-16 02:17:30,529 - INFO - Deleting VM ctest-TestRoutersBasic-70355372-66830449 2024-09-16 02:17:30,609 - INFO - Deleting VN ctest-ext_vn-76273539 2024-09-16 02:17:30,673 - DEBUG - VN 68f25125-e3a7-48bd-86aa-16e341984547 still in use: Unable to complete operation on network 68f25125-e3a7-48bd-86aa-16e341984547. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-dafdd7e3-7f8e-4659-934e-67743622aec5'] 2024-09-16 02:17:30,673 - WARNING - Deleting VN ctest-ext_vn-76273539 failed..Will retry 2024-09-16 02:17:32,773 - DEBUG - Response for deleting network () 2024-09-16 02:17:32,773 - INFO - Deleting VN ctest-vn-99112650 2024-09-16 02:17:32,877 - DEBUG - Response for deleting network () 2024-09-16 02:17:33,132 - DEBUG - No XMPP flaps were noticed during the test 2024-09-16 02:17:33,132 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-09-16 02:17:33,132 - INFO - -------------------------------------------------------------------------------- 2024-09-16 02:17:33,835 - INFO - Deleted project: ctest-TestRoutersBasic-70355372, ID : 22636e79-f98f-446e-a740-e55cd41bae72