From 6f7b3aca9bb0ca865ec6a3efb24dfc5979769edf Mon Sep 17 00:00:00 2001 From: Duc Truong Date: Wed, 10 Jul 2019 21:46:40 +0000 Subject: Fix senlin cluster create Calling openstacksdk's create_cluster no longer returns the action id in the location. Instead the caller has to use the cluster id to query the cluster status and determine the execution status based on that. Change-Id: Ia09915dc0529aaec21d0826f28e29d435354e5e0 Task: 35786 --- heat/engine/resources/openstack/senlin/cluster.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'heat/engine/resources/openstack/senlin') diff --git a/heat/engine/resources/openstack/senlin/cluster.py b/heat/engine/resources/openstack/senlin/cluster.py index 371e12a99..b8e187abe 100644 --- a/heat/engine/resources/openstack/senlin/cluster.py +++ b/heat/engine/resources/openstack/senlin/cluster.py @@ -218,12 +218,11 @@ class Cluster(res_base.BaseSenlinResource): } cluster = self.client().create_cluster(**params) - action_id = cluster.location.split('/')[-1] self.resource_id_set(cluster.id) # for cluster creation, we just to check the action status # the action is executed above action = { - 'action_id': action_id, + 'cluster_id': cluster.id, 'done': False, } actions.append(action) -- cgit v1.2.1