Merge "Change warn to debug logs when migration context is missing"
This commit is contained in:
commit
ea725fd6ba
@ -25,7 +25,7 @@ from nova.cells import rpcapi as cells_rpcapi
|
||||
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
|
||||
@ -796,17 +796,15 @@ class Instance(base.NovaPersistentObject, base.NovaObject,
|
||||
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):
|
||||
|
Loading…
Reference in New Issue
Block a user