Automatic Tempest Configuration Generator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Chandan Kumar 6220c36290 1.1.0 5 years ago
config_tempest 1.1.0 5 years ago
doc/source Merge "Start using reno for release notes" 5 years ago
etc Remove old compatibility stuff for sahara 5 years ago
releasenotes Add os-client-config support 5 years ago
.coveragerc Initial Cookiecutter Commit. 5 years ago
.gitignore Add os-client-config support 5 years ago
.gitreview Add gerrithub to .gitreview 5 years ago
.mailmap Initial Cookiecutter Commit. 5 years ago
.testr.conf Initial Cookiecutter Commit. 5 years ago
HACKING.rst Refactored python-tempestconf to work with devstack 5 years ago
LICENSE Initial Cookiecutter Commit. 5 years ago
README.rst Add os-client-config support 5 years ago
requirements.txt Add os-client-config support 5 years ago
setup.cfg Fixed discover-config-tempest to read default-overrides.conf from 5 years ago
setup.py Refactored python-tempestconf to work with devstack 5 years ago
test-requirements.txt Refactored python-tempestconf to work with devstack 5 years ago
tox.ini Add unit tests 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://github.com/redhat-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 -y 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>