<html>
<head>
</head>
<body class='hmmessage'><div dir='ltr'>

<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr">Hi Yuanle,<div><br></div><div>I had working environment of Havana (GRE & OVS) in Ubuntu 12.04 with two external networks, two routers and two l3 agents before a month. I have used host parameter to differentiate l3 agents and started it in same node.</div><div><br></div><div>But now when i repeat the same I am facing the issue, when i start the second l3 agent it removes the first l3 agents port. I have no clue on this. My question is, can I use your method of mapping router ID in l3 agents for the same ?</div><div><br></div><div><span style="font-size: 12pt;">Please suggest me</span></div><div><br></div><div>Thanks in advance,</div><div>Boopathy K</div><div><br><div><hr id="stopSpelling">Date: Thu, 6 Mar 2014 11:00:29 +0800<br>From: sylecn@gmail.com<br>To: gfa@zumbi.com.ar<br>CC: openstack@lists.openstack.org<br>Subject: Re: [Openstack] [openstack] [neutron] how to config one l3 agent for each l3 router?<br><br><div dir="ltr"><div><div><div><div>Hi all,<br><br></div>I have get this working this morning. The settings have no problem, but I didn't get the order right on first try.<br><br>Here is the correct order:<br></div>1. create network resources, but do not connect them to router yet.<br>
   create ext-net, net1/subnet1, net2/subnet2<br>2. create router1<br>3. config router_id in l3-agent1, restart l3-agent1<br>5. create router2<br>6. config router_id in l3-agent2, restart l3-agent2<br>7. add ports to the router, namely:<br>
   run router-interface-add and router-gateway-set for router1;<br>   run router-interface-add and router-gateway-set for router2.<br><br></div><div>The key point is do not add any port to router until you have set router_id in all l3-agents and restart them.<br>
</div><div><br>On first try, I have run router-gateway-set too early for router2.<br><br></div><div>Thanks Ageeleshwar, Gustavo for your advices.<br><br></div><div>To Gustavo: I set different router_id in different l3_agent.ini, that's the whole point of this setup.<br>
<br></div><div>To Ageeleshwar: I am aware of that setup. Note however, in my setup, two routers share the ext-net, they just use different l3-agent to do NAT. This is a little different from using two ext-nets and two router. Because neutron could not infer which l3-agent to use by the ext-net id when you do router-gateway-set. I have tried two ext-net with two router setup before, it works as expected. So that information should be helpful for others. Make sure in gateway_external_network_id config, you should use uuid instead of ext-net name though.<br>
</div></div><div><div><div><div><div><br></div></div></div></div></div></div><div class="ecxgmail_extra"><br clear="all"><div><div dir="ltr"><div><i><br>YY Inc. is hiring openstack and python developers. Interested? Check <a href="http://www.nsbeta.info/jobs" target="_blank">http://www.nsbeta.info/jobs</a></i><br>
</div><div><br>--<br>Thanks,<br></div>Yuanle<br></div></div>
<br><br><div class="ecxgmail_quote">On Thu, Mar 6, 2014 at 4:10 AM, gustavo panizzo <gfa> <span dir="ltr"><<a href="mailto:gfa@zumbi.com.ar" target="_blank">gfa@zumbi.com.ar</a>></span> wrote:<br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">
you may want to look at this thread<br>
<br>
<a href="https://www.mail-archive.com/openstack%40lists.openstack.org/msg03984.html" target="_blank">https://www.mail-archive.com/openstack@lists.openstack.org/msg03984.html</a><br>
<br>
is not what you ask for, but is the closest thing i've seen<br>
<br>
also check if your pkgs have this patch applied<br>
<br>
<a href="https://review.openstack.org/#/c/59359/" target="_blank">https://review.openstack.org/#/c/59359/</a><br>
<div><br>
<br>
On 03/05/2014 09:21 AM, sylecn wrote:<br>
><br>
> I started two l3 agents on two nodes. In l3_agent.ini, I set one l3 agent's<br>
> handle_internal_only_routers to False, I config router_id to be ids of<br>
> the two<br>
> routers. And neutron agent-list show both l3 agents are up.<br>
</div>if you want to an L3 agent to serve just a single router, why put 2<br>
routers in router_id?<br>
<div><br>
><br>
> Now when I boot instance with a port in subnet2, the traffic still go<br>
> through<br>
> the server that runs l3-agent1.<br>
</div>do you have routers for subnet2 on both nodes?<br>
my bet is l3-agent1 created a router for subnet2, maybe it was started<br>
before l3-agent2<br>
<br>
<br>
PD: i'm not very experienced with nat router and gre, i use vlan and<br>
external networks<br>
<div><br>
><br>
> My question is: is this kind of network supported by neutron? Does the<br>
> router_id config means the l3 agent will manage that router only? The only<br>
> document mention its use is when use_namespace is False. In my case, I<br>
> have it<br>
> set to True.<br>
><br>
> Side note: there is a question on<br>
> <a href="https://answers.launchpad.net/neutron/+question/236230" target="_blank">https://answers.launchpad.net/neutron/+question/236230</a> which says it's<br>
> possible to change router's l3 agent, but did not mention how.<br>
><br>
> Any help is appreciated.<br>
><br>
> /<br>
> YY Inc. is hiring openstack and python developers. Interested? Check<br>
</div>> <a href="http://www.nsbeta.info/jobs/" target="_blank">http://www.nsbeta.info/jobs/</a><br>
<span class="ecxHOEnZb"><font color="#888888">><br>
> --<br>
> Thanks,<br>
> Yuanle<br>
><br>
><br>
> _______________________________________________<br>
> Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
> Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
> Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
><br>
<br>
<br>
--<br>
1AE0 322E B8F7 4717 BDEA BF1D 44BB 1BA7 9F6C 6333<br>
<br>
</font></span></blockquote></div><br></div>
<br>_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</div></div></div>
                                          </div></body>
</html>