Juan Antonio Osorio Robles ab6a95fe96 Move developer documentation to top level
It's harder to find as part of the install guide, and shouldn't be there
anyway.

Related-Bug: #1804642
Change-Id: Ia677ced783da6383211fb0bb7a28ec5fb2f538fe
2018-11-29 16:15:36 +02:00

43 lines
1.3 KiB
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Debugging actions
-----------------
Lets assume the action is written, added to setup.cfg but
is still not being invoked as expected in the CLI.
Firstly, check if the action was added by
``sudo mistral-db-manage populate``. Run
::
mistral action-list -f value -c Name | grep -e '^tripleo.undercloud'
If you dont see your actions check output of
``sudo mistral-db-manage populate`` as
::
sudo mistral-db-manage populate 2>&1| grep ERROR | less
The following output may indicate issues in code. Simply fix code.
::
2018-01-01:00:59.730 7218 ERROR stevedore.extension [-] Could not load 'tripleo.undercloud.get_free_space': unexpected indent (undercloud.py, line 40): File "/usr/lib/python2.7/site-packages/tripleo_common/actions/undercloud.py", line 40
Execute a single action or execute a workflow from an existing
workbook to make sure it works as expected, for example:
Run a single Mistral action.
::
mistral run-action tripleo.undercloud.get_free_space '{"path": "/etc/"}'
mistral run-action tripleo.undercloud.create_file_system_backup '{"sources_path": "/tmp/asdf.txt,/tmp/asdf", "destination_path": "/tmp/"}'
Run a single Mistral workflow.
::
mistral execution-create tripleo.undercloud_backup.v1.filesystem_backup '{"sources_path": "/tmp/asdf.txt,/tmp/asdf", "destination_path": "/tmp/"}'