New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[2.3] Ephemeral boot environment does not renew DHCP leases #3057
Comments
Launchpad user Andres Rodriguez(andreserl) wrote on 2017-11-15T19:43:27.677840+00:00 Launchpad attachments: no-ip.png |
Launchpad user Andres Rodriguez(andreserl) wrote on 2017-11-17T18:51:15.430454+00:00 SO this is what I noticed, after about 10 minutes of running hardware testing, the IP disappeared of the PXE interface. See screenshots attached below. |
Launchpad user Andres Rodriguez(andreserl) wrote on 2017-11-17T18:51:38.559820+00:00 Argh, the IP disappeared, but the machine still holds such IP in the PXE interface. |
Launchpad user Andres Rodriguez(andreserl) wrote on 2017-11-17T18:53:31.801042+00:00 Ok, I'm being unclear again. This is the behavior:
|
Launchpad user Andres Rodriguez(andreserl) wrote on 2017-11-17T18:53:41.928797+00:00 Ok, I'm being unclear again. This is the behavior:
|
Launchpad user Andres Rodriguez(andreserl) wrote on 2017-11-17T18:53:52.322896+00:00 Launchpad attachments: Running-test-ip-disappears.png |
Launchpad user Mike Pontillo(mpontillo) wrote on 2017-11-17T22:48:21.576773+00:00 After triaging this issue, I think we need to discuss the proper fix with the cloud-init team. When cloud-init configures the interfaces[1], I see that "bringup=True" is set. I'm guessing this means cloud-init should have run the equivalent of "ifup" on each interface after it has been configured. However, looking at "ifquery --state", this is not happening; only the loopback interface is configured. ifquery --statelo=lo I also notice that no DHCP client is running. I guess this means that whatever IP address is currently assigned to eno1 (172.16.100.153) came from a different run of a DHCP client; possibly from the PXE process (but I don't see it passed up through /proc/cmdline). Since the DHCP client is not (no longer?) running, that means the host is holding onto an IP address from the DHCP pool, has not released it, and is no longer renewing it. Therefore it eventually expires and is no longer shown in MAAS. If I bring the interface up manually, all becomes well, and I see the IP address as-expected in MAAS (though it handed out a different IP address, .160, so I now am holding the expired IP, and a new legitimate IP address from DHCP): ifup eno1Internet Systems Consortium DHCP Client 4.3.3 Listening on LPF/eno1/ec:a8:6b:fd:aa:24 ifquery --stateeno1=eno1 g# ip addr show dev eno1 |
Launchpad user Mike Pontillo(mpontillo) wrote on 2017-11-17T22:55:57.850918+00:00 Forgot to include the relevant portion of the cloud-init logs in my comment above. |
Launchpad user Mike Pontillo(mpontillo) wrote on 2017-11-17T23:39:53.645720+00:00 I'm landing some debug logging in MAAS to help identify if this issue is occurring; regiond.log will contain lines like "Lease update: ..." when MAAS receives notifications about lease changes. Note that this will NOT be a fix for this issue. But I don't think there's anything more I can do for this in MAAS itself. |
Launchpad user Scott Moser(smoser) wrote on 2017-11-20T19:45:20.020598+00:00 This issue is discussed in a document at Its all about "transition" of networking information from the initramfs environment which is configured by the kernel command line over to the "real root". The Ubuntu foundations team is expecting to have dhcp transition correctly in 18.04. |
Launchpad user Dan Watkins(oddbloke) wrote on 2019-02-25T19:56:33.562664+00:00 Is this still an issue that needs cloud-init work? |
Launchpad user Dan Streetman(ddstreet) wrote on 2021-06-30T21:13:06.752337+00:00 please reopen if this is still an issue |
This bug was originally filed in Launchpad as LP: #1732522
Launchpad details
Launchpad user Andres Rodriguez(andreserl) wrote on 2017-11-15T19:40:26.537748+00:00
I started commissioning+hardware testing on a machine, and while the machine was testing (for 2hrs+) i noticed that the IP address had disappeared. The machine has the MAC of 00:25:90:4c:e7:9e and IP of 192.168.0.211 from the dynamic range.
Checking the MAAS server, I noticed that the IP/MAC was in the ARP table:
andreserl@maas:/var/lib/maas/dhcp$ arp -a | grep 211
192-168-9-211.maas (192.168.9.211) at 00:25:90:4c:e7:9e [ether] on bond-lan
Checking the leases file has the following: http://pastebin.ubuntu.com/25969442/
Then I checked a couple areas of MAAS:
The text was updated successfully, but these errors were encountered: