-
Notifications
You must be signed in to change notification settings - Fork 547
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 snapshot creation, deletion and restore from snapshot, Clone from PVC support for CephFS volumes. #394
Conversation
As the ceph mgr interface currently provide the mechanism to do snapshot restore clone..etc, I am revisiting this PR to add support for the same in CSI layer. |
Unfortunately the upstream cephfs container image from above said release ( nautlius |
cf6711c
to
15a1cad
Compare
Marking this in |
3bfaec6
to
d7478ba
Compare
Compared to previous version of the error strings, this change depend on error strings like ENOENT, EEXIST, EINVAL..etc The format of the error strings change in different cluster versions and the error code return should not change. This also add extra error strings for snapshot and clone operation outputs Signed-off-by: Humble Chirammal <[email protected]>
Signed-off-by: Humble Chirammal <[email protected]>
From provided CSI volume ID this populate volumeOptions and snapshot identifier after connecting to the snapJournal. Signed-off-by: Humble Chirammal <[email protected]>
Signed-off-by: Humble Chirammal <[email protected]>
Signed-off-by: Humble Chirammal <[email protected]>
Signed-off-by: Humble Chirammal <[email protected]>
Signed-off-by: Humble Chirammal <[email protected]>
Signed-off-by: Humble Chirammal <[email protected]>
Also add functionality to generate snap from request and to get mon and clusterID from the request Signed-off-by: Humble Chirammal <[email protected]>
Signed-off-by: Humble Chirammal <[email protected]>
Signed-off-by: Humble Chirammal <[email protected]>
Signed-off-by: Humble Chirammal <[email protected]>
Signed-off-by: Humble Chirammal <[email protected]>
It also add helper routines like parsetime,doSnapshot..etc Signed-off-by: Humble Chirammal <[email protected]>
Signed-off-by: Humble Chirammal <[email protected]>
As we are populating the volume in other two test cases for clone and snapshot operation, we dont need a specific test case now. WriteDataInPod() function is also changed to take the pod spec and write some data to it Signed-off-by: Humble Chirammal <[email protected]>
Command Hey, I reacted but my real name is @Mergifyio |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing all the comments!
LGTM! Not scoring as I have not looked at e2e in totality. |
Thanks a lot @ShyamsundarR @Madhu-1 @nixpanic for taking effort to review such a big PR !! 👍 💯 |
Syncing latest changes from upstream devel for ceph-csi
Signed-off-by: Humble Chirammal [email protected]
Describe what this PR does
This PR will cover below features for CephFS:
Pending:
Additional Info:
*) Manual Testing of above functionalities are performed and its working as expected , see comment #394