Description
Issue on : private-automation-hub
Automation Hub does not delete old/unwanted artifacts(old tags/images)
What is happening?
- Install AH and sync all images from - ansible-automation-platform-23/ee-supported-rhel8 - Now, update the AH to sync only the latest image(with tag: latest), perform the sync again.
- Results: - The UI only shows one entry, however, it does not remove the old tags data from the file system.
- On File System:
#cd /var/lib/pulp/media
#for FILE in $(find artifact -type f -exec file {} \;|grep gzip|awk '{print $1}'|tr -d ":"); do echo -e "$FILE "; zcat $FILE |tar -tvf - |grep "root/buildinfo/"; done > /tmp/eeimages.list
Steps to Reproduce
- Install AH 2.4 and sync all images from - ansible-automation-platform-23/ee-supported-rhel8 -
- Now, update the AH to sync only the latest image(with tag: latest), perform the sync again.
Results: - The UI only shows one entry, however, it does not remove the old tags data from the file system.
More info: -
API: #curl -X GET -u admin:password https://automationhub.example.com/api/galaxy/_ui/v1/execution-environments/repositories/ansible-automation-platform-23/ee-supported-rhel8/_content/images/ -k | jq , only lists one entry updating the repo with latest tag.
Actual Behavior
UI does not show the old data present on the AH's base machine file system.
Expected Behavior
There should be an option to remove all not relevant/required data.
Why customer wants this?
Customer is concerned about the space utilization and on AH base system and orphaned content.
- is duplicated by
-
AAPRFE-2496 Feature request to add function to remove multiple images from execution environment on AAP.
-
- In Progress
-