← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1663389] [NEW] api-ref: POST /flavors says that id is required but it's actually optional

 

Public bug reported:

The API reference docs for POST /flavors says that the 'id' field is
required but it's actually optional according to the schema:

http://developer.openstack.org/api-ref/compute/?expanded=create-flavor-
detail#create-flavor

id      body    string  The ID of the flavor. While people often make
this look like an int, this is really a string.

https://github.com/openstack/nova/blob/15.0.0.0rc1/nova/api/openstack/compute/schemas/flavor_manage.py#L30

If it's not provided, we default to generate a uuid:

https://github.com/openstack/nova/blob/15.0.0.0rc1/nova/compute/flavors.py#L74

** Affects: nova
     Importance: Medium
     Assignee: Matt Riedemann (mriedem)
         Status: Triaged


** Tags: api-ref flavors

** Changed in: nova
   Importance: Undecided => Medium

** Changed in: nova
       Status: New => Triaged

** Changed in: nova
     Assignee: (unassigned) => Matt Riedemann (mriedem)

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

Title:
  api-ref: POST /flavors says that id is required but it's actually
  optional

Status in OpenStack Compute (nova):
  Triaged

Bug description:
  The API reference docs for POST /flavors says that the 'id' field is
  required but it's actually optional according to the schema:

  http://developer.openstack.org/api-ref/compute/?expanded=create-
  flavor-detail#create-flavor

  id      body    string  The ID of the flavor. While people often make
  this look like an int, this is really a string.

  https://github.com/openstack/nova/blob/15.0.0.0rc1/nova/api/openstack/compute/schemas/flavor_manage.py#L30

  If it's not provided, we default to generate a uuid:

  https://github.com/openstack/nova/blob/15.0.0.0rc1/nova/compute/flavors.py#L74

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


Follow ups