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

Change recovery behavior of NOT_FOUND in ControllerUnpublishVolume to a SHOULD #383

Merged
merged 1 commit into from
Aug 28, 2019

Conversation

davidz627
Copy link
Contributor

/assign @saad-ali @jdef @jieyu

follow-up to: #375

The reasoning why we want to change this to a SHOULD is because any caller has no actual way of verifying that the volume exists without "asking" the driver. There is currently no call to find that except ListVolumes which is an optional capability. Therefore, a MUST to verify the volume exist after this error is actually logically impossible.

We relax this to SHOULD and this actually works really well with the above OK code return if the driver already knows the volume/node is missing and that means the volume is ControllerUnpublished.

This is a non-breaking change to move the Spec into possibility of real compliance; however, in reality the Kubernetes external attacher already does not implement the recovery behaviors (for the above reasons). A proposal for making these changes less vague and more concrete (but breaking) is here: #382

@davidz627
Copy link
Contributor Author

/cc @ddebroy @gnufied @msau42 @jsafrane

Copy link
Member

@saad-ali saad-ali left a comment

Choose a reason for hiding this comment

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

This seems reasonable until we can fix all of this in CSI 2.0 (#382).
/lgtm
/approve

@julian-hj @ddebroy @jieyu ?

@davidz627
Copy link
Contributor Author

ping @julian-hj @ddebroy @jieyu
Anything that still needs to be done for review/approval? Thanks!

Copy link
Contributor

@julian-hj julian-hj left a comment

Choose a reason for hiding this comment

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

Sorry for the slow response. Looks good to me.

@jieyu jieyu merged commit 662e1cb into container-storage-interface:master Aug 28, 2019
@davidz627 davidz627 deleted the fix/relaxError branch August 28, 2019 00:26
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