Can multiple l3-agent instances run on one host?
Hi all:
When I read the code of the latest quantum master brantch, I found that the behavior of "add_network_to_dhcp_agent" and "add_router_to_l3_agent" is not the same. Because I have not the newest installation for now, so I came here to ask for help!
"add_network_to_dhcp_agent": after some verifacation, will directly add a record in the NetworkDhcpAgentBinding table;
"add_router_to_l3_agent": after some verifacation, method 'auto_schedule_routers' is called: result = self.auto_schedule_routers(context, agent_db.host, router_id) the parameter 'agent_db.host' means that there are some l3-agent instances on the host(if not, I think this method will not make sense), then the code will pick one that may be different with the agent you want host the router, so strange!
I wander whether it's a bug. Please let me know if I am missing something here.
--Lingxian Kong