Jump to: navigation, search

Vitrage/Blueprints/deduced-state

< Vitrage‎ | Blueprints
Revision as of 12:07, 12 October 2015 by Liat Har-Tal (talk | contribs) (Flow Example)

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-alarm.png