Issue #3070
closedPulp is not able to sync repositories.
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
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
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
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].
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
Updated by dkliban@redhat.com over 6 years ago
- Status changed from NEW to CLOSED - NOTABUG