Skip to content
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

Open
gbxahollis opened this issue Feb 19, 2020 · 2 comments
Open

Disconnect iSCSI Luns from Host #20

gbxahollis opened this issue Feb 19, 2020 · 2 comments

Comments

@gbxahollis
Copy link

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?

@batiati
Copy link

batiati commented Sep 7, 2020

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?

@KnicKnic
Copy link
Contributor

KnicKnic commented Sep 8, 2020

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.

is where the dismount code exists. But please be mindful of refcounting issues of multiple uses of the target

Why doesn't code disconnect

It 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

FlexProvisioner

The FlexProvisioner written against the Microsoft iSCSI target server does a forceful disconnect of drives during the delete. See

function delete_iscsi($options)

Deprecated

As 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants