Bug 1099101 - 7.0 RC Regression: urlgrabber terminates yum upon connection interruption thinking it's been aborted
Summary: 7.0 RC Regression: urlgrabber terminates yum upon connection interruption thi...
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: python-urlgrabber
Version: 7.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: ---
Assignee: James Antill
QA Contact: Martin Frodl
: 1091740 (view as bug list)
Depends On:
Blocks: 1110703
TreeView+ depends on / blocked
Reported: 2014-05-19 13:38 UTC by Lubomir Rintel
Modified: 2015-03-05 10:56 UTC (History)
6 users (show)

Fixed In Version: python-urlgrabber-3.10-5.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2015-03-05 10:56:50 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0447 normal SHIPPED_LIVE python-urlgrabber bug fix update 2015-03-05 15:31:57 UTC

Description Lubomir Rintel 2014-05-19 13:38:18 UTC
Description of problem:

Recent addition to urlgrabber is broken (quite obviously):

I strongly suggest it's reverted.

55 and 56 errors are not keyboard interruptions and should not be propagated as such. The bug reference is broken (a private bug), I presume it was done to combat yum ctrl+c handling. It was not done correctly -- curl should either be told not to hook INT signal or use a different error to signal the condition.

With the patch applied, with repository not responding yum thinks user aborted it:

[root@lr-death-to-all ~]# yum -v -d 8 install perl-LWP-Protocol-https-6.04-4.el7.noarch
Not loading "rhnplugin" plugin, as it is disabled
Loading "fastestmirror" plugin
Loading "priorities" plugin
Loading "product-id" plugin
Loading "subscription-manager" plugin
Loading "versionlock" plugin
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Config time: 0.090
Yum version: 3.4.3
rpmdb time: 0.000
Setting up Package Sacks

 Current download cancelled, interrupt (ctrl-c) again within two seconds
to exit.

This is very confusing and given it aborts yum even with skip_if_unavailable=1, it makes it possible to lock out package management, making it impossible to address an issue with a package update.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Start a server that terminates connection immediately after accepting a client
2. Add it as a repository baseurl to yum
3. Run yum

Additional info:


2334  sendto(10, "GET /gdc-dev-us-yum/7/master/repodata/repomd.xml HTTP/1.1\r\nUser-Agent: urlgrabber/3.10 yum/3.4.3\r\nHost: localhost:3333\r\nAccept: */*\r\n\r\n", 135, MSG_NOSIGNAL, NULL, 0) = 135
2334  poll([{fd=10, events=POLLIN|POLLPRI|POLLRDNORM|POLLRDBAND}], 1, 0) = 0 (Timeout)
2334  poll([{fd=10, events=POLLIN}], 1, 1000) = 1 ([{fd=10, revents=POLLIN|POLLERR|POLLHUP}])
2334  poll([{fd=10, events=POLLIN|POLLPRI|POLLRDNORM|POLLRDBAND}], 1, 0) = 1 ([{fd=10, revents=POLLIN|POLLRDNORM|POLLERR|POLLHUP}])
2334  recvfrom(10, 0xf35f80, 16384, 0, 0, 0) = -1 ECONNRESET (Connection reset by peer)
2334  close(10)                         = 0

^^^ this is where the connection terminates

Comment 2 Valentina Mukhamedzhanova 2014-08-18 09:54:32 UTC
*** Bug 1091740 has been marked as a duplicate of this bug. ***

Comment 8 errata-xmlrpc 2015-03-05 10:56:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


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