Ask Your Question
1

how to start second l3-agent in order to create multiple external networks on the same host

asked 2014-04-28 01:08:00 -0500

br gravatar image

VM should have two Interfaces. I want to assign two different floating series ips to two interfaces. To achieve this, I came to know two l3-agents needs to be running. Anybody has idea about how to create second l3-agent.

I already tried the follwing command./ /usr/bin/python /usr/bin/neutron-l3-agent --config-file=/etc/neutron.neutron.conf --config-file=/etc/neutron/l3_agent.ini

with proper external network gateway id and bridge interface. I was not able to create the second l3-agent.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-05-09 08:00:49 -0500

DanIzack gravatar image
edit flag offensive delete link more
0

answered 2014-05-08 16:55:06 -0500

kfox gravatar image

updated 2014-05-08 17:57:06 -0500

I've been doing something like the following ugly hack under RDO (change NAME value):

NAME=foo

cp -a /etc/neutron/l3_agent.ini /etc/neutron/l3_agent_$NAME.ini

sed 's/neutron-l3-agent/neutron-l3-agent-'$NAME'/g;/^exec=./aprog="$prog-'$NAME'"' /etc/init.d/neutron-l3-agent | sed '/^pidfile=./aplugin=l3-agent-'$NAME | sed '/.l3_agent.ini./a@FOO@' | sed 's:@FOO@: "/etc/$proj/l3_agent_'$NAME'.ini" \:' > /etc/init.d/neutron-l3-agent-$NAME

chmod +x /etc/init.d/neutron-l3-agent-$NAME

chkconfig neutron-l3-agent-$NAME on

Then edit:

  • gateway_external_network_id
  • external_network_bridge
  • handle_internal_only_routers
  • host

You must set host = some unique name on all l3 agents and put them in /etc/hosts as described here: https://answers.launchpad.net/neutron/+question/236230 (https://answers.launchpad.net/neutron...)

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: 2014-04-28 01:08:00 -0500

Seen: 529 times

Last updated: May 09 '14