Bug 1677532

Summary: After minor upgrade, old images from registry should be removed
Product: Red Hat OpenStack Reporter: Pablo Iranzo Gómez <pablo.iranzo>
Component: RFEsAssignee: Carlos Camacho <ccamacho>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 13.0 (Queens)CC: ccamacho, jfrancoa, markmc, mbracho, sgolovat
Target Milestone: zstreamKeywords: Triaged, ZStream
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Feature: updates Reason: adding details for best practice. Result: better docs!
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-08-31 13:36:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pablo Iranzo Gómez 2019-02-15 07:36:34 UTC
Description of problem:

After minor upgrade from OSP13 to OSP13, container registry, still does have tags, etc in /var/lib/registry/docker/registry/v2/repositories/

Corresponding to older images:

docker images|sort:

192.3.2.1:8787/rhosp13/openstack-octavia-housekeeping        13.0-60              5a03afd2a237        3 months ago        736 MB
192.3.2.1:8787/rhosp13/openstack-octavia-worker              13.0-53              180a1c11eb19        5 months ago        764 MB
192.3.2.1:8787/rhosp13/openstack-octavia-worker              13.0-59              8d6c4f56caf6        3 months ago        736 MB
192.3.2.1:8787/rhosp13/openstack-panko-api                   13.0-56              c5721a99a59b        5 months ago        704 MB
192.3.2.1:8787/rhosp13/openstack-panko-api                   13.0-62              c2d4a2873afc        3 months ago        676 MB
192.3.2.1:8787/rhosp13/openstack-rabbitmq                    13.0-63              2571ca2478a5        3 months ago        637 MB
192.3.2.1:8787/rhosp13/openstack-rabbitmq                    pcmklatest           2571ca2478a5        3 months ago        637 MB
192.3.2.1:8787/rhosp13/openstack-redis                       13.0-64              809650f7f0e1        3 months ago        603 MB
192.3.2.1:8787/rhosp13/openstack-redis                       pcmklatest           809650f7f0e1        3 months ago        603 MB
192.3.2.1:8787/rhosp13/openstack-swift-account               13.0-55              b8708d134704        5 months ago        653 MB
192.3.2.1:8787/rhosp13/openstack-swift-account               13.0-61              268df5b6f516        3 months ago        625 MB
192.3.2.1:8787/rhosp13/openstack-swift-container             13.0-58              e8b6a7432c01        5 months ago        653 MB
192.3.2.1:8787/rhosp13/openstack-swift-container             13.0-64              a82767d69744        3 months ago        625 MB
192.3.2.1:8787/rhosp13/openstack-swift-object                13.0-55              876691ab3167        5 months ago        653 MB
192.3.2.1:8787/rhosp13/openstack-swift-object                13.0-61              2ee3707e22e8        3 months ago        625 MB
192.3.2.1:8787/rhosp13/openstack-swift-proxy-server          13.0-61              57103cf167e2        3 months ago        675 MB


I would expect to have older images purged, leaving only the ones tagged with 'pcmklatest' or at least, have documented in the upgrading guide on how to perform pruning of older non-used images.