An open API service indexing awesome lists of open source software.

https://github.com/bcambl/pulp-cleanup

Remove old versions of Katello/Satellite 6 composite & content views
https://github.com/bcambl/pulp-cleanup

Last synced: 8 months ago
JSON representation

Remove old versions of Katello/Satellite 6 composite & content views

Awesome Lists containing this project

README

          

## pulp-cleanup

Description:
Scripted removal of old composite & content view versions (_n munus 1_ by default)

Scripted Tasks:
- Delete 'content' view versions older than n-1 (keep previous version for rollback purposes)
- Delete 'composite' view versions older than n-1 (keep previous version for rollback purposes)
- Move related pulp yum content to a backup directory to be manually deleted at a later date (_see additional note_)

Usage:
- The script should be safe to execute with `DEBUG = True`.
- Carefully review the stdout *before* setting `DEBUG = False`.

Additional Note:
This script contains a workaround for Red Hat internal Bugzilla #1184442 & #1317057 for Satellite 6.1.x
**_Note: This is not an official solution. You should probably contact Red Hat support first._**

The aforementioned bugs result in content not being removed from disk when content versions
are deleted via the web GUI. Although there are a few content directories related to the bug,
the majority of the disk space can be recovered by only removing the yum content associated
with the deleted versions.

**WARNING:**
**All versions NOT associated with a lifecycle will be removed with the exception of one previous version.**

Testing:
Tested on Satellite 6.1.x -> 6.3.5