Merge "Only log during pop retry phase"

This commit is contained in:
Zuul 2018-02-16 19:46:53 +00:00 committed by Gerrit Code Review
commit 1981f71190
2 changed files with 1 additions and 2 deletions

View File

@ -34,8 +34,6 @@ class RetryFilter(filters.BaseHostFilter):
"""Skip nodes that have already been attempted."""
retry = spec_obj.retry
if not retry:
# Re-scheduling is disabled
LOG.debug("Re-scheduling is disabled")
return True
# TODO(sbauza): Once the HostState is actually a ComputeNode, we could

View File

@ -518,6 +518,7 @@ def populate_retry(filter_properties, instance_uuid):
if (max_attempts == 1 or len(force_hosts) == 1
or len(force_nodes) == 1):
# re-scheduling is disabled.
LOG.debug('Re-scheduling is disabled.')
return
# retry is enabled, update attempt count: