Bug 820612
| Summary: | spacewalk-repo-sync hangs after encountering larger number of errors/missing packages | ||
|---|---|---|---|
| Product: | [Community] Spacewalk | Reporter: | Dominik L. Borkowski <dom> |
| Component: | Server | Assignee: | Michael Mráka <mmraka> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 1.7 | CC: | fedoraproject.org, jpazdziora, midnightsteel, tkasparek, tlestach |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | spacewalk-java-1.10.36-1 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-08-02 12:58:22 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 991452 | ||
|
Description
Dominik L. Borkowski
2012-05-10 13:30:29 UTC
Well, I can't reproduce the bug with reproducer above. And I can't reproduce the bug even with repo containing 3500+ missing packages. # spacewalk-repo-sync -c test_repo_channel Repo URL: http://download.opensuse.org/repositories/devel:/languages:/python/openSUSE_12.1/ Packages in repo: 3529 Packages already synced: 0 Packages to sync: 3529 ... 3527/3529 : man-pages-es-extra-1.55-14.el6-0.noarch failure: ../Packages/man-pages-es-extra-1.55-14.el6.noarch.rpm from spacewalk-n-centos6: [Errno 256] No more mirrors to try. 3528/3529 : iso-codes-3.16-2.el6-0.noarch failure: ../Packages/iso-codes-3.16-2.el6.noarch.rpm from spacewalk-n-centos6: [Errno 256] No more mirrors to try. 3529/3529 : tftp-0.49-7.el6-0.x86_64 failure: ../Packages/tftp-0.49-7.el6.x86_64.rpm from spacewalk-n-centos6: [Errno 256] No more mirrors to try. Repo http://xxx/pub/repo/ has 0 errata. Sync completed. Total time: 0:00:23 I guess this is your local network issue. Network issue is very unlikely, since the issue can be repeated with same repositories mirrored on a nearby server. The issue is always reproducible, regardless of source, and much larger repos from same sources succeed. Only correlation between spacewalk-repo-sync hanging and not seem to be repos with large number of missing packages. One thing to note: this is almost always triggered when spacewalk-repo-sync is executed via taskomatic. I have a very hard time reproducing it when launching spacewalk-repo-sync directly from CLI. Is there anything else I can provide to aid with debugging this issue? Thanks! Network issue is very unlikely, since the issue can be repeated with same repositories mirrored on a nearby server. The issue is always reproducible, regardless of source, and much larger repos from same sources succeed. Only correlation between spacewalk-repo-sync hanging and not seem to be repos with large number of missing packages. One thing to note: this is almost always triggered when spacewalk-repo-sync is executed via taskomatic. I have a very hard time reproducing it when launching spacewalk-repo-sync directly from CLI. Is there anything else I can provide to aid with debugging this issue? Thanks! The reproducer is actually pretty deterministic. The best way to see the behaviour is to just have a repodata with no packages. To achieve that, do: # mkdir -p /var/www/html/pub/fedora-18/repodata # cd /var/www/html/pub/fedora-18/repodata # wget --no-directories -r --level 1 --no-parent http://dl.fedoraproject.org/pub/fedora/linux/releases/18/Everything/x86_64/os/repodata/ Then create channel and repository and point that repository to http://localhost/pub/fedora-18. Then click Sync Now. Look at the log in /var/log/rhn/reposync -- it ends with 575/33868 : openldap-servers-2.4.33-3.fc18-0.x86_64 failure: Packages/o/openldap-servers-2.4.33-3.fc18.x86_64.rpm from fedora-18: [Errno 256] No more mirrors to try. 576/33868 : OpenImageIO-devel-1.0.9-1.fc18-0.i686 failure: Packages/o/OpenImageIO-devel-1.0.9-1.fc18.i686.rpm from fedora-18: [Errno 256] No more mirrors to try. The lines with the "failure" string amount to 64551 bytes, the other lines total 29029 bytes. I assume that spacewalk-repo-sync outputs stuff both to the log file and to its stdout and stderr, and taskomatic tries to read the stdout output first and then things get stuck on that stderr pipe buffer. Fixed in spacewalk nightly by
commit 1e7b903cbcb421a2e4eb74a0590618a71e0a263d
820612 - implemented executor with paralled stdout and stderr reading
+ checkstyle fix ... spacewalk.git: 0a28394bdbdea829e4cbdc0d13efca02deb1bb29 Fix for this bug is present in Spacewalk 2.0, closing this bug as CURRENTRELEASE. *** Bug 965386 has been marked as a duplicate of this bug. *** *** Bug 889885 has been marked as a duplicate of this bug. *** |