Ask Your Question
2

Where do mistral custom actions need to be installed?

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

mattybrennan gravatar image

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

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
1

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 64 times

Last updated: Apr 17 '17