placement allocation representation asymetric on PUT and GET

Bug #1708205 reported by Chris Dent
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Low
Unassigned

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.

Tags: placement
Revision history for this message
Chris Dent (cdent) wrote :
Changed in nova:
status: Confirmed → Incomplete
Chris Dent (cdent)
Changed in nova:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.