Instances didn't get an ip from neutron dhcp agent

asked 2014-04-10 05:48:43 -0600

tahder gravatar image


I had 3 nodes namely compute, contoller and the network node in where neutron resides the dhcp agent and l3 router.

All of them have nova compute on each and openvswitch plugins on it. I used to create a network, subnet and router via cli, on any of the nodes.

But got a problem when I used to run the instances could not get an iP from the controller and compute nodes except for the network that has no problem at all as I can communicate all instances on the same subnet as long as the instances created in the network node host.

My query now, how to let the dhcp agent able to distribute the IPs on the different nodes? Where is my problem? I tried to do manually changing the IPs but still doesn't connect to different nodes. The dashboard get an assigned iP but not on instances, again except for the network node instances.


edit retag flag offensive close merge delete


Could you post the last 30-50 lines from /var/log/neutron/dnsmasq.log and ouput

ps -ef | grep dnsmasq
dbaxps gravatar imagedbaxps ( 2014-04-10 06:06:20 -0600 )edit

@dbaxps on this link, I used to put the logs. Hope it helps.

link text

tahder gravatar imagetahder ( 2014-04-10 16:53:22 -0600 )edit

I've asked for dnsmasq.log not for /var/log/neutron/dhcp-agent.log

My Config - Two Node Havana Neutron GRE&OVS
You can clearly see in last log entries like :-

Apr 11 08:37:15 dnsmasq-dhcp[4246]: 3514012012 client provides name: ubuntutrs0411
Apr 11 08:37:15 dnsmasq-dhcp[4246]: 3514012012 DHCPREQUEST(ns-343b0090-24) fa:16:3e:cd:6f:72 
Apr 11 08:37:15 dnsmasq-dhcp[4246]: 3514012012 tags: tag0, known, ns-343b0090-24
Apr 11 08:37:15 dnsmasq-dhcp[4246]: 3514012012 DHCPACK(ns-343b0090-24) fa:16:3e:cd:6f:72 host-40-0-0-2
dbaxps gravatar imagedbaxps ( 2014-04-10 23:53:01 -0600 )edit

Neutron Server is on Controller, instances are running on Compute and obtain private IPs from Dnsmasq daemon running on Controller. If my understanding of your problem is correct, I would check you dnsmasq.log for "lease entries" and run
neutron router-list
neutron router-port-list router-id
for suspected router. Neutron commands here

dbaxps gravatar imagedbaxps ( 2014-04-11 00:06:22 -0600 )edit