Add debug logs when doubling-up allocations during scheduling

During claim_resources in the scheduler, if the consumer (instance)
has existing allocations, the scheduler thinks we're doing something
like a resize to same host or evacuation, but it would be useful
to know what the original allocations when doing that, so this adds
logging of the original allocations that take us down the double-up
path.

Change-Id: Ibfb0e97840141a4d60701f8c938fedad0fc4c758
Related-Bug: #1798688
This commit is contained in:
Matt Riedemann 2018-11-09 13:48:07 -05:00
parent e27905f482
commit 82b4e3ff7e
1 changed files with 2 additions and 1 deletions

View File

@ -200,7 +200,8 @@ def _move_operation_alloc_request(source_allocs, dest_alloc_req):
:param dest_alloc_req: The allocation_request for resources against the
destination host
"""
LOG.debug("Doubling-up allocation_request for move operation.")
LOG.debug("Doubling-up allocation_request for move operation. Current "
"allocations: %s", source_allocs)
# Remove any allocations against resource providers that are
# already allocated against on the source host (like shared storage
# providers)