Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NSFS: Noobaa SC not deleted during uninstall #631

Closed
akmithal opened this issue May 12, 2021 · 3 comments · Fixed by #663
Closed

NSFS: Noobaa SC not deleted during uninstall #631

akmithal opened this issue May 12, 2021 · 3 comments · Fixed by #663
Assignees
Labels

Comments

@akmithal
Copy link

Environment info

  • NooBaa Version: master-20210428-nsfs
  • Platform: OCP 4.6.16

Actual behavior

  1. noobaa SC "noobaa.noobaa.io" is not deleted post uninstall of noobaa code via "noobaa uninstall --cleanup=true"

Expected behavior

  1. noobaa SC "noobaa.noobaa.io" should get deleted

Steps to reproduce

  1. Install noobaa code from dockerhub.
  2. Attempt uninstall using step "noobaa uninstall --cleanup=true"
  3. "oc get sc -A" would show o/p as below.

More information - Screenshots / Logs / Other output


[root@ocp-akshat-1-inf akshat]# noobaa uninstall --cleanup=true
ERRO[0000] Error discovered: the server is currently unable to handle the request
INFO[0000] CLI version: 5.8.0
INFO[0000] noobaa-image: noobaa/noobaa-core:master-20210428-nsfs
INFO[0000] operator-image: noobaa/noobaa-operator:master-20210428-nsfs
INFO[0000] noobaa-db-image: centos/mongodb-36-centos7
INFO[0000] Namespace: noobaa
INFO[0000]
INFO[0000] System Delete:
INFO[0000] ✅ Exists: NooBaa "noobaa"
INFO[0000] Notice: Deletion of External secrets should be preformed manually
INFO[0001] Deleting All object buckets in namespace "noobaa"
INFO[0001] ✅ Updated: "noobaa"
INFO[0001] 🗑️ Deleting: "noobaa"
INFO[0001] 🗑️ Deleted : "noobaa"
INFO[0001] 🗑️ Deleting: PersistentVolumeClaim "db-noobaa-db-0"
INFO[0015] 🗑️ Deleted : PersistentVolumeClaim "db-noobaa-db-0"
INFO[0015]
INFO[0015] Operator Delete:
INFO[0015] 🗑️ Deleting: Deployment "noobaa-operator"
INFO[0015] 🗑️ Deleted : Deployment "noobaa-operator"
INFO[0015] 🗑️ Deleting: SecurityContextConstraints "noobaa-endpoint"
INFO[0015] 🗑️ Deleted : SecurityContextConstraints "noobaa-endpoint"
INFO[0015] 🗑️ Deleting: SecurityContextConstraints "noobaa"
INFO[0015] 🗑️ Deleted : SecurityContextConstraints "noobaa"
INFO[0015] 🗑️ Deleting: ClusterRoleBinding "noobaa.noobaa.io"
INFO[0015] 🗑️ Deleted : ClusterRoleBinding "noobaa.noobaa.io"
INFO[0015] 🗑️ Deleting: ClusterRole "noobaa.noobaa.io"
INFO[0015] 🗑️ Deleted : ClusterRole "noobaa.noobaa.io"
INFO[0015] 🗑️ Deleting: RoleBinding "noobaa-endpoint"
INFO[0015] 🗑️ Deleted : RoleBinding "noobaa-endpoint"
INFO[0015] 🗑️ Deleting: RoleBinding "noobaa"
INFO[0015] 🗑️ Deleted : RoleBinding "noobaa"
INFO[0015] 🗑️ Deleting: Role "noobaa-endpoint"
INFO[0015] 🗑️ Deleted : Role "noobaa-endpoint"
INFO[0015] 🗑️ Deleting: Role "noobaa"
INFO[0015] 🗑️ Deleted : Role "noobaa"
INFO[0016] 🗑️ Deleting: ServiceAccount "noobaa-endpoint"
INFO[0016] 🗑️ Deleted : ServiceAccount "noobaa-endpoint"
INFO[0016] 🗑️ Deleting: ServiceAccount "noobaa"
INFO[0016] 🗑️ Deleted : ServiceAccount "noobaa"
INFO[0016] Namespace Delete:
INFO[0016] 🗑️ Deleting: Namespace "noobaa"
INFO[1113] 🗑️ Deleted : Namespace "noobaa"
INFO[1113]
INFO[1113] CRD Delete:
INFO[1113] 🗑️ Deleting: CustomResourceDefinition "noobaas.noobaa.io"
INFO[1114] 🗑️ Deleted : CustomResourceDefinition "noobaas.noobaa.io"
INFO[1114] 🗑️ Deleting: CustomResourceDefinition "backingstores.noobaa.io"
INFO[1115] 🗑️ Deleted : CustomResourceDefinition "backingstores.noobaa.io"
INFO[1115] 🗑️ Deleting: CustomResourceDefinition "namespacestores.noobaa.io"
INFO[1116] 🗑️ Deleted : CustomResourceDefinition "namespacestores.noobaa.io"
INFO[1116] 🗑️ Deleting: CustomResourceDefinition "bucketclasses.noobaa.io"
INFO[1117] 🗑️ Deleted : CustomResourceDefinition "bucketclasses.noobaa.io"
INFO[1117] 🗑️ Deleting: CustomResourceDefinition "objectbucketclaims.objectbucket.io"
INFO[1117] 🗑️ Deleted : CustomResourceDefinition "objectbucketclaims.objectbucket.io"
INFO[1117] 🗑️ Deleting: CustomResourceDefinition "objectbuckets.objectbucket.io"
INFO[1118] 🗑️ Deleted : CustomResourceDefinition "objectbuckets.objectbucket.io"
[root@ocp-akshat-1-inf akshat]#

[root@ocp-akshat-1-inf akshat]# oc get sc -A
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
ibm-spectrum-scale-csi-fileset spectrumscale.csi.ibm.com Delete Immediate false 12d
ibm-spectrum-scale-internal kubernetes.io/no-provisioner Delete WaitForFirstConsumer false 12d
noobaa.noobaa.io noobaa.noobaa.io/obc Delete Immediate false 10d


I don't have logs available at the moment. If logs are required, would have to recreate it, so kindly let me know.

@nimrod-becker nimrod-becker transferred this issue from noobaa/noobaa-core May 12, 2021
@nimrod-becker
Copy link
Contributor

@akmithal I moved the issue to the operator repo

@guymguym
Copy link
Member

So since a namespace resource (NooBaa CR) cannot own a cluster-resource (StorageClass) - this was known to cause havoc as you remember. So we cannot assume automatic cleanup, and we need to clean it up either in a NooBaa CR finalizer cleanup flow, or at least in the CLI uninstall command.

@nimrod-becker
Copy link
Contributor

Finalizer sounds good, we have the exact same issue when deployed via OCS and we don't use a CLI there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants