| Summary: | yumdownloader --{enable|disable}repo misbehaves when RHN repo is not initiated | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Jan Hutař <jhutar> |
| Component: | yum | Assignee: | James Antill <james.antill> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 6.1 | CC: | dapospis, ksrot, pknirsch |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-02-21 13:47:09 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Actually, this affects normal yum usage just as well: If you try: rm -rf /var/cache/yum/*; yum clean all yum --disablerepo=\* --enablerepo=test-x86_64-0 info large-rpm1M-5857-x86_64 yum will fail with the same error. Reassigning to yum to see what we can do about this. PS: A yum clean all won't make it fail as long as you've ran yum at least once prior to this with the test-x86_64-0 repo enabled. So it's a combination of using yum on a completely clean/fresh system and using --enablerepo which tries to access this repo locally which it can't find anymore. So yea, just as a addendum to the PS i had in the previous comment: rm -rf /var/cache/yum/*; yum clean all yum --enablerepo=test-x86_64-0 info large-rpm1M-5857-x86_64 fails as well. Most likely reason see above. Pretty sure this is not yum, given the error message. Can someone try --noplugins and random --disableplugin args. to see? [root@kfurt scripts]# rm -rf /var/cache/yum/*; yum clean all Loaded plugins: rhnplugin Cleaning repos: dell google-chrome rhel-beta rpmfusion-free rpmfusion-free-updates rpmfusion-nonfree rpmfusion-nonfree-updates Cleaning up Everything [root@kfurt scripts]# yum --noplugins --enablerepo=test-x86_64-0 info large-rpm1M-5857-x86_64 Error getting repository data for test-x86_64-0, repository not found [root@kfurt scripts]# yum --noplugins --disablerepo=\* --enablerepo=test-x86_64-0 info large-rpm1M-5857-x86_64 Error getting repository data for test-x86_64-0, repository not found [root@kfurt scripts]# Ok, my bad ... I guess it's been fixed upstream then. Now I just have to find out when/how it was fixed :). This bug has been fixed in 6.2 by yum-rhn-plugin update, I cannot reproduce it on RHEL 6.2.
[root@rhel61a ~]# rpm -q yum yum-utils yum-rhn-plugin
yum-3.2.29-17.el6_1.1.noarch
yum-utils-1.1.30-6.el6.noarch
yum-rhn-plugin-0.9.1-26.el6.noarch
[root@rhel61a ~]# rm -rf /var/cache/yum/*; yum clean all
Loaded plugins: product-id, refresh-packagekit, rhnplugin, subscription-manager
Updating Red Hat repositories.
Cleaning repos: rhel61
Cleaning up Everything
[root@rhel61a ~]# yum --disablerepo=\* --enablerepo=rhel-x86_64-server-6 info ksh
Loaded plugins: product-id, refresh-packagekit, rhnplugin, subscription-manager
Updating Red Hat repositories.
Error getting repository data for rhel-x86_64-server-6, repository not found
After updating yum-rhn-plugin:
[root@rhel61a ~]# rpm -q yum yum-utils yum-rhn-plugin
yum-3.2.29-17.el6_1.1.noarch
yum-utils-1.1.30-6.el6.noarch
yum-rhn-plugin-0.9.1-36.el6.noarch
[root@rhel61a ~]# rm -rf /var/cache/yum/*; yum clean all
Loaded plugins: product-id, refresh-packagekit, rhnplugin, subscription-manager
Updating Red Hat repositories.
Cleaning repos: rhel61 rhel62 rhel62opt
Cleaning up Everything
[root@rhel61a ~]# yum --disablerepo=\* --enablerepo=rhel-x86_64-server-6 info ksh
Loaded plugins: product-id, refresh-packagekit, rhnplugin, subscription-manager
Updating Red Hat repositories.
rhel-x86_64-server-6 | 1.8 kB 00:00
rhel-x86_64-server-6/primary | 7.1 MB 02:54
rhel-x86_64-server-6 6834/6834
Available Packages
Name : ksh
Arch : x86_64
Version : 20100621
Release : 12.el6_2.1
Size : 684 k
Repo : rhel-x86_64-server-6
Summary : The Original ATT Korn Shell
License : CPL
Description : KSH-93 is the most recent version of the KornShell by David Korn of
: AT&T Bell Laboratories.
: KornShell is a shell programming language, which is upward compatible
: with "sh" (the Bourne Shell).
|
Description of problem: When repodata were cleaned, yumdownloader --{enable|disable}repo misbehaves when repo available through yum-rhn-plugin is not initiated. Version-Release number of selected component (if applicable): yum-3.2.29-17.el6.noarch yum-utils-1.1.30-6.el6.noarch yum-rhn-plugin-0.9.1-26.el6_1.1.noarch How reproducible: always on one system Steps to Reproduce: 1. # yum repolist Loaded plugins: product-id, rhnplugin, subscription-manager Updating Red Hat repositories. repo id repo name status test-x86_64-0 Name test-x86_64-0 3 repolist: 3 2. # rm -rf /var/cache/yum/*; yum clean all 3. # yumdownloader --disablerepo=\* --enablerepo=test-x86_64-0 large-rpm1M-5857-x86_64 Actual results: # yumdownloader --disablerepo=\* --enablerepo=test-x86_64-0 large-rpm1M-5857-x86_64 Loaded plugins: product-id, rhnplugin Error getting repository data for test-x86_64-0, repository not found Expected results: Requested package should be downloaded Additional info: `rm -rf /var/cache/yum/*` is not needed every time, also `yum repolist` seems to help sometimes to prefill whatever needs to be filed so yumdownloader then works. Anyway, using yumdownloader without --{enable|disable}repo options works as expected.