Bug 1073459
| Summary: | false error messages | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Ales Kozumplik <akozumpl> |
| Component: | librepo | Assignee: | Tomas Mlcoch <tmlcoch> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 20 | CC: | jzeleny, tmlcoch |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-04-14 09:16:13 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
Ales Kozumplik
2014-03-06 13:26:16 UTC
Hmm, I just found out the repo in comment 0 might be at fault: the files referenced from repomd.xml all have xml:base="blah" set (a testing artifact). So this could be the expected behavior but that makes me think whether it shouldn't be somehow reflected in the exception message? Hi, thanks for the report and reproducer! The "prestodelta" error is weird. I cannot reproduce it yet, but I'll look at it more closely. Librepo currently ignores the "base" attribute. Librepo parses and stores it, but doesn't use it during download (will be fixed soon). Tomas I now made http://akozumpl.fedorapeople.org/t/ a repository that contains all the files. librepo.LibrepoException: (19, 'Yum repo downloading error: Downloading error(s): repodata/updateinfo.xml.gz - Cannot download, all mirrors were already tried without success', 'Usable URL not found') I think it is really possible that the xml:base attributes are confusing librepo (despite comment 2). Let me know if I can help further. The error is valid, the repodata/updateinfo.xml.gz has a bad checksum. But the true is that the error message is too generic and unhelpful. And this issue need to be fixed. But note that the message is generic intentionally - in the background of repodata downloading there can be a large amount of different failures - generate one big error message with all the failures is bad idea. To solve the issue gracefully, I've added a LRO_HMFCB (Handle Mirror Failure Callback) option to the Handle() object. See: http://tojaj.github.io/librepo/lib.html#librepo.LRO_HMFCB Via this option you can set a callback that will receive all failures during the metadata downloading with description what was bad. The callback signature: http://tojaj.github.io/librepo/lib.html#callback-handlemirrorfailurecb-label Thanks Tomas, this will help us track down some of the weirder errors. Moreover, I 've just pushed an one-liner that adds support for xml:base tags in repomd.xml. https://github.com/Tojaj/librepo/commit/d17354804bff668a13517c7739bf58113eafe790 The fixed librepo-1.7.1-1.fc20 is available in fedora-updates repo. |