heat.common.lifecycle_plugin_utils module

Utility for fetching and running plug point implementation classes.

heat.common.lifecycle_plugin_utils.do_post_ops(cnxt, stack, current_stack=None, action=None, is_stack_failure=False)[source]

Call available post-op methods sequentially.

In order determined with get_ordinal(), with parameters context, stack, current_stack, action, is_stack_failure.

heat.common.lifecycle_plugin_utils.do_pre_ops(cnxt, stack, current_stack=None, action=None)[source]

Call available pre-op methods sequentially.

In order determined with get_ordinal(), with parameters context, stack, current_stack, action.

On failure of any pre_op method, will call post-op methods corresponding to successful calls of pre-op methods.

heat.common.lifecycle_plugin_utils.get_plug_point_class_instances()[source]

Instances of classes that implements pre/post stack operation methods.

Get list of instances of classes that (may) implement pre and post stack operation methods.

The list of class instances is sorted using get_ordinal methods on the plug point classes. If class1.ordinal() < class2.ordinal(), then class1 will be before before class2 in the list.