Bases: oslo_service.service.Service
Listen on an AMQP queue named for the engine.
Allows individual engines to communicate with each other for multi-engine support.
Confirm the engine performing the action is still alive.
Respond affirmatively to confirm that the engine performing the action is still alive.
Reset a service in case it received a SIGHUP.
Stop a service.
Parameters: | graceful – indicates whether to wait for all threads to finish or terminate them instantly |
---|
Wait for a service to shut down.
Bases: oslo_service.service.Service
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.
The abandon_stack method abandons a given stack.
Parameters: |
|
---|
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.
Parameters: |
|
---|---|
Returns: | a integer representing the number of matched stacks |
Creates 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.
Parameters: |
|
---|
Creates data for CloudWatch and WaitConditions.
This could be used by CloudWatch and WaitConditions and treat HA service events like any other CloudWatch.
The delete_stack method deletes a given stack.
Parameters: |
|
---|
Return an identifier for the specified resource.
Parameters: |
|
---|
Generate a template based on the specified type.
Parameters: |
|
---|
Get the template.
Parameters: |
|
---|
The full stack identifier for a single, live stack with stack_name.
Parameters: |
|
---|
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.
Parameters: |
|
---|
Get a list of supported resource types.
Parameters: |
|
---|
Returns attributes of all stacks.
It supports pagination (limit and marker), sorting (sort_keys and sort_dir) and filtering (filters) of the results.
Parameters: |
|
---|---|
Returns: | a list of formatted stacks |
Simulates 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.
Parameters: |
|
---|
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.
Return the schema of the specified type.
Parameters: |
|
---|
Calls resource’s signal for the specified resource.
Parameters: | sync_call – indicates whether a synchronized call behavior is expected. This is reserved for CFN WaitCondition implementation. |
---|
Temporarily set the state of a given watch.
Parameters: |
|
---|
Return detailed information about one or all stacks.
Parameters: |
|
---|
The show_watch method returns the attributes of one watch/alarm.
Parameters: |
|
---|
The show_watch method returns the datapoints for a metric.
Parameters: |
|
---|
Cancel currently running stack update.
Parameters: |
|
---|
Updates 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.
Parameters: |
|
---|
The validate_template method uses the stack parser to check the validity of a template.
Parameters: |
|
---|
Wait for a service to shut down.
Bases: object
Define a periodic task in the stack threadgroups.
Defining is to be run in a separate thread.
Periodicity is cfg.CONF.periodic_interval
Run the given method in a sub-thread.
Release the provided lock when the thread finishes.
Parameters: |
|
---|
Run the method in sub-thread if acquire a stack lock is successful.
Release the lock when the thread finishes.
Parameters: |
|
---|