| Summary: | Can't use --force when replace resource | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | XiuJuan Wang <xiuwang> |
| Component: | Node | Assignee: | Derek Carr <decarr> |
| Status: | CLOSED NOTABUG | QA Contact: | Jianwei Hou <jhou> |
| Severity: | low | Docs Contact: | |
| Priority: | medium | ||
| Version: | unspecified | CC: | aos-bugs, decarr, gblomqui, haowang, jokerman, mmccomas, xxia |
| Target Milestone: | --- | Keywords: | Regression |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-07-03 15:08:30 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
XiuJuan Wang
2015-12-24 11:05:58 UTC
Reassigning, the 'replace' cmd comes from upstream. Not a 3.1.1 blocker. There is a workaround: 'oc delete' your resource, use 'oc get' to confirm it's deleted, then 'oc create' it. Alternatively, you can try specifying both --cascade=true and --grace-period=0 (cascade should not be required, but there is a bug in the replace code that makes it required right now). The appropriate fix is to modify the replace code to: - set the grace period to 0 by default when force=true - not require cascade=true when using grace period w/pods - pass grace period to the delete request when cascade=false I will look to put together an upstream PR. Modifying severity to low as its not a blocker for the release. Old bug with a workaround discussed in comment #2. If there are any related issues in 4.x, please open a new bug. |