diff options
author | Pavlo Shchelokovskyy <pshchelokovskyy@mirantis.com> | 2014-08-26 12:02:37 +0300 |
---|---|---|
committer | Pavlo Shchelokovskyy <pshchelokovskyy@mirantis.com> | 2014-09-13 16:53:04 +0300 |
commit | a75f055caf9b866757187458c349df5b2f684f0b (patch) | |
tree | 112ad817af00875b68dbf91259521dda98f7c24f /heat/rpc/client.py | |
parent | 38aa12a015379bc7c10da3411dac40870344fe70 (diff) | |
download | heat-a75f055caf9b866757187458c349df5b2f684f0b.tar.gz |
Add RPC API for cancel update stack
Implements cancelling of stack update in progress, for any stack
regardless of disable_rollback status.
As a side-effect, a framework for sending arbitrary one-time signals from
outside into a task running as greenthread is added. ThreadgroupManager
holds references of greenlet events associated with a given stack now.
Implements blueprint cancel-update-stack (partial)
Change-Id: Ic929d42946cf28eeb2a7caea8bf908f492693c09
Diffstat (limited to 'heat/rpc/client.py')
-rw-r--r-- | heat/rpc/client.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/heat/rpc/client.py b/heat/rpc/client.py index 37e00ef42..90e0e22c4 100644 --- a/heat/rpc/client.py +++ b/heat/rpc/client.py @@ -362,6 +362,10 @@ class EngineClient(object): return self.call(ctxt, self.make_msg('stack_check', stack_identity=stack_identity)) + def stack_cancel_update(self, ctxt, stack_identity): + return self.call(ctxt, self.make_msg('stack_cancel_update', + stack_identity=stack_identity)) + def metadata_update(self, ctxt, stack_identity, resource_name, metadata): """ Update the metadata for the given resource. |