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

Is it possible to implement snapshot functionality for nfs csi driver #31

Closed
LilyaBu opened this issue Apr 15, 2020 · 29 comments
Closed
Assignees

Comments

@LilyaBu
Copy link

LilyaBu commented Apr 15, 2020

Hello! Is it possible to implement snapshot functionality for nfs csi driver? May be same as hostpath csi driver.

@wozniakjan
Copy link
Member

wozniakjan commented Apr 15, 2020

Hi, I believe it could be possible but at the moment there is no plan to implement that quite yet. But if you'd like to take a stab at it, I will happily support you and review the code to get that merged.

@LilyaBu
Copy link
Author

LilyaBu commented Apr 15, 2020

Thank you. I interested in csi nfs because i would like to backup/restore persistent volumes as cluster resources, not as app resource. As i understand this can be realised with StorageClass objects.

@wozniakjan
Copy link
Member

wozniakjan commented Apr 16, 2020

In the whole scheme of things, StorageClass definitely plays an important role, but it is rather connected with another feature - dynamic provisioning of PVs.

Snapshots introduce own set of resources, https://kubernetes-csi.github.io/docs/snapshot-restore-feature.html is a great document to understand how snapshots under CSI work. This plugin will then need to figure out how to talk to the NFS server about supporting the second part of snapshots. This is probably the tricky bit, there was similar effort in OpenStack with cinder volumes https://specs.openstack.org/openstack/cinder-specs/specs/mitaka/nfs-snapshots.html, perhaps some of the ideas may apply here as well and could be reused.

@LilyaBu
Copy link
Author

LilyaBu commented Apr 17, 2020

Thank you for links and explanation.

@LilyaBu LilyaBu closed this as completed Apr 17, 2020
@wozniakjan
Copy link
Member

wozniakjan commented Apr 27, 2020

/reopen
/assign

#30 (comment) discusses an alternative direction to implementing snapshots. I could see myself finding a little bit of time in following weeks to give that a shot.

@k8s-ci-robot
Copy link
Contributor

@wozniakjan: Reopened this issue.

In response to this:

/reopen
/assign

#30 (comment) discusses an alternative direction to implement snapshots. I could see myself finding a little bit of time in following weeks to give that a shot.

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.

@k8s-ci-robot k8s-ci-robot reopened this Apr 27, 2020
@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 Jul 26, 2020
@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

@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 Aug 25, 2020
@wozniakjan
Copy link
Member

wozniakjan commented Aug 25, 2020

/remove-lifecycle rotten
hoping to have some time in September finally to work on this. Especially since there is some advancement on #30

@k8s-ci-robot k8s-ci-robot removed the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label Aug 25, 2020
@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 Nov 23, 2020
@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

@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 Dec 23, 2020
@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.

mdbooth pushed a commit to mdbooth/csi-driver-nfs that referenced this issue Apr 28, 2021
Bug 1867152: <carry>: Umount volumes with force
@guleng
Copy link

guleng commented Feb 25, 2022

@wozniakjan Has the snapshot function been implemented for storage where NFS becomes PV?

@wozniakjan
Copy link
Member

@guleng no, I couldn't find time, my apologies

@kamzata
Copy link

kamzata commented Dec 18, 2022

+1

2 similar comments
@navilg
Copy link
Contributor

navilg commented Dec 19, 2022

+1

@fontexD
Copy link

fontexD commented Jan 8, 2023

+1

@chaotec
Copy link

chaotec commented Feb 9, 2023

+1

1 similar comment
@mehdi-wsc
Copy link

+1

@wozniakjan
Copy link
Member

/reopen

@k8s-ci-robot k8s-ci-robot reopened this Mar 9, 2023
@k8s-ci-robot
Copy link
Contributor

@wozniakjan: Reopened this issue.

In response to this:

/reopen

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.

@wozniakjan
Copy link
Member

wozniakjan commented Mar 9, 2023

resurrecting from the rotten land, taking a first small step by proposing a draft on volume-to-volume cloning #426. If cp -a is an acceptable approach, would like to continue with proposing snapshots as tarballs stored in appropriate path on the NFS server, clone from snapshots could be similarly trivial then as untar to a proper PVC path.

@fontexD
Copy link

fontexD commented Mar 9, 2023

Sounds look a good idea!

@wozniakjan
Copy link
Member

/remove-lifecycle rotten

@k8s-ci-robot k8s-ci-robot removed the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label Mar 10, 2023
@wozniakjan
Copy link
Member

#426 merged, I will try to see if I can implement and propose tar and untar snapshots now

@wozniakjan
Copy link
Member

I would like to continue and propose the tarball snapshots in #430, any comments and ideas are welcome.

@wozniakjan
Copy link
Member

Basic snapshots as tarballs are implemented. Not the most efficient solution but it is a solution nevertheless and at the moment, afaik pure NFS doesn't have room for anything substantially better.

proposing to
/close

@k8s-ci-robot
Copy link
Contributor

@wozniakjan: Closing this issue.

In response to this:

Basic snapshots as tarballs are implemented. Not the most efficient solution but it is a solution nevertheless and at the moment, afaik pure NFS doesn't have room for anything substantially better.

proposing to
/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
None yet
Projects
None yet
Development

No branches or pull requests

10 participants