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

Call dynamic VS content creation unconditionally #335

Merged
merged 1 commit into from
Jul 24, 2020

Conversation

saikat-royc
Copy link
Contributor

@saikat-royc saikat-royc commented Jul 22, 2020

Irrespective of any error on the Volume Snapshot
object, initiate dynamic VolumeSnapshotContent object
creation. If any required parameters are not found, (e.g. missing
VS class), the VS content object creation would fail gracefully.

What type of PR is this?
/kind bug

What this PR does / why we need it:
Recover from intermittent errors in VolumeSnapshot object

Which issue(s) this PR fixes:

Fixes #333

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

Recover from intermittent errors in VolumeSnapshot object

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jul 22, 2020
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 22, 2020
@saikat-royc
Copy link
Contributor Author

/assign @xing-yang

@xing-yang
Copy link
Collaborator

Can you add a few test cases:

  1. Initial snapshot.Status = nil
  2. Initial snapshot.Status.Error = nil
  3. Initial snapshot.Status.Error != nil
    Initial Content is nil for all 3 cases. New content should be created.

@saikat-royc
Copy link
Contributor Author

Added test cases as mentioned above.

@saikat-royc
Copy link
Contributor Author

/retest

Irrespective of any error on the Volume Snapshot
object, initiate dynamic VolumeSnapshotContent object
creation. If any required parameters are not found, (e.g. missing
VS class), the VS content object creation would fail gracefully.
@xing-yang
Copy link
Collaborator

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 24, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: saikat-royc, xing-yang

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 24, 2020
@k8s-ci-robot k8s-ci-robot merged commit d2906ab into kubernetes-csi:master Jul 24, 2020
k8s-ci-robot added a commit that referenced this pull request Feb 26, 2021
Cherrypick #335 - "Call dynamic VS content creation unconditionally"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Snapshot controller cannot recover from missing volume snapshot class error
3 participants