Cluster objects are created asynchronously from their underlying
heat stacks, meaning that the periodic update can sometimes end up
trying to poll a cluster's heat stack before the stack has been created.
This change checks whether the stack_id is None and skips polling heat
if so. This has the side effect of resolving bug 1682058, since we don't
try to use a trust and trustee that do not exist.
Reviewed: https:/ /review. openstack. org/480286 /git.openstack. org/cgit/ openstack/ magnum/ commit/ ?id=88a6e3bab5f 4af92ea4700580a f05f5c20ab64f6
Committed: https:/
Submitter: Jenkins
Branch: master
commit 88a6e3bab5f4af9 2ea4700580af05f 5c20ab64f6
Author: Mark Goddard <email address hidden>
Date: Tue Jul 4 19:24:28 2017 +0100
Don't poll heat if no stack exists
Cluster objects are created asynchronously from their underlying
heat stacks, meaning that the periodic update can sometimes end up
trying to poll a cluster's heat stack before the stack has been created.
This change checks whether the stack_id is None and skips polling heat
if so. This has the side effect of resolving bug 1682058, since we don't
try to use a trust and trustee that do not exist.
Change-Id: I73f039659250f1 d5b69b23141835c 4602c8e019a
Closes-Bug: #1682058