Red Hat Bugzilla – Bug 993452
admin-client uploads have invalid location tag in primary.xml (show stopper for uploaded content)
Last modified: 2013-09-10 11:43:14 EDT
Description of problem:
RPMs uploaded to a Pulp 2.2 repository have an invalid location tag in the generated primary.xml.gz file. The invalide primary.xml.gz data exists in the rpm_units mongo collection as well:
It appears that the location is pointing to the tempdir within /var/lib/pulp/uploads that existed at the time the metadata was created within the database.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Upload an RPM to a pulp repo using pulp-admin CLI
2. Publish repo
3. zcat *primary.xml.gz*
I did some logging within pulp_rpm and the pulp_rpm.plugins.importers.yum.upload filepath being passed to the pulp_rpm.plugins.importers.yum.parse.rpm metadata function looks like:
This was thankfully an easy fix. We just needed to generate the repo medadata after moving the file into its final location, instead of doing it before.
checked the location after upload & publish of an rpm in *-primary.xml.gz