Bug 431321

Summary: Incorrect mails with check only when a repo is not accessible
Product: [Fedora] Fedora Reporter: Ville Skyttä <ville.skytta>
Component: yum-cronAssignee: Habig, Alec <ahabig>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: james.antill
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 0.8-1.fc8 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-02-28 21:36:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ville Skyttä 2008-02-02 20:14:24 UTC
yum.cron.daily treats all non-zero yum exit codes as equal in CHECK_ONLY
configurations.  Today I got several mails from it like the below because the
EPEL mirror I use was not available (yeah, this is on EL but I think Fedora is
the upstream for yum-cron there so it'd be better to fix it in Fedora I think):

----
/etc/cron.daily/yum.cron:

New updates available for host xxx:


Error: Cannot open/read repomd.xml file for repository: epel
Updates downloaded, use "yum -C update" manually to install them.
----

yum check-update is documented to return 0 if no updates are available, and 100
if there are updates available.  yum.cron.daily should not treat all non-zero
exit codes as "updates are available" ones.  I have mixed feelings about whether
it should even mail me if a repo was not available, but certainly not like it
currently does :)

Comment 1 Habig, Alec 2008-02-20 15:45:00 UTC
Similar to the CHECK_FIRST solution presented in bug 429716.  For CHECK_ONLY
setups, looks like this should always be done.  Working on both bugs now.


Comment 2 Fedora Update System 2008-02-21 15:47:56 UTC
yum-cron-0.8-1.fc7 has been submitted as an update for Fedora 7

Comment 3 Fedora Update System 2008-02-21 15:48:48 UTC
yum-cron-0.8-1.fc8 has been submitted as an update for Fedora 8

Comment 4 Fedora Update System 2008-02-26 00:21:49 UTC
yum-cron-0.8-1.fc8 has been pushed to the Fedora 8 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update yum-cron'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F8/FEDORA-2008-1916

Comment 5 Fedora Update System 2008-02-28 21:36:36 UTC
yum-cron-0.8-1.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2008-02-28 21:42:23 UTC
yum-cron-0.8-1.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.