← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1064864] Re: quota-update doesn't report error, If a user supply invalid key

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => grizzly-rc1

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1064864

Title:
  quota-update doesn't report error,If a user supply invalid key

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  using following curl command I have tried to set my quota with invalid
  key "vijaya"

  $curl -i http://10.233.52.15:8774/v2/d29a428985334b9bbf24ad8809bfe344/os-quota-sets/d29a428985334b9bbf24ad8809bfe344 -X PUT -H "X-Auth-Project-Id: demo" -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: d6b60e0b59ac48e5a56ad707dcaeb7f9" -d'{"quota_set": {"vijaya": 20, "tenant_id": "d29a428985334b9bbf24ad8809bfe344"}}'
  HTTP/1.1 200 OK
  X-Compute-Request-Id: req-ab2211a3-b538-4065-b37d-c90837f53ce7
  Content-Type: application/json
  Content-Length: 297
  Date: Wed, 10 Oct 2012 11:04:01 GMT

  {"quota_set": {"metadata_items": 128, "injected_file_content_bytes":
  10240, "injected_files": 5, "gigabytes": 1000, "ram": 51200,
  "floating_ips": 10, "security_group_rules": 20, "instances": 10,
  "key_pairs": 100, "volumes": 20, "cores": 20,
  "injected_file_path_bytes": 255, "security_groups": 10}}

  Though nova validating the key value at the server end but not reporting if the validation fails.
  so it should report the failure with HTTP 400 with proper error message.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1064864/+subscriptions