← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1707669] Re: [placement] put allocations does not do a full overwrite of existing allocations

 

** Also affects: nova/ocata
   Importance: Undecided
       Status: New

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

Title:
  [placement] put allocations does not do a full overwrite of existing
  allocations

Status in OpenStack Compute (nova):
  Fix Released
Status in OpenStack Compute (nova) ocata series:
  New

Bug description:
  The presumption all along has been that when doing a PUT
  /allocations/{consumer_uuid} that the body of that request would fully
  replace any allocations associated with that consumer.

  This has turned out not to be the case. The code [1] to clean up the
  current allocations was only deleting allocations where the consumer
  _and_ resource provider matched the incoming allocations. We want to
  wipe the slate.

  Huge hat tip to gibi for doing the necessary digging to get this
  going.

  [1]
  https://github.com/openstack/nova/blob/master/nova/objects/resource_provider.py#L1509-L1520

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


References