Hi Yuanle, 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. 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 ? Please suggest me Thanks in advance,Boopathy K Date: Thu, 6 Mar 2014 11:00:29 +0800 From: [email protected] To: [email protected] CC: [email protected] Subject: Re: [Openstack] [openstack] [neutron] how to config one l3 agent for each l3 router? Hi all, I have get this working this morning. The settings have no problem, but I didn't get the order right on first try. Here is the correct order: 1. create network resources, but do not connect them to router yet. create ext-net, net1/subnet1, net2/subnet2 2. create router1 3. config router_id in l3-agent1, restart l3-agent1 5. create router2 6. config router_id in l3-agent2, restart l3-agent2 7. add ports to the router, namely: run router-interface-add and router-gateway-set for router1; run router-interface-add and router-gateway-set for router2. The key point is do not add any port to router until you have set router_id in all l3-agents and restart them. On first try, I have run router-gateway-set too early for router2. Thanks Ageeleshwar, Gustavo for your advices. To Gustavo: I set different router_id in different l3_agent.ini, that's the whole point of this setup. 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. YY Inc. is hiring openstack and python developers. Interested? Check http://www.nsbeta.info/jobs -- Thanks, Yuanle On Thu, Mar 6, 2014 at 4:10 AM, gustavo panizzo <gfa> <[email protected]> wrote: you may want to look at this thread https://www.mail-archive.com/[email protected]/msg03984.html is not what you ask for, but is the closest thing i've seen also check if your pkgs have this patch applied https://review.openstack.org/#/c/59359/ On 03/05/2014 09:21 AM, sylecn wrote: > > I started two l3 agents on two nodes. In l3_agent.ini, I set one l3 agent's > handle_internal_only_routers to False, I config router_id to be ids of > the two > routers. And neutron agent-list show both l3 agents are up. if you want to an L3 agent to serve just a single router, why put 2 routers in router_id? > > Now when I boot instance with a port in subnet2, the traffic still go > through > the server that runs l3-agent1. do you have routers for subnet2 on both nodes? my bet is l3-agent1 created a router for subnet2, maybe it was started before l3-agent2 PD: i'm not very experienced with nat router and gre, i use vlan and external networks > > My question is: is this kind of network supported by neutron? Does the > router_id config means the l3 agent will manage that router only? The only > document mention its use is when use_namespace is False. In my case, I > have it > set to True. > > Side note: there is a question on > https://answers.launchpad.net/neutron/+question/236230 which says it's > possible to change router's l3 agent, but did not mention how. > > Any help is appreciated. > > / > YY Inc. is hiring openstack and python developers. Interested? Check > http://www.nsbeta.info/jobs/ > > -- > Thanks, > Yuanle > > > _______________________________________________ > Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack > Post to : [email protected] > Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack > -- 1AE0 322E B8F7 4717 BDEA BF1D 44BB 1BA7 9F6C 6333 _______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : [email protected] Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
_______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : [email protected] Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
