Bug 1856083

Summary: UNINSTALLING OPENSHIFT CONTAINER STORAGE - CRD cephclients and finalizers
Product: [Red Hat Storage] Red Hat OpenShift Container Storage Reporter: David Hernández Fernández <dahernan>
Component: documentationAssignee: Anjana Suparna Sriram <asriram>
Status: CLOSED CURRENTRELEASE QA Contact: Raz Tamir <ratamir>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.4CC: agantony, nberry, ocs-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-24 18:28:39 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:

Description David Hernández Fernández 2020-07-12 15:05:32 UTC
########################
Description of problem (please be detailed as possible and provide log
snippets):
####################### 

In upstream Ceph documentation, it is recommended to delete cephclients.ceph.rook.io and finalizers, however in our docs is not reflected, maybe we need to update that as well to something like the following in order to troubleshoot un-installations:
~~~
for CRD in $(oc get crd  | awk '/ceph.rook.io/ {print $1}'); do co patch crd $CRD --type merge -p '{"metadata":{"finalizers": [null]}}'; done
This command will patch the following CRDs
cephblockpools.ceph.rook.io cephclients.ceph.rook.io cephfilesystems.ceph.rook.io cephnfses.ceph.rook.io cephobjectstores.ceph.rook.io cephobjectstoreusers.ceph.rook.io

for CRD in $(oc get crd  | awk '/noobaa.io/ {print $1}'); do co patch crd $CRD --type merge -p '{"metadata":{"finalizers": [null]}}'; done
backingstores.noobaa.io bucketclasses.noobaa.io noobaas.noobaa.io

for CRD in $(oc get crd  | awk '/ocs.openshift.io/ {print $1}'); do co patch crd $CRD --type merge -p '{"metadata":{"finalizers": [null]}}'; done
ocsinitializations.ocs.openshift.io  storageclusterinitializations.ocs.openshift.io storageclusters.ocs.openshift.io
~~~

In our doc it only suggests the following:
~~~
$ oc delete crd backingstores.noobaa.io bucketclasses.noobaa.io cephblockpools.ceph.rook.io cephclusters.ceph.rook.io cephfilesystems.ceph.rook.io cephnfses.ceph.rook.io cephobjectstores.ceph.rook.io cephobjectstoreusers.ceph.rook.io noobaas.noobaa.io ocsinitializations.ocs.openshift.io  storageclusterinitializations.ocs.openshift.io storageclusters.ocs.openshift.io  --wait=true --timeout=5m
~~~

Version of all relevant components (if applicable): 4.4

https://access.redhat.com/documentation/en-us/red_hat_openshift_container_storage/4.4/html/deploying_openshift_container_storage/assembly_uninstalling-openshift-container-storage_aws-vmware