Remove remaning log translation in scheduler

* Removed log translation.
* Fixed minor misaligned log lines.

Change-Id: I04fb2726d5218d9f7762e843cfcd64d70c55adcb
This commit is contained in:
Erik Olof Gunnar Andersson 2018-05-09 18:39:51 -07:00
parent ca9a496791
commit 83a0d5616e
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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
@ -70,8 +71,8 @@ class AggregateInstanceExtraSpecsFilter(filters.BaseHostFilter):
break
else:
LOG.debug("%(host_state)s fails instance_type extra_specs "
"requirements. '%(aggregate_vals)s' do not "
"match '%(req)s'",
"requirements. '%(aggregate_vals)s' do not "
"match '%(req)s'",
{'host_state': host_state, 'req': req,
'aggregate_vals': aggregate_vals})
return False