Red Hat Bugzilla – Bug 455346
No output when syslog option used
Last modified: 2008-07-16 13:00:50 EDT
Description of problem:
When 'emit_via = syslog' is set in /etc/yum/yum-updatesd.conf, only available
updates are logged. If 'do_update = yes' is also set, then nothing gets logged
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Set 'emit_via = syslog' and 'do_update = yes' in /etc/yum/yum-updatesd.conf.
2. Wait for updates to become available, nothing is logged (by default
rsyslog.conf will write daemon.warning messages to /var/log/messages).
yum-updatesd should log the number of updates available (which it does); the
number of updates applied (if 'do_update = yes' is set); and any error messages
if the updates fail.
A patch for /usr/libexec/yum-updatesd-helper is attached.
In our case we configure /etc/yum.conf on servers to exclude some packages.
However, if these cause a dependency failure for other updates, then
yum-updatesd should log this. The patch corrects this.
The problem we found was that several servers had updates to apply, but it
seemed that yum-updatesd was not applying them. Nothing was logged in
/var/log/messages at all. It turned out that there was a dependency failure.
Applying our patch, then yum-updatesd logged the failure.
Created attachment 311782 [details]
Pushed upstream, will be in the next release jantill does. Thanks for the patch.