Quota error message should be more descriptive

Bug #1274234 reported by Adam Huffman
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Low
Liyingjun

Bug Description

When I tried to lower a project's quota of cores to below the number currently in use, instead of the useful CLI error message, the balloon that appears says:

Error: Modified project information and members, but unable to modify project quotas.

It would be much clearer if it said something similar to the CLI message:

ERROR: Quota value 140 for cores are greater than already used and reserved 146

Changed in horizon:
assignee: nobody → Alejandro Emanuel Paredes (alejandro-e-paredes)
Changed in horizon:
assignee: Alejandro Emanuel Paredes (alejandro-e-paredes) → nobody
David Lyle (david-lyle)
Changed in horizon:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Liyingjun (liyingjun) wrote :

Seems like nova can return the BadRequest message, so log the exception message to balloon would help.

Changed in horizon:
assignee: nobody → Liyingjun (liyingjun)
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/70158

Changed in horizon:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to horizon (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/86226

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

Reviewed: https://review.openstack.org/70158
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=f0e2b01cd345b46fe3afe46fd5f8133bb28cb169
Submitter: Jenkins
Branch: master

commit f0e2b01cd345b46fe3afe46fd5f8133bb28cb169
Author: liyingjun <email address hidden>
Date: Tue Jan 14 14:14:00 2014 +0800

    Quota error message should be more descriptive

    forms.ValidationError will be raised if there are invalid quota values.
    The error message would be like: Quota value cannot be less than the
    current usage value: ram used: 512, instances used: 1.

    Change-Id: I6734de7df6c146d647bbc89090d49a48e1b074ae
    Closes-bug: 1274234

Changed in horizon:
status: In Progress → Fix Committed
Akihiro Motoki (amotoki)
Changed in horizon:
milestone: none → juno-3
tags: added: error-reporting nova
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to horizon (master)

Reviewed: https://review.openstack.org/86226
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=6e14382c65041ec8d6c7d8b45529effc3cace02c
Submitter: Jenkins
Branch: master

commit 6e14382c65041ec8d6c7d8b45529effc3cace02c
Author: liyingjun <email address hidden>
Date: Fri Aug 8 09:45:54 2014 +0800

    Map quota keys to translatable strings

    Change-Id: I1446efad26b140bad04f6c2bddc4f8f980735d72
    Related-bug: 1274234

Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: juno-3 → 2014.2
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.