-
Notifications
You must be signed in to change notification settings - Fork 571
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
Waiting on external-attacher/io-rancher-longhorn #722
Comments
I found a solution. I deleted PVs directly in the google console but somehow the PVs are still there for the rancher. Using Rancher
And I saw the same list as in Rancher UI:
Then I had to edit the PVs with:
And I removed again the lines:
And that's all, the PVs disappeared from Rancher UI. IMPORTANT: This is something I did directly on the GKE console, but it did not change in the rancher object. The rancher did not even remove the PVs. Maybe all the problems were caused because I did not follow GKE installation instructions for longhorn: https://github.com/longhorn/longhorn/blob/master/docs/gke.md and Rancher was not able to sync data from the cluster. |
@josecelano I think GKE is the problem (and has the cache). Rancher reads all the information from |
Ran into the same issue on "custom" provider (locally hosted CentOS servers). @josecelano solution to edit the pv did work. I used the following commands: |
@mattsdevop how did it happen? Normally PV should be cleaned if Longhorn is still installed. |
@yasker Thanks for the reply! I wish I could explain how this happened. I can say that some of the pvc that were stuck in Terminating status have persisted through Longhorn updates (pre-0.5.0) and some were only a couple days old (created since upgrading to Longhorn 0.6.2). The host nodes are running CentoOS and have been kept relatively up to date. May or may not be related: This particular cluster was bit by the kubernetes/kernel bug explained here: https://pingcap.com/blog/try-to-fix-two-linux-kernel-bugs-while-testing-tidb-operator-in-k8s/ which prompted the most recent upgrade and investigation into the disk usage. I will keep an eye out moving forward for any specific steps that might replicate it. If there is anything else that would help in tracking it down, please let me know and I'll be sure to watch out for it! |
@mattsdevop You might want to send us a support bundle at And if I understand correctly, when you delete the PVC, Longhorn did clean up the volume but PV is still stuck. |
@yasker Everything has been working as expected since I last posted. Additionally, the machines have been rebooted and packages have been updated. If this happens again, I will get a support bundle. Thank you again. And, thank you for your great work and support! |
@yasker you are correct. Longhorn deletes the volume and I can no longer view it in the Longhorn UI. However, the PV shows Bound and green in Rancher under Storage -> Persistent Volumes. I attempted to manually remove it using the "View API" option in Rancher. I clicked "Delete". now it is stuck in the "removing" status. I am emailing the Support Bundle to you. And, have reached out in Slack for any potential troubleshooting you want to perform. |
Found this which might be the actual issue: kubernetes/kubernetes#69697 |
I have created this issue in the rancher repo:
rancher/rancher#22829
but I do not really know if it's a Rancher problem or a longhorn issue.
The text was updated successfully, but these errors were encountered: