diff options
author | Oleksii Chuprykov <ochuprykov@mirantis.com> | 2016-02-16 19:18:53 +0200 |
---|---|---|
committer | Peter Razumovsky <prazumovsky@mirantis.com> | 2016-08-22 10:40:29 +0300 |
commit | 68944d223091eacd8f9a4621a46b1cdfd98ac70b (patch) | |
tree | 16ae00103d5cb663c9ccf644db1acf80ee3b8b7c /heat/rpc | |
parent | 110cf140b1a6b1a36c5da69ec7e099a0dba0635a (diff) | |
download | heat-68944d223091eacd8f9a4621a46b1cdfd98ac70b.tar.gz |
Migrate stacks from legacy to convergence engine
Run `heat-manage migrate-convergence-1 <stack_id>` to migrate
legacy stack to convergence engine.
Heat engine is used for doing migration i.e. migration can't
be done offline.
Change-Id: Ie7c2498b37937438f16d154b154b3a6ecbf9ff74
Implements-bp: convergence-migrate-stack
Diffstat (limited to 'heat/rpc')
-rw-r--r-- | heat/rpc/client.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/heat/rpc/client.py b/heat/rpc/client.py index 2ce1a6c58..7f539538d 100644 --- a/heat/rpc/client.py +++ b/heat/rpc/client.py @@ -56,6 +56,7 @@ class EngineClient(object): 1.32 - Add get_files call 1.33 - Remove tenant_safe from list_stacks, count_stacks and list_software_configs + 1.34 - Add migrate_convergence_1 call """ BASE_RPC_API_VERSION = '1.0' @@ -846,3 +847,14 @@ class EngineClient(object): self.make_msg('export_stack', stack_identity=stack_identity), version='1.22') + + def migrate_convergence_1(self, ctxt, stack_id): + """Migrate the stack to convergence engine + + :param ctxt: RPC context + :param stack_name: Name of the stack you want to migrate + """ + return self.call(ctxt, + self.make_msg('migrate_convergence_1', + stack_id=stack_id), + version='1.34') |