A Python library for code common to TripleO CLI and TripleO UI.
Python Shell
Permalink
Failed to load latest commit information.
contrib Add missing container images Feb 22, 2017
doc/source Removes unnecessary utf-8 coding Dec 26, 2016
heat_docker_agent Merge "Add python-heat-agent-json-file to the heat docker agent" Jan 31, 2017
image-yaml Force DIB_PYTHON_VERSION to be 2 Feb 10, 2017
releasenotes Update reno for stable/ocata Feb 16, 2017
scripts Adds basic logging to the upgrade-non-controller.sh utility Jan 31, 2017
tools Add ReNo support Jan 12, 2017
tripleo_common Merge "Add support for network_data.yaml to process templates action" Feb 23, 2017
undercloud_heat_plugins Merge "Ignore changes to images in nova servers" Sep 27, 2016
workbooks Use the builtin Mistral engine command 'fail' when failing workflows Feb 15, 2017
.coveragerc Make coverage tests work Nov 30, 2015
.gitignore Add ReNo support Jan 12, 2017
.gitreview Added .gitreview Apr 9, 2015
.mailmap Initial Cookiecutter Commit. Apr 29, 2015
.testr.conf Initial Cookiecutter Commit. Apr 29, 2015
CONTRIBUTING.rst Initial Cookiecutter Commit. Apr 29, 2015
HACKING.rst Fix formatting in doc files Jul 22, 2016
LICENSE Initial Cookiecutter Commit. Apr 29, 2015
MANIFEST.in Initial Cookiecutter Commit. Apr 29, 2015
README.rst Pin docutils version Dec 12, 2016
babel.cfg Initial Cookiecutter Commit. Apr 29, 2015
requirements.txt Merge "Allow pushing docker images to host's ctl plane IP" Feb 22, 2017
setup.cfg Merge "Fix race in undercloud cell_v2 host discovery" Feb 1, 2017
setup.py Updated from global requirements Oct 23, 2015
sudoers Fix race in undercloud cell_v2 host discovery Feb 1, 2017
test-requirements.txt Updated from global requirements Feb 14, 2017
tox.ini Add ReNo support Jan 12, 2017

README.rst

Team and repository tags

tripleo-common

A common library for TripleO workflows.

Action Development

When developing new actions, you will checkout a copy of tripleo-common to an undercloud machine and add actions as needed. To test the actions they need to be installed and selected services need to be restarted. Use the following code to accomplish these tasks.

sudo rm -Rf /usr/lib/python2.7/site-packages/tripleo_common*
sudo python setup.py install
sudo cp /usr/share/tripleo-common/sudoers /etc/sudoers.d/tripleo-common
sudo systemctl restart openstack-mistral-executor
sudo systemctl restart openstack-mistral-engine
# this loads the actions via entrypoints
sudo mistral-db-manage populate
# make sure the new actions got loaded
mistral action-list | grep tripleo

Validations

Prerequisites

If you haven't installed the undercloud with the enable_validations set to true, you will have to prepare your undercloud to run the validations:

$ sudo pip install git+https://git.openstack.org/openstack/tripleo-validations
$ sudo yum install ansible
$ sudo useradd validations

Finally you need to generate an SSH keypair for the validation user and copy it to the overcloud's authorized_keys files:

$ mistral execution-create tripleo.validations.v1.copy_ssh_key

Running validations using the mistral workflow

Create a context.json file containing the arguments passed to the workflow:

{
  "validation_names": ["512e", "rabbitmq-limits"]
}

Run the tripleo.validations.v1.run_validations workflow with mistral client:

mistral execution-create tripleo.validations.v1.run_validations context.json

Running groups of validations

Create a context.json file containing the arguments passed to the workflow:

{
  "group_names": ["network", "post-deployment"]
}

Run the tripleo.validations.v1.run_groups workflow with mistral client:

mistral execution-create tripleo.validations.v1.run_groups context.json