Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1498123 - [3.5] Prune Deleted Layer of a Valid Image due to minimum aging
[3.5] Prune Deleted Layer of a Valid Image due to minimum aging
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Image Registry (Show other bugs)
3.5.1
Unspecified Unspecified
unspecified Severity high
: ---
: 3.5.z
Assigned To: Oleg Bulatov
Dongbo Yan
:
Depends On: 1487408 1498124 1509362
Blocks:
  Show dependency treegraph
 
Reported: 2017-10-03 10:19 EDT by Ben Parees
Modified: 2017-11-15 13:58 EST (History)
15 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: images younger than the threshold are not added to the dependency graph. Consequence: a blob which is used by a young image and by a prunable image is deleted because it has no references in the graph. Fix: add young images to the graph and mark them as non-prunable. Result: the blob has references and is not deleted.
Story Points: ---
Clone Of: 1487408
Environment:
Last Closed: 2017-10-25 09:08:02 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 3242401 None None None 2017-11-15 13:58 EST
Red Hat Product Errata RHBA-2017:3049 normal SHIPPED_LIVE OpenShift Container Platform 3.6, 3.5, and 3.4 bug fix and enhancement update 2017-10-25 11:57:15 EDT

  None (edit)
Comment 6 Dongbo Yan 2017-10-12 07:49:26 EDT
$ ./oc version
oc v3.5.5.31.34
kubernetes v1.5.2+43a9be4
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://:8443
openshift v3.5.5.31.34
kubernetes v1.5.2+43a9be4

push two images reference the same image layer, one is pushed more 10min. Prune the old image via cmd
# oadm prune images --certificate-authority=ca.crt --keep-younger-than=10m --registry-url=docker-registry-default.com --confirm

Deleting registry layer blobs ...
BLOB
sha256:f6e9d8c70d39ea5d80cd5109922421b0423325897623753afb6fa703a9fb5727

Deleting images from server ...
IMAGE
sha256:eb57752d19f50b7534856dde574efd5101b7f5e179afbf4d474caad3db24a989

Actual result:the new image is not pruned

move to verified
Comment 8 errata-xmlrpc 2017-10-25 09:08:02 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:3049

Note You need to log in before you can comment on or make changes to this bug.