[Bug 812541] New: reboot won't proceed
https://bugzilla.novell.com/show_bug.cgi?id=812541 https://bugzilla.novell.com/show_bug.cgi?id=812541#c0 Summary: reboot won't proceed Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jslaby@suse.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- Created an attachment (id=532700) --> (http://bugzilla.novell.com/attachment.cgi?id=532700) journalctl output Not even after some time. I'm attaching journalctl from debug shell when this happens (which is every time). -- 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=812541 https://bugzilla.novell.com/show_bug.cgi?id=812541#c Jiri Slaby <jslaby@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=812541 https://bugzilla.novell.com/show_bug.cgi?id=812541#c1 --- Comment #1 from Frederic Crozat <fcrozat@suse.com> 2013-04-02 11:22:36 UTC --- This looks similar to bnc#787228 Did you change the vpn config to not restart dnsmasq on shutdown ? -- 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=812541 https://bugzilla.novell.com/show_bug.cgi?id=812541#c2 Jiri Slaby <jslaby@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #2 from Jiri Slaby <jslaby@suse.com> 2013-04-02 15:05:48 UTC --- Of course, my bad. This is another machine. Sorry for the noise. *** This bug has been marked as a duplicate of bug 787228 *** http://bugzilla.novell.com/show_bug.cgi?id=787228 -- 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=812541 https://bugzilla.novell.com/show_bug.cgi?id=812541#c3 Jiri Slaby <jslaby@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #532700|0 |1 is obsolete| | --- Comment #3 from Jiri Slaby <jslaby@suse.com> 2013-04-08 07:48:46 UTC --- Created an attachment (id=533912) --> (http://bugzilla.novell.com/attachment.cgi?id=533912) journalctl with try-restart (In reply to comment #2)
Of course, my bad. This is another machine. Sorry for the noise.
Not really. I had 'dnsmasq restart' there, so I changed that to try-restart, but still the issue is there. -- 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=812541 https://bugzilla.novell.com/show_bug.cgi?id=812541#c4 Jiri Slaby <jslaby@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|DUPLICATE | --- Comment #4 from Jiri Slaby <jslaby@suse.com> 2013-04-08 07:49:08 UTC --- . -- 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=812541 https://bugzilla.novell.com/show_bug.cgi?id=812541#c5 --- Comment #5 from Frederic Crozat <fcrozat@suse.com> 2013-04-08 13:48:34 UTC --- Apr 08 09:34:32 anemoi systemd[1]: Trying to enqueue job dnsmasq.service/try-restart/replace Apr 08 09:34:32 anemoi systemd[1]: Job dnsmasq.service/stop finished, result=canceled Apr 08 09:34:32 anemoi systemd[1]: Installed new job dnsmasq.service/restart as 906 So, try-restart replaced "stop" by "restart" because it wasn't stopped at the time try-restart was reached. The "real" fix (non abortable shutdown / kexec / reboot) will be available in Factory soon but I can't backport it for 12.3 (changes are too intrusive). I've asked upstream their opinion on whether try-restart should ack as "no-op" or "restart" if a "stop" call is pending. There is currently no precise answer for this so I've sent a mail on systemd-devel mailing list to see if we can change the behavior or not. In the mean time, you should probably add something like: systemd_booting () { # returns 0 when we boot, 1 in running system systemctl show -p ActiveState default.target | grep -qi inactive } and use it to call systemctl try-restart dnsmasq.service only if system is in running state.. -- 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=812541 https://bugzilla.novell.com/show_bug.cgi?id=812541#c6 --- Comment #6 from Jiri Slaby <jslaby@suse.com> 2013-04-09 08:15:05 UTC --- (In reply to comment #5)
The "real" fix (non abortable shutdown / kexec / reboot) will be available in Factory soon but I can't backport it for 12.3 (changes are too intrusive).
Ok, is it safe to install Base:System's systemd on the top of 12.3? I'm using tumbleweed anyway, so I'm asking if adding new systemd there is an option? -- 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=812541 https://bugzilla.novell.com/show_bug.cgi?id=812541#c7 --- Comment #7 from Frederic Crozat <fcrozat@suse.com> 2013-04-09 08:35:50 UTC --- (In reply to comment #6)
(In reply to comment #5)
The "real" fix (non abortable shutdown / kexec / reboot) will be available in Factory soon but I can't backport it for 12.3 (changes are too intrusive).
Ok, is it safe to install Base:System's systemd on the top of 12.3? I'm using tumbleweed anyway, so I'm asking if adding new systemd there is an option?
Right now, Base:System doesn't have new systemd (I'm planning to work on it this week). It "should" work but it is less tested and I can't make any garantee on how broken it will be in the future when used on 12.3, during 13.1 development. I would suggest to "workaround" the try-restart issue instead, might be more stable ;) -- 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=812541 https://bugzilla.novell.com/show_bug.cgi?id=812541#c8 --- Comment #8 from Jiri Slaby <jslaby@suse.com> 2013-04-09 08:40:10 UTC --- Ok, I'm now having this: if ! systemctl show -p ActiveState default.target | grep -qi inactive; then systemctl try-restart dnsmasq.service fi -- 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=812541 https://bugzilla.novell.com/show_bug.cgi?id=812541#c10 --- Comment #10 from Jiri Slaby <jslaby@suse.com> 2013-04-15 07:45:50 UTC --- (In reply to comment #8)
Ok, I'm now having this:
if ! systemctl show -p ActiveState default.target | grep -qi inactive; then systemctl try-restart dnsmasq.service fi
This doesn't work when openvpn is started during boot-up -- dnsmasq is not restarted at that time. I have to restart it manually. -- 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=812541 https://bugzilla.novell.com/show_bug.cgi?id=812541#c11 --- Comment #11 from Frederic Crozat <fcrozat@suse.com> 2013-04-19 13:14:55 UTC --- Could you try : if ! systemctl show -p ActiveState shutdown.target | grep -qi active; then systemctl try-restart dnsmasq.service fi This should detect properly when the system is in shutdown mode (the other test was more to detect when system was not in startup mode). -- 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=812541 https://bugzilla.novell.com/show_bug.cgi?id=812541#c12 --- Comment #12 from Jiri Slaby <jslaby@suse.com> 2013-04-20 08:22:55 UTC --- (In reply to comment #11)
Could you try :
if ! systemctl show -p ActiveState shutdown.target | grep -qi active; then systemctl try-restart dnsmasq.service fi
This doesn't work either. Are you sure with the 'not'? -- 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=812541 https://bugzilla.novell.com/show_bug.cgi?id=812541#c13 --- Comment #13 from Jiri Slaby <jslaby@suse.com> 2013-04-20 08:24:15 UTC --- I mean this:
if ! systemctl show -p ActiveState shutdown.target | grep -qi active; then
^ -----' -- 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=812541 https://bugzilla.novell.com/show_bug.cgi?id=812541#c14 --- Comment #14 from Jiri Slaby <jslaby@suse.com> 2013-04-20 08:25:25 UTC --- This whole is weird. 'grep active' matches both active *and* inactive... -- 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=812541 https://bugzilla.novell.com/show_bug.cgi?id=812541#c15 --- Comment #15 from Frederic Crozat <fcrozat@suse.com> 2013-04-22 08:42:10 UTC --- err, I should learn to type, someday :) if systemctl show -p ActiveState shutdown.target | grep -qi =active ; then should work much better.. -- 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=812541 https://bugzilla.novell.com/show_bug.cgi?id=812541#c16 --- Comment #16 from Jiri Slaby <jslaby@suse.com> 2013-04-25 14:09:55 UTC --- (In reply to comment #15)
err, I should learn to type, someday :)
if systemctl show -p ActiveState shutdown.target | grep -qi =active ; then
should work much better..
Are you sure? if systemctl show -p ActiveState shutdown.target | grep -qi =active; then echo aa fi doesn't print anything on a running system. Maybe it's OK, but I don't see why it should be :)... -- 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=812541 https://bugzilla.novell.com/show_bug.cgi?id=812541#c Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|fcrozat@suse.com |systemd-maintainers@suse.de -- 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=812541 https://bugzilla.novell.com/show_bug.cgi?id=812541#c Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- OS/Version|Other |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.
participants (1)
-
bugzilla_noreply@novell.com