summaryrefslogtreecommitdiff
path: root/heat/rpc/client.py
diff options
context:
space:
mode:
authorPavlo Shchelokovskyy <pshchelokovskyy@mirantis.com>2014-08-26 12:02:37 +0300
committerPavlo Shchelokovskyy <pshchelokovskyy@mirantis.com>2014-09-13 16:53:04 +0300
commita75f055caf9b866757187458c349df5b2f684f0b (patch)
tree112ad817af00875b68dbf91259521dda98f7c24f /heat/rpc/client.py
parent38aa12a015379bc7c10da3411dac40870344fe70 (diff)
downloadheat-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.py4
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.