Downgrade binding skip in mech_agent

When multiple mech drivers are loaded, it's very common to
have on not find agents on a host, we shouldn't emit a warning
in this condition. The mechanism manager will log an error if
there is an actual failure to bind a port.

Change-Id: Icb643f6ffc6699579394d1e5d42f7bbfdcad6de4
Closes-Bug: #1622559
This commit is contained in:
Kevin Benton 2016-09-09 07:31:47 -07:00
parent 000feab26b
commit 7ff0a50ed9

View File

@ -95,11 +95,12 @@ class AgentMechanismDriverBase(api.MechanismDriver):
return
agents = context.host_agents(self.agent_type)
if not agents:
LOG.warning(_LW("Port %(pid)s on network %(network)s not bound, "
"no agent registered on host %(host)s"),
{'pid': context.current['id'],
'network': context.network.current['id'],
'host': context.host})
LOG.debug("Port %(pid)s on network %(network)s not bound, "
"no agent of type %(at)s registered on host %(host)s",
{'pid': context.current['id'],
'at': self.agent_type,
'network': context.network.current['id'],
'host': context.host})
for agent in agents:
LOG.debug("Checking agent: %s", agent)
if agent['alive']: