Remove remaning log translation in scheduler
* Removed log translation. * Fixed minor misaligned log lines. Change-Id: I04fb2726d5218d9f7762e843cfcd64d70c55adcb
This commit is contained in:
parent
ca9a496791
commit
83a0d5616e
@ -17,7 +17,6 @@ from oslo_log import log as logging
|
||||
|
||||
|
||||
import nova.conf
|
||||
from nova.i18n import _LW
|
||||
from nova.scheduler import filters
|
||||
from nova.scheduler.filters import utils
|
||||
|
||||
@ -54,8 +53,8 @@ class AggregateImagePropertiesIsolation(filters.BaseHostFilter):
|
||||
try:
|
||||
prop = image_props.get(key)
|
||||
except AttributeError:
|
||||
LOG.warning(_LW("Host '%(host)s' has a metadata key '%(key)s' "
|
||||
"that is not present in the image metadata."),
|
||||
LOG.warning("Host '%(host)s' has a metadata key '%(key)s' "
|
||||
"that is not present in the image metadata.",
|
||||
{"host": host_state.host, "key": key})
|
||||
continue
|
||||
|
||||
|
@ -61,7 +61,8 @@ class AggregateInstanceExtraSpecsFilter(filters.BaseHostFilter):
|
||||
key = scope[0]
|
||||
aggregate_vals = metadata.get(key, None)
|
||||
if not aggregate_vals:
|
||||
LOG.debug("%(host_state)s fails instance_type extra_specs "
|
||||
LOG.debug(
|
||||
"%(host_state)s fails instance_type extra_specs "
|
||||
"requirements. Extra_spec %(key)s is not in aggregate.",
|
||||
{'host_state': host_state, 'key': key})
|
||||
return False
|
||||
|
Loading…
Reference in New Issue
Block a user