Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1359055 - yumdownloader --urls reports wrong URL
Summary: yumdownloader --urls reports wrong URL
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: yum-utils
Version: 7.3
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Packaging Maintenance Team
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks: 1380360
TreeView+ depends on / blocked
 
Reported: 2016-07-22 08:17 UTC by Andrei Stepanov
Modified: 2018-10-16 16:14 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-16 16:14:26 UTC


Attachments (Terms of Use)

Description Andrei Stepanov 2016-07-22 08:17:29 UTC
yumdownloader shows wrong URL for same packages

Version: yum-utils-1.1.31-34.el7.noarch
How reproducible: always.

I need to know URL for RPM package. I use next command:
yumdownloader --urls qemu-kvm-rhev

# yumdownloader --urls qemu-kvm-rhev
Loaded plugins: product-id
http://download.eng.tlv.redhat.com/rel-eng/repos/rhevh-rhel-7.2-candidate/x86_64/packages/qemu-kvm-rhev/2.3.0/31.el7_2.19/x86_64/qemu-kvm-rhev-2.3.0-31.el7_2.19.x86_64.rpm

I tried to download this URL:

wget 'http://download.eng.tlv.redhat.com/rel-eng/repos/rhevh-rhel-7.2-candidate/x86_64/packages/qemu-kvm-rhev/2.3.0/31.el7_2.19/x86_64/qemu-kvm-rhev-2.3.0-31.el7_2.19.x86_64.rpm'
--2016-07-22 10:09:33--  http://download.eng.tlv.redhat.com/rel-eng/repos/rhevh-rhel-7.2-candidate/x86_64/packages/qemu-kvm-rhev/2.3.0/31.el7_2.19/x86_64/qemu-kvm-rhev-2.3.0-31.el7_2.19.x86_64.rpm
Resolving download.eng.tlv.redhat.com (download.eng.tlv.redhat.com)... 10.35.28.23
Connecting to download.eng.tlv.redhat.com (download.eng.tlv.redhat.com)|10.35.28.23|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-07-22 10:09:34 ERROR 404: Not Found.

Nonetheless, yumdownloader can download package:

# yumdownloader  qemu-kvm-rhev
Loaded plugins: product-id
qemu-kvm-rhev-2.3.0-31.el7_2.19.x86_64.rpm                       | 2.1 MB  00:00:01

I looked at starce log, and I could clearly see that it downloaded it from different location:

strace -fF -o log -s 1024 yumdownloader qemu-kvm-rhev

In particular, it downloaded package from:

7394  setxattr("./qemu-kvm-rhev-2.3.0-31.el7_2.19.x86_64.rpm", "user.xdg.origin.url", "http://download.lab.bos.redhat.com/brewroot/packages/qemu-kvm-rhev/2.3.0/31.el7_2.19/x86_64/qemu-kvm-rhev-2.3.0-31.el7_2.19.x86_64.rpm", 134, 0) = 0


So, yumdownloader must show this: URL: http://download.lab.bos.redhat.com/brewroot/packages/qemu-kvm-rhev/2.3.0/31.el7_2.19/x86_64/qemu-kvm-rhev-2.3.0-31.el7_2.19.x86_64.rpm but it shows fake URL.

Yum config is:

# cat /etc/yum.repos.d/rhev-h.repo 
[rhev-72-hypervisor]
name=RHEVH_72
baseurl=http://download.eng.tlv.redhat.com/rel-eng/repos/rhevh-rhel-7.2-candidate/x86_64/
enabled=1
gpgcheck=0


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