Jump to: navigation, search

Difference between revisions of "Vitrage/Blueprints/deduced-state"

(Flow Example)
(Flow Example)
Line 13: Line 13:
 
==Flow Example==
 
==Flow Example==
 
When alarm X happens on resource A, update resource B state.
 
When alarm X happens on resource A, update resource B state.
[[File:deduce-alarm.png|1000px|thumbnail|left]]
+
[[File:deduce-state.png|1000px|thumbnail|left]]

Revision as of 12:13, 12 October 2015

Overview

As discussed in the Template Condition Evaluation, template conditions are tested to see if they evaluate to true. When this happens, we need to perform the actions specified in the template. In this blueprint we discuss the Deduce Alarm template, which enables to set the state of a resource after the condition is met. For example: the state of a resource should be changed as a result of a new alarm raised on that resource.

Template Details

The Deduce Alarm template describes an if-then flow. Specifically, if alarm X happens on resource A then then change resource A state. The if portion includes a condition on the cloud state, which also specifies the relation between the different resources being considered. The then portion describes the new state and the resource which is affected.

When the condition evaluates to false, the state reverts back the value it would be without this template. The state will be managed through the relevant OpenStack project

Flow Example

When alarm X happens on resource A, update resource B state.

Deduce-state.png