GET /allocations/{uuid} on a consumer with no allocations provides no generation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
If we write some allocations with PUT /allocations/{uuid} at modern microversions, a consumer record is created for {uuid} and a generation is created for that consumer. Each subsequent attempt to PUT /allocations/{uuid} must include a matching consumer generation.
If the allocations for a consumer are cleared (either DELETE, or PUT /allocations/{uuid} with an empty dict of allocations) two things go awry:
* the consumer record, with a generation, stays around
* GET /allocations/{uuid} returns the following:
{u'allocations': {}}
That is, no generation is provided, and we have no way figure one out other than inspecting the details of the error response.
Some options to address this:
* Return the generation in that response
* When the allocations for a consumer go empty, remove the consumer
* Something else?
Changed in nova: | |
assignee: | nobody → Eric Fried (efried) |
status: | Triaged → In Progress |
Changed in nova: | |
assignee: | Jay Pipes (jaypipes) → nobody |
Related fix proposed to branch: master /review. openstack. org/578139
Review: https:/