Automatic Tempest Configuration Generator
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Go to file
Zuul ab4e518bab Merge "Replace tenant by project, part 2" 5 years ago
config_tempest Merge "Replace tenant by project, part 2" 5 years ago
doc Switch to openstackdocstheme (doc and release notes) 5 years ago
etc Use healthcheck api to determine swift service 5 years ago
playbooks Fix operator_role value for account-generator 5 years ago
releasenotes Merge "Replace tenant by project, part 2" 5 years ago
roles Use healthcheck api to determine swift service 5 years ago
.coveragerc Initial Cookiecutter Commit. 7 years ago
.gitignore Switch to use stestr for unit tests 6 years ago
.gitreview Update .gitreview: point to review.openstack.org 6 years ago
.mailmap Initial Cookiecutter Commit. 7 years ago
.stestr.conf Switch to use stestr for unit tests 6 years ago
.zuul.yaml More compatibility with Python 3 5 years ago
HACKING.rst fix url 5 years ago
LICENSE Initial Cookiecutter Commit. 7 years ago
README.rst Fix broken link in readme 5 years ago
requirements.txt More compatibility with Python 3 5 years ago
setup.cfg Trivial: Update pypi url to new url 5 years ago
setup.py Refactored python-tempestconf to work with devstack 6 years ago
test-requirements.txt Switch to openstackdocstheme (doc and release notes) 5 years ago
tox.ini More compatibility with Python 3 5 years ago

README.rst

python-tempestconf

Overview

python-tempestconf will automatically generate the tempest configuration based on your cloud.

Usage

Git

  1. Clone and change to the directory:
$ git clone https://git.openstack.org/openstack/python-tempestconf
$ cd python-tempestconf
  1. Create virtual environment using virtualenv:
$ virtualenv .venv
$ source .venv/bin/activate
  1. Source the newly created virtual environment and install requirements:
(.venv) $ pip install -r requirements.txt
(.venv) $ pip install -r test-requirements.txt
  1. Source cloud credentials, for example:
(py27) $ source cloudrc
  1. Run python-tempestconf to generate tempest configuration file:
(py27) $ python config_tempest/config_tempest.py --debug identity.uri $OS_AUTH_URL \
            identity.admin_password  $OS_PASSWORD --create

After this, ./etc/tempest.conf is generated.

RPM Installation (RDO)

  1. python-tempestconf is installed together with openstack-tempest, as a new dependency (starting from the Ocata release)
# yum install openstack-tempest
  1. Source cloud credentials, initialize tempest and run the discovery tool:
$ source cloudrc
$ tempest init testingdir
$ cd testingdir
$ discover-tempest-config --debug identity.uri $OS_AUTH_URL \
      identity.admin_password  $OS_PASSWORD --create

Note

In Ocata release new features were presented. discover-tempest-config is the new name of the old config_tempest.py script and it accepts the same parameters. More about new features can be found here

os-client-config support

python-tempestconf supports os-client-config so instead of sourcing openstackrc files you can use clouds.yml files. Location where these files should be stored and syntax which is used to specify cloud.yaml files can be found here

In case of git usage:

(py27) $ python config_tempest/config_tempest.py --debug --create --os-cloud <name of cloud>

In case of RPM:

$ tempest init testingdir
$ cd testingdir
$ discover-tempest-config --debug --create --os-cloud <name of cloud>