Bug 2083999
Summary: | "--prune-over-size-limit" is not working as expected | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Poornima Singour <psingour> |
Component: | oc | Assignee: | Oleg Bulatov <obulatov> |
oc sub component: | oc | QA Contact: | zhou ying <yinzhou> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | high | ||
Priority: | high | CC: | bzvonar, eglottma, kurathod, mfojtik, obulatov, openshift-bugs-escalate, xiuwang |
Version: | 4.8 | ||
Target Milestone: | --- | ||
Target Release: | 4.11.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause:
When filtering over-sized images, the recent images where omitted.
Consequence:
It wasn't possible to prune big images, if they were rather new in the cluster.
Fix:
Properly apply filtering rules when looking for image candidates for pruning.
Result:
It's possible to correctly prune images exceeding given size.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2022-08-10 11:11:18 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: | 2086969 |
Description
Poornima Singour
2022-05-11 07:50:35 UTC
Lowering severity as it doesn't cause data loss and it's not an upgrade blocker. Also it should be possible to workaround the problem by explicitly providing `--keep-younger-than=0s`. could reproduced with older version : ./oc version --client Client Version: 4.8.38 ./oc adm prune images --prune-over-size-limit -v 8 > prune_output_old.txt 2>&1 [root@localhost ~]# cat prune_output_old.txt |grep "keep-younger-than" I0523 18:06:26.281328 36478 prune.go:894] imagestream openshift/installer-artifacts: tag latest: revision 1: keeping sha256:d30a1108c677ac241b143bc0375d3b6eafb8928e4ef0647efef14f1f15c3dd68 because of --keep-younger-than I0523 18:06:26.281419 36478 prune.go:894] imagestream openshift/fuse7-eap-openshift-java11: tag 1.10: revision 1: keeping sha256:4c7470a39df37f1f158e177dbba7f5aad2c00ce7c6b9be490a8275488fe1b9e1 because of --keep-younger-than ..... But can't reproduce with latest oc version : oc version --client Client Version: 4.11.0-0.nightly-2022-05-20-213928 Kustomize Version: v4.5.4 oc adm prune images --prune-over-size-limit -v 8 > prune_output.txt 2>&1 cat prune_output.txt |grep "keep-younger-than" 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 (Important: OpenShift Container Platform 4.11.0 bug fix and security update), 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-2022:5069 |