[Bug 790298] New: removal of rsyslog failed, /etc/init.d/rsyslogd ENOENT
https://bugzilla.novell.com/show_bug.cgi?id=790298 https://bugzilla.novell.com/show_bug.cgi?id=790298#c0 Summary: removal of rsyslog failed, /etc/init.d/rsyslogd ENOENT Classification: openSUSE Product: openSUSE Factory Version: 12.3 Milestone 1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: ohering@suse.com QAContact: qa-bugs@suse.de Found By: Outsourced Testing Blocker: --- Created an attachment (id=513658) --> (http://bugzilla.novell.com/attachment.cgi?id=513658) 12.3m1-factory-rsyslog-removal.png in a factory snapshot after 12.3m1, zypper dup from a snapshot around 12.3m0 timeframe. postfix required sysv(syslog) (or similar), during zypper dup I decided to deinstall rsyslog. The removal failed as shown in attached screenshot. removal of rsyslog failed, /etc/init.d/rsyslog No such file or directory. -- 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=790298 https://bugzilla.novell.com/show_bug.cgi?id=790298#c Jiaying ren <jren@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jren@suse.com AssignedTo|bnc-team-screening@forge.pr |ma@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=790298 https://bugzilla.novell.com/show_bug.cgi?id=790298#c Marius Tomaschewski <mt@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- 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=790298 https://bugzilla.novell.com/show_bug.cgi?id=790298#c3 --- Comment #3 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-01-10 14:00:36 CET --- This is an autogenerated message for OBS integration: This bug (790298) was mentioned in https://build.opensuse.org/request/show/147911 Factory / rsyslog -- 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=790298 https://bugzilla.novell.com/show_bug.cgi?id=790298#c4 --- Comment #4 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-01-10 15:00:38 CET --- This is an autogenerated message for OBS integration: This bug (790298) was mentioned in https://build.opensuse.org/request/show/147912 Factory / syslog-ng -- 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=790298 https://bugzilla.novell.com/show_bug.cgi?id=790298#c5 Marius Tomaschewski <mt@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO CC| |pczanik@genesi-usa.com, | |werner@suse.com InfoProvider| |maintenance@opensuse.org --- Comment #5 from Marius Tomaschewski <mt@suse.com> 2013-01-10 14:34:17 UTC --- The /etc/init.d/syslog _were_ provided by the syslog-service package, [dependency via Requires(pre)]. On 12.3, there is no init script at all, but services files only instead. I've added a check if the /etc/init.d/syslog exists to the rsyslog and syslog-ng packages: %preun ... +if test -x /etc/init.d/syslog ; then %{stop_on_removal syslog} +fi %postun ... +if test -x /etc/init.d/syslog ; then %{restart_on_update syslog} +fi See also Bug 750478, where the init script guard has been added to syslogd package (only) already before. Further, I run also into a bug where the SYSLOG_DAEMON variable is (first correctly set in %post, then) reset in %postun while update of one of the syslog daemon packages. I added a "removal" check/guard for this issue as well: %postun ... -if test -f etc/sysconfig/syslog ; then +# reset SYSLOG_DAEMON on removal +if test $1 -eq 0 -a -f etc/sysconfig/syslog ; then The changes are already submitted to Factory in requests 147912, 147911, but this is not sufficient: We have to provide updates for the old packages as it are the old packages which execute their uninstall scripts and trigger the errors, not the new package. I've prepared the rsyslog,syslog-ng,syslogd update packages for 12.2 in: OBS/home:mtomaschewski:branches:openSUSE:12.2:Update/ Maintenance, Werner, are you fine with this? -- 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=790298 https://bugzilla.novell.com/show_bug.cgi?id=790298#c6 Marius Tomaschewski <mt@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|removal of rsyslog failed, |removal of rsyslog failed, |/etc/init.d/rsyslogd ENOENT |/etc/init.d/syslog ENOENT --- Comment #6 from Marius Tomaschewski <mt@suse.com> 2013-01-10 16:18:49 UTC --- Just fixed the title to show correct init script name... -- 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=790298 https://bugzilla.novell.com/show_bug.cgi?id=790298#c7 --- Comment #7 from Marius Tomaschewski <mt@suse.com> 2013-01-10 16:39:15 UTC --- Created an attachment (id=519743) --> (http://bugzilla.novell.com/attachment.cgi?id=519743) screenlog showing the update using the update packages -- 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=790298 https://bugzilla.novell.com/show_bug.cgi?id=790298#c8 --- Comment #8 from Marius Tomaschewski <mt@suse.com> 2013-01-10 16:49:41 UTC --- BTW: See also bug#790805. The above attachment shows a switch from running syslog-ng to rsyslog and active rsyslog service after a 12.2 -> factory "zypper dup": trinity9:~ # /usr/sbin/systemctl status syslog.service rsyslog.service - System Logging Service Loaded: loaded (/usr/lib/systemd/system/rsyslog.service; enabled) Active: active (running) since Thu, 2013-01-10 16:28:16 CET; 20min ago Main PID: 7079 (syslog-ng) CGroup: name=systemd:/system/rsyslog.service Note the line with: "Main PID: 7079 (syslog-ng)". -- 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=790298 https://bugzilla.novell.com/show_bug.cgi?id=790298#c10 Benjamin Brunner <bbrunner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|maintenance@opensuse.org | --- Comment #10 from Benjamin Brunner <bbrunner@suse.com> 2013-01-11 13:41:16 CET --- Marius, could you create a maintenancerequest for 12.2 when Werner agrees, please. -- 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=790298 https://bugzilla.novell.com/show_bug.cgi?id=790298#c12 --- Comment #12 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-01-16 11:00:19 CET --- This is an autogenerated message for OBS integration: This bug (790298) was mentioned in https://build.opensuse.org/request/show/148693 Maintenance / https://build.opensuse.org/request/show/148694 Maintenance / -- 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=790298 https://bugzilla.novell.com/show_bug.cgi?id=790298#c13 --- Comment #13 from Marius Tomaschewski <mt@suse.com> 2013-01-16 10:14:46 UTC ---
Marius, could you create a maintenancerequest for 12.2 when Werner agrees, please.
OK, done: rq148695 syslogd -> 12.2:Update Reset the SYSLOG_DAEMON variable on removal only (bnc#790298,bnc#750478). [It already contains the /etc/init.d/syslog test] rq148694 rsyslog -> 12.2:Update rq148693 syslog-ng -> 12.2:Update Check the existence of /etc/init.d/syslog script, reset the SYSLOG_DAEMON variable on removal only (bnc#790298,bnc#750478).(In reply to comment #10) -- 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=790298 https://bugzilla.novell.com/show_bug.cgi?id=790298#c14 --- Comment #14 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-01-16 12:00:17 CET --- This is an autogenerated message for OBS integration: This bug (790298) was mentioned in https://build.opensuse.org/request/show/148695 Maintenance / -- 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=790298 https://bugzilla.novell.com/show_bug.cgi?id=790298#c16 Marius Tomaschewski <mt@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lmuelle@suse.com --- Comment #16 from Marius Tomaschewski <mt@suse.com> 2013-02-01 13:01:58 UTC --- *** Bug 801694 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=801694 -- 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