Red Hat Satellite engineering is moving the tracking of its product development work on Satellite 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 "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. 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 "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-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 1903208 - Retry for connection reset by peer doesn't work when syncing docker repository
Summary: Retry for connection reset by peer doesn't work when syncing docker repository
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Pulp
Version: 6.8.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 6.8.2
Assignee: satellite6-bugs
QA Contact: Lai
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-01 16:14 UTC by James Jeffers
Modified: 2020-12-15 13:15 UTC (History)
4 users (show)

Fixed In Version: python-nectar-1.6.3
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1903046
Environment:
Last Closed: 2020-12-15 13:15:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:5467 0 None None None 2020-12-15 13:15:43 UTC

Description James Jeffers 2020-12-01 16:14:50 UTC
+++ This bug was initially created as a clone of Bug #1903046 +++

Description of problem:
This is the regression of bug 1822560. 

The retry doesn't work because the following lines are checking the wrong element in the dictionary.

https://github.com/pulp/nectar/blob/master/nectar/downloaders/threaded.py#L348
https://github.com/pulp/nectar/blob/master/nectar/downloaders/threaded.py#L378

# The alue of e.args is:
(104, 'Connection reset by peer')


# retry only if there's indication of connection reset
if nretry < DEFAULT_GENERIC_TRIES - 1 and e.args[1] == errno.ECONNRESET:  <==== Error code should be in e.args[0]
    continue

Comment 8 Lai 2020-12-11 20:52:52 UTC
Steps to retest

1. Install the new nectar build 1.6.3
2. Set the log_level to DEBUG in the /etc/pulp/server.conf
3. Create a custom docker repo for openshift3/mediawiki-apb on https://registry.redhat.io
3. Include the correct login credentials to access that repo
4. Sync repo
5. Check logs for "Connection reset message."

Expected result:
4. Repo sync successfully
5. In the logs look for "Connection reset. Retrying to connect to {url}" https://github.com/pulp/nectar/pull/<#>/file#diff-<name>

Actual:
4. Repo sync successfully
5. Log doesn't display "connection reset. Retrying to connect to..."

Cannot see "connection reset.  Retrying to connect to..." in log was because the condition cannot be reproduce 100%.  Regardless, this is verify since it's not negatively affecting syncing, but should be noted if the problem does present itself in the future.

Verified that it's in python-nectar-1.6.4-1.el7sat.noarch

Verified on 6.8.2_04

Comment 15 errata-xmlrpc 2020-12-15 13:15:26 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 (Satellite 6.8.2 Async Bug Fix Update), and where to find the updated
files, follow the link below.

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

https://access.redhat.com/errata/RHBA-2020:5467


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