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

[BUG] KubeBlocks Uninstall - CRDs delete gets stuck #8814

Open
gstefanoff opened this issue Jan 15, 2025 · 1 comment
Open

[BUG] KubeBlocks Uninstall - CRDs delete gets stuck #8814

gstefanoff opened this issue Jan 15, 2025 · 1 comment
Assignees
Labels
kind/bug Something isn't working

Comments

@gstefanoff
Copy link

Describe the bug
Installed KubeBlocks (version 0.9.2 ) via helm using these instructions

When I tried uninstalling with helm, I was not able to delete CRDs. Every attempt resulted in delete processes being stuck. I am not able to delete the namespace because k8s is waiting for 23 resources to be removed, the problem is I cannot remove them either because they get stuck as well the only solution, I have not tried yet is the one mentioned here.

To Reproduce
Steps to reproduce the behavior:

  1. Delete pods (posgres, redis)
  2. Uninstall addons used
  3. helm uninstall kubeblocks --namespace kb-system
  4. kubectl get crd -o name | grep kubeblocks.io | xargs kubectl delete
  5. kubectl delete namespace kb-system

Expected behavior
KubeBlocks should be as easily removed as it is installed. Having to resort to "workarounds" such as removing finalizers is not feasible solution.

Screenshots
image

Not actually deleted!
image

Additional context
logs from kb-system namespaces pending deletion.

Name:         kb-system
Labels:       kubernetes.io/metadata.name=kb-system
Annotations:  <none>
Status:       Terminating
Conditions:
  Type                                         Status  LastTransitionTime               Reason                Message
  ----                                         ------  ------------------               ------                -------
  NamespaceDeletionDiscoveryFailure            False   Wed, 15 Jan 2025 10:06:48 -0800  ResourcesDiscovered   All resources successfully discovered
  NamespaceDeletionGroupVersionParsingFailure  False   Fri, 10 Jan 2025 11:38:49 -0800  ParsedGroupVersions   All legacy kube types successfully parsed
  NamespaceDeletionContentFailure              False   Sun, 12 Jan 2025 00:33:40 -0800  ContentDeleted        All content successfully deleted, may be waiting on finalization
  NamespaceContentRemaining                    True    Sun, 12 Jan 2025 00:33:40 -0800  SomeResourcesRemain   Some resources are remaining: configmaps. has 23 resource instances
  NamespaceFinalizersRemaining                 True    Sun, 12 Jan 2025 00:33:40 -0800  SomeFinalizersRemain  Some content in the namespace has finalizers remaining: config.kubeblocks.io/finalizer in 23 resource instances
@gstefanoff gstefanoff added the kind/bug Something isn't working label Jan 15, 2025
@shanshanying
Copy link
Contributor

Hi @gstefanoff

It seems even though you uninstall addons, resources like actionssets, addons are not deleted actually.

  1. may I know how do you uninstall addons?
  2. have you deleted all clusters properly before uninstall addons ? (e.g. k delete cluster )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants