Uploaded image for project: 'Ansible Automation Platform RFEs'
  1. Ansible Automation Platform RFEs
  2. AAPRFE-1070

[RFE]Automation Hub does not delete old/unwanted artifacts(old tags/images)

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Duplicate
    • Icon: Normal Normal
    • None
    • 2.4
    • hub
    • False
    • Hide

      None

      Show
      None
    • False

      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

      1. Install AH 2.4 and sync all images from - ansible-automation-platform-23/ee-supported-rhel8 -
      2. 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.

              jhardy@redhat.com John Hardy
              rhn-support-ahuchcha Amar Huchchanavar
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: