Merge "log stale allocations as WARNING instead of DEBUG" into stable/pike

This commit is contained in:
Zuul 2018-05-10 22:21:48 +00:00 committed by Gerrit Code Review
commit c75e941807
1 changed files with 7 additions and 6 deletions

View File

@ -1278,12 +1278,13 @@ class ResourceTracker(object):
# that contains this source compute host information anyway and # that contains this source compute host information anyway and
# recreate an allocation that only refers to itself. So we # recreate an allocation that only refers to itself. So we
# don't need to do anything in that case. Just log the # don't need to do anything in that case. Just log the
# situation here for debugging information but don't attempt to # situation here for information but don't attempt to delete or
# delete or change the allocation. # change the allocation.
LOG.debug("Instance %s has been moved to another host %s(%s). " LOG.warning("Instance %s has been moved to another host "
"There are allocations remaining against the source " "%s(%s). There are allocations remaining against "
"host that might need to be removed: %s.", "the source host that might need to be removed: "
instance_uuid, instance.host, instance.node, alloc) "%s.",
instance_uuid, instance.host, instance.node, alloc)
def delete_allocation_for_evacuated_instance(self, instance, node, def delete_allocation_for_evacuated_instance(self, instance, node,
node_type='source'): node_type='source'):