Bug 1819188 - Malformed repomd.xml shouldn't stop iteration over mirrors
Summary: Malformed repomd.xml shouldn't stop iteration over mirrors
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 42
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-31 12:28 UTC by Pavel Raiskup
Modified: 2025-02-26 12:50 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Pavel Raiskup 2020-03-31 12:28:45 UTC
Using `mock -r epel-6-x86_64 --shell` on VM in AWS, I ended up
with:

```
....
Error: Failed to download metadata for repo 'epel': repomd.xml parser error: Parse error at line: 85 (expected '>'
)
WARNING: Dnf command failed, retrying, attempt #2, sleeping 10s
```

That was because the preferred mirror contained repomd.xml file which was
missing the terminating '>\n' character sequence:

$ curl --silent https://d2lzkl7pfhq30w.cloudfront.net/pub/epel/6/x86_64/repodata/repomd.xml | tail  -n2
  </data>
</repomd$

I'd expect that dnf continues to next mirror from mirrorlist, but it doesn't.

$ rpm -q dnf libsolv hawkey rpm librepo
dnf-4.2.18-1.fc31.noarch
libsolv-0.7.11-1.fc31.x86_64
package hawkey is not installed
rpm-4.15.1-1.fc31.x86_64
librepo-1.11.1-1.fc31.x86_64

Comment 1 Pavel Raiskup 2020-06-19 12:50:24 UTC
A very similar problem now exists for everyone in AWS probably, meh.

The server dl.fedoraproject.org is "mirrored" through (from AWS instances
the closest) mirror:

  https://d2lzkl7pfhq30w.cloudfront.net/

which has the content either cached in s3 directly, or it forwards the
non-cached requests directly to dl.fedoraproject.org - which is dead ATM:

  https://pagure.io/fedora-infrastructure/issue/9051

The problem seems to be that we try to download the repomd.xml from the
closest mirror, which points to AWS mirror, which is _down_ because
dl.fedoraproject.org is down.

The mirroring system would otherwise work pretty fine, it's a pity we
don't try it.

Comment 2 Ben Cotton 2020-11-03 16:33:13 UTC
This message is a reminder that Fedora 31 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 31 on 2020-11-24.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '31'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 31 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 3 Ben Cotton 2021-02-09 15:14:36 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle.
Changing version to 34.

Comment 4 Ben Cotton 2022-05-12 14:55:04 UTC
This message is a reminder that Fedora Linux 34 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 34 on 2022-06-07.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '34'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 34 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 5 Pavel Raiskup 2022-05-13 05:29:20 UTC
Seems still like something we should at least discuss a bit.  The situation is
relatively rare, but if that happened again - e.g. Copr build system would
stop building the affected chroot for several hours or days.

Comment 6 Ben Cotton 2022-11-29 16:48:10 UTC
This message is a reminder that Fedora Linux 35 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 35 on 2022-12-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '35'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 35 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 7 Ben Cotton 2023-02-07 14:51:31 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle.
Changing version to 38.

Comment 8 Aoife Moloney 2024-05-07 15:42:14 UTC
This message is a reminder that Fedora Linux 38 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 38 on 2024-05-21.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '38'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 38 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 9 Aoife Moloney 2025-02-26 12:50:46 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle.
Changing version to 42.


Note You need to log in before you can comment on or make changes to this bug.