From 82b4e3ff7e1f217a67d7146024cc66f46c2b93dc Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Fri, 9 Nov 2018 13:48:07 -0500 Subject: [PATCH] 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 --- nova/scheduler/client/report.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nova/scheduler/client/report.py b/nova/scheduler/client/report.py index 5e825de4de..1ec4b42b60 100644 --- a/nova/scheduler/client/report.py +++ b/nova/scheduler/client/report.py @@ -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)