← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1708205] [NEW] placement allocation representation asymetric on PUT and GET

 

Public bug reported:

GET /allocations/{consumer_uuid} is a dict keyed by resource provider
uuid.

PUT /allocations/{consumer_uuid} is an array of anonymous json objects
with 'resource_provider' and 'resources' objects

This asymmetry is undesirable and confusing. It's probably the result of
failing to update one side when changing the other, earlier in the
development of placement.

Changing it is likely a bit of a bear, would require a microversion of
course, but might be worth considering to make things more clear for the
future.

** Affects: nova
     Importance: Low
         Status: Confirmed


** Tags: placement

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

Title:
  placement allocation representation asymetric on PUT and GET

Status in OpenStack Compute (nova):
  Confirmed

Bug description:
  GET /allocations/{consumer_uuid} is a dict keyed by resource provider
  uuid.

  PUT /allocations/{consumer_uuid} is an array of anonymous json objects
  with 'resource_provider' and 'resources' objects

  This asymmetry is undesirable and confusing. It's probably the result
  of failing to update one side when changing the other, earlier in the
  development of placement.

  Changing it is likely a bit of a bear, would require a microversion of
  course, but might be worth considering to make things more clear for
  the future.

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


Follow ups