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
|
import nova.conf
|
||||||
from nova.i18n import _LW
|
|
||||||
from nova.scheduler import filters
|
from nova.scheduler import filters
|
||||||
from nova.scheduler.filters import utils
|
from nova.scheduler.filters import utils
|
||||||
|
|
||||||
@ -54,8 +53,8 @@ class AggregateImagePropertiesIsolation(filters.BaseHostFilter):
|
|||||||
try:
|
try:
|
||||||
prop = image_props.get(key)
|
prop = image_props.get(key)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
LOG.warning(_LW("Host '%(host)s' has a metadata key '%(key)s' "
|
LOG.warning("Host '%(host)s' has a metadata key '%(key)s' "
|
||||||
"that is not present in the image metadata."),
|
"that is not present in the image metadata.",
|
||||||
{"host": host_state.host, "key": key})
|
{"host": host_state.host, "key": key})
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
@ -61,7 +61,8 @@ class AggregateInstanceExtraSpecsFilter(filters.BaseHostFilter):
|
|||||||
key = scope[0]
|
key = scope[0]
|
||||||
aggregate_vals = metadata.get(key, None)
|
aggregate_vals = metadata.get(key, None)
|
||||||
if not aggregate_vals:
|
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.",
|
"requirements. Extra_spec %(key)s is not in aggregate.",
|
||||||
{'host_state': host_state, 'key': key})
|
{'host_state': host_state, 'key': key})
|
||||||
return False
|
return False
|
||||||
@ -70,8 +71,8 @@ class AggregateInstanceExtraSpecsFilter(filters.BaseHostFilter):
|
|||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
LOG.debug("%(host_state)s fails instance_type extra_specs "
|
LOG.debug("%(host_state)s fails instance_type extra_specs "
|
||||||
"requirements. '%(aggregate_vals)s' do not "
|
"requirements. '%(aggregate_vals)s' do not "
|
||||||
"match '%(req)s'",
|
"match '%(req)s'",
|
||||||
{'host_state': host_state, 'req': req,
|
{'host_state': host_state, 'req': req,
|
||||||
'aggregate_vals': aggregate_vals})
|
'aggregate_vals': aggregate_vals})
|
||||||
return False
|
return False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user