Bug 719221

Summary: systemd: i586 second-stage interrupted
Product: [openSUSE] openSUSE 12.1 Reporter: Bernhard Wiedemann <bwiedemann>
Component: BasesystemAssignee: Jiří Suchomel <jsuchome>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: fcrozat
Version: FactoryFlags: coolo: SHIP_STOPPER+
Target Milestone: ---   
Hardware: i586   
OS: SUSE Other   
Whiteboard:
Found By: System Test Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 696902    
Attachments: fix for YaST2 second stage service
firstboot service

Description Bernhard Wiedemann 2011-09-20 14:52:31 UTC
all i586 openQA testruns since Build0275+ 2011-09-13 have been failing.
during second stage autoconfiguration, YaST is interrupted and on console briefly appears the message
YaST got signal 15 at YCP file /usr/share/YaST2/clients/sound_write.ycp:267

tgoettlicher looked at y2log and found that there was a problem during a call of /etc/init.d/alsasound reload
this is handled special in systemd
though it is unclear, why this only affects i586 and not x86_64 installs

This bug is most prominently seen by the lack of xdm autologin and lack of non-root user setup.

Reproducible: Always

Example failed result:
http://openqa.opensuse.org/results/openSUSE-NET-i586-Build0275
Comment 1 Stephan Kulow 2011-09-20 14:55:13 UTC
fuser -k /dev/tty was on i586 also killing udev. i586 seems to have more generic bugs ;(
Comment 2 Frederic Crozat 2011-09-22 18:08:10 UTC
there is a default timeout of 60s which might be triggered by long second stage

adding 
TimeoutSec=0

to [service] section of /lib/systemd/system/YaST2-Second-Stage.service

will disable it.

We should also add 
RemainAfterExit=true

I still have an issue when gdm is being started too early before X from second stage is stopped, causing gdm to start again and X ends in vt9 instead of vt7 (which might break your autotest :(

from a look at log file, it looks like systemd is being requested to reload its config (something is probably sending a SIGHUP to init in second stage) and systemd then recompute condition on Yast2 Second Stage which are no longer met and kill the service (not yet 100% sure).
Comment 3 Frederic Crozat 2011-09-22 18:26:34 UTC
Created attachment 452593 [details]
fix for YaST2 second stage service

this file ensure YaST2 second stage will not be incorrectly "terminated" by systemd, if systemd configuration get reloaded while YaST2 second stage is running.

This fixes the issue for me
Comment 4 Frederic Crozat 2011-09-22 18:27:52 UTC
Jiri, could you upload a new yast-installation package with the fixed service ? Thanks.
Comment 5 Jiří Suchomel 2011-09-23 06:21:27 UTC
Sure, but what about YaST2-Firstboot.service? Does it need adjustment as well?
Comment 6 Frederic Crozat 2011-09-23 13:24:30 UTC
Created attachment 452776 [details]
firstboot service

I'm not sure if the fix is needed, but I did similar change in firstboot file, just in case.

Better to have both fixed.
Comment 7 Jiří Suchomel 2011-09-23 13:52:21 UTC
Thanks for patches.
Comment 8 Bernhard Wiedemann 2011-09-26 16:00:08 UTC
This is an autogenerated message for OBS integration:
This bug (719221) was mentioned in
https://build.opensuse.org/request/show/84929 Factory / systemd
Comment 9 Bernhard Wiedemann 2011-09-26 17:00:09 UTC
This is an autogenerated message for OBS integration:
This bug (719221) was mentioned in
https://build.opensuse.org/request/show/84932 Factory / systemd
Comment 10 Bernhard Wiedemann 2011-09-28 15:35:54 UTC
There are more details on this problem & fix in bug 720882
Comment 11 Bernhard Wiedemann 2011-10-07 13:00:07 UTC
This is an autogenerated message for OBS integration:
This bug (719221) was mentioned in
https://build.opensuse.org/request/show/87053 Factory / yast2-installation
Comment 12 Bernhard Wiedemann 2011-10-10 09:00:07 UTC
This is an autogenerated message for OBS integration:
This bug (719221) was mentioned in
https://build.opensuse.org/request/show/87231 Factory / yast2-installation