[Dnsmasq-discuss] Permission issue with dnsmasq

Abhishek Chanda abhishek.lists at gmail.com
Wed Feb 11 01:10:44 GMT 2015


This turned out to be due to apparmor blocking writes there. Worked
fine on killing it.

Thanks

On Tue, Feb 10, 2015 at 2:45 PM, Abhishek Chanda
<abhishek.lists at gmail.com> wrote:
> Hi all,
>
> I'm trying to run dnsmasq as part of openstack neutron. It fails with
> a permission denied while trying to create the pidfile. Root user does
> have permission on the directory where it is trying to write.
>
> cloudscaling at mngmt2:~> ls -la
> /var/lib/neutron/dhcp/312c528b-7ca2-42f1-a9b0-a15d7a0d7571/
> total 16
> drwxr-xr-x 1 root root  54 Feb 10 14:39 .
> drwxr-xr-x 1 root root  72 Feb 10 13:57 ..
> -rw-r--r-- 1 root root 268 Feb 10 14:39 addn_hosts
> -rw-r--r-- 1 root root 264 Feb 10 14:39 host
> -rw-r--r-- 1 root root  14 Feb 10 14:39 interface
> -rw-r--r-- 1 root root  77 Feb 10 14:39 opts
>
> cloudscaling at mngmt2:~> sudo dnsmasq --no-hosts --no-resolv
> --strict-order --bind-interfaces --interface=eth0
> --except-interface=lo
> --pid-file=/var/lib/neutron/dhcp/312c528b-7ca2-42f1-a9b0-a15d7a0d7571/pid
> --dhcp-hostsfile=/var/lib/neutron/dhcp/312c528b-7ca2-42f1-a9b0-a15d7a0d7571/host
> --addn-hosts=/var/lib/neutron/dhcp/312c528b-7ca2-42f1-a9b0-a15d7a0d7571/addn_hosts
> --dhcp-optsfile=/var/lib/neutron/dhcp/312c528b-7ca2-42f1-a9b0-a15d7a0d7571/opts
> --leasefile-ro --dhcp-range=set:tag0,192.168.122.0,static,86400s
> --dhcp-lease-max=16 --conf-file= --domain=openstacklocal
>
> dnsmasq: failed to open pidfile
> /var/lib/neutron/dhcp/312c528b-7ca2-42f1-a9b0-a15d7a0d7571/pid:
> Permission denied
>
> I changed the permission of the directory to 777 and still got the
> same error. What can be the issue here?
>
> Thanks



More information about the Dnsmasq-discuss mailing list