heat.engine.snapshots module

class heat.engine.snapshots.Snapshot(context, snapshot_id, stack_id, start_time, thread_group_mgr, resources=None, action=None, timeout_mins=None, is_stack_delete=False, current_traversal=None)[source]

Bases: object

Operate snapshot actions under convergence.

ACTIONS = ('CREATE', 'DELETE')
COMPLETE = 'COMPLETE'
CREATE = 'CREATE'
DELETE = 'DELETE'
FAILED = 'FAILED'
IN_PROGRESS = 'IN_PROGRESS'
STATUSES = ('IN_PROGRESS', 'FAILED', 'COMPLETE')
delete_snapshot()[source]
delete_snapshot_objs()[source]
do_delete_snapshot()[source]
has_timed_out()[source]

Returns True if this Snapshot has timed-out.

mark_complete(predecessors=None, input_data=None)[source]
mark_failed(rsrc_name, failure_reason)[source]
time_elapsed()[source]

Time elapsed in seconds since the Snapshot operation started.

time_remaining()[source]

Time left before Snapshot times out.

timeout_secs()[source]

Return the action timeout in seconds.

property worker_client

Return a client for making engine RPC calls.

heat.engine.snapshots.delete_snapshots(context, snapshot_ids, stack_id, current_traversal, start_time, thread_group_mgr, run_till_success=True)[source]