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
- Host: GitHub
- URL: https://github.com/bcambl/pulp-cleanup
- Owner: bcambl
- License: gpl-3.0
- Created: 2016-07-07T21:34:37.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-07-10T16:56:10.000Z (almost 7 years ago)
- Last Synced: 2025-02-27T11:28:46.687Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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