[Dnsmasq-discuss] possible Bug: DHCPDISCOVER no address available
Thomas Kärgel
kaergel at b1-systems.de
Thu May 23 16:16:10 BST 2013
Hi,
Am 23.05.2013 11:23, schrieb Thomas Kärgel:
> Hi,
>
> Am 23.05.2013 10:23, schrieb Simon Kelley:
>> On 23/05/13 08:14, Thomas Kärgel wrote:
>>> Hi everyone,
>>>
>>> Thanks for the wonderful work you did in this project. i'm using dnsmasq
>>> for years now and never had any problems with it until now. I hope that
>>> someone can help us with this problem or at least help us pointing out
>>> what the cause of this problem is. Many thanks in advance.
>>>
>>> Dnsmasq is used as DHCP-Server in Openstack Cloud Software. The normal
>>> usage principle looks like this:
>>>
>>> 1. An Openstack service starts dnsmasq as DHCP-daemon configured with
>>> "--dhcp-hostsfile=filename"-option. The hostsfile is written by
>>> openstack and filled with information in dnsmasq-format.
>>> Example:
>>> fa:16:3e:86:19:a6,,10.72.226.10,172800
>>> fa:16:3e:78:19:8b,,10.72.226.11,172800
>> ^
>>
>> double comma? I didn't consider that a possibilty when writing the
>> parsing code. It probably works, but worth a try removing this.
>
> This hostfile-example is not entirely representative for a
> Openstack-generated-hostfile.
> Normally there is a clientname provided by openstack in hostsfile in
> between the 2 commas. I had to patch this functionality, cause hostnames
> should be looked up against an upstream DNSserver.
>
> I quoted your questions at the openstack-mailing list. I can not
> reproduce the problem myself. It is occuring sporadically on my
> environment. 2 other people could reliably reproduce the problem. We'll
> have to wait for their help.
>
I just received this logs from Marco, one of the other people
experiencing the same issue:
> Dnsmasq process :
>
> root at grizzly:/# ps aux | grep ns-7bdec7ff-b4
> nobody 14999 0.0 0.0 12968 732 ? S 14:16 0:00 dnsmasq --no-hosts --no-resolv --strict-order --bind-interfaces --interface=ns-7bdec7ff-b4 --except-interface=lo --pid-file=/var/lib/quantum/dhcp/fe11c4c2-81b4-475a-8f7f-2810bbe332d7/pid --dhcp-hostsfile=/var/lib/quantum/dhcp/fe11c4c2-81b4-475a-8f7f-2810bbe332d7/host --dhcp-optsfile=/var/lib/quantum/dhcp/fe11c4c2-81b4-475a-8f7f-2810bbe332d7/opts --dhcp-script=/usr/bin/quantum-dhcp-agent-dnsmasq-lease-update --leasefile-ro --dhcp-range=set:tag0,192.168.178.0,static,120s --conf-file= --domain=openstacklocal --log-dhcp
>
> root 15000 0.0 0.0 12968 392 ? S 14:16 0:00 dnsmasq --no-hosts --no-resolv --strict-order --bind-interfaces --interface=ns-7bdec7ff-b4 --except-interface=lo --pid-file=/var/lib/quantum/dhcp/fe11c4c2-81b4-475a-8f7f-2810bbe332d7/pid --dhcp-hostsfile=/var/lib/quantum/dhcp/fe11c4c2-81b4-475a-8f7f-2810bbe332d7/host --dhcp-optsfile=/var/lib/quantum/dhcp/fe11c4c2-81b4-475a-8f7f-2810bbe332d7/opts --dhcp-script=/usr/bin/quantum-dhcp-agent-dnsmasq-lease-update --leasefile-ro --dhcp-range=set:tag0,192.168.178.0,static,120s --conf-file= --domain=openstacklocal --log-dhcp
> root 15428 0.0 0.0 8108 924 pts/3 S+ 14:26 0:00 grep --color=auto ns-7bdec7ff-b4
>
> syslog :
>
> dnsmasq-dhcp[14999]: 3651321924 DHCPDISCOVER(ns-7bdec7ff-b4) fa:16:3e:2f:ae:bb no address available
> dnsmasq-dhcp[14999]: 1707151883 available DHCP subnet: 192.168.178.0/255.255.255.0
> dnsmasq-dhcp[14999]: 1707151883 client provides name: ubuntu
> dnsmasq-dhcp[14999]: 1707151883 DHCPDISCOVER(ns-7bdec7ff-b4) fa:16:3e:23:b1:29 no address available
> dnsmasq-dhcp[14999]: 1721925447 available DHCP subnet: 192.168.178.0/255.255.255.0
> dnsmasq-dhcp[14999]: 1721925447 client provides name: ubuntu
> dnsmasq-dhcp[14999]: 1721925447 DHCPDISCOVER(ns-7bdec7ff-b4) fa:16:3e:db:93:9d no address available
> dnsmasq-dhcp[1663]: DHCPREQUEST(ns-68bec258-7f) 10.10.10.4 fa:16:3e:57:59:0c
> dnsmasq-dhcp[1663]: DHCPACK(ns-68bec258-7f) 10.10.10.4 fa:16:3e:57:59:0c 10-10-10-4
> dnsmasq[14999]: script process exited with status 1
> dnsmasq-dhcp[14999]: 2477483026 available DHCP subnet: 192.168.178.0/255.255.255.0
> dnsmasq-dhcp[14999]: 2477483026 client provides name: ubuntu
> dnsmasq-dhcp[14999]: 2477483026 DHCPDISCOVER(ns-7bdec7ff-b4) fa:16:3e:25:0a:24 no address available
> dnsmasq-dhcp[14999]: 595651121 available DHCP subnet: 192.168.178.0/255.255.255.0
> dnsmasq-dhcp[14999]: 595651121 client provides name: ubuntu
> dnsmasq-dhcp[14999]: 595651121 DHCPDISCOVER(ns-7bdec7ff-b4) fa:16:3e:c1:bb:80 no address available
> dnsmasq-dhcp[14999]: 3651321924 available DHCP subnet: 192.168.178.0/255.255.255.0
> dnsmasq-dhcp[14999]: 3651321924 client provides name: ubuntu
> dnsmasq-dhcp[14999]: 3651321924 DHCPDISCOVER(ns-7bdec7ff-b4) fa:16:3e:2f:ae:bb no address available
> dnsmasq-dhcp[14999]: 2477483026 available DHCP subnet: 192.168.178.0/255.255.255.0
> dnsmasq-dhcp[14999]: 2477483026 client provides name: ubuntu
> dnsmasq-dhcp[14999]: 2477483026 DHCPDISCOVER(ns-7bdec7ff-b4) fa:16:3e:25:0a:24 no address available
> dnsmasq[14999]: script process exited with status 1
> dnsmasq[14999]: script process exited with status 1
> dnsmasq-dhcp[30288]: DHCPREQUEST(ns-0950f0b7-fd) 10.1.1.5 fa:16:3e:0a:18:5d
> dnsmasq-dhcp[30288]: DHCPACK(ns-0950f0b7-fd) 10.1.1.5 fa:16:3e:0a:18:5d 10-1-1-5
> dnsmasq-dhcp[1663]: DHCPREQUEST(ns-68bec258-7f) 10.10.10.2 fa:16:3e:a0:cd:96
> dnsmasq-dhcp[1663]: DHCPACK(ns-68bec258-7f) 10.10.10.2 fa:16:3e:a0:cd:96 10-10-10-2
> dnsmasq-dhcp[14999]: 1721925447 available DHCP subnet: 192.168.178.0/255.255.255.0
> dnsmasq-dhcp[14999]: 1721925447 client provides name: ubuntu
> dnsmasq-dhcp[14999]: 1721925447 DHCPDISCOVER(ns-7bdec7ff-b4) fa:16:3e:db:93:9d no address available
> dnsmasq-dhcp[14999]: 1707151883 available DHCP subnet: 192.168.178.0/255.255.255.0
> dnsmasq-dhcp[14999]: 1707151883 client provides name: ubuntu
> dnsmasq-dhcp[14999]: 1707151883 DHCPDISCOVER(ns-7bdec7ff-b4) fa:16:3e:23:b1:29 no address available
> dnsmasq-dhcp[14999]: 595651121 available DHCP subnet: 192.168.178.0/255.255.255.0
> dnsmasq-dhcp[14999]: 595651121 client provides name: ubuntu
>
> Hostfile :
>
> fa:16:3e:4a:87:18,192-168-178-4.openstacklocal,192.168.178.4
> fa:16:3e:2f:ae:bb,192-168-178-7.openstacklocal,192.168.178.7
> fa:16:3e:db:93:9d,192-168-178-5.openstacklocal,192.168.178.5
> fa:16:3e:c1:bb:80,192-168-178-2.openstacklocal,192.168.178.2
> fa:16:3e:94:6f:71,192-168-178-1.openstacklocal,192.168.178.1
> fa:16:3e:23:b1:29,192-168-178-6.openstacklocal,192.168.178.6
> fa:16:3e:25:0a:24,192-168-178-3.openstacklocal,192.168.178.3
This is typical hostsfile generated by openstack-quantum-dhcp-agent.
With hostnames and without leasetime specifictaion.
> This is the log after killall dnsmasq and restart quantum-dhcp-agent
>
>
> xen20 dnsmasq-dhcp[28083]: 2021462018 available DHCP subnet: 192.168.178.0/255.255.255.0
> xen20 dnsmasq-dhcp[28083]: 2021462018 client provides name: ubuntu
> xen20 dnsmasq-dhcp[28083]: 2021462018 DHCPREQUEST(ns-7bdec7ff-b4) 192.168.178.3 fa:16:3e:25:0a:24
> xen20 dnsmasq-dhcp[28083]: 2021462018 DHCPNAK(ns-7bdec7ff-b4) 192.168.178.3 fa:16:3e:25:0a:24 lease not found
> xen20 dnsmasq-dhcp[28083]: 2021462018 broadcast response
> xen20 dnsmasq-dhcp[28083]: 2021462018 sent size: 1 option: 53 message-type 6
> xen20 dnsmasq-dhcp[28083]: 2021462018 sent size: 4 option: 54 server-identifier 192.168.178.4
> xen20 dnsmasq-dhcp[28083]: 2021462018 sent size: 15 option: 56 message 6c:65:61:73:65:20:6e:6f:74:20:66:6f:75:6e...
> xen20 dnsmasq-dhcp[28083]: 2376587545 available DHCP subnet: 192.168.178.0/255.255.255.0
> xen20 dnsmasq-dhcp[28083]: 2376587545 client provides name: ubuntu
> xen20 dnsmasq-dhcp[28083]: 2376587545 DHCPDISCOVER(ns-7bdec7ff-b4) fa:16:3e:25:0a:24
> xen20 dnsmasq-dhcp[28083]: 2376587545 tags: tag0, known, ns-7bdec7ff-b4
> xen20 dnsmasq-dhcp[28083]: 2376587545 DHCPOFFER(ns-7bdec7ff-b4) 192.168.178.3 fa:16:3e:25:0a:24
> xen20 dnsmasq-dhcp[28083]: 2376587545 requested options: 1:netmask, 28:broadcast, 2:time-offset, 3:router,
> xen20 dnsmasq-dhcp[28083]: 2376587545 requested options: 15:domain-name, 6:dns-server, 119:domain-search,
> xen20 dnsmasq-dhcp[28083]: 2376587545 requested options: 12:hostname, 44:netbios-ns, 47:netbios-scope,
> xen20 dnsmasq-dhcp[28083]: 2376587545 requested options: 26:mtu, 121:classless-static-route, 42:ntp-server
> xen20 dnsmasq-dhcp[28083]: 2376587545 next server: 192.168.178.4
> xen20 dnsmasq-dhcp[28083]: 2376587545 sent size: 1 option: 53 message-type 2
> xen20 dnsmasq-dhcp[28083]: 2376587545 sent size: 4 option: 54 server-identifier 192.168.178.4
> xen20 dnsmasq-dhcp[28083]: 2376587545 sent size: 4 option: 51 lease-time 2m
> xen20 dnsmasq-dhcp[28083]: 2376587545 sent size: 4 option: 58 T1 1m
> xen20 dnsmasq-dhcp[28083]: 2376587545 sent size: 4 option: 59 T2 1m45s
> xen20 dnsmasq-dhcp[28083]: 2376587545 sent size: 4 option: 1 netmask 255.255.255.0
> xen20 dnsmasq-dhcp[28083]: 2376587545 sent size: 4 option: 28 broadcast 192.168.178.255
> xen20 dnsmasq-dhcp[28083]: 2376587545 sent size: 14 option: 15 domain-name openstacklocal
> xen20 dnsmasq-dhcp[28083]: 2376587545 sent size: 4 option: 3 router 192.168.178.1
> xen20 dnsmasq-dhcp[28083]: 2376587545 sent size: 4 option: 6 dns-server 8.8.8.8
> xen20 dnsmasq-dhcp[28083]: 2376587545 available DHCP subnet: 192.168.178.0/255.255.255.0
> xen20 dnsmasq-dhcp[28083]: 2376587545 client provides name: ubuntu
> xen20 dnsmasq-dhcp[28083]: 2376587545 DHCPREQUEST(ns-7bdec7ff-b4) 192.168.178.3 fa:16:3e:25:0a:24
Best regards,
Thomas
--
Thomas Kärgel
Linux Consultant
Mail: kaergel at b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 555 bytes
Desc: OpenPGP digital signature
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20130523/4f73e900/attachment.pgp>
More information about the Dnsmasq-discuss
mailing list