[Bug 804575] New: systemd problem with rbind (and crypto setup?)
https://bugzilla.novell.com/show_bug.cgi?id=804575 https://bugzilla.novell.com/show_bug.cgi?id=804575#c0 Summary: systemd problem with rbind (and crypto setup?) Classification: openSUSE Product: openSUSE 12.3 Version: RC 1 Platform: x86-64 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: koenig@linux.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- trying to setup dual-boot and chroot for both 12.2 and 12.3-RC1 on my notebook I slipped over a strange systemd problem: the following line in my /etc/fstab /dev /12.2/dev none rbind caused systemd to stop booting with this failure # systemctl | grep fail systemd-cryptsetup@cr_ata\x2dHGST_HTS541010A9E680_J810007600B1RA\x2dpart5.service loaded failed failed Cryptography Setup for cr_ata-HGST_HTS541010A9E680_J810007600B1RA-part5 # systemctl status systemd-cryptsetup@cr_ata\x2dHGST_HTS541010A9E680_J810007600B1RA\x2dpart5.service systemd-cryptsetup@cr_ata\x2dHGST_HTS541010A9E680_J810007600B1RA\x2dpart5.service - Cryptography Setup for cr_ata-HGST_HTS541010A9E680_J810007600B1RA-part5 Loaded: loaded (/etc/crypttab) Active: failed (Result: exit-code) since Tue, 2013-02-19 08:42:31 CET; 6min ago Docs: man:systemd-cryptsetup@.service(8) man:crypttab(5) Process: 965 ExecStop=/usr/lib/systemd/systemd-cryptsetup detach cr_ata-HGST_HTS541010A9E680_J810007600B1RA-part5 (code=exited, status=1/FAILURE) Process: 856 ExecStart=/usr/lib/systemd/systemd-cryptsetup attach cr_ata-HGST_HTS541010A9E680_J810007600B1RA-part5 /dev/disk/by-id/ata-HGST_HTS541010A9E680_J810007600B1RA-part5 none none (code=exited, status=0/SUCCESS) CGroup: name=systemd:/system/systemd-cryptsetup@.service/cr_ata\x2dHGST_HTS541010A9E680_J810007600B1RA\x2dpart5 Feb 19 08:41:10 hl.turtle.de systemd[1]: Started Cryptography Setup for cr_ata-HGST_HTS541010A9E680_J810007600B1RA-part5. Feb 19 08:42:31 hl.turtle.de systemd[1]: Stopped Cryptography Setup for cr_ata-HGST_HTS541010A9E680_J810007600B1RA-part5. Feb 19 08:42:31 hl.turtle.de systemd[1]: Unit systemd-cryptsetup@cr_ata\x2dHGST_HTS541010A9E680_J810007600B1RA\x2dpart5.service entered failed state although the cryptsetup stuff worked fine as I could check in the "emergency" shell. this happened both in my 12.2 system and in the 12.3-RC1 !! after removing/changing that rbind line for /dev startup with systemd worked again! running mount --rbind /dev /12.2/dev worked without a problem. more details to my (somewhat non-standard;) setup: basis is a plain 12.2 installation with encrypted LVM in sda5 containing everything but the boot partition: # fdisk -l /dev/sda Device Boot Start End Blocks Id System /dev/sda3 * 312578048 314697727 1059840 83 Linux /dev/sda4 314697728 1953523711 819412992 f W95 Ext'd (LBA) /dev/sda5 314699776 1363275775 524288000 8e Linux LVM there are LVMs root-12.2 and root-12.3 (later was a copy of root-12.2 which I then updated to 12.3-RC1). /boot is used for both distro roots together. in such "dual boot" systems I typically mount the "other" root partiton into /12.2 or /12.3 with proc sys dev etc. in place to be able to chroot into the old/new system for tests. for the 12.3 system I tried to setup the 12.2 chroot in fstab with /dev/system/root-12.2 /12.2 ext4 acl,user_xattr 1 1 /boot /12.2/boot none rbind /proc /12.2/proc none rbind /sys /12.2/sys none rbind /dev /12.2/dev none rbind thouse rbinds work fine on the command line, and at least they worked before in fstab without systemd. but now the last line for /dev caused that strange boot trouble:-( now I'm using this slightly more complex fstab entries to avoid rbind and similar trouble: /dev/system/root-12.2 /12.2 ext4 acl,user_xattr 1 1 /boot /12.2/boot none rbind proc /12.2/proc proc defaults 0 0 sysfs /12.2/sys sysfs noauto 0 0 debugfs /12.2/sys/kernel/debug debugfs noauto 0 0 usbfs /12.2/proc/bus/usb usbfs noauto 0 0 /dev /12.2/dev none bind devpts /12.2/dev/pts devpts mode=0620,gid=5 0 0 any clue what happens in systemd for my rbind /dev/ entry ? how can I provide more debug data ? -- 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=804575 https://bugzilla.novell.com/show_bug.cgi?id=804575#c Michal Hrusecky <mhrusecky@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |fcrozat@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=804575 https://bugzilla.novell.com/show_bug.cgi?id=804575#c1 --- Comment #1 from Frederic Crozat <fcrozat@suse.com> 2013-02-21 14:39:46 UTC --- And it works with bind instead of rbind, right ? I look like rbind isn't handled as bind in systemd code (just checking on 12.3 atm). -- 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=804575 https://bugzilla.novell.com/show_bug.cgi?id=804575#c2 --- Comment #2 from Frederic Crozat <fcrozat@suse.com> 2013-02-21 15:45:52 UTC --- I've pushed a fix for 12.3 on http://download.opensuse.org/repositories/home:/fcrozat:/branches:/Base:/Sys... and for 12.2 on http://download.opensuse.org/repositories/home:/fcrozat:/branches:/openSUSE:... please test -- 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=804575 https://bugzilla.novell.com/show_bug.cgi?id=804575#c3 --- Comment #3 from Harald Koenig <koenig@linux.de> 2013-02-21 22:39:12 UTC --- (In reply to comment #2)
I've pushed a fix for 12.3 on http://download.opensuse.org/repositories/home:/fcrozat:/branches:/Base:/Sys... and for 12.2 on http://download.opensuse.org/repositories/home:/fcrozat:/branches:/openSUSE:...
please test
I've updated your 12.3 updates and now these fstab entries work as expected! /dev/system/root-12.2 /12.2 ext4 acl,user_xattr 1 1 /boot /12.2/boot none rbind /proc /12.2/proc none rbind /sys /12.2/sys none rbind /dev /12.2/dev none rbind -- 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=804575 https://bugzilla.novell.com/show_bug.cgi?id=804575#c4 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Frederic Crozat <fcrozat@suse.com> 2013-02-22 09:52:38 UTC --- ok. the 12.2 fix will be part of a future maintenance update. I'll see if I can push the 12.3 one for final or it will be as a maintenance update too. -- 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=804575 https://bugzilla.novell.com/show_bug.cgi?id=804575#c5 --- Comment #5 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-02-22 14:00:11 CET --- This is an autogenerated message for OBS integration: This bug (804575) was mentioned in https://build.opensuse.org/request/show/156091 Factory / systemd -- 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=804575 https://bugzilla.novell.com/show_bug.cgi?id=804575#c6 Yarny Yarny <Yarny@public-files.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Yarny@public-files.de --- Comment #6 from Yarny Yarny <Yarny@public-files.de> 2013-05-02 15:19:51 UTC --- Is this patch already available in the opensuse-12.3(-update) repository ? I'm having trouble with "mount --rbind" too, and I'm wondering if it could be related to this bug. I don't want to open a duplicate bug report. My system uses systemd 195-13.18.1. In a nutshell: after "mount --rbind /sys /mnt" I cannot undo this operation unless I reboot the system, due to "busy" mount points. In oS 12.2 I was able to successively unmount every mount point in /mnt. -- 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=804575 https://bugzilla.novell.com/show_bug.cgi?id=804575#c7 --- Comment #7 from Harald Koenig <koenig@linux.de> 2013-05-02 17:02:26 UTC --- (In reply to comment #6)
I'm having trouble with "mount --rbind" too, and I'm wondering if it could be related to this bug. I don't want to open a duplicate bug report.
My system uses systemd 195-13.18.1. In a nutshell: after "mount --rbind /sys /mnt" I cannot undo this operation unless I reboot the system, due to "busy" mount points. In oS 12.2 I was able to successively unmount every mount point in /mnt.
you have to umount all mounts from --rbind youself ("manually"), one by one. try grep /mnt /proc/mounts grep /mnt /proc/mounts | cut -d" " -f2 | tac | xargs umount -- 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=804575 https://bugzilla.novell.com/show_bug.cgi?id=804575#c8 --- Comment #8 from Yarny Yarny <Yarny@public-files.de> 2013-05-02 17:07:08 UTC ---
you have to umount all mounts from --rbind youself ("manually"), one by one.
Yes, that's what I'm doing. Precisely, I'm unmounting with
cut -d' ' -f 2 /proc/mounts | grep -E "^/mnt" | sort -r | xargs -n1 umount which works well in openSUSE 12.2, but fails in openSUSE 12.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=804575 https://bugzilla.novell.com/show_bug.cgi?id=804575#c9 --- Comment #9 from Yarny Yarny <Yarny@public-files.de> 2013-05-04 11:58:02 UTC --- I couldn't reproduce the bug reported here, so I concluded this is fixed on my system. Therefore I opened the new bug 818498 for my problem. -- 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=804575 https://bugzilla.novell.com/show_bug.cgi?id=804575#c10 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #10 from Frederic Crozat <fcrozat@suse.com> 2013-06-12 10:56:19 UTC --- requesting maintenance update for 12.2 -- 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=804575 https://bugzilla.novell.com/show_bug.cgi?id=804575#c11 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO InfoProvider| |maintenance@opensuse.org --- Comment #11 from Frederic Crozat <fcrozat@suse.com> 2013-06-12 10:56:41 UTC --- mr 178807 for 12.2 -- 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=804575 https://bugzilla.novell.com/show_bug.cgi?id=804575#c12 Benjamin Brunner <bbrunner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED InfoProvider|maintenance@opensuse.org | --- Comment #12 from Benjamin Brunner <bbrunner@suse.com> 2013-06-13 05:34:35 CEST --- Update started for openSUSE 12.2. See openSUSE:Maintenance:1775. Thanks for your submission. -- 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=804575 https://bugzilla.novell.com/show_bug.cgi?id=804575#c13 Benjamin Brunner <bbrunner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #13 from Benjamin Brunner <bbrunner@suse.com> 2013-06-20 09:08:11 CEST --- Update released for openSUSE 12.2. 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.
https://bugzilla.novell.com/show_bug.cgi?id=804575 https://bugzilla.novell.com/show_bug.cgi?id=804575#c14 --- Comment #14 from Swamp Workflow Management <swamp@suse.de> 2013-06-20 08:04:44 UTC --- openSUSE-RU-2013:1055-1: An update that has four recommended fixes can now be installed. Category: recommended (moderate) Bug References: 793411,796171,804575,808144 CVE References: Sources used: openSUSE 12.2 (src): systemd-44-10.15.1, systemd-gtk-44-10.15.1 -- 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