-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2016-02-15 12:56, Jeroen Groenewegen van der Weyden wrote:
Hi,
On Opensuse leap 42.1 with liberty, I do not get dhcp to work. It seems I get a basic error but I cannot find what is wrong.
Anybody any idea?
it seems, the directory is owned by neutron, but using the rootwrap, this is starting dnsmasq as root, so that it can bind port 53, but then it will probably want to give away the extra privileges by changing to the "dnsmasq" user, which then gets a permission denied for writing on that dir. OTOH on a working cloud, I can see the leases file being owned by neutron - shouldnt neutron be the one writing it and dnsmasq just using it read-only? Ciao Bernhard M.
+++++++++from: dhcp-agent.log 2016-02-15 10:14:20.986 4253 ERROR neutron.agent.dhcp.agent File "/usr/lib/python2.7/site-packages/neutron/agent/linux/utils.py", line 159, in execute 2016-02-15 10:14:20.986 4253 ERROR neutron.agent.dhcp.agent raise RuntimeError(m) 2016-02-15 10:14:20.986 4253 ERROR neutron.agent.dhcp.agent RuntimeError: 2016-02-15 10:14:20.986 4253 ERROR neutron.agent.dhcp.agent Command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'qdhcp-dbb6455d-6d17-460a-8401-b57cf73640e8', 'dnsmasq', '--no-hosts', '--no-resolv', '--strict-order', '--except-interface=lo', '--pid-file=/var/lib/neutron/dhcp/dbb6455d-6d17-460a-8401-b57cf73640e8 /pid',
'--dhcp-hostsfile=/var/lib/neutron/dhcp/dbb6455d-6d17-460a-8401-b57cf736 40e8/host',
'--addn-hosts=/var/lib/neutron/dhcp/dbb6455d-6d17-460a-8401-b57cf73640 e8/addn_hosts',
'--dhcp-optsfile=/var/lib/neutron/dhcp/dbb6455d-6d17-460a-8401-b57cf7364 0e8/opts',
'--dhcp-leasefile=/var/lib/neutron/dhcp/dbb6455d-6d17-460a-8401-b57cf7 3640e8/leases',
'--dhcp-match=set:ipxe,175', '--bind-interfaces',
'--interface=tape68276d1-e6', '--dhcp-range=set:tag0,10.172.200.0,static,86400s', '--dhcp-lease-max=256', '--conf-file=', '--domain=openstacklocal'] 2016-02-15 10:14:20.986 4253 ERROR neutron.agent.dhcp.agent Exit code: 3 2016-02-15 10:14:20.986 4253 ERROR neutron.agent.dhcp.agent Stdin: 2016-02-15 10:14:20.986 4253 ERROR neutron.agent.dhcp.agent Stdout: 2016-02-15 10:14:20.986 4253 ERROR neutron.agent.dhcp.agent Stderr: 2016-02-15 10:14:20.986 4253 ERROR neutron.agent.dhcp.agent dnsmasq: cannot open or create lease file /var/lib/neutron/dhcp/dbb6455d-6d17-460a-8401-b57cf73640e8/leases: Permission denied ++++++++++++++++++
+++++++++++++++content of the directory :/var/lib/neutron/dhcp/dbb6455d-6d17-460a-8401-b57cf73640e8 # l total 20 drwxr-xr-x 2 neutron neutron 79 Feb 15 10:13 ./ drwxr-xr-x 4 neutron neutron 94 Feb 15 09:47 ../ -rw-r--r-- 1 neutron neutron 68 Feb 15 10:13 addn_hosts -rw-r--r-- 1 neutron neutron 67 Feb 15 10:13 host -rw-r--r-- 1 neutron neutron 14 Feb 15 10:13 interface -rw-r--r-- 1 neutron neutron 47 Feb 15 10:13 leases -rw-r--r-- 1 neutron neutron 140 Feb 15 10:13 opts ++++++++++++++++++
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlbBx7oACgkQSTYLOx37oWSNVgCgyezgu3lcSfVkXh8tT447QPkv nYwAoN3QVCpe0/EaShdFoKxHHGvjAVsM =PXGP -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-cloud+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-cloud+owner@opensuse.org