7bd80dbdf2
Right now, if you attempt to update a node's details using the baremetal import command and the node has both a mac and a pm_addr specified, it will fail because _get_node_id finds both the mac and pm_addr match and adds the id to a list twice. Since it's perfectly fine for a node to match both of those fields, we shouldn't error in that case. Using a set instead of a list for the data structure makes this work as expected. Change-Id: I4b9fb1531c59a090b67f19d673c21c22b4f9523b Closes-Bug: 1586523 |
||
---|---|---|
contrib | ||
doc/source | ||
heat_docker_agent | ||
image-yaml | ||
scripts | ||
tripleo_common | ||
undercloud_heat_plugins | ||
workbooks | ||
.coveragerc | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
.testr.conf | ||
CONTRIBUTING.rst | ||
HACKING.rst | ||
LICENSE | ||
MANIFEST.in | ||
README.rst | ||
babel.cfg | ||
openstack-common.conf | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
README.rst
tripleo-common
A common library for TripleO workflows.
- Free software: Apache license
- Documentation: http://docs.openstack.org/developer/tripleo-common
- Source: http://git.openstack.org/cgit/openstack/tripleo-common
- Bugs: http://bugs.launchpad.net/tripleo-common
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 below to accomplish these tasks.
sudo rm -Rf /usr/lib/python2.7/site-packages/tripleo_common* sudo python setup.py install 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