-
Notifications
You must be signed in to change notification settings - Fork 310
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
[ENHANCEMENT] Take advantage of the attach/detach mechanism in Longhorn v1.5+ #4907
Comments
Thanks @ejweber for the heads-up. We'll evaluate the change. |
Pre Ready-For-Testing Checklist
|
Automation e2e test issue: harvester/tests#1027 |
Verified fixed on Result
* VM volumes are detached after we stop VM.
|
added |
While looking into a few Harvester issues, I noticed #3670 and #3648. It appears from these (though I need to collect more context) that Harvester manually attached Longhorn volumes to nodes in order to ensure snapshots/backups can be taken.
This behavior makes sense for Longhorn <=
v1.4.x
. In those versions, Longhorn did not have any mechanism to attach the volume automatically to the node and perform the operation, so these operations were generally stuck until a volume was attached. However, in v1.5.x, Longhorn added a new attach/detach controller that automatically attaches volumes for these operations and then detaches them. See https://github.com/longhorn/longhorn/blob/master/enhancements/20221024-longhorn-volumeattachment.md and longhorn/longhorn#3726.I don't know the full extent of Harvester's need to manipulate Longhorn volumes, but I think it may be possible to remove or reduce this functionality in Harvester. It may even be safer to do so to avoid situations in which Harvester's attach/detach logic fights Longhorn's.
Copying @PhanLe1010 and @james-munson, who I was discussing this with.
The text was updated successfully, but these errors were encountered: