Issue #2605
closedOvirt, Openstack | Malformed repository: metadata is missing for some packages in filelists.xml and in other.xml
Description
Hello,
when I try to sync those Repos. I get the error:
Malformed repository: metadata is missing for some packages in filelists.xml and in other.xml
However I can use those Repos with yum directly, without a problem.
Repos:
ovirt367_64
http://resources.ovirt.org/pub/ovirt-3.6/rpm/el7/
ovirt407_64
http://mirror.centos.org/centos/7/virt/x86_64/ovirt-4.0/
ovirt417_64
http://resources.ovirt.org/pub/ovirt-4.1/rpm/el7/
openstack-liberty7_64
http://mirror.centos.org/centos/7/cloud/x86_64/openstack-liberty/
openstack-newton7_64
http://mirror.centos.org/centos/7/cloud/x86_64/openstack-newton/
The Problem started at 2017-01-30 with the ovirt repos. My other 37 Repos Sync without a Problem.
Is there anything else I can do to resolve this Problem?
Related issues
Updated by ttereshc over 7 years ago
I reproduced it with provided repo:
ovirt367_64
http://resources.ovirt.org/pub/ovirt-3.6/rpm/el7/
The issue seems to be in a way we count packages in metadata files.
gdbm handle gives wrong number of units (in comparison to simple grep through the metadata files or counter in the loop):
https://github.com/pulp/pulp_rpm/blob/2.12-release/plugins/pulp_rpm/plugins/importers/yum/repomd/metadata.py#L321
It would be good to figure out why before switching to just plain counter in the loop, because this issue happens only to a limited number of repositories, maybe there is some data specific problem.
Updated by bizhang over 7 years ago
- Sprint/Milestone set to 33
- Triaged changed from No to Yes
Updated by fdobrovo over 7 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to fdobrovo
Updated by fdobrovo over 7 years ago
- Status changed from ASSIGNED to POST
Updated by ttereshc over 7 years ago
- Has duplicate Issue #2695: Malformed repository error added
Added by fdobrovo over 7 years ago
Updated by jortel@redhat.com over 7 years ago
- Sprint/Milestone changed from 37 to 38
Updated by fdobrovo over 7 years ago
- Status changed from POST to MODIFIED
Applied in changeset pulp_rpm:4bc26153b862e1bf9b03eb53d1cec303d2550c97.
Added by fdobrovo over 7 years ago
Revision f9833be9 | View on GitHub
Ignore duplicate packages in metadata
We can now sync from repository which have the same package more than once enlisted in the metadata.
Updated by fdobrovo over 7 years ago
Applied in changeset f9833be94cfad1e92ea32b4e67ef55044d805730.
Updated by bmbouter over 7 years ago
User tested by the community. Thanks Simon! https://www.redhat.com/archives/pulp-list/2017-May/msg00020.html
Updated by bizhang over 7 years ago
- Status changed from 5 to CLOSED - CURRENTRELEASE
Ignore duplicate packages in metadata
We can now sync from repository which have the same package more than once enlisted in the metadata.
closes #2605 https://pulp.plan.io/issues/2605