magnum/magnum
Mark Goddard 8cb0e1f570 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: I73f039659250f1d5b69b23141835c4602c8e019a
Closes-Bug: #1682058
(cherry picked from commit 88a6e3bab5)
2017-08-17 19:46:31 +00:00
..
api Pass a mutable target to oslo policy enforcer 2017-06-15 10:03:24 +01:00
cmd Merge "Support magnum-api multiple process workers" 2017-02-15 08:37:27 +00:00
common Remove reliance on osprofiler configuration section 2017-06-07 09:29:06 +00:00
conductor Fix CVE-2016-7404 2017-02-22 19:22:10 +01:00
conf Enable custom keystone endpoint_type in templates 2017-05-22 12:45:13 +02:00
db Fix CVE-2016-7404 2017-02-22 19:22:10 +01:00
drivers Don't poll heat if no stack exists 2017-08-17 19:46:31 +00:00
hacking Add i18n translation for Log messages 2016-08-15 11:44:08 +05:30
objects Resource Quota - Limit clusters per project 2017-01-25 08:55:45 -06:00
service Integrate OSProfiler in Magnum 2017-01-24 07:43:31 +07:00
servicegroup Cleanup MagnumService Object usage 2016-01-29 15:39:28 +08:00
tests Copy cluster nodes logs always whether tests pass or fail 2017-07-26 14:57:59 +02:00
__init__.py Initial commit from github (squashed) 2014-11-18 09:23:37 -05:00
i18n.py Setup for translation 2015-05-24 03:13:55 +00:00
version.py Remove coding:utf-8 2015-08-03 23:28:22 +08:00