[Openstack] [neutron]Multiple l3 agents

Akilesh K akilesh1597 at gmail.com
Wed Mar 18 06:25:56 UTC 2015


Hi Akash,
Starting the agents is not a problem. The problem is how many l3-agents do
you seen when you do 'neutron agent-list'. I see only one. So my question
was how to I get the individual agents to register separately.

How does this affect your system?

When I create and assign a floating-ip, I do not see anything happening
until I restart the corresponding l3-agent. The reason for this I believe
is that neutron is not sending the rpc call to the correct l3-agent. As a
result the l3-agent has to be restarted, at which It looks up into the db
to sync state, and creates the necessary nat rules for floating-ip.


So we are left with two options
1. Manage multiple external networks with a single agent by unsetting
'external_network_bridge', 'gateway_external_network_id' and 'router_id',
which is what Rafael suggested.

2. Keep restarting the agents everytime you attach a new subnet to router
or create and assign a floatingip .

Either of this is not desirable for me. I am still looking for a good
solution.

Thank you,
Ageeleshwar K



On Wed, Mar 18, 2015 at 11:43 AM, Akash Gunjal <akgunjal at in.ibm.com> wrote:

> Hi,
>
> The juno documentation says we can have multiple external networks with a
> single l3-agent. But never worked for me. So the way I could get it working
> is having two l3-agent files with different external networks. Starting one
> l3-agent the normal way and the second l3-agent from command
> "/usr/bin/python /usr/bin/neutron-l3-agent --config-file
> /etc/neutron/neutron.conf --config-file /etc/neutron/l3_agent2.ini
> --config-file /etc/neutron/fwaas_driver.ini"
>
> Regards,
> Akash
>
> [image: Inactive hide details for Akilesh K ---03/18/2015 11:06:17
> AM---Yes I did the same. But I've heard of people doing multiple l3]Akilesh
> K ---03/18/2015 11:06:17 AM---Yes I did the same. But I've heard of people
> doing multiple l3 agent scenarios with success, Only th
>
> From: Akilesh K <akilesh1597 at gmail.com>
> To: Rafael Barra <faelrba at gmail.com>
> Cc: "openstack at lists.openstack.org" <openstack at lists.openstack.org>
> Date: 03/18/2015 11:06 AM
> Subject: Re: [Openstack] [neutron]Multiple l3 agents
> ------------------------------
>
>
>
> Yes I did the same. But I've heard of people doing multiple l3 agent
> scenarios with success, Only that we are not getting replies. I am not sure
> If I am being paranoid, but I have a feeling that the community interaction
> these days are going down and corporate interactions are dominating.
>
> Will keep you posted, If I hit anything interesting.
>
>
>
> On Wed, Mar 18, 2015 at 12:56 AM, Rafael Barra <*faelrba at gmail.com*
> <faelrba at gmail.com>> wrote:
>
>    Hi,
>    I've tried to work with multiple l3_agents in Juno using GRE Tunnels
>    for external networks without sucess. My second external network did not
>    work.
>    Then I gave up and moved to one l3_agent with flat networks for my 2
>    external networks.
>    Now everything works ok.
>
>    Ps: I left gateway_external_network_id, router_id and
>    external_network_bridge empty in the l3_agent configuration file.
>
>    2015-03-17 10:36 GMT-03:00 Xabier Elkano <*xelkano at hostinet.com*
>    <xelkano at hostinet.com>>:
>    El 17/03/15 a las 14:18, Antonio Messina escribió:
>       > I haven't tested myself yet, but I will need to have multiple
>       external
>       > networks as well very soon.
>       >
>       > I was looking at this blogpost:
>       >
>       *http://www.ajo.es/post/86497974174/using-multiple-external-networks-in-openstack*
>       <http://www.ajo.es/post/86497974174/using-multiple-external-networks-in-openstack>
>       Hi,
>
>       I've used this method successfully with two external networks, but
>       only
>       one l3 agent.
>
>       BR,
>       Xabier
>       >
>       > Have you tried it yet?
>       >
>       > .a.
>       >
>
>
>       _______________________________________________
>       Mailing list:
>       *http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack*
>       <http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack>
>       Post to     : *openstack at lists.openstack.org*
>       <openstack at lists.openstack.org>
>       Unsubscribe :
>       *http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack*
>       <http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack>
>
>
>
>    --
>    [ ]'s
>    Rafael Barra
>
>    _______________________________________________
>    Mailing list:
>    *http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack*
>    <http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack>
>    Post to     : *openstack at lists.openstack.org*
>    <openstack at lists.openstack.org>
>    Unsubscribe :
>    *http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack*
>    <http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack>
>
> _______________________________________________
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20150318/c028d0e7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20150318/c028d0e7/attachment.gif>


More information about the Openstack mailing list