casskop icon indicating copy to clipboard operation
casskop copied to clipboard

Removal of namespace hangs on terminating

Open fdehay opened this issue 5 years ago • 4 comments

When removing a namespace with CassKop and a running cluster in it without prior warning, K8S cannot complete the task. The namespace hangs on Terminating This happened on one of our internal clusters

fdehay avatar Dec 20 '19 11:12 fdehay

The issue may come from the finalizer of the CRD (thanks @allamand)

fdehay avatar Dec 20 '19 13:12 fdehay

As @fdehay indicates, this does seem to be a finalizer when deleting the CRD at the same time as the namespace. This issue best describes it https://github.com/kubernetes/kubernetes/issues/60538. In my case, I found it helps to wait before deleting the namespace: kubectl -n <namespace> wait --for=delete --timeout=600s <resource-name>

scott-kausler avatar Aug 31 '20 16:08 scott-kausler

Any updates here?

ajoskowski avatar Jan 28 '21 07:01 ajoskowski

I usually follow the steps in this link to forcefully delete the namespace when it is stuck at terminating state. Hope this is useful.

SuhailRahman avatar Mar 12 '21 04:03 SuhailRahman