zilliztech / milvus-operator

The Kubernetes Operator of Milvus.
https://milvus.io
Apache License 2.0
33 stars 20 forks source link

The milvus.milvus.io stunk in `Deleting` status #52

Closed yuzs2 closed 7 months ago

yuzs2 commented 7 months ago

Hi, I was trying to delete a milvus using kubectl delete -f milvus-sample.yml, however the deleting was stunk, even the --force --grace-period=0 won't help.

When describing milvus, it was stunk in Deleting status.

NAME                             MODE         STATUS     UPDATED   AGE
milvus.milvus.io/milvus-sample   standalone   Deleting   True      91m

It could be stunk for hours. During the stunk, no Error was seen in the milvus-operator pods logs. The pod utilization was also not high.

Btw, I re-deployed the milvus-operator before I deleted the milvus. Would this be an issue?

haorenfsa commented 7 months ago

@yuzs2 Thank you for the feedback. It's a bug of assuming foreground deletion. it's fixed in #51. The patch will be included in next release (v0.8.6 #55).

For now you can delete it by kubectl delete --cascade=foreground.

yuzs2 commented 7 months ago

@haorenfsa thanks! Btw, sometimes the delete-pending might also happen without the milvus-operator re-deployment. would it be the same bug?

haorenfsa commented 7 months ago

Yes, it's caused by the same bug