From c6c3dacd588dbd89b7614508bb5fc67198a0912a Mon Sep 17 00:00:00 2001 From: Ifat Afek Date: Sun, 23 Jul 2017 08:57:14 +0000 Subject: [PATCH] Spec for Mistral integration Change-Id: Iae83cc990b771f733533310f931b5a4d370e103c Implements: blueprint integration-with-mistral --- .../approved/integration-with-mistral.rst | 121 ++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 specs/pike/approved/integration-with-mistral.rst diff --git a/specs/pike/approved/integration-with-mistral.rst b/specs/pike/approved/integration-with-mistral.rst new file mode 100644 index 0000000..b13621d --- /dev/null +++ b/specs/pike/approved/integration-with-mistral.rst @@ -0,0 +1,121 @@ +.. +This work is licensed under a Creative Commons Attribution 3.0 Unported +License. + +http://creativecommons.org/licenses/by/3.0/legalcode + +======================== +Integration with Mistral +======================== + +launchpad blueprint: +https://blueprints.launchpad.net/vitrage/+spec/integration-with-mistral + +Support executing Mistral workflows from Vitrage. + +Problem description +=================== + +Vitrage provides insights about the state of the cloud, but is not meant to be +a policy engine. In order to take corrective actions, for example, we need to +integrate an external engine like Mistral - the OpenStack workflow engine. + +Proposed change +=============== + +It will be possible to define in Vitrage templates that under certain +conditions, a Mistral workflow should be executed. This gives the user the +power to decide, for example, that different corrective actions should be taken +based on the root cause of the problem (as identified by Vitrage). + +Note that this blueprint is based on the external-actions blueprint, that +handles the more general case. + +Examples +-------- + +.. code-block:: yaml + + - scenario: + condition: host_down_alarm_on_host + actions: + - action: + action_type: execute_mistral + properties: + workflow: wf1 + + +Alternatives +------------ +Discussed in the external-actions blueprint. + +Data model impact +----------------- + +None + +REST API impact +--------------- + +None + +Versioning impact +----------------- + +None + +Other end user impact +--------------------- + +None + +Deployer impact +--------------- + +None + +Developer impact +---------------- + +None + +Horizon impact +-------------- + +None + + +Implementation +============== + +Assignee(s) +----------- + +Primary assignee: +ifat-afek + +Work Items +---------- + +* Implement the Mistral notifier +* Update the documentation + +Dependencies +============ + +None + +Testing +======= + +The implementation will be covered by unit tests and tempest tests. + +Documentation Impact +==================== + +The new action should be documented + +References +========== + +None