[Dnsmasq-discuss] How does DNSMASQ handle large concurrent configure file updating request requests

Simon Kelley simon at thekelleys.org.uk
Sun Feb 15 22:49:25 GMT 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256



On 15/02/15 06:15, Yongkang You wrote:
> On Sun, Feb 15, 2015 at 4:11 AM, Simon Kelley
> <simon at thekelleys.org.uk> wrote:
> 
>> Got it. Do you have --no-hosts set? That would explain why it
>> was working for me and not for you.
>> 
>> I just pushed the fix to git.
>> 
> 
> Your guessing is completely right! I am using no-hosts in
> dnsmasq.conf. Now the new codes work greatly in my environment.
> 
> But another issue I found is, the IP binding can't be really
> released even after remove the config files and manually call
> dhcp_release. So when I create another VM with the same IP address,
> it will report duplication.
> 
> dnsmasq.log is something like: --------------- Feb 15 06:12:45
> dnsmasq-dhcp[3521]: DHCPRELEASE(eth2) 10.11.0.3 fa:e1:51:0b:a5:00 
> ...
> 
> Feb 15 06:13:13 dnsmasq[3521]: inotify, new or changed file 
> /etc/hosts.dhcps//fa:e9:4a:40:7f:00 Feb 15 06:13:13
> dnsmasq-dhcp[3521]: read /etc/hosts.dhcps//fa:e9:4a:40:7f:00 Feb 15
> 06:13:13 dnsmasq[3521]: duplicate dhcp-host IP address 10.11.0.3
> at line 1 of /etc/hosts.dhcps//fa:e9:4a:40:7f:00
> 
> .... Feb 15 06:13:23 dnsmasq-dhcp[3521]: DHCPDISCOVER(eth2)
> fa:e9:4a:40:7f:00 no address available Feb 15 06:13:26
> dnsmasq-dhcp[3521]: DHCPDISCOVER(eth2) fa:e9:4a:40:7f:00 no address
> available
> 
> ---------------
> 
> Anything wrong?
> 

The current code doesn't do anything when a file is deleted. To make
that have an affect, you're back to sending SIGHUP to clean out the
data and re-read the current set of files.

I'm pretty sure I mentioned that way back.

If deleting lots of VMs one-at-time is something that will happen,
then we need to look at solving that, but my impressiion is that it's
not something openstack does often? Am I wrong?


Cheers,

Simon.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJU4SJ1AAoJEBXN2mrhkTWiwS4P/0e8NGyo1VjgBN2YO9O8VSlz
tBtImrFcm1q6+++BLFGXtjFH/1OcO6wHKHOr55yor/vLIm1LQ9e3mG6dPKXyqMnp
gTvt47TRneTymyY1nN3ZCFxGN1Udlmb/jyfk9vmJR9M0DRTfZEDIk25FlI1MkKMe
4G7PfmzKkBoHjE6KYWzvYepYb2dTcI+e9q8twRyQ6zp4qty+4J6RDJOHyY99Qia9
w2DZFUEV8fvugM22vS06WCzp1a+3Rw5gxYufY/ySLpDjmunpHo0b0xfDnGK96IJh
fd48x2T91GlynmPQRKDPWw2PADVQfuBnATPCHBhYiv7j3iDEkIDB68xsSTpJR3Wx
LVZlL7dATIe7C6T/lcSuOYWGwo9ykm/jUQlTdnVq6bNhc9cTijlb0VIyD+EvIDmc
iT7rJjBMThRjJoX+yWtMn4+KoJ+MxXD6cVcaR+CNXSmU+DDhZUQYwaL7fJ7WOKUM
X+/6a3ByC01NLJBoOgLB/mMRnpizkK/BnQS8RoW78kOz1NUW4g3iMlox6sku+GDJ
g4IMpHOlaLxDrIW1ullPGcBvH8aihli5BCLUW/ft5aGPdstQT3XXSIy3QC0N6CFl
87tAq183axFm4jysH5RBv7C5xBpL2qyAhkZEGDZNx5JfZDkpd5wANQDkzYD00QA3
dbokl4PShIlPuszi1mmw
=3jTe
-----END PGP SIGNATURE-----



More information about the Dnsmasq-discuss mailing list