Merge "Don't poll heat if no stack exists"

Jenkins 2017-08-03 06:48:28 +00:00 committed by Gerrit Code Review
commit 8582cedfd1
1 changed files with 5 additions and 0 deletions

View File

@ -72,6 +72,11 @@ class HeatDriver(driver.Driver):
raise NotImplementedError("Must implement 'get_template_definition'")
def update_cluster_status(self, context, cluster):
if cluster.stack_id is None:
# NOTE(mgoddard): During cluster creation it is possible to poll
# the cluster before its heat stack has been created. See bug
# 1682058.
stack_ctx = mag_ctx.make_cluster_context(cluster)
poller = HeatPoller(clients.OpenStackClients(stack_ctx), context,
cluster, self)