Bug 1856083 - UNINSTALLING OPENSHIFT CONTAINER STORAGE - CRD cephclients and finalizers
Summary: UNINSTALLING OPENSHIFT CONTAINER STORAGE - CRD cephclients and finalizers
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenShift Container Storage
Classification: Red Hat Storage
Component: documentation
Version: 4.4
Hardware: All
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Anjana Suparna Sriram
QA Contact: Raz Tamir
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-07-12 15:05 UTC by David Hernández Fernández
Modified: 2021-08-24 18:28 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-08-24 18:28:39 UTC
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.