Hypervisors returns TemplateSyntaxError instead of error message
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Undecided
|
Pawel Palucki | ||
Juno |
Fix Released
|
Undecided
|
Alberto Planas |
Bug Description
When trying to list hypervisor at /admin/hypervisors/
I got TemplateSyntaxE
cannot fulfil the request.
The exception in Horizon:
Error while rendering table rows.
Traceback (most recent call last):
File "/opt/stack/
for datum in self.filtered_data:
TypeError: 'NoneType' object is not iterable
Internal Server Error: /admin/hypervisors/
Traceback (most recent call last):
...
File "/opt/stack/
for datum in self.filtered_data:
TemplateSyntaxE
IMO it should be more robust and just return error message. It would be more
consistent with how other views handles unavailable services.
To reproduce the error it is enough that novaclient raise exception. Example for this
is my case was when zookeeper as servicegroup driver is used, but
nova-conductor hasn't yet prepared the required namespace (because of bug [1]) - which
ends that nova-api had internal error:
nova.api.openstack ServiceGroupUna
ZooKeeperDriver is temporarily unavailable.
This overall result is that whole hypervisor list page was unaccessible only because is was not possible to list nova services.
Changed in horizon: | |
assignee: | nobody → Pawel Palucki (pawel-palucki-q) |
Changed in horizon: | |
milestone: | none → kilo-1 |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | kilo-1 → 2015.1.0 |
tags: | removed: in-stable-juno |
Fix proposed to branch: master /review. openstack. org/134277
Review: https:/