Bug #1707669 highlighted a situation that arose when attempting to
remove part of an allocation for a source host during a resize
operation where the exiting allocation was not being properly deleted.
In this patch, we remove the part of the WHERE condition that limited
deleted allocation records to only those referring to a particular
resource provider. In doing so, we make the creation of an allocation
for a consumer a proper overwrite operation.
Reviewed: https:/ /review. openstack. org/489273 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=afab0ca0c8f 4c68b8d6d8646f4 08e9522596870e
Committed: https:/
Submitter: Jenkins
Branch: master
commit afab0ca0c8f4c68 b8d6d8646f408e9 522596870e
Author: Jay Pipes <email address hidden>
Date: Mon Jul 31 12:28:38 2017 -0400
placement: remove existing allocs when set allocs
Bug #1707669 highlighted a situation that arose when attempting to
remove part of an allocation for a source host during a resize
operation where the exiting allocation was not being properly deleted.
In this patch, we remove the part of the WHERE condition that limited
deleted allocation records to only those referring to a particular
resource provider. In doing so, we make the creation of an allocation
for a consumer a proper overwrite operation.
Change-Id: I0835e5b4f22277 465012aab9a5bf4 74608cb533b
Fixes-bug: #1707669