Catching 500 from heat during stack-create

-fixing very weird behaviour, that returns 500
 from heat, for a while after a stack-create
 if we call resource-list
-this is some internal heat error trying to access
 not existent nova instance

Fixes-bug: #1301787
Change-Id: I9728affed707cc509b5ea466d87bf8835959e5bf
This commit is contained in:
Ladislav Smola 2014-04-03 12:32:12 +02:00
parent d412e4dabe
commit ee68999ed2
1 changed files with 5 additions and 0 deletions

View File

@ -459,6 +459,11 @@ class Overcloud(base.APIResourceWrapper):
self.stack.stack_name)]
except heatclient.exc.HTTPNotFound:
resources = []
except heatclient.exc.HTTPInternalServerError:
# TODO(lsmola) There is a weird bug in heat, that after
# stack-create it returns 500 for a little while. This can be
# removed once the bug is fixed.
resources = []
if not with_joins:
return [Resource(r, request=self._request) for r in resources]