Project

Profile

Help

Issue #3070

closed

Pulp is not able to sync repositories.

Added by dsouza.rohan06 over 6 years ago. Updated over 3 years ago.

Status:
CLOSED - NOTABUG
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.14.0
Platform Release:
OS:
CentOS 7
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Hello,

While I have about 15 repositories, 13 of them sync without any issues. However, I have 2 repositories that give me an error while syncing them.

$ sudo pulp-admin rpm repo sync run --repo-id hosting-custom-rhel5-x86_64
--------------------------------------------------------------------
Synchronizing Repository [hosting-custom-rhel5-x86_64]
--------------------------------------------------------------------

This command may be exited via ctrl+c without affecting the request.

Downloading metadata...
[-]

Task Failed

Malformed repository: metadata is missing for some packages in filelists.xml and
in other.xml

Journalctl logs: http://paste.ubuntu.com/25737542/

I found a similar issue in a previous release here: https://pulp.plan.io/issues/2605

Kindly fix the issue at the earliest.

PS: This is not a remote repo, this is a local repo. Also, I have done a createrepo before syncing them.

Regards,
Rohan

Actions #1

Updated by dkliban@redhat.com over 6 years ago

Without the metadata from the repository that you are using, I can't reproduce the problem. Are you comfortable sharing it?

You could probably avoid this problem by using the upload API[0] or CLI[1] to upload packages to the repository. You need to publish the repo once all the packages have been uploaded.

[0] http://docs.pulpproject.org/dev-guide/integration/rest-api/content/upload.html#uploading-content
[1] http://docs.pulpproject.org/plugins/pulp_rpm/user-guide/recipes.html#uploading-content

Actions #2

Updated by dsouza.rohan06 over 6 years ago

Hello,

Thank you for your reply. Kindly find the metadata of the 2 repositories that are giving an error while syncing:

https://goo.gl/hKydLC
https://goo.gl/MXLZ3U

The above repodata is generated after doing a createrepo on the local directory containing the RPM's as the repos are local repos. Furthermore, I have tried adding repos the way you mentioned but it still gives the same error. Awaiting your response.

Regards,
Rohan

Actions #3

Updated by dkliban@redhat.com over 6 years ago

I looked at hosting-custom-rhel5-x86_64. The primary.xml file has 294 packages listed in it. The filelists.xml and other.xml has 295 packages listed in it. I am not sure why createrepo is doing this or which package is missing from primary.xml. This check was introduced as part of a fix for issue1287[0].

[0] https://pulp.plan.io/issues/1287

Actions #4

Updated by dsouza.rohan06 over 6 years ago

Hello,

Found 1 rpm that was in both the repos and that was the issue. Removing the rpm seemed to have solved the issue and pulp can sync the repo just fine. Thanks for the help.

Regards,
Rohan

Actions #5

Updated by dkliban@redhat.com over 6 years ago

  • Status changed from NEW to CLOSED - NOTABUG
Actions #6

Updated by bmbouter almost 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF