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

Ability to reliably remove a series of content view versions #497

Closed
wzzrd opened this issue Sep 26, 2019 · 6 comments · Fixed by #958
Closed

Ability to reliably remove a series of content view versions #497

wzzrd opened this issue Sep 26, 2019 · 6 comments · Fixed by #958

Comments

@wzzrd
Copy link

wzzrd commented Sep 26, 2019

SUMMARY

In order to keep my Satellite / Foreman installation clean-ish, I would like to able to remove all versions of a (C)CV, except for the latest e.g. 3 versions.

ISSUE TYPE
  • Feature Idea
@evgeni
Copy link
Member

evgeni commented Nov 29, 2019

from triage: "last 3 versions" is something that we could do on a role level, but we probably don't have enough features in the k_content_view_version module to cleanly remove a CV today, so this would need fixing (or at least proper testing) before such a role can exist.

@pcfe
Copy link
Contributor

pcfe commented Dec 10, 2019

I would welcome such a feature and can commit to testing (I have a CI pipeline at home that generates new versions regularly, so testing this RFE will be easy for me).

@rht-jbittner
Copy link

It would be also nice to have ability to remove any content view which does not belong to any environments.

@nesanton
Copy link
Contributor

@evgeni do you know if there's an upstream bug to katello for not having "de-promote" or "delete-from-lce" API call?

@evgeni
Copy link
Member

evgeni commented Sep 14, 2020

I think that's mostly a feature so that you can only overwrite it by another version.

There is an API to remove a CV from an LCE (https://theforeman.org/plugins/katello/3.17/api/apidoc/v2/content_views/remove_from_environment.html) that I now used in #952

@nesanton
Copy link
Contributor

ah! content_views, not content_view_versions. Cool

evgeni added a commit to evgeni/foreman-ansible-modules that referenced this issue Sep 16, 2020
evgeni added a commit to evgeni/foreman-ansible-modules that referenced this issue Sep 16, 2020
evgeni added a commit to evgeni/foreman-ansible-modules that referenced this issue Sep 16, 2020
evgeni added a commit to evgeni/foreman-ansible-modules that referenced this issue Sep 16, 2020
evgeni added a commit to evgeni/foreman-ansible-modules that referenced this issue Sep 21, 2020
evgeni added a commit to evgeni/foreman-ansible-modules that referenced this issue Oct 19, 2020
evgeni added a commit to evgeni/foreman-ansible-modules that referenced this issue Oct 30, 2020
evgeni added a commit to evgeni/foreman-ansible-modules that referenced this issue Nov 12, 2020
evgeni added a commit to evgeni/foreman-ansible-modules that referenced this issue Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants