For interest I have run into this on Ubuntu 14.04.
dnsmasq is run as user 'nobody', and gets
stat("/var/lib/neutron/dhcp/e2a6a633-45f4-4fcd-a842-0c5fb54b2fba/host", 0x7fff42977110) = -1 EACCES (Permission denied)
which silently fails (e.g. dnsmasq comes up but doesn't work) as it is invoked as:
For interest I have run into this on Ubuntu 14.04. var/lib/ neutron/ dhcp/e2a6a633- 45f4-4fcd- a842-0c5fb54b2f ba/host" , 0x7fff42977110) = -1 EACCES (Permission denied)
dnsmasq is run as user 'nobody', and gets
stat("/
which silently fails (e.g. dnsmasq comes up but doesn't work) as it is invoked as:
dnsmasq --no-hosts --no-resolv --strict-order --bind-interfaces --interface= tapef46bd92- 2c --except- interface= lo --pid-file= /var/lib/ neutron/ dhcp/e2a6a633- 45f4-4fcd- a842-0c5fb54b2f ba/pid --dhcp- hostsfile= /var/lib/ neutron/ dhcp/e2a6a633- 45f4-4fcd- a842-0c5fb54b2f ba/host --addn- hosts=/ var/lib/ neutron/ dhcp/e2a6a633- 45f4-4fcd- a842-0c5fb54b2f ba/addn_ hosts --dhcp- optsfile= /var/lib/ neutron/ dhcp/e2a6a633- 45f4-4fcd- a842-0c5fb54b2f ba/opts --leasefile-ro --dhcp- range=set: tag0,172. 16.1.0, static, 86400s --dhcp- lease-max= 256 --conf- file=/etc/ neutron/ dnsmasq. conf --server= 107.150. 57.202 --domain=stack
changing /etc/neutron/ dnsmasq. conf to add 'user=neutron' causes it to work properly.