Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

There are always 2 processes running for each dhcp network. The subprocess is because dnsmasq setuids to nobocy to run the external script specified in --dhcp-script. This is expected behavior. You may run into issues if you have another dnsmasq processes running on the box, such as the one that is started by default if you apt-get install dnsmasq

On Dec 9, 2011, at 6:25 AM, Tianchen Jiang wrote:

New question #181398 on OpenStack Compute (nova):

My nova installation is working fine but I'm quite bothered by an observation: there are always 2 dnsmasq processes running at the same time, one being the sub-process of the other:

ps -ef | grep dns

nobody 11435 1 0 06:09 ? 00:00:00 dnsmasq --strict-order --bind-interfaces --conf-file= --domain=novalocal --pid-file=/var/lib/nova/networks/ --listen-address= --except-interface=lo --dhcp-range=,static,120s --dhcp-lease-max=256 --dhcp-hostsfile=/var/lib/nova/networks/nova-br100.conf --dhcp-script=/usr/bin/nova-dhcpbridge --leasefile-ro root 11436 11435 0 06:09 ? 00:00:00 dnsmasq --strict-order --bind-interfaces --conf-file= --domain=novalocal --pid-file=/var/lib/nova/networks/ --listen-address= --except-interface=lo --dhcp-range=,static,120s --dhcp-lease-max=256 --dhcp-hostsfile=/var/lib/nova/networks/nova-br100.conf --dhcp-script=/usr/bin/nova-dhcpbridge --leasefile-ro

I tried "killall dnsmasq; service nova-network restart" numerous times and the observation remained.

Nova admin guide states this as a problem that will prevent VMs from receiving IP addresses. I also experienced failed DHCP handshake with a Windows VM which I suspect is related with 2 dnsmasq proceses (see my previous question:

So my questions are: - Is it possible that 2 dnsmasq processes will cause sporadic DHCP handshake failure? - If so, what can I do to fix it?

Again your help is highly appreciated! Kenneth

-- You received this question notification because you are a member of Nova Core, which is an answer contact for OpenStack Compute (nova).