Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1498124 - [3.6] Prune Deleted Layer of a Valid Image due to minimum aging
[3.6] 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.6.0
Unspecified Unspecified
unspecified Severity high
: ---
: 3.6.z
Assigned To: Oleg Bulatov
Dongbo Yan
:
Depends On: 1487408 1509362
Blocks: 1498123
  Show dependency treegraph
 
Reported: 2017-10-03 10:21 EDT by Ben Parees
Modified: 2017-11-15 14:10 EST (History)
14 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 3 Dongbo Yan 2017-10-13 04:03:46 EDT
wait for available puddle
Comment 6 Dongbo Yan 2017-10-17 01:45:16 EDT
Verified
$ ./oc version
oc v3.6.173.0.49
kubernetes v1.6.1+5115d708d7
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://:8443
openshift v3.6.173.0.49
kubernetes v1.6.1+5115d708d7

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:738f6e7aa7ede099687a772a73a6b9799e697e55c4d82baa97738bbb1e20e0c3
sha256:3cf6e1c0e04c09e1fe810f0eaeecc8c450a4618f159dd7eb70c6a17c5fb4561b

Deleting images from server ...
IMAGE
sha256:e589ee56651301057afce5f99651e32ec30a3d79d641999491b79979d59177e6

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.