[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
https://bugzilla.novell.com/show_bug.cgi?id=851741
https://bugzilla.novell.com/show_bug.cgi?id=851741#c
A R
https://bugzilla.novell.com/show_bug.cgi?id=851741
https://bugzilla.novell.com/show_bug.cgi?id=851741#c1
--- Comment #1 from A R
https://bugzilla.novell.com/show_bug.cgi?id=851741
https://bugzilla.novell.com/show_bug.cgi?id=851741#c2
--- Comment #2 from A R
https://bugzilla.novell.com/show_bug.cgi?id=851741
https://bugzilla.novell.com/show_bug.cgi?id=851741#c3
A R
https://bugzilla.novell.com/show_bug.cgi?id=851741
https://bugzilla.novell.com/show_bug.cgi?id=851741#c4
--- Comment #4 from A R
https://bugzilla.novell.com/show_bug.cgi?id=851741
https://bugzilla.novell.com/show_bug.cgi?id=851741#c5
--- Comment #5 from A R
https://bugzilla.novell.com/show_bug.cgi?id=851741
https://bugzilla.novell.com/show_bug.cgi?id=851741#c6
A R
https://bugzilla.novell.com/show_bug.cgi?id=851741
https://bugzilla.novell.com/show_bug.cgi?id=851741#c7
A R
https://bugzilla.novell.com/show_bug.cgi?id=851741
https://bugzilla.novell.com/show_bug.cgi?id=851741#c
A R
https://bugzilla.novell.com/show_bug.cgi?id=851741
https://bugzilla.novell.com/show_bug.cgi?id=851741#c
A R
https://bugzilla.novell.com/show_bug.cgi?id=851741
https://bugzilla.novell.com/show_bug.cgi?id=851741#c
A R
https://bugzilla.novell.com/show_bug.cgi?id=851741
https://bugzilla.novell.com/show_bug.cgi?id=851741#c8
Andrey Borzenkov
(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
https://bugzilla.novell.com/show_bug.cgi?id=851741
https://bugzilla.novell.com/show_bug.cgi?id=851741#c10
--- Comment #10 from Andrey Borzenkov
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
https://bugzilla.novell.com/show_bug.cgi?id=851741
https://bugzilla.novell.com/show_bug.cgi?id=851741#c12
--- Comment #12 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=851741
https://bugzilla.novell.com/show_bug.cgi?id=851741#c13
Benjamin Brunner
participants (1)
-
bugzilla_noreply@novell.com