-
Notifications
You must be signed in to change notification settings - Fork 99
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
feat(snapshot): add snapshot support for LVM PV #12
Conversation
98a5dbf
to
d0d48a1
Compare
848399e
to
2f5b805
Compare
Signed-off-by: Akhil Mohan <[email protected]>
Signed-off-by: Akhil Mohan <[email protected]>
Signed-off-by: Akhil Mohan <[email protected]>
Signed-off-by: Akhil Mohan <[email protected]>
Signed-off-by: Akhil Mohan <[email protected]>
Signed-off-by: Akhil Mohan <[email protected]>
Signed-off-by: Akhil Mohan <[email protected]>
Signed-off-by: Akhil Mohan <[email protected]>
Signed-off-by: Akhil Mohan <[email protected]>
Signed-off-by: Akhil Mohan <[email protected]>
Signed-off-by: Akhil Mohan <[email protected]>
Signed-off-by: Akhil Mohan <[email protected]>
Signed-off-by: Akhil Mohan <[email protected]>
Signed-off-by: Akhil Mohan <[email protected]>
Signed-off-by: Akhil Mohan <[email protected]>
Signed-off-by: Akhil Mohan <[email protected]>
Signed-off-by: Akhil Mohan <[email protected]>
d177336
to
95e5413
Compare
Signed-off-by: Akhil Mohan <[email protected]>
Signed-off-by: Akhil Mohan <[email protected]>
Signed-off-by: Akhil Mohan <[email protected]>
@pawanpraka1 Updated the |
@akhilerm we need to block that in ControllerExpandVolume. Also test this and see if behavior is fine. |
Signed-off-by: Akhil Mohan <[email protected]>
Signed-off-by: Akhil Mohan <[email protected]>
Done. @pawanpraka1. Yes , tested and its working fine. One issue I faced is in the following test case:
|
@akhilerm it uses exponential backoff to retry the next time. You might need to wait enough to get the call again? |
Signed-off-by: Akhil Mohan <[email protected]>
@pawanpraka1 Changing the grpc error code worked. |
Signed-off-by: Akhil Mohan <[email protected]>
Signed-off-by: Akhil Mohan <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #12 +/- ##
=========================================
- Coverage 1.41% 1.22% -0.19%
=========================================
Files 11 11
Lines 708 818 +110
=========================================
Hits 10 10
- Misses 698 808 +110
Continue to review full report at Codecov.
|
Signed-off-by: Akhil Mohan <[email protected]>
Signed-off-by: Akhil Mohan <[email protected]>
Signed-off-by: Akhil Mohan <[email protected]>
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.
looks good.
Why is this PR required? What issue does it fix?:
This PR adds support for LVM snapshot to the lvm-localPV CSI driver. The snapshots created will be readonly (as opposed to the default ReadWrite). Also, once snapshots are created for a volume, resize will not work for those volumes, since LVM does't support that.
To create a snapshot, create a snapshot class as given below and then create a
volumesnapshot
resourceWhat this PR does?:
k8s.gcr.io
for CSI componentsLimitation
Volumes with snapshots cannot be resized, as LVM does not support online resize of origin volumes with a snapshot.
ControllerExpandVolume
will error out if the volume to resized has any active snapshots.Does this PR require any upgrade changes?:
dm-snapshot
kernel module should be loaded for snapshot to workIf the changes in this PR are manually verified, list down the scenarios covered::
Any additional information for your reviewer? :
Mention if this PR is part of any design or a continuation of previous PRs
Checklist:
<type>(<scope>): <subject>