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 1133125 - reposync -u stops after first repo
Summary: reposync -u stops after first repo
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
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: James Antill
QA Contact: Karel Srot
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-22 19:50 UTC by Jaroslav Kortus
Modified: 2015-03-05 09:03 UTC (History)
1 user (show)

Fixed In Version: yum-utils-1.1.31-26.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-05 09:03:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
patch for misbehaving -u option (374 bytes, patch)
2014-08-22 19:50 UTC, Jaroslav Kortus
no flags Details | Diff


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 Jaroslav Kortus 2014-08-22 19:50:36 UTC
Created attachment 929783 [details]
patch for misbehaving -u option

Description of problem:
reposync -u stops after first repo instead of processing all enabled as advertised in help / man pages.

While the actual download runs, all urls are processed. This means that the "dry" run does not show complete info.


Version-Release number of selected component (if applicable):
yum-utils-1.1.31-24.el7.noarch

How reproducible:
always

Steps to Reproduce:
1. reposync -u while more repos are defined
2.
3.

Actual results:
urls for first repo only are shown

Expected results:
All urls that are going to be downloaded should be printed.

Additional info:
proposed patch attached

Comment 2 Valentina Mukhamedzhanova 2014-08-28 08:16:05 UTC
Thanks for the patch!

Comment 5 Karel Srot 2014-10-23 06:07:00 UTC
Hello,
I am a bit confused since according to the man page the -u option should not download anything. But in my case all rpms are downloaded (even src.rpms), both on RHEL-6 and RHEL-7. Could you please confirm that this is a bug?

       -u, --urls
              Just list urls of what would be downloaded, don't download.

# reposync --urls
127.0.0.1 - - [23/Oct/2014 07:04:11] "GET /repoA/repodata/repomd.xml HTTP/1.1" 200 -
Initiating transfer of repoA/repodata/repomd.xml with bandwidth=0 blocksize=1024 sentmax=2963
bz1133125repoA                                                                         | 2.9 kB  00:00:00     
127.0.0.1 - - [23/Oct/2014 07:04:11] "GET /repoB/repodata/repomd.xml HTTP/1.1" 200 -
Initiating transfer of repoB/repodata/repomd.xml with bandwidth=0 blocksize=1024 sentmax=2963
bz1133125repoB                                                                         | 2.9 kB  00:00:00     
127.0.0.1 - - [23/Oct/2014 07:04:11] "GET /repoA/repodata/f1c09f81df2551d256a9671cc8d4917dc742d8a57f615c6dafdf102cf7423382-primary.sqlite.bz2 HTTP/1.1" 200 -
Initiating transfer of repoA/repodata/f1c09f81df2551d256a9671cc8d4917dc742d8a57f615c6dafdf102cf7423382-primary.sqlite.bz2 with bandwidth=0 blocksize=1024 sentmax=1649
(1/2): bz1133125repoA/primary_db                                                       | 1.6 kB  00:00:00     
127.0.0.1 - - [23/Oct/2014 07:04:11] "GET /repoB/repodata/146a6a3227583607bd7eeaaab9041edcee7ce0f22490ddc29ec23475f5902dd3-primary.sqlite.bz2 HTTP/1.1" 200 -
Initiating transfer of repoB/repodata/146a6a3227583607bd7eeaaab9041edcee7ce0f22490ddc29ec23475f5902dd3-primary.sqlite.bz2 with bandwidth=0 blocksize=1024 sentmax=1655
(2/2): bz1133125repoB/primary_db                                                       | 1.6 kB  00:00:00     
http://localhost:8000/repoA/pkgA-1.0-1.noarch.rpm
http://localhost:8000/repoB/pkgB-1.0-1.noarch.rpm

# find . -name '*.rpm'
./repoA/pkgA-1.0-1.noarch.rpm
./repoA/pkgA-1.0-1.src.rpm
./repoB/pkgB-1.0-1.noarch.rpm
./repoB/pkgB-1.0-1.src.rpm
# rpm -q yum yum-utils
yum-3.4.3-122.el7.noarch
yum-utils-1.1.31-28.el7.noarch

Comment 6 Karel Srot 2014-10-23 08:03:39 UTC
Please ignore #c5, of course I was checking incorrect directory. :-(

Comment 7 Karel Srot 2014-10-31 09:51:59 UTC
VERIFIED
tested with /CoreOS/yum-utils/Sanity/bz1133125-reposync-u-stops-after-first-repo

