Horizon doesn't handle disabled quotas correctly

Bug #971937 reported by Andrew Rose
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
High
Gabriel Hurley

Bug Description

We are using unlimited quotas ("-1" set in the nova.conf for items in the "Quota" section). Horizon errors on the value returned for the quota:

page:
http://[whatever]/syspanel/quotas/

Error:
Error: Unable to get quota info: int() argument must be a string or a number, not 'NoneType'

The "-1" Quota is handled correctly in the nova code (see nova/quota.py _get_default_quotas() method), which returns a value "None" for this case. Horizon should handle this case (string 'None' rather than integer).

Changed in horizon:
assignee: nobody → Gabriel Hurley (gabriel-hurley)
importance: Undecided → High
milestone: none → essex-rc2
status: New → Confirmed
Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :

This is currently blocked by https://bugs.launchpad.net/nova/+bug/972001

Changed in horizon:
status: Confirmed → In Progress
Thierry Carrez (ttx)
tags: removed: essex-rc-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/6186

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/6186
Committed: http://github.com/openstack/horizon/commit/c55567354bd6d381a3b5e5751af40409bb719d14
Submitter: Jenkins
Branch: master

commit c55567354bd6d381a3b5e5751af40409bb719d14
Author: Gabriel Hurley <email address hidden>
Date: Tue Apr 3 12:36:54 2012 -0700

    Don't choke on unlimited quotas. Fixes bug 971937.

    Change-Id: Icc8b6a4189197c9d750163b1246173ca1a00afbe

Changed in horizon:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (milestone-proposed)

Fix proposed to branch: milestone-proposed
Review: https://review.openstack.org/6194

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (milestone-proposed)

Reviewed: https://review.openstack.org/6194
Committed: http://github.com/openstack/horizon/commit/6da7f69044221ba0ba305d8faac4a6ea51f6208d
Submitter: Jenkins
Branch: milestone-proposed

commit 6da7f69044221ba0ba305d8faac4a6ea51f6208d
Author: Gabriel Hurley <email address hidden>
Date: Tue Apr 3 12:36:54 2012 -0700

    Don't choke on unlimited quotas. Fixes bug 971937.

    Change-Id: Icc8b6a4189197c9d750163b1246173ca1a00afbe

Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: essex-rc2 → 2012.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.