Bug 446344

Summary: zypper installs both kernel-default and kernel-pae
Product: [openSUSE] openSUSE 11.1 Reporter: Felix Miata <mrmazda>
Component: Update ProblemsAssignee: Michael Schröder <mls>
Status: RESOLVED WORKSFORME QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P2 - High CC: dmacvicar
Version: Factory   
Target Milestone: ---   
Hardware: x86   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: tgz of /var/log/zypper.log yesterday/today tail
tgz content of /var/log/zypper.solverTestCase
/var/log/zypp/history
tgz of /var/log/zypp & /var/log/zypper.solverTestCase

Description Felix Miata 2008-11-19 01:12:02 UTC
to reproduce:
1-use system with many partitions (~15-40)
2-install new kernel via any standard method, e.g. rpm, smart or zypper

actual results:
1-installation of "kernel" takes long time (10 minutes or more), most of which top shows update-bootload, while ps -A shows many instances of hald-addon-stor

expect results:
1-installation of "kernel" takes only 3 minutes or less (on 2GHz P4)

comments:
1-the problem is compounded due to the split kernel packaging, which results in initrd being built at least once for each kernel subpackage
2-the problem is further compounded  by zypper installing multiple kernels (e.g. both default and pae) (I cooked, then ate, dinner, then filed this bug, all while zipper was installing the two latest default and pae kernels.)
3-mailing list thread containing extra details begins at: http://lists.opensuse.org/opensuse-factory/2008-11/msg00490.html
Comment 1 Alexander Orlovskyy 2008-11-19 14:38:38 UTC
Please provide following logs:
/var/log/zypper.log

More info on http://en.opensuse.org/Zypper/Troubleshooting#Log
Comment 2 Felix Miata 2008-11-19 15:08:59 UTC
Created attachment 253480 [details]
tgz of /var/log/zypper.log yesterday/today tail

https://bugzilla.novell.com/attachment.cgi?id=253226 is /var/log/zypp/history
Comment 3 Alexander Orlovskyy 2008-11-20 11:04:58 UTC
Reassign to zypp-maintainers.
Comment 4 Jan Kupec 2008-11-20 15:19:38 UTC
Actually the original report is for kernel-maintainers, the problem has nothing to do with zypp(er). I'll create a copy and keep this bug to resolve the issue of installing two different kernel flavors in one zypper session.
Comment 5 Jan Kupec 2008-11-20 15:27:30 UTC
(In reply to comment #0 from Felix Miata)
> 2-the problem is further compounded  by zypper installing multiple kernels
> (e.g. both default and pae) (I cooked, then ate, dinner, then filed this bug,
> all while zipper was installing the two latest default and pae kernels.)

Felix, we will need a solver testcase to check why this happened. Can you try to reproduce it (but don't install, just try to get both kernels in the install summary)?

Once you can reproduce it, run the same zypper command again, with the --debug-solver option added.
Comment 6 Felix Miata 2008-11-20 18:04:19 UTC
Created attachment 254055 [details]
tgz content of /var/log/zypper.solverTestCase

(In reply to comment #5 from Ján Kupec)
> Felix, we will need a solver testcase to check why this happened. Can you try
> to reproduce it (but don't install, just try to get both kernels in the install
> summary)?
 
> Once you can reproduce it, run the same zypper command again, with the
> --debug-solver option added.

Anticipating an inability to reproduce, I ran 'zypper dup --debug-solver' first, output of which is attached, in case it might be of some use. First try to repro on same machine I did by first looking for a newer kernel on gwdg.de, and not finding one, doing rpm -e --nodeps --noscripts on the 27.5-2 pae & default kernels, then zypper ref, then zypper dup. Only the 27.5-3-pae kernel got installed. I have another machine now updating and others I can afterward, so will report if I can repro the Summary problem.
Comment 7 Felix Miata 2008-11-20 18:07:58 UTC
Created attachment 254056 [details]
/var/log/zypp/history

Following procedure described in comment 6 I did 'zypper ref; zypper dup' again, which reinstalled pae & pae-base. It appears the originally reported delay may be gone. Combined time to reinstall the two was about 4 minutes including download time.
Comment 8 Felix Miata 2008-11-21 02:10:12 UTC
Created attachment 254150 [details]
tgz of /var/log/zypp & /var/log/zypper.solverTestCase

Replicated, but I see here that there were <15 partitions, and a 2.6.24*default kernel was still installed. There may have been a 2.6.24*default still installed on the original system reported at the time, but ISTR removing several old kernels after reporting (in order to reclaim some space on /).
Comment 9 Felix Miata 2008-11-21 02:59:28 UTC
I just did a zypper dup on yet another pae system, with a 2.6.24.1-6-default kernel still installed, and zypper did not add the latest default kernel. Solver & logs are attached to bug 426607 at comment 11 .
Comment 11 Jan Kupec 2008-12-04 11:29:47 UTC
satsolver's deptestomatic does not install any kernel, but libzypp's does. Schubi?
Comment 12 Jan Kupec 2008-12-04 11:31:45 UTC
Schubi: you will need to add the <distupgrade/> tag to the testcases because of the bug we fixed recently.
Comment 13 Stefan Schubert 2008-12-05 10:26:30 UTC
Yes, but that is not the bug here.
Comment 14 Duncan Mac-Vicar 2008-12-05 10:45:09 UTC
kernel-pae is installed because it is already present in the system's testcase.

I removed it from the system (testcase) and distupgrade does not mention it.

However in my laptop I also got pae installed, but don't know how or when.
Comment 15 Felix Miata 2010-12-18 16:09:30 UTC
I do not see this happening in any post-11.1 releases.