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.
Fix is connected to https:/ /bugs.launchpad .net/horizon/ +bug/1155876 and https:/ /bugs.launchpad .net/horizon/ +bug/1155878