From a75f055caf9b866757187458c349df5b2f684f0b Mon Sep 17 00:00:00 2001 From: Pavlo Shchelokovskyy Date: Tue, 26 Aug 2014 12:02:37 +0300 Subject: 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 --- heat/rpc/client.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'heat/rpc/client.py') 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. -- cgit v1.2.1