Create a new project failed with Error Code 400

Bug #1156198 reported by Wu Wenxiang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Critical
Wu Wenxiang

Bug Description

Reproduce Step:
    1. Create a new project in Admin/Project dashboard
    2. Return Error: Unable to set project quotas.

Log:
    RESP: [400] {'date': 'Sun, 17 Mar 2013 12:31:33 GMT', 'content-length': '85', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-62c8635e-7043-4e60-9ed7-5c3a1e4706f4'}
    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-62c8635e-7043-4e60-9ed7-5c3a1e4706f4)

Reason:
    1. 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.
    2. Current horizon code has a bug here, it didn't use cinder client api to update "gigabytes" & "volumes" when volumes was enabled.

Changed in horizon:
assignee: nobody → Wu Wenxiang (wu-wenxiang)
Changed in horizon:
status: New → Confirmed
importance: Undecided → Critical
milestone: none → grizzly-rc1
Changed in horizon:
assignee: Wu Wenxiang (wu-wenxiang) → Gabriel Hurley (gabriel-hurley)
status: Confirmed → In Progress
Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :
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.