Skip to content

1.0: Fixed ControllerUnpublish error handling#170

Merged
k8s-ci-robot merged 2 commits intokubernetes-csi:release-1.0from
jsafrane:fixed-controllerunpublish-1.0
Aug 12, 2019
Merged

1.0: Fixed ControllerUnpublish error handling#170
k8s-ci-robot merged 2 commits intokubernetes-csi:release-1.0from
jsafrane:fixed-controllerunpublish-1.0

Conversation

@jsafrane
Copy link
Copy Markdown
Contributor

@jsafrane jsafrane commented Aug 12, 2019

/kind bug

What this PR does / why we need it:
This is backport of #165 into 1.0 branch.

I added extra code to interpret NotFound as success (i.e. a volume is considered as detached), so behavior of NotFound error handling is not changed in a stable branch.

Fixed handling of ControllerUnpublish errors. The attacher will retry to ControllerUnpublish a volume after any error except for NotFound.

/assign @msau42

Any error from ControllerUnpublish can mean that a volume could be still
attached (or being detached).
The attacher should retry ControllerUnpublish after error. At the same
time, we do not want to change behavior of NotFound handling in stable
branches, so treat it as no error.
@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/bug Categorizes issue or PR as related to a bug. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Aug 12, 2019
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jsafrane

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

The pull request process is described here

Details 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 approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 12, 2019
@jsafrane jsafrane changed the title Fixed controllerunpublish 1.0 1.0: Fixed ControllerUnpublish error handling Aug 12, 2019
@msau42
Copy link
Copy Markdown
Collaborator

msau42 commented Aug 12, 2019

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 12, 2019
@k8s-ci-robot k8s-ci-robot merged commit a8a4bff into kubernetes-csi:release-1.0 Aug 12, 2019
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. kind/bug Categorizes issue or PR as related to a bug. 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/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants