Bug 1487408
Summary: | Prune Deleted Layer of a Valid Image due to minimum aging | |||
---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Matthew Robson <mrobson> | |
Component: | Image Registry | Assignee: | Oleg Bulatov <obulatov> | |
Status: | CLOSED ERRATA | QA Contact: | Dongbo Yan <dyan> | |
Severity: | urgent | Docs Contact: | ||
Priority: | urgent | |||
Version: | 3.5.1 | CC: | aos-bugs, bparees, dyan, erich, geliu, haowang, jokerman, mfojtik, mmccomas, pdwyer, qcai, rhowe, sreber | |
Target Milestone: | --- | |||
Target Release: | 3.7.0 | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
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: | ||||
: | 1498123 1498124 1509362 (view as bug list) | Environment: | ||
Last Closed: | 2017-11-28 22:08:20 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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1498123, 1498124, 1509362 |
Description
Matthew Robson
2017-08-31 20:14:26 UTC
Commit pushed to master at https://github.com/openshift/origin https://github.com/openshift/origin/commit/917bfe7b490f182456ba05d2634fe6286fa1ff69 Test for bug 1487408 Verified # oc version oc v3.7.0-0.147.0 kubernetes v1.7.6+a08f5eeb62 features: Basic-Auth GSSAPI Kerberos SPNEGO Server https://:8443 openshift v3.7.0-0.143.2 kubernetes v1.7.0+80709908fd 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:9f3ddeba9f24e76cfba298bfa8182fd6a59f04ef9f619c9914d6f401044f54e3 sha256:a67b0482ed5d83ab726f8c10c056dd5cb1430e7251f44c90c5a547d207999cab Deleting images from server ... IMAGE sha256:3a5a0bdc0f7badf9412b0d26d20fd91e5cb015dcc868094c6d8d5b01bd23f8ae Actual result:the new image is not pruned move to verified 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/RHSA-2017:3188 |