[Bug 858840] New: Kernel update complexity (excess use of mkinitrd); extended "unsafe" period
https://bugzilla.novell.com/show_bug.cgi?id=858840 https://bugzilla.novell.com/show_bug.cgi?id=858840#c0 Summary: Kernel update complexity (excess use of mkinitrd); extended "unsafe" period Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: All OS/Version: openSUSE 12.3 Status: NEW Severity: Normal Priority: P5 - None Component: Update Problems AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: Ulrich.Windl@rz.uni-regensburg.de QAContact: jsrain@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux i686; rv:26.0) Gecko/20100101 Firefox/26.0 For systems where more than one kernel (n kernels) is installed (e.g. multiple versions or flavors), mkinitrd creates an initrd for each. So far, so good. Unfortunately a single "kernel" consists of two or more packages which are installed in a somewhat loose order. Each %post script of a kernel package calls mkinitrd, which in turn, re-creates the initrds for each kernel found. Despite the fact that the "useless temporary" initrd updates waste time and CPU cycles, there is a danger associated with this: If you update your kernel (say from 2.6.x to 3.0.y), the first mkinitrd of the first kernel package created an initrd that does not fit to the rest of the kernel. If the system crashes or the power goes out (or a cluster node fences the server), the system may be unbootable (modules in initrd not matching the kernel image). Reproducible: Always Steps to Reproduce: 1. Watch kernel updates Actual Results: Multiple mkinitd calls are observerd Expected Results: mkinitrd should be deferred until all the kernel-related updates are on disk. For example: I installed updates for kernel and multipath. multipath-update alone built the initrd several times: 2014-01-15 10:41:51 <1> pc(10330) [zypp] RpmDb.cc(doInstallPackage):1849 RpmDb::installPackage(/var/cache/zypp/packages/repo-update/i586/multipath-tools-0.4.9-7.5.1.i586.rpm,0x0000000c) [...] 2014-01-15 10:52:46 <1> pc(10330) [zypp] RpmDb.cc(doInstallPackage):1849 RpmDb::installPackage(/var/cache/zypp/packages/repo-update/i586/parted-2.4-30.4.1.i586.rpm,0x0000000c) That is 11 minutes to wait just for the update of multipath-tools! Each of my 3 kernels got its initrd build at least two times during that. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=858840
https://bugzilla.novell.com/show_bug.cgi?id=858840#c
Xiyuan Liu
https://bugzilla.novell.com/show_bug.cgi?id=858840
https://bugzilla.novell.com/show_bug.cgi?id=858840#c1
Takashi Iwai
https://bugzilla.novell.com/show_bug.cgi?id=858840
https://bugzilla.novell.com/show_bug.cgi?id=858840#c2
Felix Miata
https://bugzilla.novell.com/show_bug.cgi?id=858840
https://bugzilla.novell.com/show_bug.cgi?id=858840#c3
--- Comment #3 from Takashi Iwai
https://bugzilla.novell.com/show_bug.cgi?id=858840
https://bugzilla.novell.com/show_bug.cgi?id=858840#c4
--- Comment #4 from Felix Miata
https://bugzilla.novell.com/show_bug.cgi?id=858840
https://bugzilla.novell.com/show_bug.cgi?id=858840#c5
Takashi Iwai
https://bugzilla.novell.com/show_bug.cgi?id=858840
https://bugzilla.novell.com/show_bug.cgi?id=858840#c6
--- Comment #6 from Michael Andres
Looks same.
Note that like rpm, libzypp does not unify %posttrans scripts. The fix in bug #786318 delays execution of %posttrans scripts until all packages are actually installed (as it should be). The total number of script invocations does not change. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=858840
https://bugzilla.novell.com/show_bug.cgi?id=858840#c7
--- Comment #7 from Takashi Iwai
https://bugzilla.novell.com/show_bug.cgi?id=858840
https://bugzilla.novell.com/show_bug.cgi?id=858840#c8
Michael Andres
https://bugzilla.novell.com/show_bug.cgi?id=858840 https://bugzilla.novell.com/show_bug.cgi?id=858840#c Bug 858840 depends on bug 786318, which changed state. Bug 786318 Summary: libzypp does not handle %posttrans scriptlets (was: mkinitrd inefficiently called multiple times per updates session) http://bugzilla.novell.com/show_bug.cgi?id=786318 What |Old Value |New Value ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=858840 https://bugzilla.novell.com/show_bug.cgi?id=858840#c Bug 858840 depends on bug 786318, which changed state. Bug 786318 Summary: libzypp does not handle %posttrans scriptlets (was: mkinitrd inefficiently called multiple times per updates session) http://bugzilla.novell.com/show_bug.cgi?id=786318 What |Old Value |New Value ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com