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:
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.
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.
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?
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