2024-09-17 22:09:13,959 - INFO - Domain Default found not creating 2024-09-17 22:09:14,118 - INFO - Project ctest-TestRoutersBasic-28053388 not found, creating it 2024-09-17 22:09:14,601 - INFO - Created Project:ctest-TestRoutersBasic-28053388, ID : 0c599a9b-0808-4c8a-8320-956566bca5f7 2024-09-17 22:09:16,146 - INFO - ================================================================================ 2024-09-17 22:09:16,146 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-09-17 22:09:16,146 - 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-17 22:09:16,402 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.12': '0'}} with 2024-09-17 22:09:16,402 - INFO - Initial checks done. Running the testcase now 2024-09-17 22:09:16,402 - INFO - 2024-09-17 22:09:17,125 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-28053388 2024-09-17 22:09:17,224 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-28053388 2024-09-17 22:09:17,568 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28053388', 'default']} 2024-09-17 22:09:17,901 - DEBUG - Response for create_network : {'network': {'id': '4300a14d-ca42-4d8f-9ac3-b707b32ccef4', 'name': 'ctest-vn-51610267', 'tenant_id': '0c599a9b08084c8a8320956566bca5f7', 'project_id': '0c599a9b08084c8a8320956566bca5f7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28053388', 'ctest-vn-51610267'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 22:09:18,072 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a71fd7d9-c37d-4ccd-9fad-71b0e907d1c8', 'name': '', 'tenant_id': '0c599a9b08084c8a8320956566bca5f7', 'network_id': '4300a14d-ca42-4d8f-9ac3-b707b32ccef4', 'ip_version': 4, 'cidr': '57.71.224.192/26', 'allocation_pools': [{'start': '57.71.224.194', 'end': '57.71.224.254'}], 'gateway_ip': '57.71.224.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.71.224.194', 'tags': [], 'project_id': '0c599a9b08084c8a8320956566bca5f7'}} 2024-09-17 22:09:18,091 - INFO - Created VN ctest-vn-51610267 2024-09-17 22:09:18,148 - DEBUG - VN ctest-vn-51610267 UUID is 4300a14d-ca42-4d8f-9ac3-b707b32ccef4 2024-09-17 22:09:18,494 - DEBUG - Response for create_network : {'network': {'id': 'e9283e6e-baaf-44eb-9ae3-b3022c1a2fc2', 'name': 'ctest-ext_vn-37921950', 'tenant_id': '0c599a9b08084c8a8320956566bca5f7', 'project_id': '0c599a9b08084c8a8320956566bca5f7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-28053388', 'ctest-ext_vn-37921950'], 'port_security_enabled': True, 'description': ''}} 2024-09-17 22:09:18,672 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ba09adbd-66bb-4704-a821-d40af07606dd', 'name': '', 'tenant_id': '0c599a9b08084c8a8320956566bca5f7', 'network_id': 'e9283e6e-baaf-44eb-9ae3-b3022c1a2fc2', 'ip_version': 4, 'cidr': '172.63.137.128/26', 'allocation_pools': [{'start': '172.63.137.130', 'end': '172.63.137.190'}], 'gateway_ip': '172.63.137.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.63.137.130', 'tags': [], 'project_id': '0c599a9b08084c8a8320956566bca5f7'}} 2024-09-17 22:09:18,690 - INFO - Created VN ctest-ext_vn-37921950 2024-09-17 22:09:18,748 - DEBUG - VN ctest-ext_vn-37921950 UUID is e9283e6e-baaf-44eb-9ae3-b3022c1a2fc2 2024-09-17 22:09:18,914 - DEBUG - Services list from nova: [, , ] 2024-09-17 22:09:23,416 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1973-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1973-1) 2024-09-17 22:09:24,521 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1973-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1973-1) 2024-09-17 22:09:24,608 - INFO - Setting gateway for router 9b94c37f-88b2-4da6-89c2-21e0d74079d5 to network e9283e6e-baaf-44eb-9ae3-b3022c1a2fc2 2024-09-17 22:09:24,702 - INFO - Adding interface with subnet_id a71fd7d9-c37d-4ccd-9fad-71b0e907d1c8, port_id None to router 9b94c37f-88b2-4da6-89c2-21e0d74079d5 2024-09-17 22:09:25,153 - INFO - Waiting for VM ctest-TestRoutersBasic-28053388-74796706 to be up.. 2024-09-17 22:09:25,303 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-17 22:09:30,378 - DEBUG - VM is in ACTIVE state now 2024-09-17 22:09:30,378 - INFO - VM name : ctest-TestRoutersBasic-28053388-74796706 2024-09-17 22:09:30,453 - DEBUG - VM ctest-TestRoutersBasic-28053388-74796706 ID is 5b2fc60f-8470-43bc-8e90-6f344d5490b1 2024-09-17 22:09:30,471 - DEBUG - VM ctest-TestRoutersBasic-28053388-74796706 launched on Node cn-jenkins-deploy-platform-ansible-os-1973-1 2024-09-17 22:09:30,554 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/5b2fc60f-8470-43bc-8e90-6f344d5490b1 2024-09-17 22:09:31,611 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/5b2fc60f-8470-43bc-8e90-6f344d5490b1 2024-09-17 22:09:31,647 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/681cf13f-02e1-4599-b075-df680498cc14 2024-09-17 22:09:34,934 - 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 1007ms') 2024-09-17 22:09:34,934 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-28053388-74796706 failed! 2024-09-17 22:09:34,992 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-28053388:ctest-vn-51610267 is 57.71.224.193 and allocation pool is NOT set 2024-09-17 22:09:37,056 - 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=11.9 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.53 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.527/7.212/11.898/4.685 ms') 2024-09-17 22:09:37,056 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-28053388-74796706 passed 2024-09-17 22:09:37,216 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 22:09:37,216 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-28053388-74796706, IP 57.71.224.195, Port 22 2024-09-17 22:09:37,271 - 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-17 22:09:37,356 - DEBUG - VM ctest-TestRoutersBasic-28053388-74796706 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-17 22:09:42,357 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 22:09:42,357 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-28053388-74796706, IP 57.71.224.195, Port 22 2024-09-17 22:09:42,516 - DEBUG - VM ctest-TestRoutersBasic-28053388-74796706 is ready for SSH connections 2024-09-17 22:09:42,516 - INFO - Waiting for VM ctest-TestRoutersBasic-28053388-79381618 to be up.. 2024-09-17 22:09:42,595 - DEBUG - VM is in ACTIVE state now 2024-09-17 22:09:42,595 - INFO - VM name : ctest-TestRoutersBasic-28053388-79381618 2024-09-17 22:09:42,670 - DEBUG - VM ctest-TestRoutersBasic-28053388-79381618 ID is 1d9a967b-575a-4d1a-9d61-be6776bfe41b 2024-09-17 22:09:42,670 - DEBUG - VM ctest-TestRoutersBasic-28053388-79381618 launched on Node cn-jenkins-deploy-platform-ansible-os-1973-1 2024-09-17 22:09:42,747 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/1d9a967b-575a-4d1a-9d61-be6776bfe41b 2024-09-17 22:09:42,758 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/69db9b6d-1bca-40b3-9c4a-82e2e477ba01 2024-09-17 22:09:44,008 - 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=2.77 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.427 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 = 0.427/1.597/2.768/1.170 ms') 2024-09-17 22:09:44,008 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-28053388-79381618 passed 2024-09-17 22:09:44,160 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 22:09:44,160 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-28053388-79381618, IP 172.63.137.131, Port 22 2024-09-17 22:09:44,312 - DEBUG - VM ctest-TestRoutersBasic-28053388-79381618 is ready for SSH connections 2024-09-17 22:09:44,312 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-17 22:09:44,312 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 172.63.137.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2024-09-17 22:09:44,312 - DEBUG - ping -s 56 -c 3 -W 1 172.63.137.131 2024-09-17 22:09:48,036 - DEBUG - PING 172.63.137.131 (172.63.137.131): 56 data bytes 64 bytes from 172.63.137.131: seq=0 ttl=62 time=7.143 ms 64 bytes from 172.63.137.131: seq=1 ttl=62 time=0.827 ms 64 bytes from 172.63.137.131: seq=2 ttl=62 time=0.821 ms --- 172.63.137.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.821/2.930/7.143 ms 2024-09-17 22:09:48,036 - INFO - Ping to IP 172.63.137.131 from VM ctest-TestRoutersBasic-28053388-74796706 passed 2024-09-17 22:09:48,036 - INFO - Deleting interface with subnet_id a71fd7d9-c37d-4ccd-9fad-71b0e907d1c8, port_id None from router 9b94c37f-88b2-4da6-89c2-21e0d74079d5 2024-09-17 22:09:48,236 - INFO - Deleting VM ctest-TestRoutersBasic-28053388-79381618 2024-09-17 22:09:48,297 - INFO - Deleting VM ctest-TestRoutersBasic-28053388-74796706 2024-09-17 22:09:48,383 - INFO - Deleting VN ctest-ext_vn-37921950 2024-09-17 22:09:48,468 - DEBUG - VN e9283e6e-baaf-44eb-9ae3-b3022c1a2fc2 still in use: Unable to complete operation on network e9283e6e-baaf-44eb-9ae3-b3022c1a2fc2. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-01318a2e-a410-42eb-9153-16151808c0e0'] 2024-09-17 22:09:48,468 - WARNING - Deleting VN ctest-ext_vn-37921950 failed..Will retry 2024-09-17 22:09:50,567 - DEBUG - Response for deleting network () 2024-09-17 22:09:50,567 - INFO - Deleting VN ctest-vn-51610267 2024-09-17 22:09:50,684 - DEBUG - Response for deleting network () 2024-09-17 22:09:50,945 - DEBUG - No XMPP flaps were noticed during the test
2024-09-17 22:09:50,945 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:34]
2024-09-17 22:09:50,945 - INFO - -------------------------------------------------------------------------------- 2024-09-17 22:09:51,694 - INFO - Deleted project: ctest-TestRoutersBasic-28053388, ID : 0c599a9b-0808-4c8a-8320-956566bca5f7