test_server_cfn_init fails due to attribute resolution problem
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Undecided
|
Pavlo Shchelokovskyy |
Bug Description
The trace-back is the following
Traceback (most recent call last):
File "heat_integrati
self.
File "heat_integrati
sid, 'SmokeServer', 'CREATE_COMPLETE')
File "heat_integrati
stack_
File "/usr/local/
resp, body = self.client.
File "/usr/local/
resp = self._http_
File "/usr/local/
raise exc.from_
HTTPBadRequest: ERROR: 'str' object has no attribute 'keys'
Traceback (most recent call last):
File "/usr/local/
incoming.
File "/usr/local/
return self._do_
File "/usr/local/
result = getattr(endpoint, method)(ctxt, **new_args)
File "/usr/local/
return f(*args, **kwargs)
File "/opt/stack/
return func(self, ctx, *args, **kwargs)
File "/opt/stack/
with_
File "/opt/stack/
resource, with_attr)
File "/opt/stack/
if 'show' in resolver.keys():
AttributeError: 'str' object has no attribute 'keys'
It looks like when getting the details of the server during test, and the server is in_progress, the attributes can not yet be resolved
Changed in heat: | |
assignee: | nobody → Pavlo Shchelokovskyy (pshchelo) |
Changed in heat: | |
milestone: | none → kilo-1 |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | kilo-1 → 2015.1.0 |
this can be reproduced with any template that has a sever in it that takes some time to boot, and quickly issuing
heat resource-show <stack> <server>
after creating a stack.
Offending change id is I842eb89ac42de8 d525d2092ff9d02 e70daa8a981 /github. com/openstack/ heat/commit/ 6d8a5cb35cec81b 23a71e8c6fa692f 8e7b4dca1c
https:/