Ask Your Question
0

[Grizzly]how to config multiple l3 agent for quantum ? I wanna run multiple l3 agent on one network node, because I wanna multiple external network.

asked 2013-09-24 03:10:35 -0500

guolongcang-work gravatar image

[Grizzly]how to config multiple l3 agent for quantum ? I wanna run multiple l3 agent on one network node, because I wanna multiple external network.

edit retag flag offensive close merge delete

12 answers

Sort by » oldest newest most voted
1

answered 2014-02-18 16:09:44 -0500

rkukura gravatar image

Just want to point out that since https://review.openstack.org/#/c/59359/ was merged, a single l3-agent can handle multiple external networks (using provider networks rather than external_network_bridge), so running multiple l3-agents on the same node should no longer be necessary.

edit flag offensive delete link more
0

answered 2014-02-18 16:21:33 -0500

guolongcang-work gravatar image

to Robert Kukura: Thank you for your infomation , it's really useful.

to Li Ma: Please refer to Robert Kukura's reply.

edit flag offensive delete link more
0

answered 2013-10-09 15:56:16 -0500

aji-zqfan gravatar image

i think maybe you can update this to the official manual, it's really useful

edit flag offensive delete link more
0

answered 2013-10-09 05:05:57 -0500

guolongcang-work gravatar image

Problem Solved.

edit flag offensive delete link more
0

answered 2013-10-09 05:05:25 -0500

guolongcang-work gravatar image

to ZhiQiang:

Thank you for your reply.
I have solved this problem,  successfully run multiple l3 agent on one network node, and created 2 external networks,  all of them are running normally. I don't know which version of openstack code you refer , I use Grizzly.     
And my Configuration Steps:
1、 enable network namespace on quantum.conf, dhcp-agent.ini , l3-agent.ini
2、 create two external network, then refer to http://docs.openstack.org/grizzly/openstack-network/admin/content/adv_cfg_l3_agent_multi_extnet.html
3、 add an option named 'host' in each l3-agent.ini file, looks like 
        first l3-agent.ini:
         host = first-l3
        second l3-agent.ini:
         host = second-l3
4、 change the network node and controller node's   /etc/hosts file, supose your network node's ip address is 10.10.1.4, then add two lines to it:
        10.10.1.4  first-l3
        10.10.1.4  second-l3
5、 create two router through cli ,and all router's default l3-agent is the first one , change one router's l3 agent to the second one .
6、 set two external network as corresponding router's gateway.
7、 done.
edit flag offensive delete link more
0

answered 2013-09-29 00:46:22 -0500

aji-zqfan gravatar image

and there is another similar question solved by yong sheng gong: https://answers.launchpad.net/neutron/+question/230239 (https://answers.launchpad.net/neutron...)

edit flag offensive delete link more
0

answered 2013-09-25 14:35:49 -0500

aji-zqfan gravatar image

currently, you cannot run multiple l3-agent in a same host, and multi external network is not supported yet.

for i.e. l3-agent need to get_external_network_id via l3_rpc_base, and it invokes the plugin's method, which is defined in quantum/db/l3_db.py (grizzly):

def get_external_network_id(self, context):
    nets = self.get_networks(context, {external_net.EXTERNAL: [True]})
    if len(nets) > 1:
        raise q_exc.TooManyExternalNetworks()
    else:
        return nets[0]['id'] if nets else None

so you can not directly run multiple external net in quantum, even you modify this part and all other related part, you still cannot support multiple external network, the l3-agent is designed to be unique in single host, there are many code based on this design. (you can see the init process of l3-agent, that will show you something, especially the ns destroy and create), so even multiple ext nets are created and multiple l3-agents are started (after some effort to modify), but they may still not work well (but you can try, nothing is impossible)

moreover, i think this feature will not be added to grizzly (even havana), since it is already in stable branch.

There already a few discussion about this topic in bugs comment and reviews, but sorry i cannot remember the links.

edit flag offensive delete link more
0

answered 2014-02-17 05:30:18 -0500

hi happyidea, Could you explain more at step 5? how to config all router's default l3-agent is the first one , change one router's l3 agent to the second one?

edit flag offensive delete link more
0

answered 2013-10-10 05:18:07 -0500

guolongcang-work gravatar image

to ZhiQiang: Thanks for your advice . I will do that later.

edit flag offensive delete link more
0

answered 2014-02-18 05:16:40 -0500

hi happyidea,

How do you set these l3_agent.ini for different l3-agent on the same node? I'm doing the same experiment and find it difficult to set these l3-agents properly.

thanks.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-09-24 03:10:35 -0500

Seen: 138 times

Last updated: Feb 19 '14