Bug 773625

Summary: spacewalk-repo-sync fails with 'Errno 256' on certain http repository
Product: [Community] Spacewalk Reporter: daniel.schindler
Component: ServerAssignee: Tomas Lestach <tlestach>
Status: CLOSED NOTABUG QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 1.6CC: slukasik
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-13 11:40:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 765736    

Description daniel.schindler 2012-01-12 13:05:10 UTC
Description of problem:
When I run spacewalk-repo-sync against a certain http repository I receive "errno 256: no more mirrors to try". When I wget all the content to a local folder and run spacewalk-repo-sync with --url=file:///folder it works like a charm. When I add this repository to a typical yum repo under /etc/yum.repos.d the repository is added without error and package list is read correctly.

Other http repositories from the same machine are synced correctly via spacewalk-repo-sync! I don't knwo what's wrong with that repository.

Version-Release number of selected component (if applicable):
1.6

How reproducible:
Not clear due to the fact that it seems to be drawn to that certain repository.

Steps to Reproduce:
1.
2.
3.
  
Actual results:
[root@s01ta405 reposync]# spacewalk-repo-sync --channel ol5_u6_patch-x86_64 --type yum                                                                                   Traceback (most recent call last):
  File "/usr/bin/spacewalk-repo-sync", line 100, in ?
    sys.exit(abs(main() or 0))
  File "/usr/bin/spacewalk-repo-sync", line 93, in main
    sync.sync()
  File "/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/reposync.py", line 103, in sync
    self.import_packages(plugin, repo_id, url)
  File "/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/reposync.py", line 309, in import_packages
    packages = plug.list_packages(filters)
  File "/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/repo_plugins/yum_src.py", line 149, in list_packages
    self.sack.populate(self.repo, 'metadata', None, 0)
  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 187, in populate
    xml = repo_get_function()
  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 1550, in getPrimaryXML
    return self.retrieveMD('primary')
  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 1491, in retrieveMD
    return self._retrieveMD(mdtype)
  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 1531, in _retrieveMD
    cache=self.http_caching == 'all')
  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 816, in _getFile
    raise Errors.NoMoreMirrorsRepoError, errstr
yum.Errors.NoMoreMirrorsRepoError: failure: repodata/primary.xml.gz from ol5_u6_patch-x86_64: [Errno 256] No more mirrors to try.

Expected results:


Additional info:

Comment 1 Tomas Lestach 2012-01-12 14:59:56 UTC
This definitely isn't an API bug.

Please, provide a reproducer for this BZ. "certain http repository" and "I don't knwo what's wrong with that repository" doesn't help us to restore the issue.

Comment 2 daniel.schindler 2012-01-12 16:35:48 UTC
Sorry for bothering you... I was just looking for help.

What I just don't understand is why it's possible to sync the repository when it is mirrored to a local folder and why doesn't yum complain when I add that "certain" http repository to a client.

I will have this repository rebuilt and keep you informed about the results.

Comment 3 Tomas Lestach 2012-01-13 11:18:17 UTC
Daniel, there can be thousands of reasons for this behavior starting as a configuration issue on your side till a bug in spacewalk-repo-sync . But until you don't provide us with sufficient information, how to restore the bug we cannot help.
Does your spacewalk-repo-sync work with other repositories?

Comment 4 daniel.schindler 2012-01-13 11:40:01 UTC
Please regard this request as closed.

I had the repository rebuilt and it works now.

To answer your question: From the former posts you can see that I'm able to sync other repositories.

Regards,
Daniel