Bug 647134

Summary: yum does not honour timeout=x for mirrorlists
Product: Red Hat Enterprise Linux 5 Reporter: Vishal Gaikwad <vgaikwad>
Component: yumAssignee: James Antill <james.antill>
Status: CLOSED ERRATA QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 5.4CC: ebenes, jhutar, ksrot, ohudlick, wpan
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: yum-3.2.22-35.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 715351 (view as bug list) Environment:
Last Closed: 2011-07-21 07:23:53 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 712127, 715351    

Description Vishal Gaikwad 2010-10-27 06:29:19 EDT
Description of problem:
yum fails to take into account the timeout=x value when using mirrorlists. yum will attempt to conect to a mirrorlist taking some 3 minutes before it decides it cannot conect. If we use baseurl this hnours the timeout parameter. 

Version-Release number of selected component (if applicable):
Red Hat Enterprise Linux 5.4

How reproducible:

Steps to Reproduce:
I added this in /etc/yum.repos.d/rhel.repo


then I set the iptables rule on this machine and run "yum update". 

If the rule is 
iptables -I OUTPUT 1 -p tcp --dport 80  -j DROP

yum will timeout after 3 mins.

If the rule is
iptables -I OUTPUT 1 -p tcp --dport 80  -j REJECT

yum will timeout almost immediately. Same thing if the file is not there, permissions denied etc.
Actual results:
yum will timeout after 3 mins,

Expected results:
yum should timeout as per the timeout parameter

Additional info:
Comment 7 James Antill 2011-01-18 09:19:19 EST
 Pretty sure this is the commit, that fixes it:


...however also note that we have:


...which is much more recent, for downloading gpgkeys.
Comment 22 James Antill 2011-06-02 13:07:27 EDT
*** Bug 709984 has been marked as a duplicate of this bug. ***
Comment 40 errata-xmlrpc 2011-07-21 07:23:53 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.