2024-10-28 16:49:47,742 - INFO - Domain Default found not creating 2024-10-28 16:49:47,946 - INFO - Project ctest-TestRoutersBasic-00255725 not found, creating it 2024-10-28 16:49:48,456 - INFO - Created Project:ctest-TestRoutersBasic-00255725, ID : 0188a694-7803-4ab1-a84e-43dfb7543fb8 2024-10-28 16:49:50,373 - INFO - ================================================================================ 2024-10-28 16:49:50,373 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-10-28 16:49:50,373 - 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-10-28 16:49:50,628 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.13': '0'}} with 2024-10-28 16:49:50,629 - INFO - Initial checks done. Running the testcase now 2024-10-28 16:49:50,629 - INFO - 2024-10-28 16:49:51,475 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-00255725 2024-10-28 16:49:51,579 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-00255725 2024-10-28 16:49:51,926 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-00255725', 'default']} 2024-10-28 16:49:52,285 - DEBUG - Response for create_network : {'network': {'id': 'fba4870f-703b-4ac1-8506-8e79a4f481a1', 'name': 'ctest-vn-06885108', 'tenant_id': '0188a69478034ab1a84e43dfb7543fb8', 'project_id': '0188a69478034ab1a84e43dfb7543fb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-00255725', 'ctest-vn-06885108'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 16:49:52,516 - DEBUG - Response for create_subnet : {'subnet': {'id': '8fe315a1-0cc1-459d-88f1-95485e398622', 'name': '', 'tenant_id': '0188a69478034ab1a84e43dfb7543fb8', 'network_id': 'fba4870f-703b-4ac1-8506-8e79a4f481a1', 'ip_version': 4, 'cidr': '81.15.248.128/26', 'allocation_pools': [{'start': '81.15.248.130', 'end': '81.15.248.190'}], 'gateway_ip': '81.15.248.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.15.248.130', 'tags': [], 'project_id': '0188a69478034ab1a84e43dfb7543fb8'}} 2024-10-28 16:49:52,539 - INFO - Created VN ctest-vn-06885108 2024-10-28 16:49:52,599 - DEBUG - VN ctest-vn-06885108 UUID is fba4870f-703b-4ac1-8506-8e79a4f481a1 2024-10-28 16:49:52,994 - DEBUG - Response for create_network : {'network': {'id': 'd4e19f4b-061e-4990-beea-c36b22c785ad', 'name': 'ctest-ext_vn-61625718', 'tenant_id': '0188a69478034ab1a84e43dfb7543fb8', 'project_id': '0188a69478034ab1a84e43dfb7543fb8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-00255725', 'ctest-ext_vn-61625718'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 16:49:53,256 - DEBUG - Response for create_subnet : {'subnet': {'id': '08c29c49-0685-4a3e-acf5-fa818df621be', 'name': '', 'tenant_id': '0188a69478034ab1a84e43dfb7543fb8', 'network_id': 'd4e19f4b-061e-4990-beea-c36b22c785ad', 'ip_version': 4, 'cidr': '203.127.163.192/26', 'allocation_pools': [{'start': '203.127.163.194', 'end': '203.127.163.254'}], 'gateway_ip': '203.127.163.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.127.163.194', 'tags': [], 'project_id': '0188a69478034ab1a84e43dfb7543fb8'}} 2024-10-28 16:49:53,283 - INFO - Created VN ctest-ext_vn-61625718 2024-10-28 16:49:53,342 - DEBUG - VN ctest-ext_vn-61625718 UUID is d4e19f4b-061e-4990-beea-c36b22c785ad 2024-10-28 16:49:53,554 - DEBUG - Services list from nova: [, , ] 2024-10-28 16:49:54,757 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2171-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2171-1) 2024-10-28 16:49:56,097 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2171-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2171-1) 2024-10-28 16:49:56,211 - INFO - Setting gateway for router 8fdfbd00-c578-40a6-82cf-5fc731a42d27 to network d4e19f4b-061e-4990-beea-c36b22c785ad 2024-10-28 16:49:56,286 - INFO - Adding interface with subnet_id 8fe315a1-0cc1-459d-88f1-95485e398622, port_id None to router 8fdfbd00-c578-40a6-82cf-5fc731a42d27 2024-10-28 16:49:56,687 - INFO - Waiting for VM ctest-TestRoutersBasic-00255725-78631925 to be up.. 2024-10-28 16:49:56,887 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-28 16:50:02,004 - DEBUG - VM is in ACTIVE state now 2024-10-28 16:50:02,004 - INFO - VM name : ctest-TestRoutersBasic-00255725-78631925 2024-10-28 16:50:02,105 - DEBUG - VM ctest-TestRoutersBasic-00255725-78631925 ID is ef601e48-5d98-40fe-857a-b770d8a8b80d 2024-10-28 16:50:02,130 - DEBUG - VM ctest-TestRoutersBasic-00255725-78631925 launched on Node cn-jenkins-deploy-platform-ansible-os-2171-1 2024-10-28 16:50:02,238 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/ef601e48-5d98-40fe-857a-b770d8a8b80d 2024-10-28 16:50:02,579 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/ef601e48-5d98-40fe-857a-b770d8a8b80d 2024-10-28 16:50:02,631 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/f1cc74ef-3f9c-4fab-8cc4-5198881c80a9 2024-10-28 16:50:05,926 - 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 1019ms') 2024-10-28 16:50:05,926 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-00255725-78631925 failed! 2024-10-28 16:50:05,986 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-00255725:ctest-vn-06885108 is 81.15.248.129 and allocation pool is NOT set 2024-10-28 16:50:08,052 - 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=3.14 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.492 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 = 0.492/1.818/3.144/1.326 ms') 2024-10-28 16:50:08,052 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-00255725-78631925 passed 2024-10-28 16:50:08,214 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 16:50:08,215 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-00255725-78631925, IP 81.15.248.131, Port 22 2024-10-28 16:50:08,374 - DEBUG - VM ctest-TestRoutersBasic-00255725-78631925 is ready for SSH connections 2024-10-28 16:50:08,374 - INFO - Waiting for VM ctest-TestRoutersBasic-00255725-28396193 to be up.. 2024-10-28 16:50:08,465 - DEBUG - VM is in ACTIVE state now 2024-10-28 16:50:08,466 - INFO - VM name : ctest-TestRoutersBasic-00255725-28396193 2024-10-28 16:50:08,554 - DEBUG - VM ctest-TestRoutersBasic-00255725-28396193 ID is d428c481-4075-4a38-b533-33e456e5d9a3 2024-10-28 16:50:08,554 - DEBUG - VM ctest-TestRoutersBasic-00255725-28396193 launched on Node cn-jenkins-deploy-platform-ansible-os-2171-1 2024-10-28 16:50:08,644 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/d428c481-4075-4a38-b533-33e456e5d9a3 2024-10-28 16:50:08,654 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/6ebf8015-d11e-4934-8f11-1a385a8cc454 2024-10-28 16:50:09,925 - 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=5.28 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.58 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 = 2.576/3.926/5.276/1.350 ms') 2024-10-28 16:50:09,925 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-00255725-28396193 passed 2024-10-28 16:50:10,086 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 16:50:10,087 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-00255725-28396193, IP 203.127.163.195, Port 22 2024-10-28 16:50:10,142 - 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-10-28 16:50:10,237 - DEBUG - VM ctest-TestRoutersBasic-00255725-28396193 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-28 16:50:15,238 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 16:50:15,238 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-00255725-28396193, IP 203.127.163.195, Port 22 2024-10-28 16:50:15,394 - DEBUG - VM ctest-TestRoutersBasic-00255725-28396193 is ready for SSH connections 2024-10-28 16:50:15,394 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 16:50:15,394 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 203.127.163.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-10-28 16:50:15,394 - DEBUG - ping -s 56 -c 3 -W 1 203.127.163.195 2024-10-28 16:50:19,150 - DEBUG - PING 203.127.163.195 (203.127.163.195): 56 data bytes 64 bytes from 203.127.163.195: seq=0 ttl=62 time=6.509 ms 64 bytes from 203.127.163.195: seq=1 ttl=62 time=0.960 ms 64 bytes from 203.127.163.195: seq=2 ttl=62 time=1.022 ms --- 203.127.163.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.960/2.830/6.509 ms 2024-10-28 16:50:19,151 - INFO - Ping to IP 203.127.163.195 from VM ctest-TestRoutersBasic-00255725-78631925 passed 2024-10-28 16:50:19,151 - INFO - Deleting interface with subnet_id 8fe315a1-0cc1-459d-88f1-95485e398622, port_id None from router 8fdfbd00-c578-40a6-82cf-5fc731a42d27 2024-10-28 16:50:19,430 - INFO - Deleting VM ctest-TestRoutersBasic-00255725-28396193 2024-10-28 16:50:19,516 - INFO - Deleting VM ctest-TestRoutersBasic-00255725-78631925 2024-10-28 16:50:19,623 - INFO - Deleting VN ctest-ext_vn-61625718 2024-10-28 16:50:19,741 - DEBUG - VN d4e19f4b-061e-4990-beea-c36b22c785ad still in use: Unable to complete operation on network d4e19f4b-061e-4990-beea-c36b22c785ad. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a0199dad-eb1d-4013-b037-db5277ecfb4f'] 2024-10-28 16:50:19,741 - WARNING - Deleting VN ctest-ext_vn-61625718 failed..Will retry 2024-10-28 16:50:21,914 - DEBUG - Response for deleting network () 2024-10-28 16:50:21,914 - INFO - Deleting VN ctest-vn-06885108 2024-10-28 16:50:22,109 - DEBUG - Response for deleting network () 2024-10-28 16:50:22,386 - DEBUG - No XMPP flaps were noticed during the test 2024-10-28 16:50:22,386 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:32] 2024-10-28 16:50:22,386 - INFO - -------------------------------------------------------------------------------- 2024-10-28 16:50:23,228 - INFO - Deleted project: ctest-TestRoutersBasic-00255725, ID : 0188a694-7803-4ab1-a84e-43dfb7543fb8