[Bug 851741] New: lvm2 systemd unit renders systems unbootable; incorrectly uses dependencies on Fedora services (fedora-storage-init.service fedora-storage-init-late.service)
https://bugzilla.novell.com/show_bug.cgi?id=851741 https://bugzilla.novell.com/show_bug.cgi?id=851741#c0 Summary: lvm2 systemd unit renders systems unbootable; incorrectly uses dependencies on Fedora services (fedora-storage-init.service fedora-storage-init-late.service) Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: All OS/Version: openSUSE 13.1 Status: NEW Severity: Critical Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: ar16@imapmail.org QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0 upgrade of working 12.3 servers with /boot on RAID & other parts on LVM-on-RAID, to 13.1, lsb_release -rd Description: openSUSE 13.1 (Bottle) (x86_64) Release: 13.1 no longer boot, hanging hard at [ OK ] Reached target Encrypted Volumes. Starting Activation of LVM2 logical volumes... [ OK ] Started Activation of LVM2 logical volumes. [ TIME ] Timed out waiting for device dev-disk-by\x2did-md\x2...c30fbff.device. [DEPEND] Dependency failed for /boot. [DEPEND] Dependency failed for Local File Systems. on 12.3 lsb_release -rd Description: openSUSE 12.3 (x86_64) Release: 12.3 lvm2 was called from grep -rlni lvm2 /etc/init.d /etc/init.d/boot.lvm but on 13.1, it's handled by systemd units, checking rpm -q --whatprovides /usr/lib/systemd/system/lvm2-monitor.service lvm2-2.02.98-0.28.1.5.x86_64 in the service file, cat /usr/lib/systemd/system/lvm2-monitor.service [Unit] Description=Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling Documentation=man:dmeventd(8) man:lvcreate(8) man:lvchange(8) man:vgchange(8) Requires=dm-event.socket After=dm-event.socket fedora-storage-init.service fedora-storage-init-late.service lvm2-activation.service lvm2-lvmetad.service Before=local-fs.target DefaultDependencies=no Conflicts=shutdown.target [Service] Type=oneshot Environment=LVM_SUPPRESS_LOCKING_FAILURE_MESSAGES=1 ExecStart=/sbin/lvm vgchange --monitor y ExecStop=/sbin/lvm vgchange --monitor n RemainAfterExit=yes [Install] WantedBy=sysinit.target note the incorrect After= dependency on fedora-storage-init.service fedora-storage-init-late.service guessing it was simply copied from Fedora without checking/testing the euqivalent Opensuse deps. I'm not clear what the right deps in Opensuse 13.1 SHOULD be -- other than NOT *fedora* ... good news, looks like it's the only one, grep -rlni fedora /usr/lib/systemd/system/ /usr/lib/systemd/system/lvm2-monitor.service Reproducible: Always Steps to Reproduce: 1. 2. 3. -- 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=851741 https://bugzilla.novell.com/show_bug.cgi?id=851741#c A R <ar16@imapmail.org> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |dmzhang@suse.com |ovo.novell.com | -- 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=851741 https://bugzilla.novell.com/show_bug.cgi?id=851741#c A R <ar16@imapmail.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High -- 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=851741 https://bugzilla.novell.com/show_bug.cgi?id=851741#c1 --- Comment #1 from A R <ar16@imapmail.org> 2013-11-22 07:45:18 UTC --- Looking at systemd units, looks like a combination of udev & raid (dm/md) service dependencies -- and, perhaps system.init? -- need to be added. dependency order needs to accommodate both LVM-on-RAID, and RAID-on-LVM. poking around to see what/how. -- 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=851741 https://bugzilla.novell.com/show_bug.cgi?id=851741#c2 --- Comment #2 from A R <ar16@imapmail.org> 2013-11-22 07:49:48 UTC --- fwiw, upgrades of 12.3 -> 13.1 with /boot + other-on-LVM -- *NO* RAID, boot without issue. so far, the 'problem boxes' all have raid in the mix. -- 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=851741 https://bugzilla.novell.com/show_bug.cgi?id=851741#c3 A R <ar16@imapmail.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |nfbrown@suse.com --- Comment #3 from A R <ar16@imapmail.org> 2013-11-22 19:35:40 UTC --- @nfbrown, does this look like an mdadm 3.3 - related issue to you? -- 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=851741 https://bugzilla.novell.com/show_bug.cgi?id=851741#c4 --- Comment #4 from A R <ar16@imapmail.org> 2013-11-22 20:27:17 UTC --- fyi, from https://forums.opensuse.org/english/get-technical-help-here/install-boot-log... bit more detail re: hang at an LVM2/Dbus timeout waiting for the /boot device that's on RAID: http://pastebin.com/KcNPriuV -- 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=851741 https://bugzilla.novell.com/show_bug.cgi?id=851741#c5 --- Comment #5 from A R <ar16@imapmail.org> 2013-11-22 22:28:32 UTC --- this may be relevant: Bug 849752 - 13.1RC2 Cannot boot from RAID1 volume(s) https://bugzilla.novell.com/show_bug.cgi?id=849752#c9 -- 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=851741 https://bugzilla.novell.com/show_bug.cgi?id=851741#c6 A R <ar16@imapmail.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugzilla.novell.com | |/show_bug.cgi?id=849752 --- Comment #6 from A R <ar16@imapmail.org> 2013-11-22 22:28:56 UTC --- this may be relevant: Bug 849752 - 13.1RC2 Cannot boot from RAID1 volume(s) https://bugzilla.novell.com/show_bug.cgi?id=849752#c9 -- 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=851741 https://bugzilla.novell.com/show_bug.cgi?id=851741#c7 A R <ar16@imapmail.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P2 - High |P3 - Medium Status|NEEDINFO |NEW InfoProvider|nfbrown@suse.com | Summary|lvm2 systemd unit renders |lvm2 systemd incorrectly |systems unbootable; |uses dependencies on Fedora |incorrectly uses |services |dependencies on Fedora |(fedora-storage-init.servic |services |e |(fedora-storage-init.servic |fedora-storage-init-late.se |e |rvice) |fedora-storage-init-late.se | |rvice) | Severity|Critical |Major --- Comment #7 from A R <ar16@imapmail.org> 2013-11-23 17:51:59 UTC --- I suspect there may be two issues here, (1) the lvm2 unit's references to *fedora (2) hang @ boot when /boot is on RAID leaving (1) here, splitting off (2) to: https://bugzilla.novell.com/show_bug.cgi?id=851993 -- 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=851741 https://bugzilla.novell.com/show_bug.cgi?id=851741#c A R <ar16@imapmail.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|meissner@suse.com, | |ro@suse.com, xwhu@suse.com | Found By|--- |Community User See Also|https://bugzilla.novell.com | |/show_bug.cgi?id=849752 | -- 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=851741 https://bugzilla.novell.com/show_bug.cgi?id=851741#c A R <ar16@imapmail.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 - Medium |P5 - None -- 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=851741 https://bugzilla.novell.com/show_bug.cgi?id=851741#c A R <ar16@imapmail.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Major |Normal -- 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=851741 https://bugzilla.novell.com/show_bug.cgi?id=851741#c8 Andrey Borzenkov <arvidjaar@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |arvidjaar@gmail.com --- Comment #8 from Andrey Borzenkov <arvidjaar@gmail.com> 2013-11-23 19:48:13 UTC --- (In reply to comment #7)
(1) the lvm2 unit's references to *fedora
Ordering dependency on non-existent unit is noop. This is just minor cosmetic issue at most which probably is not worth extra patch to maintain. -- 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=851741 https://bugzilla.novell.com/show_bug.cgi?id=851741#c9 --- Comment #9 from A R <ar16@imapmail.org> 2013-11-24 16:14:35 UTC --- Re: noop on non-existent, understood. But those Fedora units imply SOME sort of dependency -- in Fedora-land. Is there an equivalent required dependency in Opensuse-land? SPecifically, which -- if any -- units in Opensuse are dealing with the same startup deps as: fedora-storage-init.service fedora-storage-init-late.service and do they need to be included? -- 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=851741 https://bugzilla.novell.com/show_bug.cgi?id=851741#c10 --- Comment #10 from Andrey Borzenkov <arvidjaar@gmail.com> 2013-11-24 16:46:26 UTC --- (In reply to comment #9)
Is there an equivalent required dependency in Opensuse-land?
lvm2-monitor.service just starts monitoring, which is optional anyway. If it is started it is ordered after lvm2-activation.service which does the real job. lvm2-activation.service is generated dynamically based on actual lvm.conf. -- 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=851741 https://bugzilla.novell.com/show_bug.cgi?id=851741#c11 --- Comment #11 from dong mao zhang <dmzhang@suse.com> 2013-11-26 17:09:08 HKT --- The upstream code has commits 360c569ce8f0bfe936d59ca91de2716958550524 to remove this deps.. -- 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=851741 https://bugzilla.novell.com/show_bug.cgi?id=851741#c12 --- Comment #12 from Bernhard Wiedemann <bwiedemann@suse.com> 2014-01-16 12:00:17 CET --- This is an autogenerated message for OBS integration: This bug (851741) was mentioned in https://build.opensuse.org/request/show/214084 Factory / lvm2 -- 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=851741 https://bugzilla.novell.com/show_bug.cgi?id=851741#c13 Benjamin Brunner <bbrunner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #13 from Swamp Workflow Management <swamp@suse.de> 2014-02-03 16:31:19 CET --- openSUSE-RU-2014:0186-1: An update that has 5 recommended fixes can now be installed. Category: recommended (moderate) Bug References: 779965,837954,851741,854076,854413 CVE References: Sources used: openSUSE 13.1 (src): lvm2-2.02.98-0.28.5.1 --- Comment #14 from Benjamin Brunner <bbrunner@suse.com> 2014-03-03 10:31:34 CET --- Update released for openSUSE 13.1. Resolved 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