RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 765598 - Kickstart netinstall gives up instantly if download times-out
Summary: Kickstart netinstall gives up instantly if download times-out
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: python-urlgrabber
Version: 6.1
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: James Antill
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-08 22:20 UTC by Floris
Modified: 2013-04-10 10:19 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-04-10 10:19:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
log vt (22.19 KB, image/png)
2011-12-08 22:22 UTC, Floris
no flags Details

Description Floris 2011-12-08 22:20:59 UTC
Description of problem:

The installer is supposed to try to download a package 10 times before giving up, but in reality it displays an error box on first failure.


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

Centos 6.1


How reproducible:

Always

Steps to Reproduce:

1. Do a kickstart installation over the network
2. Use a slow mirror, or -like in my case- a proxy server that doesn't start sending the file to the client until it received everything from the origin.
3. Wait 30 seconds for the download to time-out.
  
Actual results:

"the file blabla.rpm cannot be openend. This is due to a missing file, a corrupt package or corrupt media" popup for every large package. 

Expected results:

The log window says try (1/10), so I would expect it not to give up until it tried 10 times, instead of prompting the user after 30 seconds.

Comment 1 Floris 2011-12-08 22:22:00 UTC
Created attachment 544205 [details]
log vt

Comment 3 David Cantrell 2011-12-15 20:30:53 UTC
I doubt there's anything that can be done.  Based on your screenshot, your connection is close to unusable (less than 1 byte per second).  Reassigning for completeness.  Package installation in anaconda is handled by yum, and downloading is handled by the urlgrabber module.

Comment 4 Floris 2011-12-21 14:37:02 UTC
<<
your connection is close to unusable (less than 1 byte per second).
>>

No, the connection itself is fine.


However it is using a proxy server that waits until the entire file has been downloaded from the Internet completely, before passing the file to the client.

That's why it says less than 1 byte per second.
The proxy has not finished downloading the file from the Internet, so it has not started sending the file to the final destination either.


Such proxy servers are more common then you might think.
E.g. the ones that include decent virus scanning features, will need to download the entire file first to scan it, even though Yum only requests a small partial byte range of the file at the stage the error occurs.

Comment 6 Suzanne Logcher 2012-02-14 23:23:32 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 7 Zdeněk Pavlas 2013-04-09 15:58:49 UTC
This issue is also present upstream, and not resolved yet.  See http://lists.baseurl.org/pipermail/yum-devel/2012-June/009345.html 

Strictly speaking, it's NOT a urlgrabber bug.  When a request fails, urlgrabber issues a failure_callback.  The callback may return (in this case a retry is made), or re-raise the error (this skips remaining retries).

When retrieving .rpm files, Yum always re-raises the error, skipping all retries.  That's because using next mirror is almost always better than re-trying the same URL 10 times.  Since by default each mirror is removed after failure and there's only 1 mirror, Yum makes 1 request only.  The failover mechanism could be changed, but that should be done in Yum.

Comment 8 Zdeněk Pavlas 2013-04-10 10:19:45 UTC
I think this feature has to be implemented upstream first, and tuned on user input.  If the lack of retries is a major problem in kickstarter, it can override the failure callback at any time with something like:

def err_and_retry(errobj):
  print '%s: %s' % (errobj.url, errobj.exception)
  ..

yb.repos.setFailureCallback(err_and_retry)


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