[Bug 1185325] New: purge-kernels is broken in Leap 15.3
http://bugzilla.opensuse.org/show_bug.cgi?id=1185325 Bug ID: 1185325 Summary: purge-kernels is broken in Leap 15.3 Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.3 Hardware: x86-64 OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: libzypp Assignee: zypp-maintainers@suse.de Reporter: nwr10cst-oslnx@yahoo.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 Build Identifier: My oldest install of Leap 15.3 currently has 6 kernels. I ran "zypper purge-kernels" and it did not want to do anything. Checking, I see that "zypp.conf" was set to keep "oldest,latest,latest-1,running". So I removed "oldest" from that list, and tried again. This time "zypper purge-kernels" wanted to remove only the oldest. That would leave 5, when it should remove all but two. Checking, I see that for all but the oldest kernel, both "kernel-default-extra" and "kernel-default-optional" are installed. I'm wondering whether that is confusing "libzypp". Reproducible: Always -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1185325
http://bugzilla.opensuse.org/show_bug.cgi?id=1185325#c1
Michael Andres
http://bugzilla.opensuse.org/show_bug.cgi?id=1185325
http://bugzilla.opensuse.org/show_bug.cgi?id=1185325#c2
Benjamin Zeller
# zypper in --debug-solver nopackage ... Generating solver test case... Solver test case generated successfully at /var/log/zypper.solverTestCase. Then pack the output directory together with /var/log/zypper.log and attach it to the bugreport.
In case the testcase exceeds the 10MB limit for bugzilla uploads, you can use 'split' to divide the file into smaller pieces:
$ cd /tmp $ tar cvjf zypper.solverTestCase.tar.bz2 /var/log/zypper.solverTestCase/ $ split -b 10M --additional-suffix=-zypper.solverTestCase.tar.bz2 \ zypper.solverTestCase.tar.bz2 The created pieces will be named like this: xaa-zypper.solverTestCase.tar.bz2 xab-zypper.solverTestCase.tar.bz2 xac-zypper.solverTestCase.tar.bz2 ...
-- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1185325
http://bugzilla.opensuse.org/show_bug.cgi?id=1185325#c3
Neil Rickert
http://bugzilla.opensuse.org/show_bug.cgi?id=1185325
http://bugzilla.opensuse.org/show_bug.cgi?id=1185325#c4
--- Comment #4 from Michael Andres
Reply to c#2 :
I tried "--debug-solver" as an option to purge-kernels and I then tried as a global option. Either way, "zypper" complains that the option is not known.
The command Benjamin posted would work: zypper in --debug-solver nopackage -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1185325
http://bugzilla.opensuse.org/show_bug.cgi?id=1185325#c5
--- Comment #5 from Neil Rickert
http://bugzilla.opensuse.org/show_bug.cgi?id=1185325
http://bugzilla.opensuse.org/show_bug.cgi?id=1185325#c6
--- Comment #6 from Michael Andres
Okay, attaching. I don't know how this helps with purge-kernels, but I guess it is just looking at possible solver problems.
A solver testcase contains an abstract of all installed and available packages (names, versions and dependencies). With this we are able to replay arbitrary solver jobs to investigate dependency issues. For purge-kernels we need to see which kernels and kernel related packages are installed. But also whether other installed packages (or locks) somehow depend on an installed kernel and would break if it gets deleted. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1185325
http://bugzilla.opensuse.org/show_bug.cgi?id=1185325#c7
Benjamin Zeller
http://bugzilla.opensuse.org/show_bug.cgi?id=1185325
http://bugzilla.opensuse.org/show_bug.cgi?id=1185325#c8
--- Comment #8 from Benjamin Zeller
http://bugzilla.opensuse.org/show_bug.cgi?id=1185325
http://bugzilla.opensuse.org/show_bug.cgi?id=1185325#c9
Benjamin Zeller
http://bugzilla.opensuse.org/show_bug.cgi?id=1185325
http://bugzilla.opensuse.org/show_bug.cgi?id=1185325#c10
--- Comment #10 from Neil Rickert
participants (1)
-
bugzilla_noreply@suse.com