[00:03] bdmurray: Personally, on my laptop, I like to have the lowlatency kernel when I'm doing hardware-intensive work (e.g. audio) and the generic for general purpose/power saving. Add that to the oem kernel, and things get funny. Additionally, a bug in packagekit is marking auto-installed as manual. [00:03] Therefore, we end up with overflows of /boot very easily. [00:05] bdmurray: Check the details provided by Mike Mikowski in the bug report I linked above. [00:05] It explains everything. [00:14] Eickmeyer: neither you nor Mike explained how you installed or what flavor of Ubuntu you installed. [00:15] bdmurray: It's Kubuntu. [00:15] The issue is usually a bug in packagekit which Discover uses as a backend when upgrading packages. [00:16] Hopefully that's been rectified in a recent commit to Packagekit, but it doesn't completely mitigate the problem. Scientists that use our laptops tend to install more than one kernel flavor. [00:17] And Mike doesn't use IRC, so I recommend asking him questions via the bug report. [00:17] And installed via oem installer. [00:44] bdmurray: I just happened to glance at the SRU queues, and python-apt is flagged as missing bug references. Did you miss that? I don't see a relevant bug though. [00:45] Oh, sorry. [00:45] It is an exception. [00:45] https://wiki.ubuntu.com/StableReleaseUpdates#ubuntu-release-upgrader_and_python-apt === genii-core is now known as genii-meeting === genii-meeting is now known as genii === genii is now known as genii-core === not_phunyguy is now known as phunyguy === didrocks999 is now known as didrocks [15:33] indeed [16:26] ahasenack: thanks for your posts pointing out classes of python3 transition failures, I think that's very useful [16:26] thanks! === genii-core is now known as genii [18:38] vorlon: I have been looking at an ubuntu-release-upgrader lock screen issue (https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1959458) and have tried using the org.freedesktop.ScreenSaver DBus interface to solve it. Since the upgrade script rus as root, and the DBus interface is on the session bus, there have been several hiccups in this approach. [18:38] Launchpad bug 1959458 in ubuntu-release-upgrader (Ubuntu Jammy) "Lock screen disabling needs updating" [High, Confirmed] [18:39] bdmurray said the two of you have discussed whether screen locking is still a concern during upgrade. We are wondering if you think this issue is still worth pursuing given the DBus troubles. [19:30] enr0n: hi! I think screen locking can be a major issue during upgrade. I believe there had been problems with people being unable to unlock their screen when parts of the login system are updated [19:30] hah yeah, that can happen.. [19:32] I presume that's only with major upgrades. I don't think that it's been a concern for Stable Release Updates [19:34] I don't even remember seeing bugs recently for people who run the development release so maybe things do work better now. But it feels risky updating 2 years at one time from one LTS to the next [19:36] yeah, I think I've only seen that bug filed during release upgrades, but I can't recall if it was lts -> lts or interim -> interim etc [19:37] Let's take a step back and look at how long inhibiting the screen lock has been broken. Then check to see if there have been complaints during that time frame. [19:37] of course, bug reports is only going to represent a portion of peoplke who have the problem [19:37] certainly *something* around screen locking breaks every release, in at least one of the flavours [19:43] jbicha, sarnold, enr0n: however I don't think this has been an issue with *GNOME* in particular any time in the past decade, because authentication happens in a subprocess, precisely because they saw and solved this issue [19:44] this is why I have my doubts that it's worth extraordinary efforts to inhibit the GNOME screensaver [19:45] IIRC enr0n thinks the Kubuntu screensaver quirk is broken too [19:47] I can't speak to the importance of fixing that one, not having used KDE in quite a while [19:48] though in any event I will say that bug reports for either of these environments against the Debian PAM package have basically been nonexistent, and Debian doesn't use u-r-u [19:48] Yeah, it tries to use org.kde.ScreenSaver (probably wants to be org.freedesktop.ScreenSaver), and can't connect to the session bus because $UID == 0 etc. [19:49] well $UID==0 means you also have the privileges to change UID... it probably makes most sense to do this in a subprocess [20:01] vorlon: but I gather your first inclination is not to do continue inhibiting it at all. [20:02] bdmurray: I think it is acceptable to not do so; but this should be cross-checked with the Desktop Team (and, it seems, the Kubuntu devs) to be sure [20:03] personally, given how long an upgrade may take, I would prefer if my desktop could be locked for the duration [21:40] bdmurray: Hi! ^ mmikowski just joined and wants to chat with you about the /boot partition size issue as reported in bug 1959971 [21:40] Bug 1959971 in partman-auto (Ubuntu Jammy) "increase /boot partition size" [High, Triaged] https://launchpad.net/bugs/1959971 [21:42] bdmurray: Hi Brian. Thanks for the intro Erich. [21:49] mmikowski: Hi there, so you are suggesting that we adjust the size of /boot so that it can accomodate 3 kernel flavors w/ two kernels per flavor is that correct? [21:50] Yes, the latest and penultimate version of each kernel. [21:51] Many people maintain at least two kernel flavors - lowlatency and hwe. If they are testing or have oem, then the have 3. [21:52] Your bug report mention advanced users, it would seem to me that advanced users can increase their /boot partition size to accomodate 3 kernels. [21:52] Of course advanced users can do this, but it is very time consuming. [21:53] These aren't end users doing the installation though, these are end users of an OEM machine. [21:54] Also, even with the default size with a single kernel flavor we are seeing many people overfill their disks. [21:54] Sure I think we should adjust the sizing for OEM installs which sounds like two kernels. [21:55] We frequently see generic-hwe and oem. Then a testing kernel or lowlatency-hwe. [21:55] These file sets take 180MB each. So the default size of 705M only allows one copy each before the disk is over-full. [21:56] And recovering from that situation is very difficult for all but the most advanced users. [21:56] Can you show me an install method that puts all those kernels on disk? [21:57] Yeah, it was my seeing bug reports that lead me to start looking at the /boot partition sizing. [21:57] Certainly the installer only provides a single kernel. It's when customers add a kernel later. [21:58] The reason we advocate a larger size is two fold: first, we have spent perhaps 100 hours supporting people who overfill their disks. [21:58] This is because when it happens, it is catestrophic. [21:58] And require enormous effort and time. [21:59] Many, many users do not know how to recover and lack the skills to do so. [21:59] The second reason is even with just one kernel, this situation can arrise. [21:59] I understand the consequences of when things go wrong [22:00] And we are seeing things go wrong far more frequently than is good for anyone. [22:01] So when one considers the expense when things go wrong, the likelyhood of things going wrongt, and how inexpensive 2G is for most users these days... [22:02] It seems that playing it safe is better. [22:03] I agree that playing it safe is better but your premise is based on a "best practice to manage 3 kernel packages" which I don't understand. [22:03] When I say premise I mean size estimate. [22:04] By best practice, I'm referring to the practice of always retaining the latest and penultimate version of each kernel flavor. [22:04] So that gets us 2 x 3 = 6 file sets. [22:04] Right why 3? [22:05] Three flavors concurrently installed. [22:05] oem, generic-hwe, lowlatency-hwe [22:05] or similar [22:05] Yes, but why would you have 3 kernel flavors installed? I don't understand that as a best practice. [22:05] customers can and do install other kernels why installing. [22:06] Oh, *that's* not a best practice. It's just what people do for any number of reasons. [22:06] We can't support everything people decide to do. Having 2 kernel flavors seems reasonable to me and we need to draw the line somewhere. [22:06] I do that for development purposes. [22:07] ok, two flavors, but then if they are considering or testing a third, we are back to 3. [22:08] Of course we can't support everything. I'm reporting what we are seeing in the field and causing users lots of pain and discouragement. [22:08] Could you tell me a bit more about who "we" is in this case? [22:09] Again, I wouldn't be such a strong advocate for caution if the results of overfilling weren't so severe. [22:09] I lead the Kubuntu Focus project. We ship Kubuntu preinstalled world-wide. [22:11] The referenced bug 1960089 lists all the calcs and reasons. [22:11] Bug 1960089 in ubiquity (Ubuntu Jammy) "Ubiquity Boot Partition for LVM needs to be 2.0 GB for 22.04LTS" [High, Confirmed] https://launchpad.net/bugs/1960089 [22:11] Good old /boot sizing. The gift that keeps on giving. I've been using 2 GB as standard ever since 250 GB drives became common. I'll probably up it to 4 GB one of these years. [22:13] bdmurray: I certainly understand the confusion over "best practice". Hopefully what I meant is now clear. [22:14] mmikowski: It might help if you redid your math according to the calculations in bug 1716999 instead of just 10 * 200 [22:14] Bug 1716999 in partman-auto (Ubuntu) "installer creates rather small /boot partition" [High, Fix Released] https://launchpad.net/bugs/1716999 [22:16] bdmurray: The math is based on the estimate that kernel file sets will be around 200 soon (they are 180M now). [22:17] I also explain the number 10 as well. Unattended upgrades (when it works) can leave extra versions around during upgrades. [22:17] If one has generic-hwe and lowlatency-hwe, that's two additional file sets. [22:18] As those are usually released together. [22:18] So 8. Add 2 for safety, and we are at 10. [22:20] blahdeblah: yeah, I'm a big fan of overshooting /boot sizes, too. burning another gig on never needing to truncate files by hand again... [22:21] bdmurray: Also, consider that we have recently seen spates where multiple kernel versions are released within a day or so of one another. Thus the safety factor. [22:22] I understand what you are saying. [22:24] bdmurray: We had to write a kernel cleaner tool to prevent over-filling, which works quite well and we are looking to upstream. [22:25] The fact we had to create to ensure customer (and slash support cost) I think is indicative of the magnitude of this problem. [22:25] Where is this unattended-upgrades work you allude to taking place? [22:27] bdmurray: The unattended-upgrades is supposed to clean up unused kernels. However, it doesn't always work for a few reasons. Those are enumerated in bug 1960089. [22:27] Bug 1960089 in ubiquity (Ubuntu Jammy) "Ubiquity Boot Partition for LVM needs to be 2.0 GB for 22.04LTS" [High, Confirmed] https://launchpad.net/bugs/1960089 [22:27] Even when it *does* work, the algo for unattended upgrades can result in overfull /boot partitions. [22:30] The current /boot partition only supports 3 kernels. Thus when a new kernel comes out, there are 3 kernels installed until the next clean. [22:31] If another kernel comes out before reboot, that overfills the disk. Again, that's just one kernel flavor. [22:32] I read the bug report I'm asking were are you "currently working with others to improve the unattended-upgrades algorithm"? [22:32] bdmurray: https://github.com/Bleuzen/ubuntu-kernel-autoremove [22:33] That's a start. [22:33] bdmurray: See https://github.com/Bleuzen/ubuntu-kernel-autoremove/issues/1 [22:33] Issue 1 in Bleuzen/ubuntu-kernel-autoremove "General discussion" [Open] [22:35] See the analysis. I don't want to go too far down the rabbit hole, but in summary, even when unattended-upgrades works as designed, a 2GB partition is recommended based on the analysis. [22:36] Okay, I thought you were actually working on fixing an issue with unattended-upgrades. [22:36] Package kit could allow for up to 8 concurrent kernels. [22:36] Oh, yes! [22:36] unattended-upgrades has big issues :) [22:37] Actually, just for kernel cleaning. The first isn't unattended-upgrades fault, but it gets broken because packagekit marks auto-installed packages as manual. [22:39] ^ That's a bugfix that has been committed upstream in Packagekit that we're testing and I'll report to juliank about. Hopefully packagekit can do a release before FF. [22:39] The second issue is it uses a heuristic that doesn't consider the system intent but instead purges mostly everything but the last 3-4 kernels. [22:40] What we envision is specifying the kernels to keep, and then the system applying the algo where last and penultimate versions are retained. [22:41] The third issue is that unattended-upgrades doesn't consider disk space. So it never gets triggered if /boot is too full. [22:41] All of those we want to address. [22:46] bdmurray: most of those issues are already addressed in our kernel clean tool, so this is just an issue of upsteaming and integrating the algo. [22:46] @Eickmeyer does this work? [22:47] mmikowski: I read you loud and clear. [22:48] bdmurray: I'll be around tooling with the Jammy code. If you need anything else from me, just give me a bump. Thanks for your interest and questions. [23:31] bdmurray: Just reviewing our conversation, I want to clarify that a 2GB disk is needed for any improved unattended upgrades. I can see how one might misconstrue that the improvements would reduce the need for /boot size. [23:32] However, that is not the case. Any improvements would work in conjunction with a larger /boot partition. [23:34] In particular, it would 1) Consider available space, 2) Honor user intend by keeping the kernel flavors they specify; and 3) Keep the latest and penultimate version of each flavor if space allows.