[Bug 851374] New: chkconfig --check broken with systemd services
https://bugzilla.novell.com/show_bug.cgi?id=851374 https://bugzilla.novell.com/show_bug.cgi?id=851374#c0 Summary: chkconfig --check broken with systemd services Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: werner@suse.com ReportedBy: mrueckert@suse.com QAContact: qa-bugs@suse.de CC: fcrozat@suse.com, tchatzimichos@suse.com Found By: --- Blocker: --- $ chkconfig apache2 apache2 on $ chkconfig --check apache2 ; echo $? 1 this breaks the puppet check if the service is 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.
https://bugzilla.novell.com/show_bug.cgi?id=851374 https://bugzilla.novell.com/show_bug.cgi?id=851374#c1 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |draht@suse.com, | |lnussel@suse.com, | |ro@suse.com, | |werner@suse.com AssignedTo|werner@suse.com |bnc-team-screening@forge.pr | |ovo.novell.com --- Comment #1 from Dr. Werner Fink <werner@suse.com> 2013-11-20 19:59:35 UTC --- /home/werner> rpm -qf /sbin/chkconfig aaa_base-12.3-14.12.1.x86_64 Beside this: apache2 should use systemd service unit -- 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=851374 https://bugzilla.novell.com/show_bug.cgi?id=851374#c2 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |mrueckert@suse.com --- Comment #2 from Dr. Werner Fink <werner@suse.com> 2013-11-20 20:03:07 UTC --- Maybe a duplicate of bnc #811870 -- 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=851374 https://bugzilla.novell.com/show_bug.cgi?id=851374#c3 --- Comment #3 from Marcus Rückert <mrueckert@suse.com> 2013-11-21 10:14:24 UTC --- even if it is a duplicate ... the systemd in the container is an up2date 131 and it is broken there (again) -- 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=851374 https://bugzilla.novell.com/show_bug.cgi?id=851374#c4 --- Comment #4 from Dr. Werner Fink <werner@suse.com> 2013-11-21 10:19:21 UTC --- (In reply to comment #3) I do not maintain chkconfig not the insserv perl script. IMHO you should use systmctl :) Beside this: apache2 is supported package and therefore it should show a systemd unit service file :) -- 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=851374 https://bugzilla.novell.com/show_bug.cgi?id=851374#c5 --- Comment #5 from Marcus Rückert <mrueckert@suse.com> 2013-11-21 10:40:20 UTC --- the problem is not what i call manually but what puppet will call by default on opensuse. and for now that is still chkconfig. you can set it up to prefer systemd and its tools to check that. but in the default config it will try to reenable the services in every puppet run as the check for "is service enabled" fails. -- 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=851374 https://bugzilla.novell.com/show_bug.cgi?id=851374#c6 --- Comment #6 from Ruediger Oertel <ro@suse.com> 2013-11-22 00:24:24 UTC --- would this work for you ? not a clean implementation since it only works for "chkconfig --check $service" and not when also specifying runlevels, but it's a first step. > diff -u files/sbin/chkconfig /sbin/chkconfig --- files/sbin/chkconfig 2013-11-11 17:50:21.000000000 +0100 +++ /sbin/chkconfig 2013-11-22 01:20:32.215567897 +0100 @@ -624,7 +624,12 @@ exit 1 unless getreal_xinetd($s) ne ''; next; } - exit 1 unless $links{$l}->{$s}; + if (is_overriden_by_systemd($s, $root)) { + my $r = systemd_get_enabled($s, $root); + exit 1 if $r eq "off"; + } else { + exit 1 unless $links{$l}->{$s}; + } } exit 0; } -- 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=851374 https://bugzilla.novell.com/show_bug.cgi?id=851374#c Xiyuan Liu <xyliu@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xyliu@suse.com AssignedTo|bnc-team-screening@forge.pr |lnussel@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=851374 https://bugzilla.novell.com/show_bug.cgi?id=851374#c7 Ludwig Nussel <lnussel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|mrueckert@suse.com | AssignedTo|lnussel@suse.com |ro@suse.com --- Comment #7 from Ludwig Nussel <lnussel@suse.com> 2013-11-29 15:11:19 CET --- looks good, please commit :) -- 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=851374 https://bugzilla.novell.com/show_bug.cgi?id=851374#c8 Ludwig Nussel <lnussel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #8 from Ludwig Nussel <lnussel@suse.com> 2013-12-09 09:19:24 CET --- committed and submitted -- 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=851374 https://bugzilla.novell.com/show_bug.cgi?id=851374#c9 --- Comment #9 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-12-09 10:00:20 CET --- This is an autogenerated message for OBS integration: This bug (851374) was mentioned in https://build.opensuse.org/request/show/209902 Factory / aaa_base https://build.opensuse.org/request/show/209907 13.1 / aaa_base https://build.opensuse.org/request/show/209908 12.3 / aaa_base -- 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=851374 https://bugzilla.novell.com/show_bug.cgi?id=851374#c10 --- Comment #10 from Swamp Workflow Management <swamp@suse.de> 2013-12-16 14:06:21 UTC --- openSUSE-RU-2013:1884-1: An update that has one recommended fix can now be installed. Category: recommended (low) Bug References: 851374 CVE References: Sources used: openSUSE 13.1 (src): aaa_base-13.1-16.20.1 openSUSE 12.3 (src): aaa_base-12.3-14.18.1 -- 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