[Bug 803577] New: User initscripts are exiting arbitrarily and final reboot is canceled
https://bugzilla.novell.com/show_bug.cgi?id=803577
https://bugzilla.novell.com/show_bug.cgi?id=803577#c0
Summary: User initscripts are exiting arbitrarily and final
reboot is canceled
Classification: openSUSE
Product: openSUSE Factory
Version: 12.3 Beta 1
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: AutoYaST
AssignedTo: fehr@suse.com
ReportedBy: joschibrauchle@gmx.de
QAContact: qa-bugs@suse.de
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.17 (KHTML,
like Gecko) Chrome/24.0.1312.70 Safari/537.17
On an openSUSE 12.3 RC1 AY installation, I am running a user init-script like
this:
----------
<scripts>
<init-scripts config:type="list">
<script>
<filename>init0000_final_installation.sh</filename>
<location><![CDATA[nfs://gemini.lnt.ei.tum.de/ha/export/install/linux/opensuse/12.3/autoinstall/scripts/init0000_final_installation.sh]]></location>
</script>
... some more scripts
</init-scripts>
</script>
----------
plus a final reboot is configured:
----------
<general>
<mode>
<confirm config:type="boolean">false</confirm>
https://bugzilla.novell.com/show_bug.cgi?id=803577
https://bugzilla.novell.com/show_bug.cgi?id=803577#c1
--- Comment #1 from Joschi Brauchle
https://bugzilla.novell.com/show_bug.cgi?id=803577
https://bugzilla.novell.com/show_bug.cgi?id=803577#c2
--- Comment #2 from Joschi Brauchle
https://bugzilla.novell.com/show_bug.cgi?id=803577
https://bugzilla.novell.com/show_bug.cgi?id=803577#c3
--- Comment #3 from Joschi Brauchle
https://bugzilla.novell.com/show_bug.cgi?id=803577
https://bugzilla.novell.com/show_bug.cgi?id=803577#c4
Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=803577
https://bugzilla.novell.com/show_bug.cgi?id=803577#c
Joschi Brauchle
https://bugzilla.novell.com/show_bug.cgi?id=803577
https://bugzilla.novell.com/show_bug.cgi?id=803577#c5
Joschi Brauchle
https://bugzilla.novell.com/show_bug.cgi?id=803577
https://bugzilla.novell.com/show_bug.cgi?id=803577#c
Joschi Brauchle
https://bugzilla.novell.com/show_bug.cgi?id=803577
https://bugzilla.novell.com/show_bug.cgi?id=803577#c6
--- Comment #6 from Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=803577
https://bugzilla.novell.com/show_bug.cgi?id=803577#c
Joschi Brauchle
https://bugzilla.novell.com/show_bug.cgi?id=803577
https://bugzilla.novell.com/show_bug.cgi?id=803577#c7
Walter Zimmer
https://bugzilla.novell.com/show_bug.cgi?id=803577
https://bugzilla.novell.com/show_bug.cgi?id=803577#c8
--- Comment #8 from Joschi Brauchle
So maybe it is a good idea to set the type to oneshot or set the timeout to 0? It would be great if this could be fixed for 12.3!
For 12.3, the autoyast init script was converted by a systemd service with exactly those parameters, see https://bugzilla.novell.com/show_bug.cgi?id=788997 -- 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=803577 https://bugzilla.novell.com/show_bug.cgi?id=803577#c Bug 803577 depends on bug 769924, which changed state. Bug 769924 Summary: the autoyast runlevel config kicks in after reboot only with systemd http://bugzilla.novell.com/show_bug.cgi?id=769924 What |Old Value |New Value ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Status|ASSIGNED |RESOLVED Resolution| |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=803577
https://bugzilla.novell.com/show_bug.cgi?id=803577#c9
Joschi Brauchle
https://bugzilla.novell.com/show_bug.cgi?id=803577
https://bugzilla.novell.com/show_bug.cgi?id=803577#c10
Joschi Brauchle
https://bugzilla.novell.com/show_bug.cgi?id=803577
https://bugzilla.novell.com/show_bug.cgi?id=803577#c11
Joschi Brauchle
https://bugzilla.novell.com/show_bug.cgi?id=803577
https://bugzilla.novell.com/show_bug.cgi?id=803577#c12
Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=803577
https://bugzilla.novell.com/show_bug.cgi?id=803577#c13
--- Comment #13 from Joschi Brauchle
From what I can see, it looks like the init scripts get killed. I dont know the reason though...
... [10606.990126] systemd[1]: Job YaST2-Second-Stage.service/start finished, result=done [10606.990253] systemd[1]: Started YaST2 Second Stage. [10606.990371] systemd[1]: Got SIGCHLD for process 3098 (plymouth) [10606.990403] systemd[1]: Child 3098 died (code=exited, status=0/SUCCESS) [10606.990405] systemd[1]: Child 3098 belongs to autoyast-initscripts.service [10606.990417] systemd[1]: autoyast-initscripts.service: control process exited, code=exited status=0 [10606.996126] systemd[1]: autoyast-initscripts.service got final SIGCHLD for state start-pre [10606.996161] systemd[1]: About to execute /usr/lib/YaST2/bin/autoyast-initscripts.sh [10606.996317] systemd[1]: Forked /usr/lib/YaST2/bin/autoyast-initscripts.sh as 3070 [10607.006209] systemd[1]: autoyast-initscripts.service changed start-pre -> start ... [10607.040489] systemd[1]: Got D-Bus request: org.freedesktop.systemd1.Manager.Reload() on /org/freedesktop/systemd1 [10607.040498] systemd[1]: Reloading. ... [10607.065209] systemd[1]: Reinstalled deserialized job autoyast-initscripts.service/start as 109 ... [10607.066199] systemd[1]: autoyast-initscripts.service changed dead -> start ... [10612.020558] systemd[1]: Received SIGCHLD from PID 3070 (autoyast-initsc). [10612.020577] systemd[1]: Got SIGCHLD for process 3070 (autoyast-initsc) [10612.020613] systemd[1]: Child 3070 died (code=killed, status=1/HUP) [10612.020616] systemd[1]: Child 3070 belongs to autoyast-initscripts.service [10612.020643] systemd[1]: autoyast-initscripts.service: main process exited, code=killed, status=1/HUP [10612.020683] systemd[1]: autoyast-initscripts.service changed start -> exited [10612.020695] systemd[1]: Job autoyast-initscripts.service/start finished, result=done [10612.020707] systemd[1]: Started Autoyast2 Init Scripts. --------------- -- 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=803577
https://bugzilla.novell.com/show_bug.cgi?id=803577#c14
--- Comment #14 from Joschi Brauchle
https://bugzilla.novell.com/show_bug.cgi?id=803577
https://bugzilla.novell.com/show_bug.cgi?id=803577#c15
--- Comment #15 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=803577
https://bugzilla.novell.com/show_bug.cgi?id=803577#c16
--- Comment #16 from Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=803577
https://bugzilla.novell.com/show_bug.cgi?id=803577#c17
--- Comment #17 from Frederic Crozat
So "TimeoutSec=0" is there. Do you see something different?
I don't maintain nor package autoyast, so I wasn't sure if disabling timeout was enforced or not. Without knowning what is done by the script, it will be hard to tell what is at fault.. -- 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=803577
https://bugzilla.novell.com/show_bug.cgi?id=803577#c18
--- Comment #18 from Joschi Brauchle
https://bugzilla.novell.com/show_bug.cgi?id=803577
https://bugzilla.novell.com/show_bug.cgi?id=803577#c19
Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=803577
https://bugzilla.novell.com/show_bug.cgi?id=803577#c20
--- Comment #20 from Frederic Crozat
Thank you very much for investigating this. I integrated your suggested changes to git repo.
Guys, be careful with removing "SYSTEMD_NO_WRAP=1", it might cause some breakage. I would suggest to replace this with "SYSTEMCTL_OPTIONS=--ignore-dependencies" to follow the change which was done on YaST2-Second-Stage. Otherwise you might end-up in deadlock. -- 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=803577
https://bugzilla.novell.com/show_bug.cgi?id=803577#c21
--- Comment #21 from Joschi Brauchle
Guys, be careful with removing "SYSTEMD_NO_WRAP=1", it might cause some breakage. I would suggest to replace this with "SYSTEMCTL_OPTIONS=--ignore-dependencies" to follow the change which was done on YaST2-Second-Stage. Otherwise you might end-up in deadlock.
Of course that was just a suggestion on my part. I would assume it is OK to remove this here, because the mentioned service runs a bash script in the installed/final system, i.e., after YaST is completely done and the system has booted and is up and running. But you may be right: If a user calls systemctl from inside one of these scripts, a deadlock could occur... -- 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=803577
https://bugzilla.novell.com/show_bug.cgi?id=803577#c22
--- Comment #22 from Walter Zimmer
https://bugzilla.novell.com/show_bug.cgi?id=803577
https://bugzilla.novell.com/show_bug.cgi?id=803577#c23
--- Comment #23 from Joschi Brauchle
https://bugzilla.novell.com/show_bug.cgi?id=803577
https://bugzilla.novell.com/show_bug.cgi?id=803577#c24
--- Comment #24 from Thomas Fehr
Maybe a completely stupid question: how can I benefit from the fixing of this bug? Not easily yet. The fix is currently in git repo but not in a release package.
I just installed completely new with the 12.3 (oss/non-oss/updates-oss/updates-non-oss) repos from yesterday and have, after install, the following file for systemd: /var/lib/systemd/system/autoyast-initscripts.service which is from 20.02.2013.
I think this matches the package in the oss repository which is from 22.02.2013
However, in updates-oss, I find an updated systemd package to be from 27.03.2013, which supposedly carries the fixed files of this bug already.
No, file /usr/lib/systemd/system/autoyast-initscripts.service is part of package autoyast2-installation, so far there is no new package released for autoyast since 12.3 GA. I hope I can release one next week. The workaround suggested in comment#23 is fine until updated autoyast packages are released. -- 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=803577
https://bugzilla.novell.com/show_bug.cgi?id=803577#c25
--- Comment #25 from Walter Zimmer
https://bugzilla.novell.com/show_bug.cgi?id=803577
https://bugzilla.novell.com/show_bug.cgi?id=803577#c26
--- Comment #26 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=803577
https://bugzilla.novell.com/show_bug.cgi?id=803577#c27
--- Comment #27 from Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com