2024-09-04 13:59:01,649 - INFO - Domain Default found not creating 2024-09-04 13:59:01,830 - INFO - Project ctest-TestRoutersBasic-33857290 not found, creating it 2024-09-04 13:59:02,323 - INFO - Created Project:ctest-TestRoutersBasic-33857290, ID : f78fe576-0669-4876-8982-ad1b3e72d0c6 2024-09-04 13:59:03,992 - INFO - ================================================================================ 2024-09-04 13:59:03,992 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-04 13:59:03,992 - 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-04 13:59:04,250 - DEBUG - Nothing to compare xmpp stats {'10.0.0.53': {'10.20.0.23': '0'}} with 2024-09-04 13:59:04,250 - INFO - Initial checks done. Running the testcase now 2024-09-04 13:59:04,250 - INFO - 2024-09-04 13:59:04,986 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-33857290 2024-09-04 13:59:05,083 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-33857290 2024-09-04 13:59:05,403 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-33857290', 'default']} 2024-09-04 13:59:05,743 - DEBUG - Response for create_network : {'network': {'id': '76f5abc7-675a-4588-b3a4-996a401f8fd4', 'name': 'ctest-vn-95888009', 'tenant_id': 'f78fe576066948768982ad1b3e72d0c6', 'project_id': 'f78fe576066948768982ad1b3e72d0c6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-33857290', 'ctest-vn-95888009'], 'port_security_enabled': True, 'description': ''}} 2024-09-04 13:59:05,992 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a6daec05-037a-4ad7-9bfd-02e7e8fbe728', 'name': '', 'tenant_id': 'f78fe576066948768982ad1b3e72d0c6', 'network_id': '76f5abc7-675a-4588-b3a4-996a401f8fd4', 'ip_version': 4, 'cidr': '117.164.98.128/26', 'allocation_pools': [{'start': '117.164.98.130', 'end': '117.164.98.190'}], 'gateway_ip': '117.164.98.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.164.98.130', 'tags': [], 'project_id': 'f78fe576066948768982ad1b3e72d0c6'}} 2024-09-04 13:59:06,017 - INFO - Created VN ctest-vn-95888009 2024-09-04 13:59:06,071 - DEBUG - VN ctest-vn-95888009 UUID is 76f5abc7-675a-4588-b3a4-996a401f8fd4 2024-09-04 13:59:06,426 - DEBUG - Response for create_network : {'network': {'id': '2626f04c-2e8e-4af5-9366-6bf3dde78046', 'name': 'ctest-ext_vn-65871730', 'tenant_id': 'f78fe576066948768982ad1b3e72d0c6', 'project_id': 'f78fe576066948768982ad1b3e72d0c6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-33857290', 'ctest-ext_vn-65871730'], 'port_security_enabled': True, 'description': ''}} 2024-09-04 13:59:06,640 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ae6f8bb8-c9ca-43cc-a305-8fd7b792e612', 'name': '', 'tenant_id': 'f78fe576066948768982ad1b3e72d0c6', 'network_id': '2626f04c-2e8e-4af5-9366-6bf3dde78046', 'ip_version': 4, 'cidr': '113.20.146.128/26', 'allocation_pools': [{'start': '113.20.146.130', 'end': '113.20.146.190'}], 'gateway_ip': '113.20.146.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.20.146.130', 'tags': [], 'project_id': 'f78fe576066948768982ad1b3e72d0c6'}} 2024-09-04 13:59:06,665 - INFO - Created VN ctest-ext_vn-65871730 2024-09-04 13:59:06,719 - DEBUG - VN ctest-ext_vn-65871730 UUID is 2626f04c-2e8e-4af5-9366-6bf3dde78046 2024-09-04 13:59:06,899 - DEBUG - Services list from nova: [, , ] 2024-09-04 13:59:07,999 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1841-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1841-1) 2024-09-04 13:59:09,244 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1841-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1841-1) 2024-09-04 13:59:09,331 - INFO - Setting gateway for router 21ac0257-cea0-4733-af44-da6635ce6d22 to network 2626f04c-2e8e-4af5-9366-6bf3dde78046 2024-09-04 13:59:09,415 - INFO - Adding interface with subnet_id a6daec05-037a-4ad7-9bfd-02e7e8fbe728, port_id None to router 21ac0257-cea0-4733-af44-da6635ce6d22 2024-09-04 13:59:09,848 - INFO - Waiting for VM ctest-TestRoutersBasic-33857290-51474706 to be up.. 2024-09-04 13:59:10,094 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-04 13:59:15,181 - DEBUG - VM is in ACTIVE state now 2024-09-04 13:59:15,182 - INFO - VM name : ctest-TestRoutersBasic-33857290-51474706 2024-09-04 13:59:15,269 - DEBUG - VM ctest-TestRoutersBasic-33857290-51474706 ID is f86dbaf2-3528-44bb-b0d7-c910a20ce6c7 2024-09-04 13:59:15,291 - DEBUG - VM ctest-TestRoutersBasic-33857290-51474706 launched on Node cn-jenkins-deploy-platform-ansible-os-1841-1 2024-09-04 13:59:15,384 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-machine/f86dbaf2-3528-44bb-b0d7-c910a20ce6c7 2024-09-04 13:59:15,684 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-machine/f86dbaf2-3528-44bb-b0d7-c910a20ce6c7 2024-09-04 13:59:15,723 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-machine-interface/191f8df0-7513-4f87-95b6-360b47e37e63 2024-09-04 13:59:18,983 - 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 1018ms') 2024-09-04 13:59:18,983 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-33857290-51474706 failed! 2024-09-04 13:59:19,035 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-33857290:ctest-vn-95888009 is 117.164.98.129 and allocation pool is NOT set 2024-09-04 13:59:21,100 - 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.41 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.964 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.964/2.685/4.407/1.721 ms') 2024-09-04 13:59:21,100 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-33857290-51474706 passed 2024-09-04 13:59:21,251 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 13:59:21,251 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-33857290-51474706, IP 117.164.98.131, Port 22 2024-09-04 13:59:21,317 - 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-09-04 13:59:21,406 - DEBUG - VM ctest-TestRoutersBasic-33857290-51474706 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-04 13:59:26,406 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 13:59:26,407 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-33857290-51474706, IP 117.164.98.131, Port 22 2024-09-04 13:59:26,575 - DEBUG - VM ctest-TestRoutersBasic-33857290-51474706 is ready for SSH connections 2024-09-04 13:59:26,575 - INFO - Waiting for VM ctest-TestRoutersBasic-33857290-99524127 to be up.. 2024-09-04 13:59:26,726 - DEBUG - VM is in ACTIVE state now 2024-09-04 13:59:26,726 - INFO - VM name : ctest-TestRoutersBasic-33857290-99524127 2024-09-04 13:59:26,871 - DEBUG - VM ctest-TestRoutersBasic-33857290-99524127 ID is e114e390-c413-45e8-9085-4f8953f25186 2024-09-04 13:59:26,871 - DEBUG - VM ctest-TestRoutersBasic-33857290-99524127 launched on Node cn-jenkins-deploy-platform-ansible-os-1841-1 2024-09-04 13:59:27,001 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-machine/e114e390-c413-45e8-9085-4f8953f25186 2024-09-04 13:59:27,016 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-machine-interface/55f49661-bc56-44ee-81d5-9198081781ce 2024-09-04 13:59:28,262 - 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.91 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.01 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.005/2.456/3.907/1.451 ms') 2024-09-04 13:59:28,262 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-33857290-99524127 passed 2024-09-04 13:59:28,415 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 13:59:28,415 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-33857290-99524127, IP 113.20.146.131, Port 22 2024-09-04 13:59:28,571 - DEBUG - VM ctest-TestRoutersBasic-33857290-99524127 is ready for SSH connections 2024-09-04 13:59:28,571 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-04 13:59:28,571 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 113.20.146.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.53, gateway password: c0ntrail123 2024-09-04 13:59:28,571 - DEBUG - ping -s 56 -c 3 -W 1 113.20.146.131 2024-09-04 13:59:32,275 - DEBUG - PING 113.20.146.131 (113.20.146.131): 56 data bytes 64 bytes from 113.20.146.131: seq=0 ttl=62 time=6.439 ms 64 bytes from 113.20.146.131: seq=1 ttl=62 time=0.987 ms 64 bytes from 113.20.146.131: seq=2 ttl=62 time=1.169 ms --- 113.20.146.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.987/2.865/6.439 ms 2024-09-04 13:59:32,275 - INFO - Ping to IP 113.20.146.131 from VM ctest-TestRoutersBasic-33857290-51474706 passed 2024-09-04 13:59:32,275 - INFO - Deleting interface with subnet_id a6daec05-037a-4ad7-9bfd-02e7e8fbe728, port_id None from router 21ac0257-cea0-4733-af44-da6635ce6d22 2024-09-04 13:59:32,502 - INFO - Deleting VM ctest-TestRoutersBasic-33857290-99524127 2024-09-04 13:59:32,578 - INFO - Deleting VM ctest-TestRoutersBasic-33857290-51474706 2024-09-04 13:59:32,661 - INFO - Deleting VN ctest-ext_vn-65871730 2024-09-04 13:59:32,754 - DEBUG - VN 2626f04c-2e8e-4af5-9366-6bf3dde78046 still in use: Unable to complete operation on network 2626f04c-2e8e-4af5-9366-6bf3dde78046. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-1c2d7397-1e14-48dc-935f-4ee85432ee5e'] 2024-09-04 13:59:32,755 - WARNING - Deleting VN ctest-ext_vn-65871730 failed..Will retry 2024-09-04 13:59:34,877 - DEBUG - Response for deleting network () 2024-09-04 13:59:34,878 - INFO - Deleting VN ctest-vn-95888009 2024-09-04 13:59:34,989 - DEBUG - Response for deleting network () 2024-09-04 13:59:35,253 - DEBUG - No XMPP flaps were noticed during the test 2024-09-04 13:59:35,253 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32] 2024-09-04 13:59:35,253 - INFO - -------------------------------------------------------------------------------- 2024-09-04 13:59:35,945 - INFO - Deleted project: ctest-TestRoutersBasic-33857290, ID : f78fe576-0669-4876-8982-ad1b3e72d0c6