Project quotas aren't refreshed/displayed correctly

Bug #1130070 reported by Julie Pichon
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
High
Wu Wenxiang

Bug Description

In the admin dashboard, a project's quotas is not always displayed correctly.

Steps to reproduce:
1. Go the the Admin -> Projects panel
2. Click "Modify quotas" for e.g. project demo
3. Set instances from 10 to 2, save
4. Click on "Modify quotas" for demo again, confirm Instances is set to 2
5. Click on "Modify quotas" for any other project - Instances quotas now shows as 2 for everything (this is a display error only, the quotas haven't actually changed)

Julie Pichon (jpichon)
summary: - Project quotas don't get refreshed
+ Project quotas aren't refreshed/displayed correctly
Revision history for this message
Kieran Spear (kspear) wrote :

Not sure if we're looking at a combination of issues, but the behaviour I saw looked like a nova bug to me. Try repeating the curl command from the novaclient debug output. It's really odd though - the return from the PUT request has the updated values, but the output for both the GET and PUT responses is generated by exactly the same function in nova.api. *shrug*

Changed in horizon:
status: New → Confirmed
Changed in horizon:
assignee: nobody → Wu Wenxiang (wu-wenxiang)
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/24573

Changed in horizon:
status: Confirmed → In Progress
Changed in horizon:
milestone: none → grizzly-rc1
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/24573
Committed: http://github.com/openstack/horizon/commit/38d5b60aa8716f079049d38dbe88b95ca08ac94f
Submitter: Jenkins
Branch: master

commit 38d5b60aa8716f079049d38dbe88b95ca08ac94f
Author: Wu Wenxiang <wu.wenxiang@99cloud.net>
Date: Sat Mar 16 15:32:19 2013 +0800

    Correct the related tenant_id when getting quotas

    QuotaUsage::_get_quota_data() always get the project quotas by the
    requester's tenant_id, which was wrong.

    Add a args "tenant_id" which point to the correct project when
    getting its quotas.

    Fix Bug #1130070

    Change-Id: I82f080720235631c430d8a18a44ece013de60a3b

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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