Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support "<...> content upload" and "<...> repository content add" in one go #385

Closed
thmo opened this issue Oct 5, 2021 · 4 comments · Fixed by #528
Closed

Support "<...> content upload" and "<...> repository content add" in one go #385

thmo opened this issue Oct 5, 2021 · 4 comments · Fixed by #528
Assignees
Labels
feature request New feature request (template-set)
Milestone

Comments

@thmo
Copy link
Contributor

thmo commented Oct 5, 2021

Summary

Uploading RPMs and adding them to a repo currently needs two steps. It would be nice to have a command doing both in step (and optimally, even for multiple RPMs at once).

Current versions:

  • pulp-cli 0.11.0-30-gc669815
  • pulp-core 3.14.7
  • pulp-rpm 3.14.5

Examples

Currently needed:

file_href=$(pulp rpm content upload \
     --file "${file}" \
     --relative-path "$(basename "${file}")" |
		jq -r '.pulp_href')

pulp rpm repository content add \
     --repository "${repo}" \
     --package-href "${file_href}"

(assumed the repo has autopublish switched on).

Proposed cli command:

pulp rpm repository content publish \
    --repository "${repo}" \
    --file "${file}" \
    --relative-path "$(basename "${file}")"

Optionally one could support multiple --file, --relative-path options.

@thmo thmo added the feature request New feature request (template-set) label Oct 5, 2021
@mdellweg
Copy link
Member

This should be implemented for all plugins.

@mdellweg
Copy link
Member

This will probably use an extra call to add to the repository, because big files need to go though uploads.
It would be nice to have the possibility to upload multiple files in one go and only create a single new version for them.

@thatsk
Copy link

thatsk commented Nov 29, 2021

is this any status on this

@mdellweg
Copy link
Member

is this any status on this

It's on the wishlist. I don't see anyone working on it ATM.

@ggainey ggainey self-assigned this May 16, 2022
@mdellweg mdellweg changed the title Support "rpm content upload" and "rpm repository content add" in one go Support "<...> content upload" and "<...> repository content add" in one go Jul 11, 2022
mdellweg added a commit to mdellweg/pulp-cli that referenced this issue Jul 11, 2022
mdellweg added a commit to mdellweg/pulp-cli that referenced this issue Jul 11, 2022
mdellweg added a commit to mdellweg/pulp-cli that referenced this issue Jul 11, 2022
mdellweg added a commit to mdellweg/pulp-cli that referenced this issue Jul 15, 2022
mdellweg added a commit to mdellweg/pulp-cli that referenced this issue Jul 15, 2022
mdellweg added a commit to mdellweg/pulp-cli that referenced this issue Jul 26, 2022
@mdellweg mdellweg added this to the 0.16.0 milestone Jul 26, 2022
mdellweg added a commit to mdellweg/pulp-cli that referenced this issue Jul 26, 2022
mdellweg added a commit to mdellweg/pulp-cli that referenced this issue Jul 26, 2022
mdellweg added a commit to mdellweg/pulp-cli that referenced this issue Jul 26, 2022
mdellweg added a commit to mdellweg/pulp-cli that referenced this issue Jul 26, 2022
mdellweg added a commit that referenced this issue Jul 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature request (template-set)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants