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.cells import utils as cells_utils
|
||||||
from nova import db
|
from nova import db
|
||||||
from nova import exception
|
from nova import exception
|
||||||
from nova.i18n import _LE, _LW
|
from nova.i18n import _LE
|
||||||
from nova import notifications
|
from nova import notifications
|
||||||
from nova import objects
|
from nova import objects
|
||||||
from nova.objects import base
|
from nova.objects import base
|
||||||
@ -796,17 +796,15 @@ class Instance(base.NovaPersistentObject, base.NovaObject,
|
|||||||
if self.migration_context:
|
if self.migration_context:
|
||||||
self.numa_topology = self.migration_context.new_numa_topology
|
self.numa_topology = self.migration_context.new_numa_topology
|
||||||
else:
|
else:
|
||||||
LOG.warn(_LW("Trying to apply a migration context that does not "
|
LOG.debug("Trying to apply a migration context that does not "
|
||||||
"seem to be set for this instance"),
|
"seem to be set for this instance", instance=self)
|
||||||
instance=self)
|
|
||||||
|
|
||||||
def revert_migration_context(self):
|
def revert_migration_context(self):
|
||||||
if self.migration_context:
|
if self.migration_context:
|
||||||
self.numa_topology = self.migration_context.old_numa_topology
|
self.numa_topology = self.migration_context.old_numa_topology
|
||||||
else:
|
else:
|
||||||
LOG.warn(_LW("Trying to revert a migration context that does not "
|
LOG.debug("Trying to revert a migration context that does not "
|
||||||
"seem to be set for this instance"),
|
"seem to be set for this instance", instance=self)
|
||||||
instance=self)
|
|
||||||
|
|
||||||
@contextlib.contextmanager
|
@contextlib.contextmanager
|
||||||
def mutated_migration_context(self):
|
def mutated_migration_context(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user