Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 3. Installing the OpenStack Integration Test Suite
This section describes how to install the OpenStack Integration Test Suite using either the director or a manual installation.
3.1. Using the Director Link kopierenLink in die Zwischenablage kopiert!
Edit /home/stack/undercloud.conf
. By default, enable_tempest
is set to false
. Change this to true
:
enable_tempest = true
enable_tempest = true
You are now ready to install the tempest packages and plug-ins, described in Section 3.3, “Installing the OpenStack Integration Test Suite Packages”.
3.2. Preparing a Manual Installation Link kopierenLink in die Zwischenablage kopiert!
To run the OpenStack Integration Test Suite, you need to first install the necessary packages and create a configuration file that will tell the Integration Test Suite where to find the various OpenStack services and other testing behaviour switches.
On the controller node, as a root user, create a virtual machine named tempest
. This machine must run Red Hat Enterprise Linux 7.3 or greater; it also needs to be able to reach the cloud, but it does not have to be part of the cloud. For more information, see Creating Guests with Virt-Manager.
In addition, before installing the OpenStack Integration Test Suite, the following networks are required within your Red Hat OpenStack Platform environment:
- An external network that can provide a floating IP address.
- A private network.
These networks must be connected through a router.
Create the private network:
openstack network create _<network_name>_ --share openstack subnet create _<subnet_name>_ --subnet-range _<address/prefix>_ openstack router create _<router_name>_ openstack router add subnet _<router_name>_ _<subnet_name>_ --network _<network_name>_
$ openstack network create _<network_name>_ --share $ openstack subnet create _<subnet_name>_ --subnet-range _<address/prefix>_ $ openstack router create _<router_name>_ $ openstack router add subnet _<router_name>_ _<subnet_name>_ --network _<network_name>_
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Create the public network:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Create the required keystone roles:
openstack role create swiftoperator openstack role create heat_stack_owner
$ openstack role create swiftoperator $ openstack role create heat_stack_owner
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
You are now ready to install and configure the OpenStack Integration Test Suite within the tempest virtual machine. For more information, see Section 3.3, “Installing the OpenStack Integration Test Suite Packages”.
3.3. Installing the OpenStack Integration Test Suite Packages Link kopierenLink in die Zwischenablage kopiert!
Install the packages related to the OpenStack Integration Test Suite:
sudo yum install openstack-tempest
$ sudo yum install openstack-tempest
Copy to Clipboard Copied! Toggle word wrap Toggle overflow However, this command will not install any tempest plug-ins. These are installed manually in the following steps, depending on your OpenStack installation:
Install the appropriate tempest plug-in for each component you have, separated by spaces, in the following format:
sudo yum install <component1> <component2> <component3>
$ sudo yum install <component1> <component2> <component3>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow You can list multiple components in the same command.
Or:
sudo python /usr/share/openstack-tempest-13.0.0/tools/install_test_packages.py
$ sudo python /usr/share/openstack-tempest-13.0.0/tools/install_test_packages.py
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Review the list of installed plugins:
tempest list-plugins
$ tempest list-plugins
Copy to Clipboard Copied! Toggle word wrap Toggle overflow See Section 3.3.1, “List of Tempest Plug-in Packages” for a list of available tempest plug-ins for each OpenStack component.
3.3.1. List of Tempest Plug-in Packages Link kopierenLink in die Zwischenablage kopiert!
Component | Package Name |
---|---|
aodh | python-aodh-tests |
ceilometer | python-ceilometer-tests |
cinder | python-cinder-tests |
designate | python-designate-tests-tempest |
gnocchi | python-gnocchi-tests Note To ensure that the Gnocchi component installs correctly, install python-gnocchi-tests. |
heat | python-heat-tests |
horizon | python-horizon-tests-tempest |
ironic | python-ironic-tests |
keystone | python-keystone-tests |
manila | python-manila-tests |
mistral | python-mistral-tests |
neutron | python-neutron-tests |
neutron-fwaas | python-neutron-fwaas-tests |
neutron-lbaas | python-neutron-lbaas-tests |
neutron-vpnaas | python-neutron-vpnaas-tests |
sahara | python-sahara-tests-tempest |
zaqar | python-zaqar-tests |
nova, swift, and glance do not have individual test plugins; their tests reside within the tempest package.