Inconsistent behavior between instances,volumes & network, router pages when quota limit is exceeded

Bug #1278449 reported by Erasmo Isotton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Low
Bradley Jones

Bug Description

Inconsistent behavior between instances,volumes & network, router pages when quota limit is exceeded

+++Steps to reproduce the issue:

1- Bring up the appliance
2- Login to horizon, create one project and assign one user to this project
3- Edit the project quotas and provide all the values as 0
4- Click on save button.
5- Now login to horizon with the created user:

traverse "instances" page and "Volumes" page, you can observe the message saying "Quota exceeded" as expected

Please see the screenshot attached.

similarly traverse the page "Access & Security", you can observe the "Create security group" button is enabled
and when you try to create the security group, creation fails with message "unable to create security group"

Similarly traverse the page "networks", you can observe "create network" button is enabled and when you try to create network, creation fails with message "Failed to create network, quota exceeded

for resources"

Similarly traverse the page "router",you can observe the "Create router" button is enabled
and when you try to create the router,creation fails with message "unable to create router.

Summarizing above behavior, "instance and volume" pages shows the message as expected whereas "access & security","networks", "routers" page allowed user to create network, router etc but failed to

create.
Inconsistencies observed between different pages.

Floren (florenllanos)
Changed in horizon:
status: New → Confirmed
Changed in horizon:
importance: Undecided → Low
Changed in horizon:
assignee: nobody → Bradley Jones (bradjones)
Revision history for this message
Rob Cresswell (robcresswell-deactivatedaccount) wrote :

Related to this bug, which I'm currently working on:

https://bugs.launchpad.net/horizon/+bug/1333481

Will have unit test up for it later. Hopefully it can provide some help if needed.

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/118478

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

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

commit 42d73e85a686e95ddd8c8b589635be7231d424cc
Author: Bradley Jones <email address hidden>
Date: Thu Aug 21 14:20:37 2014 +0100

    Fix inconsistent behaviour exceeding quota limit

    Added quota checks for security groups, networks and routers. If quotas are
    exceeded then buttons to create are disabled and feedback is given to the
    user.

    Appropriate tests are also in place

    Change-Id: Ie49db5397d87a0c9a583b64e5de34460144b5956
    Closes-bug: 1278449

Changed in horizon:
status: In Progress → Fix Committed
Akihiro Motoki (amotoki)
Changed in horizon:
milestone: none → kilo-1
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: kilo-1 → 2015.1.0
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.