2024-11-08 06:34:58,394 - INFO - Domain Default found not creating 2024-11-08 06:34:58,565 - INFO - Project ctest-TestRoutersBasic-21014286 not found, creating it 2024-11-08 06:34:59,069 - INFO - Created Project:ctest-TestRoutersBasic-21014286, ID : 4766d0b4-48b2-4265-a3b0-7f7d6b253cee 2024-11-08 06:35:00,606 - INFO - ================================================================================ 2024-11-08 06:35:00,606 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-11-08 06:35:00,606 - 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-08 06:35:00,862 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.34': '0'}} with 2024-11-08 06:35:00,862 - INFO - Initial checks done. Running the testcase now 2024-11-08 06:35:00,862 - INFO - 2024-11-08 06:35:01,609 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-21014286 2024-11-08 06:35:01,708 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-21014286 2024-11-08 06:35:02,040 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-21014286', 'default']} 2024-11-08 06:35:02,356 - DEBUG - Response for create_network : {'network': {'id': '32c19305-1454-49ad-968c-e7042b200bf1', 'name': 'ctest-vn-27723591', 'tenant_id': '4766d0b448b24265a3b07f7d6b253cee', 'project_id': '4766d0b448b24265a3b07f7d6b253cee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-21014286', 'ctest-vn-27723591'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 06:35:02,541 - DEBUG - Response for create_subnet : {'subnet': {'id': '684cfa99-b94b-4440-a877-eb53bf48c538', 'name': '', 'tenant_id': '4766d0b448b24265a3b07f7d6b253cee', 'network_id': '32c19305-1454-49ad-968c-e7042b200bf1', 'ip_version': 4, 'cidr': '113.87.28.192/26', 'allocation_pools': [{'start': '113.87.28.194', 'end': '113.87.28.254'}], 'gateway_ip': '113.87.28.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.87.28.194', 'tags': [], 'project_id': '4766d0b448b24265a3b07f7d6b253cee'}} 2024-11-08 06:35:02,560 - INFO - Created VN ctest-vn-27723591 2024-11-08 06:35:02,616 - DEBUG - VN ctest-vn-27723591 UUID is 32c19305-1454-49ad-968c-e7042b200bf1 2024-11-08 06:35:02,984 - DEBUG - Response for create_network : {'network': {'id': 'dcc352a3-da6a-4859-ac50-bfe50b6783e2', 'name': 'ctest-ext_vn-26963002', 'tenant_id': '4766d0b448b24265a3b07f7d6b253cee', 'project_id': '4766d0b448b24265a3b07f7d6b253cee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-21014286', 'ctest-ext_vn-26963002'], 'port_security_enabled': True, 'description': ''}} 2024-11-08 06:35:03,156 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e90b96af-3273-469e-bdce-449d3060c7a2', 'name': '', 'tenant_id': '4766d0b448b24265a3b07f7d6b253cee', 'network_id': 'dcc352a3-da6a-4859-ac50-bfe50b6783e2', 'ip_version': 4, 'cidr': '141.145.181.0/26', 'allocation_pools': [{'start': '141.145.181.2', 'end': '141.145.181.62'}], 'gateway_ip': '141.145.181.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '141.145.181.2', 'tags': [], 'project_id': '4766d0b448b24265a3b07f7d6b253cee'}} 2024-11-08 06:35:03,175 - INFO - Created VN ctest-ext_vn-26963002 2024-11-08 06:35:03,236 - DEBUG - VN ctest-ext_vn-26963002 UUID is dcc352a3-da6a-4859-ac50-bfe50b6783e2 2024-11-08 06:35:03,437 - DEBUG - Services list from nova: [, , ] 2024-11-08 06:35:04,512 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2223-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2223-1) 2024-11-08 06:35:05,778 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2223-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2223-1) 2024-11-08 06:35:05,899 - INFO - Setting gateway for router 2f7c0389-a125-4bd5-8e44-4275a8961a30 to network dcc352a3-da6a-4859-ac50-bfe50b6783e2 2024-11-08 06:35:05,964 - INFO - Adding interface with subnet_id 684cfa99-b94b-4440-a877-eb53bf48c538, port_id None to router 2f7c0389-a125-4bd5-8e44-4275a8961a30 2024-11-08 06:35:06,477 - INFO - Waiting for VM ctest-TestRoutersBasic-21014286-45711519 to be up.. 2024-11-08 06:35:06,689 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-08 06:35:11,811 - DEBUG - VM is in ACTIVE state now 2024-11-08 06:35:11,811 - INFO - VM name : ctest-TestRoutersBasic-21014286-45711519 2024-11-08 06:35:11,987 - DEBUG - VM ctest-TestRoutersBasic-21014286-45711519 ID is c8015f31-03ca-43d9-829e-a09f7fb1f805 2024-11-08 06:35:12,026 - DEBUG - VM ctest-TestRoutersBasic-21014286-45711519 launched on Node cn-jenkins-deploy-platform-ansible-os-2223-1 2024-11-08 06:35:12,268 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/c8015f31-03ca-43d9-829e-a09f7fb1f805 2024-11-08 06:35:12,644 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/c8015f31-03ca-43d9-829e-a09f7fb1f805 2024-11-08 06:35:12,685 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/c5b182ac-0081-455e-91e9-82530d43cb31 2024-11-08 06:35:15,949 - 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 1003ms') 2024-11-08 06:35:15,949 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-21014286-45711519 failed! 2024-11-08 06:35:16,012 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-21014286:ctest-vn-27723591 is 113.87.28.193 and allocation pool is NOT set 2024-11-08 06:35:18,070 - 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=2.94 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.382 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.382/1.660/2.938/1.278 ms') 2024-11-08 06:35:18,071 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-21014286-45711519 passed 2024-11-08 06:35:18,240 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 06:35:18,240 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-21014286-45711519, IP 113.87.28.195, Port 22 2024-11-08 06:35:18,399 - DEBUG - VM ctest-TestRoutersBasic-21014286-45711519 is ready for SSH connections 2024-11-08 06:35:18,399 - INFO - Waiting for VM ctest-TestRoutersBasic-21014286-13837179 to be up.. 2024-11-08 06:35:18,491 - DEBUG - VM is in ACTIVE state now 2024-11-08 06:35:18,491 - INFO - VM name : ctest-TestRoutersBasic-21014286-13837179 2024-11-08 06:35:18,584 - DEBUG - VM ctest-TestRoutersBasic-21014286-13837179 ID is 336eec73-0a82-40ae-96c9-21aac0af0be5 2024-11-08 06:35:18,585 - DEBUG - VM ctest-TestRoutersBasic-21014286-13837179 launched on Node cn-jenkins-deploy-platform-ansible-os-2223-1 2024-11-08 06:35:18,669 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/336eec73-0a82-40ae-96c9-21aac0af0be5 2024-11-08 06:35:18,681 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/8754bdd1-b010-42aa-92e6-8d2cf1bb2f63 2024-11-08 06:35:19,937 - 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.81 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.724 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 = 0.724/1.765/2.807/1.041 ms') 2024-11-08 06:35:19,937 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-21014286-13837179 passed 2024-11-08 06:35:20,116 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 06:35:20,116 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-21014286-13837179, IP 141.145.181.3, Port 22 2024-11-08 06:35:20,272 - DEBUG - VM ctest-TestRoutersBasic-21014286-13837179 is ready for SSH connections 2024-11-08 06:35:20,272 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-08 06:35:20,272 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 141.145.181.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2024-11-08 06:35:20,272 - DEBUG - ping -s 56 -c 3 -W 1 141.145.181.3 2024-11-08 06:35:23,979 - DEBUG - PING 141.145.181.3 (141.145.181.3): 56 data bytes 64 bytes from 141.145.181.3: seq=0 ttl=62 time=12.245 ms 64 bytes from 141.145.181.3: seq=1 ttl=62 time=0.974 ms 64 bytes from 141.145.181.3: seq=2 ttl=62 time=0.917 ms --- 141.145.181.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.917/4.712/12.245 ms 2024-11-08 06:35:23,979 - INFO - Ping to IP 141.145.181.3 from VM ctest-TestRoutersBasic-21014286-45711519 passed 2024-11-08 06:35:23,979 - INFO - Deleting interface with subnet_id 684cfa99-b94b-4440-a877-eb53bf48c538, port_id None from router 2f7c0389-a125-4bd5-8e44-4275a8961a30 2024-11-08 06:35:24,218 - INFO - Deleting VM ctest-TestRoutersBasic-21014286-13837179 2024-11-08 06:35:24,311 - INFO - Deleting VM ctest-TestRoutersBasic-21014286-45711519 2024-11-08 06:35:24,387 - INFO - Deleting VN ctest-ext_vn-26963002 2024-11-08 06:35:24,460 - DEBUG - VN dcc352a3-da6a-4859-ac50-bfe50b6783e2 still in use: Unable to complete operation on network dcc352a3-da6a-4859-ac50-bfe50b6783e2. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-3fc1e61e-c092-4474-b5e4-583fb8778fa8'] 2024-11-08 06:35:24,460 - WARNING - Deleting VN ctest-ext_vn-26963002 failed..Will retry 2024-11-08 06:35:26,581 - DEBUG - Response for deleting network () 2024-11-08 06:35:26,581 - INFO - Deleting VN ctest-vn-27723591 2024-11-08 06:35:26,691 - DEBUG - Response for deleting network () 2024-11-08 06:35:26,946 - DEBUG - No XMPP flaps were noticed during the test 2024-11-08 06:35:26,946 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-11-08 06:35:26,946 - INFO - -------------------------------------------------------------------------------- 2024-11-08 06:35:27,696 - INFO - Deleted project: ctest-TestRoutersBasic-21014286, ID : 4766d0b4-48b2-4265-a3b0-7f7d6b253cee