Bug 2139406

Summary: Device Replacement Doc, Add "-p" to FORCE_OSD_REMOVAL param
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: Oded <oviner>
Component: documentationAssignee: Disha Walvekar <dwalveka>
Status: VERIFIED --- QA Contact: Neha Berry <nberry>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.11CC: dwalveka, edonnell, odf-bz-bot
Target Milestone: ---Keywords: NoDocsQEReview
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:

Description Oded 2022-11-02 12:27:49 UTC
Describe the issue:
We need to add "-p" [parameter] before FORCE_OSD_REMOVAL param.


Describe the task you were trying to accomplish:

Suggestions for improvement:

Incorrect:
$ oc process -n openshift-storage ocs-osd-removal -p FAILED_OSD_IDS=${osd_id_to_remove} FORCE_OSD_REMOVAL=false |oc create -n openshift-storage -f -

Correct:
$ oc process -n openshift-storage ocs-osd-removal -p FAILED_OSD_IDS=${osd_id_to_remove} -p FORCE_OSD_REMOVAL=false |oc create -n openshift-storage -f -

Document URL:
https://access.redhat.com/documentation/en-us/red_hat_openshift_data_foundation/4.11/html-single/replacing_devices/index

Chapter/Section Number and Title:
2.1. Replacing operational or failed storage devices on VMware infrastructure
3.1. Replacing operational or failed storage devices on Red Hat Virtualization installer-provisioned infrastructure
5.1. Replacing operational or failed storage devices on clusters backed by local storage devices

Product Version:

Environment Details:

Any other versions of this document that also needs this update:

Additional information:

Comment 2 Oded 2022-11-04 08:44:32 UTC
https://access.redhat.com/documentation/en-us/red_hat_openshift_data_foundation/4.9/html-single/replacing_devices/index
2.1. Replacing operational or failed storage devices on VMware infrastructure
3.1. Replacing operational or failed storage devices on Red Hat Virtualization installer-provisioned infrastructure
5.1. Replacing operational or failed storage devices on clusters backed by local storage devices
5.2. Replacing operational or failed storage devices on IBM Power

https://access.redhat.com/documentation/en-us/red_hat_openshift_data_foundation/4.9/html-single/replacing_nodes/index
2.1.1. Replacing an operational node on bare metal user-provisioned infrastructure
2.1.2. Replacing a failed node on bare metal user-provisioned infrastructure
2.3.1. Replacing an operational or failed storage node on IBM Power
2.4.1. Replacing an operational node on VMware user-provisioned infrastructure
2.4.2. Replacing an operational node on VMware installer-provisioned infrastructure
2.4.3. Replacing a failed node on VMware user-provisioned infrastructure
2.4.4. Replacing a failed node on VMware installer-provisioned infrastructure
2.5.1. Replacing an operational node on Red Hat Virtualization installer-provisioned infrastructure
2.5.2. Replacing a failed node on Red Hat Virtualization installer-provisioned infrastructure

https://access.redhat.com/documentation/en-us/red_hat_openshift_data_foundation/4.10/html-single/replacing_devices/index
2.1. Replacing operational or failed storage devices on VMware infrastructure
3.1. Replacing operational or failed storage devices on Red Hat Virtualization installer-provisioned infrastructure
5.1. Replacing operational or failed storage devices on clusters backed by local storage devices
5.2. Replacing operational or failed storage devices on IBM Power

https://access.redhat.com/documentation/en-us/red_hat_openshift_data_foundation/4.10/html-single/replacing_nodes/index
2.1.1. Replacing an operational node on bare metal user-provisioned infrastructure
2.1.2. Replacing a failed node on bare metal user-provisioned infrastructure
2.3.1. Replacing an operational or failed storage node on IBM Power
2.4.1. Replacing an operational node on VMware user-provisioned infrastructure
2.4.2. Replacing an operational node on VMware installer-provisioned infrastructure
2.4.3. Replacing a failed node on VMware user-provisioned infrastructure
2.4.4. Replacing a failed node on VMware installer-provisioned infrastructure
2.5.1. Replacing an operational node on Red Hat Virtualization installer-provisioned infrastructure
2.5.2. Replacing a failed node on Red Hat Virtualization installer-provisioned infrastructure

https://access.redhat.com/documentation/en-us/red_hat_openshift_data_foundation/4.11/html-single/replacing_devices/index
2.1. Replacing operational or failed storage devices on VMware infrastructure
3.1. Replacing operational or failed storage devices on Red Hat Virtualization installer-provisioned infrastructure
5.1. Replacing operational or failed storage devices on clusters backed by local storage devices
5.2. Replacing operational or failed storage devices on IBM Power

https://access.redhat.com/documentation/en-us/red_hat_openshift_data_foundation/4.11/html-single/replacing_nodes/index
On ODF4.11 Node Replacement doc, we need to add the FORCE_OSD_REMOVAL flag to cmd:
before fix
oc process -n openshift-storage ocs-osd-removal -p FAILED_OSD_IDS=<failed_osd_id> | oc create -f -
After fix:
$ oc process -n openshift-storage ocs-osd-removal -p FAILED_OSD_IDS=<failed_osd_id> FORCE_OSD_REMOVAL=true | oc create -n openshift-storage -f -