Bug 984216
| Summary: | yum-config-manager can not configure local repositories in an isolated network | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Dean Hunter <deanhunter> |
| Component: | yum-utils | Assignee: | Packaging Maintenance Team <packaging-team-maint> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 19 | CC: | admiller, packaging-team-maint, tim.lauridsen, zpavlas |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | yum-utils-1.1.31-18.fc19 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-09-29 01:46:19 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Dean Hunter
2013-07-13 17:11:57 UTC
Running reposync with "--download-metadata" instead of "--downloadcomps" resolved the problem on Fedora 19, but the problem persists on Fedora 18. (In reply to Dean Hunter from comment #1) > Running reposync with "--download-metadata" instead of "--downloadcomps" > resolved the problem on Fedora 19, but the problem persists on Fedora 18. Please ignore comment #1. The actual results have changed: [root@developer ~]# rpm -q yum-utils yum-utils-1.1.31-17.fc19.noarch [root@developer ~]# curl http://host.hunter.org/repos/local-updates.repo >/etc/yum.repos.d/local-updates.repo % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 212 100 212 0 0 1392 0 --:--:-- --:--:-- --:--:-- 1394 [root@developer ~]# yum-config-manager --add-repo http://host.hunter.org/repos/local-updates.repo Loaded plugins: langpacks, refresh-packagekit adding repo from: http://host.hunter.org/repos/local-updates.repo grabbing file http://host.hunter.org/repos/local-updates.repo to /etc/yum.repos.d/local-updates.repo http://host.hunter.org/repos/local-updates.repo: [Errno 14] HTTP Error 416 - Requested Range Not Satisfiable Trying other mirror. Could not fetch/save url http://host.hunter.org/repos/local-updates.repo to file /etc/yum.repos.d/local-updates.repo: [Errno 14] HTTP Error 416 - Requested Range Not Satisfiable [root@developer ~]# Ok, i see the bug.. actually there are at least two: 1) --add-repo needs at least one enabled repository, because it steals it's urlgrabber config. This could be worked around by creating a dummy repo (or just the grabfunc, if it's not too difficult) instead. 2) reget is allowed, this results in failures when the length of existing file is >= length of remote file. Could be fixed by explicitly disabling reget.. I'll try to reproduce this and come with a fix. (In reply to Zdeněk Pavlas from comment #3) > Ok, i see the bug.. actually there are at least two: Thank you for your response. > 1) --add-repo needs at least one enabled repository, because it steals it's > urlgrabber config. This could be worked around by creating a dummy repo (or > just the grabfunc, if it's not too difficult) instead. I had noticed behavior like your suggested work around, but I could not reproduce it. Please elaborate on your idea. yum-utils-1.1.31-18.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/yum-utils-1.1.31-18.fc19 Package yum-utils-1.1.31-18.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing yum-utils-1.1.31-18.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-17856/yum-utils-1.1.31-18.fc19 then log in and leave karma (feedback). yum-utils-1.1.31-18.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report. |