Bug 1684368
Summary: | `oc adm prune deployments` could not delete the deployer pod | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | zhou ying <yinzhou> |
Component: | oc | Assignee: | Maciej Szulik <maszulik> |
Status: | CLOSED ERRATA | QA Contact: | zhou ying <yinzhou> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 4.1.0 | CC: | aos-bugs, jokerman, mmccomas |
Target Milestone: | --- | ||
Target Release: | 4.1.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause:
With the new GC deletion mechanism we weren't setting the propagation policy properly with oc adm prune deployments command.
Consequence:
The deployer pod was not removed.
Fix:
Set appropriate deletion options.
Result:
oc adm prune deployments correctly removes all its dependants.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2019-06-04 10:44:51 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
zhou ying
2019-03-01 05:57:31 UTC
Confirmed with latest ocp, the issue has fixed: [zhouying@dhcp-140-138 extended]$ oc version --short Client Version: v4.0.22 Server Version: v1.12.4+87e98f4 Payload: 4.0.0-0.nightly-2019-03-28-030453 [zhouying@dhcp-140-138 extended]$ oc adm prune deployments --keep-complete=1 --keep-younger-than=1m --confirm NAMESPACE NAME zhouyt ruby-ex-5 zhouyt ruby-ex-4 zhouyt ruby-ex-3 zhouyt ruby-ex-2 zhouyt ruby-ex-1 [zhouying@dhcp-140-138 extended]$ oc get po NAME READY STATUS RESTARTS AGE ruby-ex-3-build 0/1 Completed 0 25m ruby-ex-4-build 0/1 Completed 0 23m ruby-ex-5-build 0/1 Completed 0 19m ruby-ex-6-build 0/1 Completed 0 18m ruby-ex-6-deploy 0/1 Completed 0 16m ruby-ex-7-build 0/1 Completed 0 14m ruby-ex-7-deploy 0/1 Completed 0 13m ruby-ex-7-ggrdx 1/1 Running 0 13m [zhouying@dhcp-140-138 extended]$ oc get rc NAME DESIRED CURRENT READY AGE ruby-ex-6 0 0 0 16m ruby-ex-7 1 1 1 13m 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-2019:0758 |