https://bugzilla.novell.com/show_bug.cgi?id=811870 https://bugzilla.novell.com/show_bug.cgi?id=811870#c0 Summary: Recent commit causes SysV services not to be enabled Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: joschibrauchle@gmx.de QAContact: jsrain@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:19.0) Gecko/20100101 Firefox/19.0 Due to the recent commit to yast2, https://github.com/yast/yast-yast2/commit/f600967b96446de309a63ca6ed9154a4ba... Yast now calls "systemctl is-enabled <service>" to check if a service is enabled before it actually enables it. Problem: This does not work correctly for old sysvinit services due to a possible bug in systemd, see the following y2log: ---------- 2013-03-26 19:36:19 <1> student04(4489) [YCP] RunlevelEd.ycp:687 Setting nfs: ["3", "5"] 2013-03-26 19:36:19 <2> student04(4489) [YCP] Service.ycp:341 Cannot enable service nfs (just) in selected runlevels, enabling in all default ones 2013-03-26 19:36:19 <3> student04(4489) [bash] ShellCommand.cc(shellcommand):78 nfs.service is not a native service, redirecting to /sbin/chkconfig. 2013-03-26 19:36:19 <3> student04(4489) [bash] ShellCommand.cc(shellcommand):78 Executing /sbin/chkconfig nfs --level=5 ---------- The installed system ends up with nfs service not running. The reason is this: ---------- -bash-4.2# rcnfs status Checking for mounted nfs shares (from /etc/fstab):gssd not running idmapd not running unused nfs.service - LSB: NFS client services Loaded: loaded (/etc/init.d/nfs) Active: inactive (dead) CGroup: name=systemd:/system/nfs.service -bash-4.2# /sbin/chkconfig -l nfs Note: This output shows SysV services only and does not include native systemd services. SysV configuration data might be overridden by native systemd configuration. nfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off -bash-4.2# systemctl is-enabled nfs.service nfs.service is not a native service, redirecting to /sbin/chkconfig. Executing /sbin/chkconfig nfs --level=5 nfs off enabled -bash-4.2# ---------- Clearly, "systemctl is-enabled nfs.service" incorrectly reports nfs to be "enabled" although it is disabled! Due to this wrong information and the commit mentioned above, YaST now does not enable sysvinit services because systemd tells it they would already be enabled! Reproducible: Always Steps to Reproduce: 1. Let YaST enable a sysvinit service 2. YaST calls "systemctl is-enabled <service>" which wrongly reports it to be enabled -- 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.