yum-utils-1.1.31-28.el7.noarch:

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: reposync -u on new repos (BZ#1133125)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   PASS   ] :: Command 'reposync --urls --source -p local --repoid=bz1133125repoA --repoid=bz1133125repoB &> log' (Expected 0, got 0)
:: [   PASS   ] :: File 'log' should contain 'http://localhost:8000/repoA/pkgA-1.0-1.noarch.rpm' 
:: [   PASS   ] :: File local/bz1133125repoA/pkgA-1.0-1.noarch.rpm should not exist 
:: [   PASS   ] :: File 'log' should contain 'http://localhost:8000/repoA/pkgA-1.0-1.src.rpm' 
:: [   PASS   ] :: File local/bz1133125repoA/pkgA-1.0-1.src.rpm should not exist 
:: [   PASS   ] :: File 'log' should contain 'http://localhost:8000/repoB/pkgB-1.0-1.noarch.rpm' 
:: [   PASS   ] :: File local/bz1133125repoB/pkgB-1.0-1.noarch.rpm should not exist 
:: [   PASS   ] :: File 'log' should contain 'http://localhost:8000/repoB/pkgB-1.0-1.src.rpm' 
:: [   PASS   ] :: File local/bz1133125repoB/pkgB-1.0-1.src.rpm should not exist 
:: [   LOG    ] :: Duration: 2s
:: [   LOG    ] :: Assertions: 9 good, 0 bad
:: [   PASS   ] :: RESULT: reposync -u on new repos (BZ#1133125)

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: reposync -u on updated repos (BZ#1140864)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   PASS   ] :: Command 'reposync --source -p local --repoid=bz1133125repoA --repoid=bz1133125repoB' (Expected 0, got 0)
:: [   PASS   ] :: Command '/mnt/tests/CoreOS/yum-utils/Sanity/bz1133125-reposync-u-stops-after-first-repo/make_dummy_package.sh pkgC && mv pkgC*rpm repoA' (Expected 0, got 0)
:: [   PASS   ] :: Command '/mnt/tests/CoreOS/yum-utils/Sanity/bz1133125-reposync-u-stops-after-first-repo/make_dummy_package.sh pkgD && mv pkgD*rpm repoB' (Expected 0, got 0)
:: [   PASS   ] :: Command 'createrepo --update repoA && createrepo --update repoB' (Expected 0, got 0)
:: [   PASS   ] :: Command 'yum --disablerepo=* --enablerepo=bz1133125repoA --enablerepo=bz1133125repoB clean all' (Expected 0, got 0)
:: [   PASS   ] :: Command 'reposync --urls --source -p local --repoid=bz1133125repoA --repoid=bz1133125repoB &> log2' (Expected 0, got 0)
:: [   PASS   ] :: File 'log2' should contain 'http://localhost:8000/repoA/pkgC-1.0-1.noarch.rpm' 
:: [   PASS   ] :: File local/bz1133125repoA/pkgC-1.0-1.noarch.rpm should not exist 
:: [   PASS   ] :: File 'log2' should contain 'http://localhost:8000/repoA/pkgC-1.0-1.src.rpm' 
:: [   PASS   ] :: File local/bz1133125repoA/pkgC-1.0-1.src.rpm should not exist 
:: [   PASS   ] :: File 'log2' should contain 'http://localhost:8000/repoB/pkgD-1.0-1.noarch.rpm' 
:: [   PASS   ] :: File local/bz1133125repoB/pkgD-1.0-1.noarch.rpm should not exist 
:: [   PASS   ] :: File 'log2' should contain 'http://localhost:8000/repoB/pkgD-1.0-1.src.rpm' 
:: [   PASS   ] :: File local/bz1133125repoB/pkgD-1.0-1.src.rpm should not exist 
:: [   PASS   ] :: File 'log2' should not contain 'http://localhost:8000/repoA/pkgA-1.0-1.noarch.rpm' 
:: [   PASS   ] :: File 'log2' should not contain 'http://localhost:8000/repoB/pkgB-1.0-1.noarch.rpm' 
:: [   LOG    ] :: Duration: 7s
:: [   LOG    ] :: Assertions: 16 good, 0 bad
:: [   PASS   ] :: RESULT: reposync -u on updated repos (BZ#1140864)


yum-utils-1.1.31-25.el7_0.noarch:

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: reposync -u on new repos (BZ#1133125)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   PASS   ] :: Command 'reposync --urls --source -p local --repoid=bz1133125repoA --repoid=bz1133125repoB &> log' (Expected 0, got 0)
:: [   PASS   ] :: File 'log' should contain 'http://localhost:8000/repoA/pkgA-1.0-1.noarch.rpm' 
:: [   PASS   ] :: File local/bz1133125repoA/pkgA-1.0-1.noarch.rpm should not exist 
:: [   PASS   ] :: File 'log' should contain 'http://localhost:8000/repoA/pkgA-1.0-1.src.rpm' 
:: [   PASS   ] :: File local/bz1133125repoA/pkgA-1.0-1.src.rpm should not exist 
:: [   FAIL   ] :: File 'log' should contain 'http://localhost:8000/repoB/pkgB-1.0-1.noarch.rpm' 
:: [   PASS   ] :: File local/bz1133125repoB/pkgB-1.0-1.noarch.rpm should not exist 
:: [   FAIL   ] :: File 'log' should contain 'http://localhost:8000/repoB/pkgB-1.0-1.src.rpm' 
:: [   PASS   ] :: File local/bz1133125repoB/pkgB-1.0-1.src.rpm should not exist 
:: [   LOG    ] :: Duration: 1s
:: [   LOG    ] :: Assertions: 7 good, 2 bad
:: [   FAIL   ] :: RESULT: reposync -u on new repos (BZ#1133125)

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: reposync -u on updated repos (BZ#1140864)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   PASS   ] :: Command 'reposync --source -p local --repoid=bz1133125repoA --repoid=bz1133125repoB' (Expected 0, got 0)
:: [   PASS   ] :: Command '/mnt/tests/CoreOS/yum-utils/Sanity/bz1133125-reposync-u-stops-after-first-repo/make_dummy_package.sh pkgC && mv pkgC*rpm repoA' (Expected 0, got 0)
:: [   PASS   ] :: Command '/mnt/tests/CoreOS/yum-utils/Sanity/bz1133125-reposync-u-stops-after-first-repo/make_dummy_package.sh pkgD && mv pkgD*rpm repoB' (Expected 0, got 0)
:: [   PASS   ] :: Command 'createrepo --update repoA && createrepo --update repoB' (Expected 0, got 0)
:: [   PASS   ] :: Command 'yum --disablerepo=* --enablerepo=bz1133125repoA --enablerepo=bz1133125repoB clean all' (Expected 0, got 0)
:: [   PASS   ] :: Command 'reposync --urls --source -p local --repoid=bz1133125repoA --repoid=bz1133125repoB &> log2' (Expected 0, got 0)
:: [   PASS   ] :: File 'log2' should contain 'http://localhost:8000/repoA/pkgC-1.0-1.noarch.rpm' 
:: [   PASS   ] :: File local/bz1133125repoA/pkgC-1.0-1.noarch.rpm should not exist 
:: [   PASS   ] :: File 'log2' should contain 'http://localhost:8000/repoA/pkgC-1.0-1.src.rpm' 
:: [   PASS   ] :: File local/bz1133125repoA/pkgC-1.0-1.src.rpm should not exist 
:: [   FAIL   ] :: File 'log2' should contain 'http://localhost:8000/repoB/pkgD-1.0-1.noarch.rpm' 
:: [   PASS   ] :: File local/bz1133125repoB/pkgD-1.0-1.noarch.rpm should not exist 
:: [   FAIL   ] :: File 'log2' should contain 'http://localhost:8000/repoB/pkgD-1.0-1.src.rpm' 
:: [   PASS   ] :: File local/bz1133125repoB/pkgD-1.0-1.src.rpm should not exist 
:: [   FAIL   ] :: File 'log2' should not contain 'http://localhost:8000/repoA/pkgA-1.0-1.noarch.rpm' 
:: [   PASS   ] :: File 'log2' should not contain 'http://localhost:8000/repoB/pkgB-1.0-1.noarch.rpm' 
:: [   LOG    ] :: Duration: 7s
:: [   LOG    ] :: Assertions: 13 good, 3 bad
:: [   FAIL   ] :: RESULT: reposync -u on updated repos (BZ#1140864)

Comment 9 errata-xmlrpc 2015-03-05 09:03:29 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.