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

[feature proposal] add SMB(cifs) volume plugin #56005

Closed
andyzhangx opened this issue Nov 19, 2017 · 26 comments
Closed

[feature proposal] add SMB(cifs) volume plugin #56005

andyzhangx opened this issue Nov 19, 2017 · 26 comments
Assignees
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. sig/storage Categorizes an issue or PR as relevant to SIG Storage. sig/windows Categorizes an issue or PR as relevant to SIG Windows.

Comments

@andyzhangx
Copy link
Member

andyzhangx commented Nov 19, 2017

Is this a BUG REPORT or FEATURE REQUEST?:
/kind feature

feature proposal:
I would like to contribute a common SMB(one version called cifs) volume plugin, but not sure whether there is already some work on this. There is already an implementation of SMB azure file (https://github.com/kubernetes/kubernetes/tree/master/pkg/volume/azure_file), but it's under cloudprovider directory and it depends on azure, while I would like to implement a common SMB volue plugin.

SMB intro: https://en.wikipedia.org/wiki/Server_Message_Block

Current k8s volume support list on Windows:
https://github.com/andyzhangx/Demo/tree/master/windows#k8s-volume-support-on-windows-server-1709

Would appreciate any comments, thanks.

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • Kubernetes version (use kubectl version):
  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:

/sig storage
/assign

@k8s-ci-robot k8s-ci-robot added kind/feature Categorizes issue or PR as related to a new feature. sig/storage Categorizes an issue or PR as relevant to SIG Storage. labels Nov 19, 2017
@andyzhangx
Copy link
Member Author

@jdumars for comments

@feiskyer
Copy link
Member

cc @kubernetes/sig-storage-feature-requests

@andyzhangx
Copy link
Member Author

@kubernetes/sig-windows-feature-requests

@k8s-ci-robot k8s-ci-robot added the sig/windows Categorizes an issue or PR as relevant to SIG Windows. label Dec 1, 2017
@michmike
Copy link
Contributor

michmike commented Dec 1, 2017

hi @andyzhangx, can you please join the sig-windows slack channel where windows development is happening. i would love to discuss this feature request at our next meeting. ping me in Kubernetes slack (mmichael) for details

@rootfs
Copy link
Contributor

rootfs commented Dec 1, 2017

@andyzhangx would flex or csi work? There are already cifs flex drivers around.

@andyzhangx
Copy link
Member Author

@rootfs that's good question, I will try flex on Windows first, it's in my list.

@andyzhangx
Copy link
Member Author

andyzhangx commented Dec 1, 2017

@michmike I am already in sig-windows, just mute in the group. And I am in China, the meeting time is too late for me, could you just paste your discussion result here? Thanks.
I raised this feature proposal just want to know whether there is some requiremnt for a new upstream SMB plugin, or a working cifs flex driver on Windows is enough?

@andyzhangx
Copy link
Member Author

andyzhangx commented Dec 1, 2017

BTW, this November, azure released Windows Server version 1709, by this OS, azure disk & file mount is already supported on Windows starting from v1.7.2.
You could find detailed info here:
https://github.com/andyzhangx/Demo/tree/master/windows#k8s-volume-support-on-windows-server-1709

@michmike
Copy link
Contributor

michmike commented Dec 4, 2017

@andyzhangx we record all our meetings on youtube here https://www.youtube.com/playlist?list=PL69nYSiGNLP2OH9InCcNkWNu2bl-gmIU4

Right now, we have not discussed this at all, but we can add it for discussion after v1.9 ships.

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 4, 2018
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten
/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Apr 3, 2018
@ieugen
Copy link

ieugen commented Apr 13, 2018

I would like to have such a feature as well. Any progress?

@andyzhangx
Copy link
Member Author

There is already a cifs flexvolume plugin on Linux, and I will write a cifs CSI driver on windows

@andyzhangx
Copy link
Member Author

And before writing a new cifs CSI driver for windows, we need to make sure CSI driver works on windows well first, it depends on kubernetes-retired/drivers#79

@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@PatrickLang
Copy link
Contributor

Flexvolume driver for SMB here: https://github.com/Microsoft/K8s-Storage-Plugins

@jingxu97
Copy link
Contributor

jingxu97 commented May 2, 2020

@andyzhangx with csi-proxy project, I think it provides a way to implement a generic CSI smb driver. Do you still have interests in working on it?

@jingxu97 jingxu97 reopened this May 2, 2020
@andyzhangx
Copy link
Member Author

@andyzhangx with csi-proxy project, I think it provides a way to implement a generic CSI smb driver. Do you still have interests in working on it?

yes, it's tracking here: Azure/kubernetes-volume-drivers#48, will work out a working driver first.

@andyzhangx
Copy link
Member Author

the new driver functionality is actually subset of https://github.com/kubernetes-sigs/azurefile-csi-driver since it won't need dynamic provisioning, I am planning to create a new project, e.g. smb-csi-driver, put it under https://github.com/kubernetes-sigs/ finally.
The new CSI driver https://github.com/kubernetes-sigs/smb-csi-driver would work on both linux and windows node, and it only provides static provisioning(user should bring their own SMB server address).

@jingxu97
Copy link
Contributor

jingxu97 commented May 2, 2020

@andyzhangx that's great! Wondering whether we need to open a KEP for this or not in here https://github.com/kubernetes/enhancements/tree/master/keps/sig-windows?

@msau42
Copy link
Member

msau42 commented May 2, 2020

Would Kubernetes-csi be a good place for a generic smb driver? We already have common build and release infrastructure. Also generic nfs driver is also in the same org.

@andyzhangx
Copy link
Member Author

Would Kubernetes-csi be a good place for a generic smb driver? We already have common build and release infrastructure. Also generic nfs driver is also in the same org.

@msau42 thanks, the new smb driver should be under
https://github.com/kubernetes-csi/csi-driver-smb

Since this driver would work on both linux and windows node, not sure it's necessary to open a KEP on sig-windows.

Anyway, let me work out an initial working version first. Should not take too much time.

@andyzhangx
Copy link
Member Author

Update: here is the initial working SMB CSI driver:
https://github.com/csi-driver/csi-driver-smb
Will migrate to https://github.com/kubernetes-csi/csi-driver-smb

@andyzhangx
Copy link
Member Author

already created a repo migration tracking issue here: kubernetes/org#1867

@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. sig/storage Categorizes an issue or PR as relevant to SIG Storage. sig/windows Categorizes an issue or PR as relevant to SIG Windows.
Projects
None yet
Development

No branches or pull requests

10 participants