Merge "[placement] Debug log per granular request group"

This commit is contained in:
Zuul 2018-08-06 20:46:24 +00:00 committed by Gerrit Code Review
commit 477490bed4
1 changed files with 2 additions and 0 deletions

View File

@ -4020,6 +4020,8 @@ class AllocationCandidates(base.VersionedObject):
candidates = {}
for suffix, request in requests.items():
alloc_reqs, summaries = cls._get_by_one_request(context, request)
LOG.debug("%s (suffix '%s') returned %d matches",
str(request), str(suffix), len(alloc_reqs))
if not alloc_reqs:
# Shortcut: If any one request resulted in no candidates, the
# whole operation is shot.