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

fix(csi): handle duplicate snapshot request and support Snapshot V1beta1 APIs #70

Merged
merged 5 commits into from
Feb 5, 2020

Conversation

prateekpandey14
Copy link
Contributor

@prateekpandey14 prateekpandey14 commented Jan 28, 2020

  • update the csi-snapshotter volumesnapshot and
    volumesnapshotcontent CRD's to v1beta1 APIs
  • Add openAPI validations in snapshot CRD's
  • add snapshot controller statefulsets container as part of v1beta1
    stable APIs
  • Update csi snapshotter and provisioner image to required
    versions

CSIDriver Resource
The CSIDriver Kubernetes API object serves two purposes:

  • Simplify driver discovery :
    If a CSI driver creates a CSIDriver object, Kubernetes users can easily discover the CSI Drivers installed on their cluster (simply by issuing kubectl get CSIDriver)

  • Customizing Kubernetes behavior:
    Kubernetes has a default set of behaviors when dealing with CSI Drivers (for example, it calls the Attach/Detach operations by default). This object allows CSI drivers to specify how Kubernetes should interact with it.

more info https://kubernetes-csi.github.io/docs/csi-driver-object.html

Note:

  • Snapshot-controller refactoring and v1beta API fixes the problem where snapshotter will call CreateSnapshot repeatedly to check if snapshot is ready for dynamic provisioning.
  • Other thing is to remove the extra time suffix in snapshotName which is not required IMO.

Signed-off-by: prateekpandey14 [email protected]

@codecov-io
Copy link

codecov-io commented Jan 28, 2020

Codecov Report

Merging #70 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #70   +/-   ##
=======================================
  Coverage   53.72%   53.72%           
=======================================
  Files          12       12           
  Lines         631      631           
=======================================
  Hits          339      339           
  Misses        272      272           
  Partials       20       20

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1811b95...ebac5d6. Read the comment docs.

@pawanpraka1
Copy link

can you explain what is issue ("handle duplicate snapshot request for csi-snapshot") and how this PR fixes that.

@prateekpandey14
Copy link
Contributor Author

prateekpandey14 commented Feb 3, 2020

can you explain what is issue ("handle duplicate snapshot request for csi-snapshot") and how this PR fixes that.

  • Snapshot-controller refactoring and v1beta API fixes the problem where snapshotter will call CreateSnapshot repeatedly to check if snapshot is ready for dynamic provisioning.
  • Other thing is to remove the extra time suffix in snapshotName which is not required IMO.

Note: Other robust solution for the the above problem is to have the getSnapshot() APIs support from istgt target to verify/get the snapshot before creating it.

Copy link

@pawanpraka1 pawanpraka1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good.

@pawanpraka1
Copy link

@prateekpandey14 , Please resolve the conflict.

- update the csi-snapshotter volumesnapshot and
  volumesnapshotcontent CRD's to v1beta1 APIs
- Add openAPI validations in snapshot CRD's
- add snapshot controller statefulsets container as part of v1beta1
  stable APIs
- Update csi snapshotter and provisioner image to required
  versions
- Update the snapshot and snapshotclass examples with v1beta1 APIs

Signed-off-by: prateekpandey14 <[email protected]>
Signed-off-by: prateekpandey14 <[email protected]>
Copy link

@pawanpraka1 pawanpraka1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good.

@prateekpandey14 prateekpandey14 changed the title fix(csi): handle duplicate snapshot request for csi-snapshot fix(csi): handle duplicate snapshot request and support Snapshot V1beta1 APIs Feb 5, 2020
@kmova kmova merged commit 6d3e536 into openebs-archive:master Feb 5, 2020
@prateekpandey14 prateekpandey14 deleted the fix-snapshot branch February 5, 2020 08:41
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.

5 participants