Upload of multiple files

Problem:
Unable to upload multiple files by passing --file multiple times. Uploading one file at a time creates new repo version and publication for each file, causes high CPU load and long time to finish.

Expected outcome:
upload multiple files at once and create new repo version and publication once only. Is there someway to do this or do i need run a upload command for each file (in my case its rpm with package type, but will also do file later)

Pulpcore version:

Pulp plugins installed and their versions:

Operating system - distribution and version:

Other relevant data:

As far as i remember, the pulp cli has a way do to this specifically for the case of rpm (it will still upload the packages one after another but hidden as a single command).

We discussed ways to improve this process in the api, but i think none is implemented yet.

Is is so slow, because you have retain_version_count and autopublish set? In that case the cli can help you greatly with using a temporary lightweight repository and doing a single copy operation in the end.

https://pulpproject.org/pulp-cli/changes/#0.27.0-feature

1 Like