Bases: object
Listen on an AMQP queue named for the engine.
Allows individual engines to communicate with each other for multi-engine support.
Bases: ServiceBase
Manages the running instances from creation to destruction.
All the methods in here are called from the RPC backend. This is all done dynamically so if a call is made via RPC that does not have a corresponding method here, an exception will be thrown when it attempts to call into this class. Arguments to these methods are also dynamically added and will be named as keyword arguments by the RPC caller.
Abandon a given stack.
cnxt – RPC context.
stack_identity – Name of the stack you want to abandon.
abandon – Delete Heat stack but not physical resources.
Validate the credentials in the RPC context.
Verify that the credentials in the RPC context are valid for the current cloud backend.
Return the number of stacks that match the given filters.
cnxt – RPC context.
filters – a dict of ATTR:VALUE to match against stacks
tenant_safe – DEPRECATED, if true, scope the request by the current tenant
show_deleted – if true, count will include the deleted stacks
show_nested – if true, count will include nested stacks
show_hidden – if true, count will include hidden stacks
tags – count stacks containing these tags. If multiple tags are passed, they will be combined using the boolean AND expression
tags_any – count stacks containing these tags. If multiple tags are passed, they will be combined using the boolean OR expression
not_tags – count stacks not containing these tags. If multiple tags are passed, they will be combined using the boolean AND expression
not_tags_any – count stacks not containing these tags. If multiple tags are passed, they will be combined using the boolean OR expression
an integer representing the number of matched stacks
Create a new stack using the template provided.
Note that at this stage the template has already been fetched from the heat-api process if using a template-url.
cnxt – RPC context.
stack_name – Name of the stack you want to create.
template – Template of stack you want to create.
params – Stack Input Params
files – Files referenced from the template
args – Request parameters/args passed from API
environment_files (list or None) – optional ordered list of environment file names included in the files dict
files_container – optional swift container name
owner_id – parent stack ID for nested stacks, only expected when called from another heat-engine (not a user option)
nested_depth – the nested depth for nested stacks, only expected when called from another heat-engine
user_creds_id – the parent user_creds record for nested stacks
stack_user_project_id – the parent stack_user_project_id for nested stacks
parent_resource_name – the parent resource name
template_id – the ID of a pre-stored template in the DB
Delete a given stack.
cnxt – RPC context.
stack_identity – Name of the stack you want to delete.
Exports the stack data json.
Intended to be used to safely retrieve the stack data before performing the abandon action.
cnxt – RPC context.
stack_identity – Name of the stack you want to export.
Return an identifier for the specified resource.
cnxt – RPC context.
physical_resource_id – The physical resource ID to look up.
Generate a template based on the specified type.
cnxt – RPC context.
type_name – Name of the resource type to generate a template for.
template_type – the template type to generate, cfn or hot.
Returns the environment for an existing stack.
cnxt – RPC context
stack_identity – identifies the stack
dict
Returns the files for an existing stack.
cnxt – RPC context
stack_identity – identifies the stack
dict
Get the template.
cnxt – RPC context.
stack_identity – Name of the stack you want to see.
The full stack identifier for a single, live stack with stack_name.
cnxt – RPC context.
stack_name – Name or UUID of the stack to look up.
Lists all events associated with a given stack.
It supports pagination (limit
and marker
),
sorting (sort_keys
and sort_dir
) and filtering(filters)
of the results.
cnxt – RPC context.
stack_identity – Name of the stack you want to get events for
filters – a dict with attribute:value to filter the list
limit – the number of events to list (integer or string)
marker – the ID of the last event in the previous page
sort_keys – an array of fields used to sort the list
sort_dir – the direction of the sort (‘asc’ or ‘desc’).
nested_depth – Levels of nested stacks to list events for.
Get a list of stack outputs.
cntx – RPC context.
stack_identity – Name of the stack you want to see.
list of stack outputs in defined format.
Get a list of supported resource types.
cnxt – RPC context.
support_status – Support status of resource type
type_name – Resource type’s name (regular expression allowed)
heat_version – Heat version
with_description – Either return resource type description or not
Returns attributes of all stacks.
It supports pagination (limit
and marker
),
sorting (sort_keys
and sort_dir
) and filtering (filters
)
of the results.
cnxt – RPC context
limit – the number of stacks to list (integer or string)
marker – the ID of the last item in the previous page
sort_keys – an array of fields used to sort the list
sort_dir – the direction of the sort (‘asc’ or ‘desc’)
filters – a dict with attribute:value to filter the list
tenant_safe – DEPRECATED, if true, scope the request by the current tenant
show_deleted – if true, show soft-deleted stacks
show_nested – if true, show nested stacks
show_hidden – if true, show hidden stacks
tags – show stacks containing these tags. If multiple tags are passed, they will be combined using the boolean AND expression
tags_any – show stacks containing these tags. If multiple tags are passed, they will be combined using the boolean OR expression
not_tags – show stacks not containing these tags. If multiple tags are passed, they will be combined using the boolean AND expression
not_tags_any – show stacks not containing these tags. If multiple tags are passed, they will be combined using the boolean OR expression
a list of formatted stacks
Simulate a new stack using the provided template.
Note that at this stage the template has already been fetched from the heat-api process if using a template-url.
cnxt – RPC context.
stack_name – Name of the stack you want to create.
template – Template of stack you want to create.
params – Stack Input Params
files – Files referenced from the template
args – Request parameters/args passed from API
environment_files (list or None) – optional ordered list of environment file names included in the files dict
files_container – optional swift container name
Shows the resources that would be updated.
The preview_update_stack method shows the resources that would be changed with an update to an existing stack based on the provided template and parameters. See update_stack for description of parameters.
This method cannot guarantee that an update will have the actions specified because resource plugins can influence changes/replacements at runtime.
Note that at this stage the template has already been fetched from the heat-api process if using a template-url.
Mark the resource as healthy or unhealthy.
Put the resource in CHECK_FAILED state if ‘mark_unhealthy’ is true. Put the resource in CHECK_COMPLETE if ‘mark_unhealthy’ is false and the resource is in CHECK_FAILED state. Otherwise, make no change.
resource_name – either the logical name of the resource or the physical resource ID.
mark_unhealthy – indicates whether the resource is unhealthy.
resource_status_reason – reason for health change.
Return the schema of the specified type.
cnxt – RPC context.
type_name – Name of the resource type to obtain the schema of.
with_description – Return result with description or not.
Calls resource’s signal for the specified resource.
sync_call – indicates whether a synchronized call behavior is expected. This is reserved for CFN WaitCondition implementation.
Returns dict with specified output key, value and description.
cntx – RPC context.
stack_identity – Name of the stack you want to see.
output_key – key of desired stack output.
dict with output key, value and description in defined format.
Return detailed information about one or all stacks.
cnxt – RPC context.
stack_identity – Name of the stack you want to show, or None to show all
resolve_outputs – If True, outputs for given stack/stacks will be resolved
Cancel currently running stack update.
cnxt – RPC context.
stack_identity – Name of the stack for which to cancel update.
cancel_with_rollback – Force rollback when cancel update.
Update an existing stack based on the provided template and params.
Note that at this stage the template has already been fetched from the heat-api process if using a template-url.
cnxt – RPC context.
stack_identity – Name of the stack you want to create.
template – Template of stack you want to create.
params – Stack Input Params
files – Files referenced from the template
args – Request parameters/args passed from API
environment_files (list or None) – optional ordered list of environment file names included in the files dict
files_container – optional swift container name
template_id – the ID of a pre-stored template in the DB
Check the validity of a template.
Checks, so far as we can, that a template is valid, and returns information about the parameters suitable for producing a user interface through which to specify the parameter values.
cnxt – RPC context.
template – Template of stack you want to create.
params – Stack Input Params
files – Files referenced from the template
environment_files (list or None) – optional ordered list of environment file names included in the files dict
files_container – optional swift container name
show_nested – if True, any nested templates will be checked
ignorable_errors – List of error_code to be ignored as part of validation
Bases: object
Define a periodic task in the stack threadgroups.
The task is run in a separate greenthread.
Periodicity is cfg.CONF.periodic_interval
Run the given method in a sub-thread with an existing stack lock.
Release the provided lock when the thread finishes.
stack (heat.engine.parser.Stack) – Stack to be operated on
lock (heat.engine.stack_lock.StackLock) – The acquired stack lock
func (function or instancemethod) – Callable to be invoked in sub-thread
args – Args to be passed to func
kwargs – Keyword-args to be passed to func
Run the method in sub-thread after acquiring the stack lock.
Release the lock when the thread finishes.
cnxt – RPC context
stack (heat.engine.parser.Stack) – Stack to be operated on
engine_id – The UUID of the engine/worker acquiring the lock
func (function or instancemethod) – Callable to be invoked in sub-thread
args – Args to be passed to func
kwargs – Keyword-args to be passed to func.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.