[Pulp-list] Uploading the same RPM to multiple pulp repos via the REST API

Mihai Ibanescu mihai.ibanescu at gmail.com
Wed Nov 11 15:35:11 UTC 2015


Hi,

Before I dive into the code, could someone help me with an answer to this
question:

Reading
https://pulp.readthedocs.org/en/2.7-release/dev-guide/integration/rest-api/content/upload.html#creating-an-upload-request

I have assumed that the workflow would be:

* create upload request
* upload bits
* import into ONE OR MORE repositories
* delete upload request

However, in my tests, if I try to upload to two different repositories, the
second one fails, with the task reporting:

(Epdb) task['result']
{u'details': {u'errors': [u'unexpected error occurred importing uploaded
file']}, u'success_flag': False, u'summary': u''}

I also just noticed in the syslog an error:

pulp_rpm.plugins.importers.yum.upload:ERROR: (8441-68800) OSError: [Errno
2] No such file or directory:
'/var/lib/pulp/uploads/b103085d-4072-4900-8012-00280d832e48'


So, could the documentation make it clear that the upload request can only
be used once, now that I just convinced myself I'm using the tool wrong?

Mihai

PS In a sense, this is disappointing; I don't want to pay the cost of
uploading the bits twice, just because I want them in two different
repositories. While I understand I could *copy* content between the two
repos, but it wasn't immediately obvious either.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20151111/80ad7acd/attachment.htm>


More information about the Pulp-list mailing list