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 1476701 - reposync shows full traceback
Summary: reposync shows full traceback
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: yum-utils
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Michal Domonkos
QA Contact: Eva Mrakova
URL:
Whiteboard:
: 1482899 (view as bug list)
Depends On:
Blocks: 1630909 1630918
TreeView+ depends on / blocked
 
Reported: 2017-07-31 08:47 UTC by Jiri Vavra
Modified: 2019-08-06 13:13 UTC (History)
4 users (show)

Fixed In Version: yum-utils-1.1.31-52.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-06 13:13:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:2288 0 None None None 2019-08-06 13:13:37 UTC

Description Jiri Vavra 2017-07-31 08:47:27 UTC
Description of problem:
When some error happens with reposync util, long traceback is shown

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

How reproducible:
100%

Steps to Reproduce:
1. set some repository which has e.g. broken link in baseurl
2. run reposync # reposync --repoid=epel
3. see traceback 

Actual results:

~~~
# reposync --repoid=epel
Traceback (most recent call last):
  File "/bin/reposync", line 343, in <module>
<...>
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 897, in _getMetalink
    raise Errors.RepoError, msg
yum.Errors.RepoError: Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again
~~~

Expected results:
Short error output is expected, this is how it looks in RHEL 6

~~~
# reposync --repoid=epel
Error setting up repositories: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again
~~~

Additional info:

Comment 2 Michal Domonkos 2018-03-16 15:07:35 UTC
Right, this is because we don't handle exceptions from the my.doRepoSetup() call which leads to fetching the metadata on RHEL-7, see this commit:


commit a522869c21768d53c3861be9c0a2394a3930ad66
Author: Zdeněk Pavlas <zpavlas>
Date:   Wed Mar 28 15:59:26 2012 +0200

    retrieveAllMD(): parallel metadata downloading
    
    Metadata are downloaded in parallel just before postreposetup.
    This implements the reverting behavior.


The fix should be quite trivial.

Comment 3 Michal Domonkos 2018-10-16 13:47:46 UTC
*** Bug 1482899 has been marked as a duplicate of this bug. ***

Comment 12 errata-xmlrpc 2019-08-06 13:13:36 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.

https://access.redhat.com/errata/RHBA-2019:2288


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