1
0
mirror of https://github.com/gryf/mistral-evacuate.git synced 2026-02-08 09:25:46 +01:00
Files
mistral-evacuate/README.rst
Dawid Deja a99bb75e1b Update README
Signed-off-by: Dawid Deja <dawid.deja@intel.com>
2016-02-02 15:19:17 +01:00

59 lines
1.2 KiB
ReStructuredText

Mistral evacuate plugin
=======================
This is a PoC for providing automatic evacuation for VMs in OpenStack cloud
using Mistral.
Installation
------------
#. Copy ``filter_vm_action.py`` and ``evacuate_vm_action``
to the place reachable by python interpreter -
see ``PYTHONPATH`` or ``sys.path`` for reference.
#. Append lines
.. code:: ini
[entry_points]
mistral.actions =
custom.filter_vm = filter_vm_action:FilterVmAction
custom.evacuate = mistral.actions.evacuate_vm_action:EvacuateVmAction
to ``setup.cfg`` file under Mistral repository
#. Run db-sync tool via either
.. code:: shell-session
$ tools/sync_db.sh --config-file <path-to-config>
or
.. code:: shell-session
$ mistral-db-manage --config-file <path-to-config> populate
#. Register Mistral workflow:
.. code:: shell-session
$ mistral workflow-create host-evacuate.yaml
#. Create JSON file with content similar to:
.. code:: json
{
"search_opts": {
"host": "compute-hostanme"
}
}
#. Trigger the action via:
.. code:: shell-session
$ mistral execution-create host-evacuate input.json
where ``input.json`` is a file created in previous step.