2024-09-12 10:24:36,747 - INFO - Domain Default found not creating 2024-09-12 10:24:37,083 - INFO - Project ctest-TestRoutersBasic-61710451 not found, creating it 2024-09-12 10:24:37,567 - INFO - Created Project:ctest-TestRoutersBasic-61710451, ID : 18ca1b1a-68b4-4752-b8f9-978a7c24c207 2024-09-12 10:24:39,141 - INFO - ================================================================================ 2024-09-12 10:24:39,141 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-12 10:24:39,141 - 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-12 10:24:39,397 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.20': '0'}} with 2024-09-12 10:24:39,398 - INFO - Initial checks done. Running the testcase now 2024-09-12 10:24:39,398 - INFO - 2024-09-12 10:24:40,121 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-61710451 2024-09-12 10:24:40,221 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-61710451 2024-09-12 10:24:40,553 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-61710451', 'default']} 2024-09-12 10:24:40,867 - DEBUG - Response for create_network : {'network': {'id': 'eb9a632f-42f8-4a7c-b820-079044a6416b', 'name': 'ctest-vn-09621167', 'tenant_id': '18ca1b1a68b44752b8f9978a7c24c207', 'project_id': '18ca1b1a68b44752b8f9978a7c24c207', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-61710451', 'ctest-vn-09621167'], 'port_security_enabled': True, 'description': ''}} 2024-09-12 10:24:41,090 - DEBUG - Response for create_subnet : {'subnet': {'id': '716cbef3-e4ee-4475-96b3-091773c972b8', 'name': '', 'tenant_id': '18ca1b1a68b44752b8f9978a7c24c207', 'network_id': 'eb9a632f-42f8-4a7c-b820-079044a6416b', 'ip_version': 4, 'cidr': '156.199.9.64/26', 'allocation_pools': [{'start': '156.199.9.66', 'end': '156.199.9.126'}], 'gateway_ip': '156.199.9.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.199.9.66', 'tags': [], 'project_id': '18ca1b1a68b44752b8f9978a7c24c207'}} 2024-09-12 10:24:41,111 - INFO - Created VN ctest-vn-09621167 2024-09-12 10:24:41,169 - DEBUG - VN ctest-vn-09621167 UUID is eb9a632f-42f8-4a7c-b820-079044a6416b 2024-09-12 10:24:41,556 - DEBUG - Response for create_network : {'network': {'id': 'eef4d5a7-eed9-428f-89df-7550d14b312f', 'name': 'ctest-ext_vn-36379023', 'tenant_id': '18ca1b1a68b44752b8f9978a7c24c207', 'project_id': '18ca1b1a68b44752b8f9978a7c24c207', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-61710451', 'ctest-ext_vn-36379023'], 'port_security_enabled': True, 'description': ''}} 2024-09-12 10:24:44,123 - DEBUG - Response for create_subnet : {'subnet': {'id': '6f5a6e9c-294b-4e61-8b3b-7549777bb74e', 'name': '', 'tenant_id': '18ca1b1a68b44752b8f9978a7c24c207', 'network_id': 'eef4d5a7-eed9-428f-89df-7550d14b312f', 'ip_version': 4, 'cidr': '138.46.3.128/26', 'allocation_pools': [{'start': '138.46.3.130', 'end': '138.46.3.190'}], 'gateway_ip': '138.46.3.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '138.46.3.130', 'tags': [], 'project_id': '18ca1b1a68b44752b8f9978a7c24c207'}} 2024-09-12 10:24:44,150 - INFO - Created VN ctest-ext_vn-36379023 2024-09-12 10:24:44,217 - DEBUG - VN ctest-ext_vn-36379023 UUID is eef4d5a7-eed9-428f-89df-7550d14b312f 2024-09-12 10:24:44,405 - DEBUG - Services list from nova: [, , ] 2024-09-12 10:24:45,438 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1906-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1906-1) 2024-09-12 10:24:47,163 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1906-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1906-1) 2024-09-12 10:24:47,243 - INFO - Setting gateway for router d99c14b5-e2f9-4104-8931-00f2d1ea8ff7 to network eef4d5a7-eed9-428f-89df-7550d14b312f 2024-09-12 10:24:47,303 - INFO - Adding interface with subnet_id 716cbef3-e4ee-4475-96b3-091773c972b8, port_id None to router d99c14b5-e2f9-4104-8931-00f2d1ea8ff7 2024-09-12 10:24:47,770 - INFO - Waiting for VM ctest-TestRoutersBasic-61710451-77275253 to be up.. 2024-09-12 10:24:47,975 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-12 10:24:53,070 - DEBUG - VM is in ACTIVE state now 2024-09-12 10:24:53,070 - INFO - VM name : ctest-TestRoutersBasic-61710451-77275253 2024-09-12 10:24:53,185 - DEBUG - VM ctest-TestRoutersBasic-61710451-77275253 ID is 9280681b-62aa-4886-b343-427a050d4f30 2024-09-12 10:24:53,206 - DEBUG - VM ctest-TestRoutersBasic-61710451-77275253 launched on Node cn-jenkins-deploy-platform-ansible-os-1906-1 2024-09-12 10:24:53,296 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/9280681b-62aa-4886-b343-427a050d4f30 2024-09-12 10:24:53,602 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/9280681b-62aa-4886-b343-427a050d4f30 2024-09-12 10:24:53,639 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/029503ac-d2ea-49fe-802a-2902703be104 2024-09-12 10:24:56,917 - 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 1024ms') 2024-09-12 10:24:56,917 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-61710451-77275253 failed! 2024-09-12 10:24:56,977 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-61710451:ctest-vn-09621167 is 156.199.9.65 and allocation pool is NOT set 2024-09-12 10:24:59,035 - 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=4.46 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.46 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 = 2.461/3.460/4.459/0.999 ms') 2024-09-12 10:24:59,035 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-61710451-77275253 passed 2024-09-12 10:24:59,205 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-12 10:24:59,205 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-61710451-77275253, IP 156.199.9.67, Port 22 2024-09-12 10:24:59,368 - DEBUG - VM ctest-TestRoutersBasic-61710451-77275253 is ready for SSH connections 2024-09-12 10:24:59,369 - INFO - Waiting for VM ctest-TestRoutersBasic-61710451-67483311 to be up.. 2024-09-12 10:24:59,450 - DEBUG - VM is in ACTIVE state now 2024-09-12 10:24:59,451 - INFO - VM name : ctest-TestRoutersBasic-61710451-67483311 2024-09-12 10:24:59,527 - DEBUG - VM ctest-TestRoutersBasic-61710451-67483311 ID is 75dcd3cf-e95d-4cc9-b01b-0fb1dc939b5a 2024-09-12 10:24:59,527 - DEBUG - VM ctest-TestRoutersBasic-61710451-67483311 launched on Node cn-jenkins-deploy-platform-ansible-os-1906-1 2024-09-12 10:24:59,613 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/75dcd3cf-e95d-4cc9-b01b-0fb1dc939b5a 2024-09-12 10:24:59,623 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/f6daa749-7fc5-42b2-974e-45ab8c79c613 2024-09-12 10:25:00,885 - 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.82 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.34 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.341/3.078/4.816/1.737 ms') 2024-09-12 10:25:00,886 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-61710451-67483311 passed 2024-09-12 10:25:01,049 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-12 10:25:01,049 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-61710451-67483311, IP 138.46.3.131, Port 22 2024-09-12 10:25:01,109 - 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': ''} 2024-09-12 10:25:01,190 - DEBUG - VM ctest-TestRoutersBasic-61710451-67483311 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-12 10:25:06,191 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-12 10:25:06,191 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-61710451-67483311, IP 138.46.3.131, Port 22 2024-09-12 10:25:06,344 - DEBUG - VM ctest-TestRoutersBasic-61710451-67483311 is ready for SSH connections 2024-09-12 10:25:06,345 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-12 10:25:06,345 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 138.46.3.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2024-09-12 10:25:06,345 - DEBUG - ping -s 56 -c 3 -W 1 138.46.3.131 2024-09-12 10:25:10,062 - DEBUG - PING 138.46.3.131 (138.46.3.131): 56 data bytes 64 bytes from 138.46.3.131: seq=0 ttl=62 time=5.348 ms 64 bytes from 138.46.3.131: seq=1 ttl=62 time=0.863 ms 64 bytes from 138.46.3.131: seq=2 ttl=62 time=1.006 ms --- 138.46.3.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.863/2.405/5.348 ms 2024-09-12 10:25:10,198 - INFO - Ping to IP 138.46.3.131 from VM ctest-TestRoutersBasic-61710451-77275253 passed 2024-09-12 10:25:10,199 - INFO - Deleting interface with subnet_id 716cbef3-e4ee-4475-96b3-091773c972b8, port_id None from router d99c14b5-e2f9-4104-8931-00f2d1ea8ff7 2024-09-12 10:25:10,453 - INFO - Deleting VM ctest-TestRoutersBasic-61710451-67483311 2024-09-12 10:25:10,523 - INFO - Deleting VM ctest-TestRoutersBasic-61710451-77275253 2024-09-12 10:25:10,602 - INFO - Deleting VN ctest-ext_vn-36379023 2024-09-12 10:25:10,669 - DEBUG - VN eef4d5a7-eed9-428f-89df-7550d14b312f still in use: Unable to complete operation on network eef4d5a7-eed9-428f-89df-7550d14b312f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f12f1a71-8325-4c62-b497-934b4f603acb'] 2024-09-12 10:25:10,669 - WARNING - Deleting VN ctest-ext_vn-36379023 failed..Will retry 2024-09-12 10:25:12,776 - DEBUG - Response for deleting network () 2024-09-12 10:25:12,776 - INFO - Deleting VN ctest-vn-09621167 2024-09-12 10:25:12,890 - DEBUG - Response for deleting network () 2024-09-12 10:25:13,143 - DEBUG - No XMPP flaps were noticed during the test 2024-09-12 10:25:13,143 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:34] 2024-09-12 10:25:13,144 - INFO - -------------------------------------------------------------------------------- 2024-09-12 10:25:13,870 - INFO - Deleted project: ctest-TestRoutersBasic-61710451, ID : 18ca1b1a-68b4-4752-b8f9-978a7c24c207