Comment 17 for bug 1737917

Revision history for this message
Kevin Tibi (ktibi) wrote :

Hi Slawek,

I use kolla with pike version. I use three controllers. I patch the first (ctrl01) with your patch but I have always the error log on each controller.

"Hostname": "ctrl01","Payload": "Failed to update device cb5f787c-8cd9-4995-a423-80dd6ea5838c down: AgentNotFoundByTypeHost: Agent with agent_type=L3 agent and host=compute02 could not be found"

"Hostname": "ctrl02","Payload": "Failed to update device cb5f787c-8cd9-4995-a423-80dd6ea5838c down: AgentNotFoundByTypeHost: Agent with agent_type=L3 agent and host=compute02 could not be found"

"Hostname": "ctrl03","Payload": "Failed to update device cb5f787c-8cd9-4995-a423-80dd6ea5838c down: AgentNotFoundByTypeHost: Agent with agent_type=L3 agent and host=compute02 could not be found"

patch apply on ctrl01 on "/usr/lib/python2.7/site-packages/neutron/db/l3_agentschedulers_db.py" :

from neutron_lib.exceptions import agent as agent_exc
......
    def list_router_ids_on_host(self, context, host, router_ids=None):
        try:
            agent = self._get_agent_by_type_and_host(
                context, constants.AGENT_TYPE_L3, host)
        except agent_exc.AgentNotFoundByTypeHost:
            LOG.debug("L3 Agent not found on host %s", host)
            return []
        if not agentschedulers_db.services_available(agent.admin_state_up):
            return []
        return self._get_router_ids_for_agent(context, agent, router_ids)

Th for your time ;)