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

** Changed in: nova
    Milestone: None => havana-2

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

Title:
  Factional numbers handle error in JSON Form

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  OpenStack does not support fractional numbers.However,when creating flavor 
through the JSON form, it will omit the fractional parts of the values instead 
of reporting an error.
  Since the fractional numbers are illegal , is it possible to throw exception 
or return 400, instead of accepting the request but omitted the fractional 
parts automatically?

  Here is the JSON data sent by the UI on POST 
http://localhost:8080/cloud/admin/301/compute/flavors:{"flavor":{"name":"paw","vcpus":1.5,"ram":1.5,"disk":0.5}}
  And here is the response that comes back from core:{"flavor": {"name": "paw", 
"links": [{"href": 
"http://localhost:8080/cloud/admin/301/compute/flavors/f6651e20-a336-48e2-99d1-00c85a3fea9a";,
 "rel": "self"}, {"href": 
"http://localhost:8080/cloud/admin/301/compute/flavors/f6651e20-a336-48e2-99d1-00c85a3fea9a";,
 "rel": "bookmark"}], "ram": 1, "OS-FLV-DISABLED:disabled": false, "vcpus": 1, 
"swap": "", "os-flavor-access:is_public": true, "rxtx_factor": 1.0, 
"OS-FLV-EXT-DATA:ephemeral": 0, "disk": 0, "id": 
"f6651e20-a336-48e2-99d1-00c85a3fea9a"}}

  The Version is Grizzly

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to