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 1082050 - RFE: adjust yum-downloader logic for source repos in CDN
Summary: RFE: adjust yum-downloader logic for source repos in CDN
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: yum-utils
Version: 7.1
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: rc
: ---
Assignee: James Antill
QA Contact: Karel Srot
URL:
Whiteboard:
Depends On:
Blocks: 1110703 1113520 1126781
TreeView+ depends on / blocked
 
Reported: 2014-03-28 14:43 UTC by Karel Srot
Modified: 2015-03-05 09:03 UTC (History)
6 users (show)

Fixed In Version: yum-utils-1.1.31-25.el7
Doc Type: Enhancement
Doc Text:
Previously, yumdownloader considered only certain naming scheme of source repositories, which Certificate-based Red Hat Network content delivery network (CDN) did not follow. As a consequence, the yumdownloader and yum-builddep utilities did not work with the source repositories created in CDN. With this update, support for the new naming scheme of source repositories has been added, and yumdownloader and yum-builddep now work with source CDN repositories as intended.
Clone Of: 710469
: 1126781 (view as bug list)
Environment:
Last Closed: 2015-03-05 09:03:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0401 0 normal SHIPPED_LIVE yum-utils bug fix and enhancement update 2015-03-05 14:00:14 UTC

Description Karel Srot 2014-03-28 14:43:38 UTC
feature doesn't seem to be implemented on RHEL-7, tested with 
yum-utils-1.1.31-24.el7

+++ This bug was initially created as a clone of Bug #710469 +++

It came to my attention that the logic for --source in yumdownloader is not going to work with the repos that we've created in the CDN.  yumdownloader only looks at repos with a label of <base repo>-source.  For example, if you have a repo of binary rpms named rhel-6-workstation-rpms, it expects the SRPMs to be in rhel-6-workstation-rpms-source.  However, in the CDN the repo is named rhel-6-workstation-source-rpms.

One low-tech solution would be to have yum downloader check for this pattern as well.  Something like:

srcrepo = repo.id.replace('-rpms', '-source-rpms')
if srcrepo in src_repos:
    src_repos[srcrepo] = True

Alternatively, we could use yum repo tagging to explicitly list the label of the source repo in the repodata of the binary repo.

Comment 1 James Antill 2014-06-12 15:13:29 UTC
 This is fixed in el6, so I guess it's a regression. We forgot to turn the rhn_source_repos default to on, so it's a one line change.

Comment 12 errata-xmlrpc 2015-03-05 09:03:39 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://rhn.redhat.com/errata/RHBA-2015-0401.html


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