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

Add flag to disable login on multiple hosts #106

Merged
merged 2 commits into from
Jul 1, 2021

Conversation

shubham14bajpai
Copy link
Contributor

Signed-off-by: shubham [email protected]

This PR adds a new flag to enable blocking of login from multiple hosts. This feature is required for implement a RWO volume in kubernetes environment where even though we mention RWO in the persistent volume still in some scenarios multiple pods on different hosts can mount the same volume, ref : openebs/openebs#3404 .
This can be prevented from the CSI drivers, but we can not guarantee that pods will not mount the same volume in some edge cases. It is good to reject a new login when a connection already exists to ensure there is no data corruption.

By default, this feature is disabled and can be enabled when creating a new Target object using EnableBlockMultipleHostLogin

@kmova
Copy link

kmova commented Jun 30, 2021

cc: @carmark - can you please help with this review.

@carmark
Copy link
Contributor

carmark commented Jun 30, 2021

@kmova sure, @shubham14bajpai thanks for your patch

@carmark
Copy link
Contributor

carmark commented Jul 1, 2021

@shubham14bajpai Could you please also add a flag for the gotgt command?

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

Successfully merging this pull request may close these issues.

3 participants