Horizon doesn't handle disabled quotas correctly

Bug #971937 reported by Andrew Rose on 2012-04-02
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
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
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) on 2012-04-03
tags: removed: essex-rc-potential

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

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) on 2012-04-05
Changed in horizon:
milestone: essex-rc2 → 2012.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers