Completely disabled availability zone cause horizon to trace at availability zones list
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Medium
|
Santiago Baldassin | ||
Havana |
Fix Released
|
Medium
|
George Shuklin | ||
Icehouse |
Fix Released
|
Medium
|
Adrien Cunin |
Bug Description
If all compute nodes in some availability zone are disabled, horizon trace at availability zones list.
Steps to reproduce:
1. Create host aggregate and availability zone (nova aggreage-create some some)
2. Add some (at least one) host to that host aggregate (nova aggreage-add-host some compute_host)
3. Disable service at all compute_hosts (nova service-disable compute_host nova-compute)
4. Go to (in dashboard) Admin -> System Info -> Availability Zones
Expected result:
Output with list of availabilizy zones
Actual Result:
TemplateSyntaxError at /admin/info/
'NoneType' object has no attribute 'items'
Request Method: GET
Request URL: http://
Django Version: 1.5.4
Exception Type: TemplateSyntaxError
Exception Value:
'NoneType' object has no attribute 'items'
Exception Location: /usr/share/
Python Executable: /usr/bin/python
Python Version: 2.7.3
Python Path:
['/usr/
'/usr/
'/usr/
'/usr/
'/usr/
'/usr/
'/usr/
'/usr/
'/usr/
'/usr/
Server time: Wed, 26 Mar 2014 15:53:32 +0000
P. S.
+------
| Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+------
| nova-scheduler | pp1 | internal | enabled | up | 2014-03-
| nova-consoleauth | pp1 | internal | enabled | up | 2014-03-
| nova-conductor | pp1 | internal | enabled | up | 2014-03-
| nova-cert | pp1 | internal | enabled | up | 2014-03-
| nova-compute | pp7 | test,nova | disabled | up | 2014-03-
| nova-compute | pp4 | nova | enabled | up | 2014-03-
| nova-compute | pp3 | nova | enabled | up | 2014-03-
+------
description: | updated |
Changed in horizon: | |
assignee: | nobody → Santiago Baldassin (santiago-b-baldassin) |
Changed in horizon: | |
status: | New → In Progress |
Changed in horizon: | |
importance: | Undecided → Medium |
tags: | added: icehouse-backport-potential |
Changed in horizon: | |
milestone: | none → juno-1 |
Changed in horizon: | |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | juno-1 → 2014.2 |
tags: | removed: havana-backport-potential icehouse-backport-potential |
Reviewed: https:/ /review. openstack. org/83651 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=7f30ab51246 18c5b11eebf9c6d 69bcfd8a47adc3
Committed: https:/
Submitter: Jenkins
Branch: master
commit 7f30ab5124618c5 b11eebf9c6d69bc fd8a47adc3
Author: Santiago Baldassin <email address hidden>
Date: Fri Mar 28 00:11:07 2014 -0300
Check host is not none in host aggregate page
Check that host is not none before trying to parse
the services that are up in each availability zone
Change-Id: I757f35ca2fa84d a3441b544280c1c 430bf3e8fb8
Closes-Bug: #1297920