-
Notifications
You must be signed in to change notification settings - Fork 20
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
Disconnect iSCSI Luns from Host #20
Comments
I'm facing the same issue, it's expected to be disconnect in order allow further operations by the SAN (destroy the volume for example) FlexVolumes itself has been kind of deprecated ... is this project still supported? |
Currently the code leaves the target & lun connected incase it is being used by another container on the host. You could submit a PR to disconnect it in the unmount and make it optional in the storage class. K8s-Storage-Plugins/flexvolume/windows/plugins/microsoft.com~iscsi.cmd/iscsi.ps1 Line 608 in e683bce
Why doesn't code disconnectIt has been a bit of time since I originally wrote this code, but if I remember correct due to the nature of flexvolume the information containing refcounts of how many workloads are using the drive where not plumbed if you needed passwords. See https://github.com/kubernetes/community/blob/master/contributors/devel/sig-storage/flexvolume.md#unmount-device FlexProvisionerThe FlexProvisioner written against the Microsoft iSCSI target server does a forceful disconnect of drives during the delete. See
DeprecatedAs far as deprecated. FlexVolume is an hosted plugin in kubernetes codebase. Kubernetes is currently trying to move all the plugins outside of the tree. FlexVolume will exist for the time being to support existing users. Linux development for iSCSI CSI drivers for kubernetes is at https://github.com/kubernetes-csi/csi-driver-iscsi |
I've noticed that when I delete a workload that had an iSCSI Flexvolume mounted, it leaves the target and LUN connected on the host. Should it be automatically disconnecting that target after a workload has been removed?
The text was updated successfully, but these errors were encountered: