Skip to content

Commit

Permalink
Merge "Change warn to debug logs when migration context is missing"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Nov 23, 2015
2 parents c938a2b + b70f432 commit ea725fd
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions nova/objects/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from nova.cells import utils as cells_utils
from nova import db
from nova import exception
from nova.i18n import _LE, _LW
from nova.i18n import _LE
from nova import notifications
from nova import objects
from nova.objects import base
Expand Down Expand Up @@ -796,17 +796,15 @@ def apply_migration_context(self):
if self.migration_context:
self.numa_topology = self.migration_context.new_numa_topology
else:
LOG.warn(_LW("Trying to apply a migration context that does not "
"seem to be set for this instance"),
instance=self)
LOG.debug("Trying to apply a migration context that does not "
"seem to be set for this instance", instance=self)

def revert_migration_context(self):
if self.migration_context:
self.numa_topology = self.migration_context.old_numa_topology
else:
LOG.warn(_LW("Trying to revert a migration context that does not "
"seem to be set for this instance"),
instance=self)
LOG.debug("Trying to revert a migration context that does not "
"seem to be set for this instance", instance=self)

@contextlib.contextmanager
def mutated_migration_context(self):
Expand Down

0 comments on commit ea725fd

Please sign in to comment.