Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 455346 - No output when syslog option used
Summary: No output when syslog option used
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: yum-updatesd
Version: 9
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-07-14 22:10 UTC by John Horne
Modified: 2008-07-16 17:00 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-07-16 17:00:50 UTC


Attachments (Terms of Use)
Syslog patch (deleted)
2008-07-14 22:10 UTC, John Horne
no flags Details | Diff

Description John Horne 2008-07-14 22:10:49 UTC
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
by yum-updatesd.

Version-Release number of selected component (if applicable):
yum-updatesd-0.9-1.fc9.noarch

How reproducible:
Everytime.

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).
3.
  
Actual results:
None.

Expected results:
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.

Additional info:
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.

Comment 1 John Horne 2008-07-14 22:10:49 UTC
Created attachment 311782 [details]
Syslog patch

Comment 2 Jeremy Katz 2008-07-16 17:00:50 UTC
Pushed upstream, will be in the next release jantill does.  Thanks for the patch.


Note You need to log in before you can comment on or make changes to this bug.