Where do mistral custom actions need to be installed?

asked 2017-04-14 15:44:59 -0600

mattybrennan gravatar image

updated 2017-04-14 15:46:54 -0600

The documentation available https://docs.openstack.org/developer/mistral/developer/creating_custom_action.html (here) doesn't explain where to put the newly-created action file. Does it have to be nested somewhere under the main mistral installation?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-04-17 04:28:37 -0600

d0ugal gravatar image

Mistral actions should be installed as Python packages. This means that generally you want to create a setup.py file and then install it with "pip install ." in the same directory.

Installing actions is a three step process: 1. Install the Python package 2. run mistral-db-manage populate so that Mistral finds the new action and registers in in the database. 3. Restart Mistral, so that it can find the new Python packages.

For a small and simple example, see my custom actions for calling Ansible. https://github.com/d0ugal/mistral-ans...

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-04-14 15:44:59 -0600

Seen: 113 times

Last updated: Apr 17 '17