{"id":20044945,"url":"https://github.com/gryf/mistral-evacuate","last_synced_at":"2025-05-05T08:33:00.802Z","repository":{"id":94547694,"uuid":"46284381","full_name":"gryf/mistral-evacuate","owner":"gryf","description":"PoC for providing automatic evacuation for VMs in OpenStack cloud using Mistral","archived":true,"fork":false,"pushed_at":"2016-03-21T09:28:49.000Z","size":34,"stargazers_count":16,"open_issues_count":0,"forks_count":6,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-17T04:44:56.293Z","etag":null,"topics":["automatic","evacuation","ha","instance-ha","openstack","vm"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gryf.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2015-11-16T15:42:38.000Z","updated_at":"2024-01-08T20:55:35.000Z","dependencies_parsed_at":"2023-04-10T12:57:03.538Z","dependency_job_id":null,"html_url":"https://github.com/gryf/mistral-evacuate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gryf%2Fmistral-evacuate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gryf%2Fmistral-evacuate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gryf%2Fmistral-evacuate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gryf%2Fmistral-evacuate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gryf","download_url":"https://codeload.github.com/gryf/mistral-evacuate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252466992,"owners_count":21752478,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automatic","evacuation","ha","instance-ha","openstack","vm"],"created_at":"2024-11-13T11:03:00.148Z","updated_at":"2025-05-05T08:33:00.465Z","avatar_url":"https://github.com/gryf.png","language":"Python","funding_links":[],"categories":["Tools"],"sub_categories":[],"readme":"Mistral evacuate plugin\n=======================\n\nThis is a PoC for providing automatic evacuation for VMs in OpenStack cloud\nusing Mistral. It uses flavor extra specs and VM metadata to tell if given\ninstance should be evacuated. Extra spec is 'evacuation:evacuate' and VM\nmetadata is 'evacuate'. If one of them is set to True, instance will be\nevacuated.\n\nInstallation\n------------\n\n#. Copy ``filter_vm_action.py`` and ``evacuate_vm_action.py``\n   to the place reachable by python interpreter -\n   see ``PYTHONPATH`` or ``sys.path`` for reference.\n#. Append lines\n\n   .. code:: ini\n\n      [entry_points]\n      mistral.actions =\n          …\n          custom.filter_vm = filter_vm_action:FilterVmAction\n          custom.evacuate = evacuate_vm_action:EvacuateVmAction\n\n   to ``setup.cfg`` file under Mistral repository\n#. Run db-sync tool via either\n\n   .. code:: shell-session\n\n      $ tools/sync_db.sh --config-file \u003cpath-to-config\u003e\n\n   or\n\n   .. code:: shell-session\n\n      $ mistral-db-manage --config-file \u003cpath-to-config\u003e populate\n\n#. Register Mistral workflow:\n\n   .. code:: shell-session\n\n      $ mistral workflow-create host-evacuate.yaml\n\n#. Create JSON file with content similar to:\n\n   .. code:: json\n\n     {\n         \"search_opts\": {\n             \"host\": \"compute-hostanme\"\n         },\n         \"on_shared_storage\": false\n     }\n\n#. Trigger the action via:\n\n   .. code:: shell-session\n\n      $ mistral execution-create host-evacuate input.json\n\n   where ``input.json`` is a file created in previous step.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgryf%2Fmistral-evacuate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgryf%2Fmistral-evacuate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgryf%2Fmistral-evacuate/lists"}