https://redmine.pfsense.org/https://redmine.pfsense.org/favicon.ico?16780521162015-08-12T16:36:04ZpfSense bugtrackerpfSense - Bug #4931: dhcpleases misses some DHCP lease changeshttps://redmine.pfsense.org/issues/4931?journal_id=198182015-08-12T16:36:04ZChris Buechlercbuechler@gmail.com
<ul><li><strong>Subject</strong> changed from <i>Unbound misses some dhcp lease changes</i> to <i>dhcpleases misses some DHCP lease changes</i></li><li><strong>Category</strong> set to <i>DNS Resolver</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>Confirmed</i></li><li><strong>Priority</strong> changed from <i>Normal</i> to <i>High</i></li><li><strong>Target version</strong> set to <i>2.2.5</i></li><li><strong>Affected Version</strong> changed from <i>2.2.4</i> to <i>All</i></li><li><strong>Affected Architecture</strong> <i>All</i> added</li><li><strong>Affected Architecture</strong> deleted (<del><i>amd64</i></del>)</li></ul><p>Thank you! That's the root of a problem I was in the midst of troubleshooting and hadn't had time to get to the bottom of yet. It also affects DNS Forwarder since it uses dhcpleases as well.</p> pfSense - Bug #4931: dhcpleases misses some DHCP lease changeshttps://redmine.pfsense.org/issues/4931?journal_id=198192015-08-13T01:11:29ZKill Bill
<ul></ul><p>So... as result, this causes unbound to restart every 5 minutes (Bug <a class="issue tracker-1 status-11 priority-5 priority-high4 closed" title="Bug: Lengthy unbound outage during restart when adding static DHCP leases (Duplicate)" href="https://redmine.pfsense.org/issues/4396">#4396</a>)? I'd rather live with the original bug!!!</p> pfSense - Bug #4931: dhcpleases misses some DHCP lease changeshttps://redmine.pfsense.org/issues/4931?journal_id=198202015-08-13T01:13:47ZChris Buechlercbuechler@gmail.com
<ul></ul><p>I don't think that in and of itself would trigger a restart of unbound, as it doesn't mean it picks up a hostname change. But we definitely won't do anything that restarts unbound every 5 minutes given <a class="issue tracker-1 status-11 priority-5 priority-high4 closed" title="Bug: Lengthy unbound outage during restart when adding static DHCP leases (Duplicate)" href="https://redmine.pfsense.org/issues/4396">#4396</a>.</p> pfSense - Bug #4931: dhcpleases misses some DHCP lease changeshttps://redmine.pfsense.org/issues/4931?journal_id=202832015-09-02T09:52:40ZAdam Stylinskikungfujesus06@gmail.com
<ul></ul><p>Forgive my ignore but wouldn't these lines of code cover the situation where the file is moved?<br /> if ((evlist.fflags & NOTE_DELETE) || (evlist.fflags & NOTE_RENAME)) {<br /> close(leasefd);<br /> goto reopen;<br /> }</p>
<p>Unless of course the file is being copied rather than moved. In which case the solution becomes obvious (mv rather cp).</p> pfSense - Bug #4931: dhcpleases misses some DHCP lease changeshttps://redmine.pfsense.org/issues/4931?journal_id=203832015-09-03T21:46:09ZJim Thompsonjim@netgate.com
<ul><li><strong>Assignee</strong> set to <i>Renato Botelho</i></li></ul> pfSense - Bug #4931: dhcpleases misses some DHCP lease changeshttps://redmine.pfsense.org/issues/4931?journal_id=210602015-09-21T20:42:06ZLuiz Souzaluiz@netgate.com
<ul><li><strong>Assignee</strong> changed from <i>Renato Botelho</i> to <i>Luiz Souza</i></li></ul> pfSense - Bug #4931: dhcpleases misses some DHCP lease changeshttps://redmine.pfsense.org/issues/4931?journal_id=212332015-09-28T08:32:08ZLuiz Souzaluiz@netgate.com
<ul><li><strong>Status</strong> changed from <i>Confirmed</i> to <i>Feedback</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>The real issue here was a small race that came from EV_ONESHOT usage. Due to async nature of kqueue when we reopen a new file descriptor too quickly the EV_ONESHOT could still be set in kqueue making dhcpleases miss all the subsequent changes on file.</p>
<p>Fixed in 2.3 and RELENG_2_2.</p> pfSense - Bug #4931: dhcpleases misses some DHCP lease changeshttps://redmine.pfsense.org/issues/4931?journal_id=212392015-09-28T12:19:49ZChris Buechlercbuechler@gmail.com
<ul><li><strong>Assignee</strong> changed from <i>Luiz Souza</i> to <i>Chris Buechler</i></li></ul><p>Thanks Luiz. To me for testing.</p> pfSense - Bug #4931: dhcpleases misses some DHCP lease changeshttps://redmine.pfsense.org/issues/4931?journal_id=216112015-10-13T00:32:24ZChris Buechlercbuechler@gmail.com
<ul></ul><p>the same original issue still seems to exist in latest 2.2.5. Obtained leases on 50 clients, all registered fine. Another 50 a few minutes later. Those all fine. Wait an hour, and do another 50. Those don't show up in dhcpleases_entries.conf until you -HUP dhcpleases (or wait some period of time that's at least > 30 minutes).</p> pfSense - Bug #4931: dhcpleases misses some DHCP lease changeshttps://redmine.pfsense.org/issues/4931?journal_id=218122015-10-22T21:51:44ZChris Buechlercbuechler@gmail.com
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Resolved</i></li></ul><p>works now, across many changes of the leases file and subsequent updates.</p>