Deploy the undercloud manually by following this link and then ssh into undercloud.

Install openstack-tempest rpm on undercloud

$ sudo yum -y install openstack-tempest

Source stackrc on undercloud

$ source stackrc

Append Identity API version in $OS_AUTH_URL

$OS_AUTH_URL defined in stackrc does not contain the Identity API version, what will lead to a failure while generating tempest.conf using python-tempestconf. In order to fix the above issue, we need to append the API version to the OS_AUTH_URL environment variable and export it.

$ export OS_AUTH_URL="$OS_AUTH_URL/v$OS_IDENTITY_API_VERSION"

Create the Tempest workspace

$ tempest init <tempest_workspace>

Generate Tempest configuration using python-tempestconf

$ cd <path to the tempest_workspace>

$ discover-tempest-config --create --out etc/tempest.conf

The above command will generate tempest.conf in /etc/ directory.

Now we are all set to run Tempest tests. Run the following command to run Tempest tests