[Bug 852021] New: rsyslog.service cancels emergency.target making it impossible to enter emergency shell
https://bugzilla.novell.com/show_bug.cgi?id=852021 https://bugzilla.novell.com/show_bug.cgi?id=852021#c0 Summary: rsyslog.service cancels emergency.target making it impossible to enter emergency shell Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: Other OS/Version: openSUSE 13.1 Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: arvidjaar@gmail.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- Created an attachment (id=568839) --> (http://bugzilla.novell.com/attachment.cgi?id=568839) systemd debug log entering emeregency shell User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0 As was found in bnc#851993, if rsyslog service is active it may be impossible to enter emergency shell. The reason is, rsyslog.service requires basic.target which requires sysinit.target which conflicts with emergency.{target,service}. So if syslog.service is triggered by connection to syslog.socket it tries to start basic.target which cancels pending emergency shell. Nov 23 23:20:05 server systemd[1]: Started Emergency Shell. Nov 23 23:20:05 server systemd[1]: Starting Emergency Mode. Nov 23 23:20:05 server systemd[1]: emergency.target changed dead -> active Nov 23 23:20:05 server systemd[1]: Job emergency.target/start finished, result=done Nov 23 23:20:05 server systemd[1]: Reached target Emergency Mode. .. Nov 23 23:20:05 server systemd[1]: Incoming traffic on syslog.socket Nov 23 23:20:05 server systemd[1]: Trying to enqueue job rsyslog.service/start/replace Nov 23 23:20:05 server systemd[1]: Installed new job rsyslog.service/start as 541 Nov 23 23:20:05 server systemd[1]: Installed new job basic.target/start as 549 Nov 23 23:20:05 server systemd[1]: Installed new job sysinit.target/start as 550 .. Nov 23 23:20:05 server systemd[1]: Stopping Emergency Mode. Nov 23 23:20:05 server systemd[1]: emergency.target changed active -> dead Nov 23 23:20:05 server systemd[1]: Job emergency.target/stop finished, result=done Nov 23 23:20:05 server systemd[1]: Stopped target Emergency Mode. Nov 23 23:20:05 server systemd[1]: Stopping Emergency Shell... Full log in attachment. 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=852021
https://bugzilla.novell.com/show_bug.cgi?id=852021#c
zhang jiajun
https://bugzilla.novell.com/show_bug.cgi?id=852021
https://bugzilla.novell.com/show_bug.cgi?id=852021#c1
--- Comment #1 from Cristian Rodríguez
https://bugzilla.novell.com/show_bug.cgi?id=852021
https://bugzilla.novell.com/show_bug.cgi?id=852021#c2
--- Comment #2 from A R
https://bugzilla.novell.com/show_bug.cgi?id=852021
https://bugzilla.novell.com/show_bug.cgi?id=852021#c3
--- Comment #3 from A R
https://bugzilla.novell.com/show_bug.cgi?id=852021
https://bugzilla.novell.com/show_bug.cgi?id=852021#c4
Andrey Borzenkov
not an rsyslog problem I never said it was :)
-- 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=852021
https://bugzilla.novell.com/show_bug.cgi?id=852021#c5
--- Comment #5 from A R
https://bugzilla.novell.com/show_bug.cgi?id=852021
https://bugzilla.novell.com/show_bug.cgi?id=852021#c6
--- Comment #6 from Andrey Borzenkov
I've only x86_64 to test ...
Can you build/enable for that arch?
it is. x86 as opposed to arm or ppc. I did not say i386 :) -- 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=852021
https://bugzilla.novell.com/show_bug.cgi?id=852021#c7
A R
zypper ar obs://home:arvidjaar:bnc:852021/standard bnc852021 zypper refresh bnc852021 zypper dup -r bnc852021
zypper se -s | grep ^i | grep bnc852021 i | libgudev-1_0-0 | package | 208-13.1 | x86_64 | bnc852021 i | libudev-devel | package | 208-13.1 | x86_64 | bnc852021 i | libudev1 | package | 208-13.1 | x86_64 | bnc852021 i | systemd | package | 208-13.1 | x86_64 | bnc852021 i | systemd-rpm-macros | package | 2-13.1 | noarch | bnc852021 i | systemd-sysvinit | package | 208-13.1 | x86_64 | bnc852021 i | udev | package | 208-13.1 | x86_64 | bnc852021
reboot and verify that system boots
it does
Then enable back syslog.service (systemctl enable rsyslog.service)
done
uncomment DEVICE lines in /etc/mdadm.conf
done
reboot
done
We should be back to your original configuration which hung at emergency mode;
yes, it hangs, and ...
can you enter it now?
I'm now offered the emergency prompt, can login, traverse mounted/mountable fs, make edits, etc. -- 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=852021
https://bugzilla.novell.com/show_bug.cgi?id=852021#c8
Marco M.
https://bugzilla.novell.com/show_bug.cgi?id=852021
https://bugzilla.novell.com/show_bug.cgi?id=852021#c9
--- Comment #9 from A R
https://bugzilla.novell.com/show_bug.cgi?id=852021
https://bugzilla.novell.com/show_bug.cgi?id=852021#c10
--- Comment #10 from Andrey Borzenkov
https://bugzilla.novell.com/show_bug.cgi?id=852021
https://bugzilla.novell.com/show_bug.cgi?id=852021#c11
--- Comment #11 from Andrey Borzenkov
https://bugzilla.novell.com/show_bug.cgi?id=852021
https://bugzilla.novell.com/show_bug.cgi?id=852021#c12
--- Comment #12 from Marco M.
@Marco, @A R: the patch was enough; I now updated my package with additional workaround and would appreciate additional testing.
Tested, it works! The emergency shell comes out correctly. Just to be clear, i tested only the ability to show a working emergency shell when it is expected (in my case when a needed filesystem or partition is missing) -- 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=852021
https://bugzilla.novell.com/show_bug.cgi?id=852021#c13
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=852021
https://bugzilla.novell.com/show_bug.cgi?id=852021#c14
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=852021
https://bugzilla.novell.com/show_bug.cgi?id=852021#c15
--- Comment #15 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=852021
https://bugzilla.novell.com/show_bug.cgi?id=852021#c16
--- Comment #16 from Andrey Borzenkov
OK then this should work with the latest systemd from factory.
This bug is filed against 13.1. Anyone is going to provide fix for it? -- 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=852021
https://bugzilla.novell.com/show_bug.cgi?id=852021#c17
--- Comment #17 from Dr. Werner Fink
http://bugzilla.novell.com/show_bug.cgi?id=852021
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=852021
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=852021
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=852021
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=852021
http://bugzilla.novell.com/show_bug.cgi?id=852021#c18
--- Comment #18 from Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com