Fix alignment in message and remove unused module
This patch fix alignment in log message and remove unused import module from oslo_log. Change-Id: I16900a79313526c214e46875fd67e735542926bc
This commit is contained in:
parent
7490891157
commit
c50f7d8a4e
|
@ -643,8 +643,8 @@ class L3NATAgentWithStateReport(L3NATAgent):
|
|||
self.agent_state.pop('start_flag', None)
|
||||
except AttributeError:
|
||||
# This means the server does not support report_state
|
||||
LOG.warn(_LW("Neutron server does not support state report."
|
||||
" State report for this agent will be disabled."))
|
||||
LOG.warn(_LW("Neutron server does not support state report. "
|
||||
"State report for this agent will be disabled."))
|
||||
self.heartbeat.stop()
|
||||
return
|
||||
except Exception:
|
||||
|
|
|
@ -17,10 +17,6 @@ import abc
|
|||
from operator import attrgetter
|
||||
import random
|
||||
|
||||
from oslo_log import log as logging
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class BaseScheduler(object):
|
||||
"""The base scheduler (agnostic to resource type).
|
||||
|
|
|
@ -153,8 +153,8 @@ class L3Scheduler(object):
|
|||
target_routers = self._get_routers_can_schedule(
|
||||
context, plugin, unscheduled_routers, l3_agent)
|
||||
if not target_routers:
|
||||
LOG.warn(_LW('No routers compatible with L3 agent configuration'
|
||||
' on host %s'), host)
|
||||
LOG.warn(_LW('No routers compatible with L3 agent configuration '
|
||||
'on host %s'), host)
|
||||
return False
|
||||
|
||||
self._bind_routers(context, plugin, target_routers, l3_agent)
|
||||
|
@ -170,8 +170,8 @@ class L3Scheduler(object):
|
|||
l3_agents = plugin.get_l3_agents_hosting_routers(
|
||||
context, [sync_router['id']], admin_state_up=True)
|
||||
if l3_agents and not sync_router.get('distributed', False):
|
||||
LOG.debug('Router %(router_id)s has already been hosted'
|
||||
' by L3 agent %(agent_id)s',
|
||||
LOG.debug('Router %(router_id)s has already been hosted '
|
||||
'by L3 agent %(agent_id)s',
|
||||
{'router_id': sync_router['id'],
|
||||
'agent_id': l3_agents[0]['id']})
|
||||
return []
|
||||
|
|
Loading…
Reference in New Issue