Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

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