mirror of
https://github.com/gryf/mistral-evacuate.git
synced 2026-08-21 02:21:53 +02:00
6035092c133b0bb4ee813862a3e2bd6fe44edc1d
This is a PoC for providing automatic evacuation for VMs in OpenStack cloud using Mistral.
Installation
Copy filter_vm.py to the place reachable by python interpreter - see PYTHONPATH or sys.path for reference.
Append line
[entry_points] mistral.actions = … custom.filter_vms = evac_poc:FilterAndEvacuateto setup.cfg file under Mistral repository
Reinstall Mistral if it was installed in system (not in virtualenv).
Run db-sync tool via either
$ tools/sync_db.sh --config-file <path-to-config>or
$ mistral-db-manage --config-file <path-to-config> populateRegister Mistral workflow:
$ mistral workflow-create evacuate-workflow.yamlCreate JSON file with content similar to:
{ "search_opts": { "host": "compute-hostanme" } }Trigger the action via: TBD
Description
PoC for providing automatic evacuation for VMs in OpenStack cloud using Mistral
Readme
221 KiB
Languages
Python
100%