<div dir="ltr"><div>I made a mistake and that file has all the mysql and dhcp in it. Oops. Oh well. <br></div><div><br></div><div>I have no doubt it wil lhappen again because this happens on all the hosts I test on. <br></div><div><br></div><div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><a href="https://connect-mobile.co.za/mobile_marketing_solutions/" target="_blank"><img src="https://www.connect-mobile.co.za/signatures/wayne.gif"></a><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 31 Mar 2021 at 13:51, Sten Carlsen <<a href="mailto:stenc@s-carlsen.dk">stenc@s-carlsen.dk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><br>
<div><br><blockquote type="cite"><div>On 31 Mar 2021, at 13.42, Wayne Gemmell | Connect <<a href="mailto:wayne@connect-mobile.co.za" target="_blank">wayne@connect-mobile.co.za</a>> wrote:</div><br><div><div dir="ltr">Hi<div><br></div><div>I've posted a pcap file of the process. There is nothing hitting at exactly the same moment but I'm digging into how to trigger this differently. <br></div><div><br></div><div><a href="https://drive.google.com/file/d/1mYIIlhq7JPdszT1zeasREIYcP4Fnj1lj/view?usp=sharing" target="_blank">https://drive.google.com/file/d/1mYIIlhq7JPdszT1zeasREIYcP4Fnj1lj/view?usp=sharing</a><br></div></div></div></blockquote><div><br></div>I will take a look, but as Glenn mentioned this will likely be down to the process the code uses to select a suitable and available address.</div><div><br></div><div>One thing you may want to try:</div><div><br></div><div>Stop the servers, edit the leases file to remove any mention of the undesired address and restart the servers. They will initialise using the information in the leases file and then the host has only one address that it has ever used.</div><div><br></div><div>This should work until for some reason it gets a different address once - then this will start again.</div><div><br><blockquote type="cite"><div><div dir="ltr"><div><br></div><div><br></div><div><br></div><div><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><a href="https://connect-mobile.co.za/mobile_marketing_solutions/" target="_blank"><img src="https://www.connect-mobile.co.za/signatures/wayne.gif"></a><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 29 Mar 2021 at 18:27, Sten Carlsen <<a href="mailto:stenc@s-carlsen.dk" target="_blank">stenc@s-carlsen.dk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hi<div><br></div><div>These two addresses are both in the same pool, so nothing illegal is happening. It is still odd that it sometimes gets one address and then the other, this should not happen.</div><div><br></div><div>Consider the leases file as a historical document, each time something happens, the leases file gets added to. Once in a while it gets regenerated with just the current status of all leases.</div><div><br></div><div>So for this sequence of events you should be able to reconstruct what happened by looking into this file.</div><div><br></div><div>One thing that comes to mind is timing. The release and the discover happens in the same second, so what if the server could not write to the leases file before being asked about a new lease - this is not extending an existing lease as the discover indicates that the device does not have an address at this moment.</div><div><br></div><div>Would it be possible to add a pause of a few seconds between the release and the discover? at least for an experiment. If that works, some timing is at the bottom of this.</div><div><br></div><div>Possibly a wireshark trace could reveal the exact timing of these two messages.</div><div><br></div><div>The leases file snippet did also not have both addresses as active, which could uncover other interesting things.</div><div><br><div>
<div>-- <br>Best regards <br>Sten Carlsen <br><br>A pessimist is a person that can find a problem for every solution.<br><br></div>
</div>
<div><br><blockquote type="cite"><div>On 29 Mar 2021, at 12.05, Wayne Gemmell | Connect <<a href="mailto:wayne@connect-mobile.co.za" target="_blank">wayne@connect-mobile.co.za</a>> wrote:</div><br><div><div dir="ltr"><div dir="ltr"><div>Hi Sten<br></div><div><br></div><div>One of the host I've been testing with in the kannel pool alternates between the following</div><div><br></div><div> inet <a href="http://10.3.2.36/16" target="_blank">10.3.2.36/16</a><br></div><div> inet <a href="http://10.3.2.60/16" target="_blank">10.3.2.60/16</a></div><div><br></div><div>Leases look as follows. I don't really understand why each would be both free and active.<br></div><div></div><div><br></div><div>Here's the log file of the responsible peer: <a href="https://pastebin.com/UP6M1Lic" target="_blank">https://pastebin.com/UP6M1Lic</a></div><div></div><div><br></div><div>DHCP Lease list on responsible peer. The other one has similar data but no host names. <a href="https://pastebin.com/WX3NwkM2" target="_blank">https://pastebin.com/WX3NwkM2</a></div><br><div>Here's snippet of the lease file <a href="https://pastebin.com/fKFiZpQ0" target="_blank">https://pastebin.com/fKFiZpQ0</a><br></div><div><br></div><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><a href="https://connect-mobile.co.za/mobile_marketing_solutions/" target="_blank"><img src="https://www.connect-mobile.co.za/signatures/wayne.gif"></a><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 26 Mar 2021 at 19:32, Sten Carlsen <<a href="mailto:stenc@s-carlsen.dk" target="_blank">stenc@s-carlsen.dk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><br><div>
<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">Thanks</div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><br></div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">Sten</div>
</div>
<div><br><blockquote type="cite"><div>On 26 Mar 2021, at 08.43, Wayne Gemmell | Connect <<a href="mailto:wayne@connect-mobile.co.za" target="_blank">wayne@connect-mobile.co.za</a>> wrote:</div><br><div><div dir="ltr">Thanks Sten<div><br></div><div>I've moved my class out of the subnet and the issue still persists.</div></div></div></blockquote><div><br></div>Well, that is one can of worms out of the picture.</div><div><br></div><div>What are the two addresses?</div><div><br></div><div><br><blockquote type="cite"><div><div dir="ltr"><div><br></div><div><br clear="all"><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><a href="https://connect-mobile.co.za/mobile_marketing_solutions/" target="_blank"><img src="https://www.connect-mobile.co.za/signatures/wayne.gif"></a><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 25 Mar 2021 at 17:51, Sten Carlsen <<a href="mailto:stenc@s-carlsen.dk" target="_blank">stenc@s-carlsen.dk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>You define the class kannel inside the subnet, so if there are any other subnets, it will be defined there as well. Class definitions are global always, defining them inside a subnet may have some "interesting" side effects as some options are taken from that subnet even if the host gets an address in a different subnet - routers is one of them.<div><br></div><div>So one thought is, if the backup address is not in this subnet, the host will be given incorrect information.</div><div><br><div>
<div><div><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size:11pt">-- <br></span></font><span style="font-size:11pt"><font face="Courier New">Best regards <br>Sten Carlsen <br><br></font></span></div><div style="font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font face="Courier New">--------------------------------------------------<br>Aoccdrnig to rseerach at Cmabrigde Uinervtisy,<br>it deosn't mttaer in waht oredr the ltteers in a<br>wrod are, the olny iprmoatnt tihng is taht the<br>frist and lsat lteter be at the rghit pclae.<br>The rset can be a ttoal mses and you can slitl<br>raed it wotihut porbelm. Tihs is bcuseae the<br>hmuan mnid deos not raed ervey lteter by istlef,<br>but the wrod as a wlohe. Amzanig, huh?<br>--------------------------------------------------</font></div></div>
</div>
<div><br><blockquote type="cite"><div>On 25 Mar 2021, at 13.01, Wayne Gemmell | Connect <<a href="mailto:wayne@connect-mobile.co.za" target="_blank">wayne@connect-mobile.co.za</a>> wrote:</div><br><div><div dir="ltr"><div>I tried it. No change. The issue still persists. <br></div><div><br></div><div><br></div><div><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><a href="https://connect-mobile.co.za/mobile_marketing_solutions/" target="_blank"><img src="https://www.connect-mobile.co.za/signatures/wayne.gif"></a><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 23 Mar 2021 at 16:19, Wayne Gemmell | Connect <<a href="mailto:wayne@connect-mobile.co.za" target="_blank">wayne@connect-mobile.co.za</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I'll give it a try, thanks. <div><br></div><div><br clear="all"><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><a href="https://connect-mobile.co.za/mobile_marketing_solutions/" target="_blank"><img src="https://www.connect-mobile.co.za/signatures/wayne.gif"></a><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 23 Mar 2021 at 01:32, Bill Shirley <<a href="mailto:bill@c3po.polymerindustries.biz" target="_blank">bill@c3po.polymerindustries.biz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div><p>Try:<br>
update-optimization off;<br>
<br>
Bill<br>
</p>
<div>On 3/19/2021 2:22 AM, Wayne Gemmell |
Connect wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Hi</div>
<div><br>
</div>
<div>When my dhcp server gets a DHCPRELEASE followed by
a DHCPDISCOVER then it randomly allocates the IP address or
the backup IP address that are assigned to the host in the
lease file to the host. The assignments always got to the
correct host and the mac address doesn't change.</div>
<div><br>
</div>
<div>When this backup IP address is allocated then dynamic DNS
isn't updated and my container is unreachable. </div>
<div><br>
</div>
<div>I've put all the relevant details in the link below but am
more than happy enough to furnish anything that is missing.
Can anyone help please?</div>
<div><br>
</div>
<a href="https://gitlab.isc.org/isc-projects/dhcp/-/issues/172" target="_blank">https://gitlab.<span>isc</span>.org/<span>isc</span>-projects/dhcp/-/issues/172</a>
<div><br clear="all">
<div>
<div dir="ltr">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr"><a href="https://connect-mobile.co.za/mobile_marketing_solutions/" target="_blank"><img src="https://www.connect-mobile.co.za/signatures/wayne.gif"></a><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" target="_blank">https://www.isc.org/contact/</a> for more information.
dhcp-users mailing list
<a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a>
</pre>
</blockquote>
</div>
_______________________________________________<br>
ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>
</blockquote></div>
</blockquote></div>
_______________________________________________<br>ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" target="_blank">https://www.isc.org/contact/</a> for more information.<br><br>dhcp-users mailing list<br><a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a><br><a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br></div></blockquote></div><br></div></div>_______________________________________________<br>
ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>
</blockquote></div>
_______________________________________________<br>ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" target="_blank">https://www.isc.org/contact/</a> for more information.<br><br>dhcp-users mailing list<br><a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a><br><a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br></div></blockquote></div><br></div>_______________________________________________<br>
ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>
</blockquote></div>
_______________________________________________<br>ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" target="_blank">https://www.isc.org/contact/</a> for more information.<br><br>dhcp-users mailing list<br><a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a><br><a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br></div></blockquote></div><br></div></div>_______________________________________________<br>
ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>
</blockquote></div>
_______________________________________________<br>ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" target="_blank">https://www.isc.org/contact/</a> for more information.<br><br>dhcp-users mailing list<br><a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a><br><a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br></div></blockquote></div><br></div>_______________________________________________<br>
ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>
</blockquote></div>