Bug 1860431
| Summary: | OCS 4.5 Uninstall: /var/lib/rook contents are not cleaned Up on initiating StorageCluster Deletion(expected as per Bug 1849532#c5) | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat OpenShift Container Storage | Reporter: | Neha Berry <nberry> |
| Component: | ocs-operator | Assignee: | Raghavendra Talur <rtalur> |
| Status: | CLOSED ERRATA | QA Contact: | Neha Berry <nberry> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.5 | CC: | aclewett, jarrpa, jelopez, madam, muagarwa, ocs-bugs, rtalur, sostapov |
| Target Milestone: | --- | Keywords: | AutomationBackLog |
| Target Release: | OCS 4.5.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 4.5.0-518.ci | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-09-15 10:18:25 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1849532 | ||
|
Description
Neha Berry
2020-07-24 14:19:52 UTC
Thanks Talur, doesn't seem to be a blocker to me. As we already have the PR, QE can decide if they want to take it in 4.5 or not. This is under review on https://github.com/openshift/ocs-operator/pull/645 Backport PR created and merged: https://github.com/openshift/ocs-operator/pull/679 Moving to verified state based on Comment#11, Comment#12 and Comment#16 Uninstall was tested on both Internal and External Modes. For internal mode in VMware , followed the below mentioned steps and the uninstall Worked. Observations ================== a) The /var/lib/rook content is removed b) The noobaa-db PV is not in Released state c) The node label is not removed and is left intact. d) One needs to wait for completion of the cleanup jobs before moving to deletion of the namespace. c get pods -n openshift-storage | grep cleanup cluster-cleanup-job-ip-10-0-159-9-5mg49 0/1 Completed 0 21s cluster-cleanup-job-ip-10-0-169-179-lhvhb 0/1 Completed 0 23s cluster-cleanup-job-ip-10-0-212-184-9jcw2 0/1 Completed 0 25s ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Few details of the steps $ oc label -n openshift-storage storagecluster --all cleanup.ocs.openshift.io=yes-really-destroy-data storagecluster.ocs.openshift.io/ocs-external-storagecluster labeled $ $ oc delete -n openshift-storage storagecluster --all --wait=true $ oc delete project openshift-storage --wait=true --timeout=5m project.project.openshift.io "openshift-storage" deleted [nberry@localhost sid-aug6-45-515]$ oc get project openshift-storage NAME DISPLAY NAME STATUS openshift-storage Terminating ** There was a resource pending finalizer deletion. Upon patching the resource with finalizer null, the namespace got deleted successfully $ oc delete storageclass openshift-storage.noobaa.io --wait=true --timeout=5m storageclass.storage.k8s.io "openshift-storage.noobaa.io" deleted $ oc label nodes --all cluster.ocs.openshift.io/openshift-storage- $ oc label nodes --all topology.rook.io/rack- $ 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 +++++++++++++++++++++++++++++++++++++++++++++++++ Versions $ oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.5.0-0.nightly-2020-08-07-024812 True False 2d21h Cluster version is 4.5.0-0.nightly-2020-08-07-024812 OCS version = ocs-operator.v4.5.0-521.ci 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 (Red Hat OpenShift Container Storage 4.5.0 bug fix and enhancement update), 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-2020:3754 |