2024-11-10 11:09:14,834 - INFO - Domain Default found not creating 2024-11-10 11:09:15,017 - INFO - Project ctest-TestRoutersBasic-27211192 not found, creating it 2024-11-10 11:09:15,581 - INFO - Created Project:ctest-TestRoutersBasic-27211192, ID : f1bffda5-9cb2-4411-a80f-abd737fade11 2024-11-10 11:09:17,154 - INFO - ================================================================================ 2024-11-10 11:09:17,154 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-10 11:09:17,154 - 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 11:09:17,413 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with 2024-11-10 11:09:17,413 - INFO - Initial checks done. Running the testcase now 2024-11-10 11:09:17,413 - INFO - 2024-11-10 11:09:18,168 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-27211192 2024-11-10 11:09:18,274 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-27211192 2024-11-10 11:09:18,615 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-27211192', 'default']} 2024-11-10 11:09:19,012 - DEBUG - Response for create_network : {'network': {'id': '8d45c64b-2cbd-4990-812c-59ebeeb7e914', 'name': 'ctest-vn-19749443', 'tenant_id': 'f1bffda59cb24411a80fabd737fade11', 'project_id': 'f1bffda59cb24411a80fabd737fade11', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-27211192', 'ctest-vn-19749443'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 11:09:19,235 - DEBUG - Response for create_subnet : {'subnet': {'id': '15d6eccc-6928-42b7-8652-03a655ffd438', 'name': '', 'tenant_id': 'f1bffda59cb24411a80fabd737fade11', 'network_id': '8d45c64b-2cbd-4990-812c-59ebeeb7e914', 'ip_version': 4, 'cidr': '180.140.223.128/26', 'allocation_pools': [{'start': '180.140.223.130', 'end': '180.140.223.190'}], 'gateway_ip': '180.140.223.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.140.223.130', 'tags': [], 'project_id': 'f1bffda59cb24411a80fabd737fade11'}} 2024-11-10 11:09:19,256 - INFO - Created VN ctest-vn-19749443 2024-11-10 11:09:19,314 - DEBUG - VN ctest-vn-19749443 UUID is 8d45c64b-2cbd-4990-812c-59ebeeb7e914 2024-11-10 11:09:19,670 - DEBUG - Response for create_network : {'network': {'id': '41f3efb0-7da6-4a8a-933a-b3b9ad7a492b', 'name': 'ctest-ext_vn-87003462', 'tenant_id': 'f1bffda59cb24411a80fabd737fade11', 'project_id': 'f1bffda59cb24411a80fabd737fade11', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-27211192', 'ctest-ext_vn-87003462'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 11:09:19,906 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ab75c518-b44c-4e10-9890-ddd8751929c7', 'name': '', 'tenant_id': 'f1bffda59cb24411a80fabd737fade11', 'network_id': '41f3efb0-7da6-4a8a-933a-b3b9ad7a492b', 'ip_version': 4, 'cidr': '134.87.105.0/26', 'allocation_pools': [{'start': '134.87.105.2', 'end': '134.87.105.62'}], 'gateway_ip': '134.87.105.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.87.105.2', 'tags': [], 'project_id': 'f1bffda59cb24411a80fabd737fade11'}} 2024-11-10 11:09:19,928 - INFO - Created VN ctest-ext_vn-87003462 2024-11-10 11:09:19,986 - DEBUG - VN ctest-ext_vn-87003462 UUID is 41f3efb0-7da6-4a8a-933a-b3b9ad7a492b 2024-11-10 11:09:20,177 - DEBUG - Services list from nova: [, , ] 2024-11-10 11:09:21,330 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2248-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2248-1) 2024-11-10 11:09:22,819 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2248-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2248-1) 2024-11-10 11:09:23,113 - INFO - Setting gateway for router 764e67ab-7e01-456f-9273-83438c267ad5 to network 41f3efb0-7da6-4a8a-933a-b3b9ad7a492b 2024-11-10 11:09:23,250 - INFO - Adding interface with subnet_id 15d6eccc-6928-42b7-8652-03a655ffd438, port_id None to router 764e67ab-7e01-456f-9273-83438c267ad5 2024-11-10 11:09:23,855 - INFO - Waiting for VM ctest-TestRoutersBasic-27211192-17830033 to be up.. 2024-11-10 11:09:24,031 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-10 11:09:29,135 - DEBUG - VM is in ACTIVE state now 2024-11-10 11:09:29,135 - INFO - VM name : ctest-TestRoutersBasic-27211192-17830033 2024-11-10 11:09:29,268 - DEBUG - VM ctest-TestRoutersBasic-27211192-17830033 ID is 6077c018-6b95-4ce9-8e12-b1911d650c85 2024-11-10 11:09:29,298 - DEBUG - VM ctest-TestRoutersBasic-27211192-17830033 launched on Node cn-jenkins-deploy-platform-ansible-os-2248-1 2024-11-10 11:09:29,410 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/6077c018-6b95-4ce9-8e12-b1911d650c85 2024-11-10 11:09:29,939 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/6077c018-6b95-4ce9-8e12-b1911d650c85 2024-11-10 11:09:30,008 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/382438b2-5cdf-4401-8504-4db9fd6b0241 2024-11-10 11:09:33,292 - 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 1010ms') 2024-11-10 11:09:33,292 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-27211192-17830033 failed! 2024-11-10 11:09:33,358 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-27211192:ctest-vn-19749443 is 180.140.223.129 and allocation pool is NOT set 2024-11-10 11:09:35,419 - 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.86 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.09 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 1.087/2.971/4.856/1.884 ms') 2024-11-10 11:09:35,419 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-27211192-17830033 passed 2024-11-10 11:09:35,586 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 11:09:35,586 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-27211192-17830033, IP 180.140.223.131, Port 22 2024-11-10 11:09:35,765 - DEBUG - VM ctest-TestRoutersBasic-27211192-17830033 is ready for SSH connections 2024-11-10 11:09:35,765 - INFO - Waiting for VM ctest-TestRoutersBasic-27211192-94989234 to be up.. 2024-11-10 11:09:35,863 - DEBUG - VM is in ACTIVE state now 2024-11-10 11:09:35,863 - INFO - VM name : ctest-TestRoutersBasic-27211192-94989234 2024-11-10 11:09:35,947 - DEBUG - VM ctest-TestRoutersBasic-27211192-94989234 ID is 6b85c16c-3092-4493-80d7-017121418611 2024-11-10 11:09:35,948 - DEBUG - VM ctest-TestRoutersBasic-27211192-94989234 launched on Node cn-jenkins-deploy-platform-ansible-os-2248-1 2024-11-10 11:09:36,045 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/6b85c16c-3092-4493-80d7-017121418611 2024-11-10 11:09:36,058 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/f52eb81f-9859-44f9-b513-55aa28c1765f 2024-11-10 11:09:37,319 - 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.04 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.35 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.349/2.693/4.038/1.344 ms') 2024-11-10 11:09:37,319 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-27211192-94989234 passed 2024-11-10 11:09:37,490 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 11:09:37,490 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-27211192-94989234, IP 134.87.105.3, Port 22 2024-11-10 11:09:37,552 - 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-11-10 11:09:37,659 - DEBUG - VM ctest-TestRoutersBasic-27211192-94989234 is NOT ready for SSH connections, VM status: ACTIVE 2024-11-10 11:09:42,659 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 11:09:42,660 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-27211192-94989234, IP 134.87.105.3, Port 22 2024-11-10 11:09:42,818 - DEBUG - VM ctest-TestRoutersBasic-27211192-94989234 is ready for SSH connections 2024-11-10 11:09:42,818 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 11:09:42,818 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 134.87.105.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-11-10 11:09:42,818 - DEBUG - ping -s 56 -c 3 -W 1 134.87.105.3 2024-11-10 11:09:46,593 - DEBUG - PING 134.87.105.3 (134.87.105.3): 56 data bytes 64 bytes from 134.87.105.3: seq=0 ttl=62 time=6.745 ms 64 bytes from 134.87.105.3: seq=1 ttl=62 time=1.031 ms 64 bytes from 134.87.105.3: seq=2 ttl=62 time=0.927 ms --- 134.87.105.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.927/2.901/6.745 ms 2024-11-10 11:09:46,593 - INFO - Ping to IP 134.87.105.3 from VM ctest-TestRoutersBasic-27211192-17830033 passed 2024-11-10 11:09:46,593 - INFO - Deleting interface with subnet_id 15d6eccc-6928-42b7-8652-03a655ffd438, port_id None from router 764e67ab-7e01-456f-9273-83438c267ad5 2024-11-10 11:09:46,792 - INFO - Deleting VM ctest-TestRoutersBasic-27211192-94989234 2024-11-10 11:09:46,875 - INFO - Deleting VM ctest-TestRoutersBasic-27211192-17830033 2024-11-10 11:09:46,967 - INFO - Deleting VN ctest-ext_vn-87003462 2024-11-10 11:09:47,050 - DEBUG - VN 41f3efb0-7da6-4a8a-933a-b3b9ad7a492b still in use: Unable to complete operation on network 41f3efb0-7da6-4a8a-933a-b3b9ad7a492b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b88956fa-fa35-4d0e-8eea-c0b8e3e0d1d7'] 2024-11-10 11:09:47,050 - WARNING - Deleting VN ctest-ext_vn-87003462 failed..Will retry 2024-11-10 11:09:49,195 - DEBUG - Response for deleting network () 2024-11-10 11:09:49,195 - INFO - Deleting VN ctest-vn-19749443 2024-11-10 11:09:49,355 - DEBUG - Response for deleting network () 2024-11-10 11:09:49,627 - DEBUG - No XMPP flaps were noticed during the test
2024-11-10 11:09:49,627 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32]
2024-11-10 11:09:49,627 - INFO - -------------------------------------------------------------------------------- 2024-11-10 11:09:50,401 - INFO - Deleted project: ctest-TestRoutersBasic-27211192, ID : f1bffda5-9cb2-4411-a80f-abd737fade11