Ask Your Question
1

how to allow multiple neutron dhcp agent

asked 2014-03-31 05:47:07 -0500

Julian Zhu gravatar image

updated 2014-03-31 05:48:30 -0500

i am trying to setup an openstack havana environment with 2 network nodes. I have successfully started the l3-agent on both nodes, but failed to start the 2nd dhcp agent without any error message. The 2nd dhcp agent process just exits with log below:

2014-03-31 15:27:33.955 5882 INFO neutron.common.config [-] Logging enabled!
2014-03-31 15:27:33.956 5882 ERROR neutron.common.legacy [-] Skipping unknown group key: firewall_driver
2014-03-31 15:27:33.965 5882 INFO neutron.agent.linux.dhcp [-] dnsmasq version: 2.48
2014-03-31 15:27:34.009 5882 INFO neutron.openstack.common.rpc.impl_qpid [-] Connected to AMQP server on 192.168.49.136:5672
2014-03-31 15:27:34.011 5882 INFO neutron.openstack.common.rpc.impl_qpid [-] Connected to AMQP server on 192.168.49.136:5672
2014-03-31 15:27:34.030 5882 INFO neutron.openstack.common.rpc.impl_qpid [-] Connected to AMQP server on 192.168.49.136:5672
2014-03-31 15:27:34.034 5882 INFO neutron.agent.dhcp_agent [-] DHCP agent started
2014-03-31 15:27:34.096 5882 INFO neutron.agent.dhcp_agent [-] Synchronizing state

if I stop the 1st dhcp agent, the 2nd dhcp agent will start successfully and work fine. I think it should be a configuration issue but I can't find the root. Can anyone help to check it?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-03-31 07:04:06 -0500

darragh-oreilly gravatar image

Have a look in neutron.conf for this, uncomment and change to 2:

# Number of DHCP agents scheduled to host a network. This enables redundant
# DHCP agents for configured networks.
# dhcp_agents_per_network = 1

Alternatively you can use the 'neutron agent-*` commands:

$ neutron dhcp-agent-
dhcp-agent-list-hosting-net  dhcp-agent-network-add       dhcp-agent-network-remove
edit flag offensive delete link more

Comments

Thank you!

Julian Zhu gravatar imageJulian Zhu ( 2014-04-01 00:10:32 -0500 )edit
0

answered 2014-04-07 01:32:47 -0500

tahder gravatar image

This is not an answer to your question but it seems related to this topic.

If you don't mind, how do make enable your neutron dhcp agent to work with other nodes? What are the configurations that the other nodes Virtual machines able to get an ip ? Mine works just on the same node referring to the VM instances.

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-03-31 05:47:07 -0500

Seen: 912 times

Last updated: Apr 07 '14