yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #23933
[Bug 1297920] Re: Completely disabled availability zone cause horizon to trace at availability zones list
** Changed in: horizon/icehouse
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1297920
Title:
Completely disabled availability zone cause horizon to trace at
availability zones list
Status in OpenStack Dashboard (Horizon):
Fix Released
Status in OpenStack Dashboard (Horizon) havana series:
Fix Released
Status in OpenStack Dashboard (Horizon) icehouse series:
Fix Released
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://dashboard.local/horizon/admin/info/
Django Version: 1.5.4
Exception Type: TemplateSyntaxError
Exception Value:
'NoneType' object has no attribute 'items'
Exception Location: /usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/info/tables.py in get_hosts, line 60
Python Executable: /usr/bin/python
Python Version: 2.7.3
Python Path:
['/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../..',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/usr/share/openstack-dashboard/',
'/usr/share/openstack-dashboard/openstack_dashboard']
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-26T15:54:34.000000 | None |
| nova-consoleauth | pp1 | internal | enabled | up | 2014-03-26T15:54:32.000000 | None |
| nova-conductor | pp1 | internal | enabled | up | 2014-03-26T15:54:39.000000 | None |
| nova-cert | pp1 | internal | enabled | up | 2014-03-26T15:54:35.000000 | None |
| nova-compute | pp7 | test,nova | disabled | up | 2014-03-26T15:54:34.000000 | None |
| nova-compute | pp4 | nova | enabled | up | 2014-03-26T15:54:33.000000 | None |
| nova-compute | pp3 | nova | enabled | up | 2014-03-26T15:54:39.000000 | None |
+------------------+------+-----------+----------+-------+----------------------------+-----------------+
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1297920/+subscriptions
References