| Summary: | prune command does ignore namespace parameter | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Alexander Koksharov <akokshar> |
| Component: | oc | Assignee: | Maciej Szulik <maszulik> |
| Status: | CLOSED ERRATA | QA Contact: | Xingxing Xia <xxia> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.2.0 | CC: | aos-bugs, jokerman, mfojtik, mmccomas, tdawson, xiaocwan, yapei |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Cause:
oadm prune images|builds|deployments ignored --namespace parameter
Consequence:
Administrator was not able to limit the scope of prune command to particular namespace.
Fix:
Make oadm prune command aware of --namespace parameter and limnit the scope of pruning to given namespace.
Result:
Administrator is able to limit the scope of the command to single namespace. When applied to images, none of images will be removed, since images are non-namespaced.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-01-18 12:52:56 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: | |
|
Description
Alexander Koksharov
2016-08-30 11:46:03 UTC
See discussion in https://github.com/openshift/origin/issues/9502. Should be solved in https://github.com/openshift/origin/pull/11249. Commit pushed to master at https://github.com/openshift/origin https://github.com/openshift/origin/commit/245518d85680ce3709bcc9c331990524f81c7d22 Bug 1371511 - add namespace awareness to oadm prune commands Verified on OCP openshift/oc v3.2.1.16 cluster admin could prune images under only specific namespace: # oc adm prune images --namespace=xiaocwan-t Dry run enabled - no modifications will be made. Add --confirm to remove images (to compare:) # oc adm prune images Dry run enabled - no modifications will be made. Add --confirm to remove images Deleting references from image streams to images ... STREAM IMAGE TAGS wewang/myappis sha256:3fb9fce7bd0fc22dfd75a2a104f2545c877efeb9887be6aecf97d3fc68548ac8 latest Deleting registry repository layer links ... REPO LAYER LINK wewang/myappis sha256:fefac1f48e853bd92b8124015a809080efb1cfce1b4c77405b7852ba3b8e108a wewang/myappis sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4 wewang/myappis sha256:8d30e94188e7f13642d975e70c484e48c33867f3ede3277df1145803fa996ac1 Deleting registry layer blobs ... BLOB sha256:b2c8fd1557f3f8279ef514d846943fbd2b0ac64602dd34e98c186979d3de0e8f sha256:04a758b33eac9a63088df32821374693ce8c41ca1283f7a2d9de85fb76bb51ff ... 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:0066 |