2024-08-21 18:56:23,511 - INFO - Domain Default found not creating 2024-08-21 18:56:23,659 - INFO - Project ctest-TestRoutersBasic-60832451 not found, creating it 2024-08-21 18:56:24,099 - INFO - Created Project:ctest-TestRoutersBasic-60832451, ID : c97cc758-f1f6-467a-9df0-fc812b5a1e81 2024-08-21 18:56:25,722 - INFO - ================================================================================ 2024-08-21 18:56:25,722 - INFO - STARTING TEST : test_basic_snat_behavior_without_external_connectivity 2024-08-21 18:56:25,722 - 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-08-21 18:56:25,978 - DEBUG - Nothing to compare xmpp stats {'10.0.0.55': {'10.20.0.5': '0'}} with 2024-08-21 18:56:25,978 - INFO - Initial checks done. Running the testcase now 2024-08-21 18:56:25,978 - INFO - 2024-08-21 18:56:26,699 - INFO - Default SG to be edited for allow all on project: ctest-TestRoutersBasic-60832451 2024-08-21 18:56:26,800 - INFO - Adding rules to the default security group in Project ctest-TestRoutersBasic-60832451 2024-08-21 18:56:27,115 - DEBUG - Reading firewall policy {'fq_name': ['default-domain', 'ctest-TestRoutersBasic-60832451', 'default']} 2024-08-21 18:56:27,440 - DEBUG - Response for create_network : {'network': {'id': 'a4fd0261-a35a-4c3d-b158-aa41dcf97105', 'name': 'ctest-vn-12845621', 'tenant_id': 'c97cc758f1f6467a9df0fc812b5a1e81', 'project_id': 'c97cc758f1f6467a9df0fc812b5a1e81', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-60832451', 'ctest-vn-12845621'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 18:56:27,654 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e52f4e17-d4bd-4b7e-8b18-81c5682fc2ce', 'name': '', 'tenant_id': 'c97cc758f1f6467a9df0fc812b5a1e81', 'network_id': 'a4fd0261-a35a-4c3d-b158-aa41dcf97105', 'ip_version': 4, 'cidr': '83.221.239.128/26', 'allocation_pools': [{'start': '83.221.239.130', 'end': '83.221.239.190'}], 'gateway_ip': '83.221.239.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '83.221.239.130', 'tags': [], 'project_id': 'c97cc758f1f6467a9df0fc812b5a1e81'}} 2024-08-21 18:56:27,673 - INFO - Created VN ctest-vn-12845621 2024-08-21 18:56:27,724 - DEBUG - VN ctest-vn-12845621 UUID is a4fd0261-a35a-4c3d-b158-aa41dcf97105 2024-08-21 18:56:28,038 - DEBUG - Response for create_network : {'network': {'id': '3676790a-5faf-40e1-b300-84a7e03325e8', 'name': 'ctest-ext_vn-64399746', 'tenant_id': 'c97cc758f1f6467a9df0fc812b5a1e81', 'project_id': 'c97cc758f1f6467a9df0fc812b5a1e81', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': True, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestRoutersBasic-60832451', 'ctest-ext_vn-64399746'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 18:56:28,325 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a2469ec7-d336-4a15-8f44-d331045a2d82', 'name': '', 'tenant_id': 'c97cc758f1f6467a9df0fc812b5a1e81', 'network_id': '3676790a-5faf-40e1-b300-84a7e03325e8', 'ip_version': 4, 'cidr': '192.62.101.192/26', 'allocation_pools': [{'start': '192.62.101.194', 'end': '192.62.101.254'}], 'gateway_ip': '192.62.101.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.62.101.194', 'tags': [], 'project_id': 'c97cc758f1f6467a9df0fc812b5a1e81'}} 2024-08-21 18:56:28,345 - INFO - Created VN ctest-ext_vn-64399746 2024-08-21 18:56:28,395 - DEBUG - VN ctest-ext_vn-64399746 UUID is 3676790a-5faf-40e1-b300-84a7e03325e8 2024-08-21 18:56:28,571 - DEBUG - Services list from nova: [, , ] 2024-08-21 18:56:29,614 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1697-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1697-1) 2024-08-21 18:56:30,881 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1697-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1697-1) 2024-08-21 18:56:30,963 - INFO - Setting gateway for router 745a934d-0fde-41be-a3c1-bd732fa59cd6 to network 3676790a-5faf-40e1-b300-84a7e03325e8 2024-08-21 18:56:31,016 - INFO - Adding interface with subnet_id e52f4e17-d4bd-4b7e-8b18-81c5682fc2ce, port_id None to router 745a934d-0fde-41be-a3c1-bd732fa59cd6 2024-08-21 18:56:31,418 - INFO - Waiting for VM ctest-TestRoutersBasic-60832451-05184948 to be up.. 2024-08-21 18:56:31,521 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-21 18:56:36,601 - DEBUG - VM is in ACTIVE state now 2024-08-21 18:56:36,601 - INFO - VM name : ctest-TestRoutersBasic-60832451-05184948 2024-08-21 18:56:36,673 - DEBUG - VM ctest-TestRoutersBasic-60832451-05184948 ID is be8527a0-6d34-43dc-b8d3-a3c1bdac3f58 2024-08-21 18:56:36,692 - DEBUG - VM ctest-TestRoutersBasic-60832451-05184948 launched on Node cn-jenkins-deploy-platform-ansible-os-1697-1 2024-08-21 18:56:36,764 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-machine/be8527a0-6d34-43dc-b8d3-a3c1bdac3f58 2024-08-21 18:56:37,060 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-machine/be8527a0-6d34-43dc-b8d3-a3c1bdac3f58 2024-08-21 18:56:37,094 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-machine-interface/2ea5589b-7a0f-4def-aff1-228152e7738c 2024-08-21 18:56:40,339 - 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 1012ms') 2024-08-21 18:56:40,339 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-60832451-05184948 failed! 2024-08-21 18:56:40,391 - DEBUG - Gateway for vn default-domain:ctest-TestRoutersBasic-60832451:ctest-vn-12845621 is 83.221.239.129 and allocation pool is NOT set 2024-08-21 18:56:42,456 - 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.71 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.623 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.623/1.664/2.705/1.041 ms') 2024-08-21 18:56:42,456 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestRoutersBasic-60832451-05184948 passed 2024-08-21 18:56:42,608 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 18:56:42,608 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-60832451-05184948, IP 83.221.239.131, Port 22 2024-08-21 18:56:42,767 - DEBUG - VM ctest-TestRoutersBasic-60832451-05184948 is ready for SSH connections 2024-08-21 18:56:42,767 - INFO - Waiting for VM ctest-TestRoutersBasic-60832451-69780752 to be up.. 2024-08-21 18:56:42,851 - DEBUG - VM is in ACTIVE state now 2024-08-21 18:56:42,851 - INFO - VM name : ctest-TestRoutersBasic-60832451-69780752 2024-08-21 18:56:42,925 - DEBUG - VM ctest-TestRoutersBasic-60832451-69780752 ID is 9e61262c-7d2d-4090-8387-f778084df26a 2024-08-21 18:56:42,925 - DEBUG - VM ctest-TestRoutersBasic-60832451-69780752 launched on Node cn-jenkins-deploy-platform-ansible-os-1697-1 2024-08-21 18:56:42,998 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-machine/9e61262c-7d2d-4090-8387-f778084df26a 2024-08-21 18:56:43,006 - DEBUG - Requesting: http://10.0.0.55:8082/virtual-machine-interface/9c9ea247-c1d1-484b-813b-a17e77647c36 2024-08-21 18:56:44,234 - 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.57 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.347 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.347/1.459/2.571/1.112 ms') 2024-08-21 18:56:44,234 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestRoutersBasic-60832451-69780752 passed 2024-08-21 18:56:44,388 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 18:56:44,388 - DEBUG - Waiting to SSH to VM ctest-TestRoutersBasic-60832451-69780752, IP 192.62.101.195, Port 22 2024-08-21 18:56:44,549 - DEBUG - VM ctest-TestRoutersBasic-60832451-69780752 is ready for SSH connections 2024-08-21 18:56:44,549 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 18:56:44,550 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 192.62.101.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.55, gateway password: c0ntrail123 2024-08-21 18:56:44,550 - DEBUG - ping -s 56 -c 3 -W 1 192.62.101.195 2024-08-21 18:56:48,528 - DEBUG - PING 192.62.101.195 (192.62.101.195): 56 data bytes 64 bytes from 192.62.101.195: seq=0 ttl=62 time=7.100 ms 64 bytes from 192.62.101.195: seq=1 ttl=62 time=0.700 ms 64 bytes from 192.62.101.195: seq=2 ttl=62 time=1.023 ms --- 192.62.101.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.700/2.941/7.100 ms 2024-08-21 18:56:48,528 - INFO - Ping to IP 192.62.101.195 from VM ctest-TestRoutersBasic-60832451-05184948 passed 2024-08-21 18:56:48,528 - INFO - Deleting interface with subnet_id e52f4e17-d4bd-4b7e-8b18-81c5682fc2ce, port_id None from router 745a934d-0fde-41be-a3c1-bd732fa59cd6 2024-08-21 18:56:48,748 - INFO - Deleting VM ctest-TestRoutersBasic-60832451-69780752 2024-08-21 18:56:48,813 - INFO - Deleting VM ctest-TestRoutersBasic-60832451-05184948 2024-08-21 18:56:48,880 - INFO - Deleting VN ctest-ext_vn-64399746 2024-08-21 18:56:48,959 - DEBUG - VN 3676790a-5faf-40e1-b300-84a7e03325e8 still in use: Unable to complete operation on network 3676790a-5faf-40e1-b300-84a7e03325e8. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-300242af-b42a-4b26-a6a6-a5440b2b446a'] 2024-08-21 18:56:48,959 - WARNING - Deleting VN ctest-ext_vn-64399746 failed..Will retry 2024-08-21 18:56:51,067 - DEBUG - Response for deleting network () 2024-08-21 18:56:51,067 - INFO - Deleting VN ctest-vn-12845621 2024-08-21 18:56:51,176 - DEBUG - Response for deleting network () 2024-08-21 18:56:51,437 - DEBUG - No XMPP flaps were noticed during the test 2024-08-21 18:56:51,438 - INFO - END TEST : test_basic_snat_behavior_without_external_connectivity : PASSED[0:00:26] 2024-08-21 18:56:51,438 - INFO - -------------------------------------------------------------------------------- 2024-08-21 18:56:52,109 - INFO - Deleted project: ctest-TestRoutersBasic-60832451, ID : c97cc758-f1f6-467a-9df0-fc812b5a1e81