update notifier to V3

Update nova-notifier,mistral-notifier to Syntax 3 to replace Syntax 2
Change-Id: I74e51ca8ea8913a22cea3b0d6bec2afc80002c98
This commit is contained in:
Q.hongtao 2020-08-20 10:58:28 +08:00
parent c2349bb18d
commit b7d3821c7d
2 changed files with 14 additions and 19 deletions

View File

@ -15,7 +15,7 @@ To enable Mistral workflow execution, add mistral to the list of notifiers in
.. code::
[DEFAULT]
notifiers = nova,mistral
notifiers = mistral
Add execute_mistral action
@ -26,11 +26,10 @@ To execute a Mistral workflow under a certain condition, add an
.. code:: yaml
- scenario:
condition: host_down_alarm_on_host
scenarios:
- condition: host_down_alarm [on] host
actions:
action:
action_type: execute_mistral
properties:
workflow: evacuate_host # mandatory. The name of the workflow to be executed
hostname: host1 # optional. A list of properties to be passed to the workflow
- execute_mistral:
workflow: evacuate_host # mandatory. The name of the workflow to be executed
input:
host_name: host1 # optional. A list of properties to be passed to the workflow

View File

@ -23,23 +23,19 @@ In order to support this use case, the user should perform the following:
.. code:: yaml
[DEFAULT]
notifiers = nova
[DEFAULT]
notifiers = nova
2. Determine, in the Vitrage templates, what condition(s) indicates that the
host is down. For example:
.. code:: yaml
scenarios:
- scenario:
condition: host_down_alarm_on_host
actions:
action:
action_type : mark_down
action_target:
target: host
scenarios:
- condition: host_down_alarm [on] host
actions:
- mark_down:
target: host
For more information about the mark-down action, see the Vitrage templates
documentation: templates_