Mailinglist Archive: opensuse-bugs (5295 mails)

< Previous Next >
[Bug 851741] New: lvm2 systemd unit renders systems unbootable; incorrectly uses dependencies on Fedora services (fedora-storage-init.service fedora-storage-init-late.service)
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Fri, 22 Nov 2013 05:36:55 +0000
  • Message-id: <bug-851741-21960@http.bugzilla.novell.com/>

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@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: ar16@xxxxxxxxxxxx
QAContact: qa-bugs@xxxxxxx
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.

< Previous Next >