Quota updating failed with Http 400 Error

Bug #1155876 reported by Wu Wenxiang
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Critical
Wu Wenxiang

Bug Description

Reproduce Step:
    1. Modify quota in Admin/Project/<Project ID>/More/Modify quotas
    2. Return Error: Modified project information and members, but unable to modify project quotas.
Log:
    RESP: [400] {'date': 'Sat, 16 Mar 2013 04:44:41 GMT', 'content-length': '85', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-8d6bf49c-5bb3-4034-890a-364b107f31f8'}
    RESP BODY: {"badRequest": {"message": "Bad key(s) gigabytes,volumes in quota_set", "code": 400}}
    Recoverable error: Bad key(s) gigabytes,volumes in quota_set (HTTP 400) (Request-ID: req-8d6bf49c-5bb3-4034-890a-364b107f31f8)

Reason:
    from Nova Bug fix 1064864: https://review.openstack.org/#/c/20890/ Change-Id: Ic4a68047adf3ccf2dbac669b1b66d73bfe4d58de
    Nova api would return BadHttpRequest to quota updating request if invalid key exist, like "volumes" or "gigabytes". So "gigabytes" and "volumes" needed to be removed in when updating quotas by nova api in horizon.

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

Changed in horizon:
status: New → In Progress
Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :

Duplicate of https://bugs.launchpad.net/horizon/+bug/1155878 which also has the preferred solution

Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :

Sorry, this isn't a duplicate. My apologies. We definitely need to fix this for the Grizzly RC.

Changed in horizon:
importance: Undecided → Critical
milestone: none → grizzly-rc1
Changed in horizon:
assignee: Wu Wenxiang (wu-wenxiang) → Gabriel Hurley (gabriel-hurley)
Changed in horizon:
assignee: Gabriel Hurley (gabriel-hurley) → Wu Wenxiang (wu-wenxiang)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

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

commit e0d3b5b12f9fef23e0b5c8026b3c3d9fe5297550
Author: Wu Wenxiang <wu.wenxiang@99cloud.net>
Date: Sat Mar 16 13:38:35 2013 +0800

    rm invalid args when updating quotas with nova api

      1. Remove invalid args "volumes" and "gigabytes" while calling
         nova.tenant_quota_update in UpdateProject and CreateProject
         workflows.

      2. Update related test cases.

    Fixes bug 1155876 and fixes bug 1156198.

    Change-Id: I3ee9e3b6b4f19452e42129f750bc4bbe0727e343

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.

Other bug subscribers

Remote bug watches

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