Skip to content

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

Merged
jieyu merged 1 commit into
container-storage-interface:masterfrom
davidz627:fix/relaxError
Aug 28, 2019
Merged

jieyu merged 1 commit into
container-storage-interface:masterfrom
davidz627:fix/relaxError

Conversation

@davidz627

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

/cc @ddebroy @gnufied @msau42 @jsafrane

@saad-ali saad-ali left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
Contributor Author

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

@julian-hj julian-hj left a comment

Copy link
Copy Markdown
Contributor

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