1
0
mirror of https://github.com/gryf/mistral-evacuate.git synced 2026-02-07 08:45:48 +01:00
2015-11-16 16:08:10 +01:00
2015-11-16 16:08:10 +01:00
2015-11-16 16:08:10 +01:00
2015-11-16 16:08:10 +01:00

This is a PoC for providing automatic evacuation for VMs in OpenStack cloud using Mistral.

Installation

  1. Copy filter_vm_action.py to the place reachable by python interpreter - see PYTHONPATH or sys.path for reference.

  2. Append line

    [entry_points]
    mistral.actions =
        
        custom.filter_vm = filter_vm_action:FilterVmAction

    to setup.cfg file under Mistral repository

  3. Reinstall Mistral if it was installed in system (not in virtualenv).

  4. Run db-sync tool via either

    $ tools/sync_db.sh --config-file <path-to-config>

    or

    $ mistral-db-manage --config-file <path-to-config> populate
  5. Register Mistral workflow:

    $ mistral workflow-create host-evacuate.yaml
  6. Create JSON file with content similar to:

    {
        "search_opts": {
            "host": "compute-hostanme"
        }
    }
  7. Trigger the action via:

    $ mistral execution-create host-evacuate input.json

    where input.json is a file created in previous step.

Description
PoC for providing automatic evacuation for VMs in OpenStack cloud using Mistral
Readme 149 KiB
Languages
Python 100%