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

Allow plugin to return OK if NodeUnpublishVolume cannot find a volume #433

Open
timoreimann opened this issue May 20, 2020 · 1 comment
Open

Comments

@timoreimann
Copy link

In #375, the spec was changed to allow plugins to return OK during ControllerPublishVolume if a volume is not found, thereby solving #373. A similar situation can arise for NodeUnpublishVolume when, say, a previously mounted volume has already been unmounted out-of-band, and the plugin decides that there simply is no more work to do. For such cases, it should not be okay to return OK from NodeUnpublishVolume as well.

I propose we carry over the corresponding amendments done in the context of ControllerPublishVolume to NodeUnpublishVolume. I'd be happy to carry out the spec update if this request finds consent.

This issue was motivated by a discussion that happened on kubernetes-csi/csi-test#258.

/cc @pohly @msau42 @jsafrane @maennchen

timoreimann added a commit to timoreimann/csi-test that referenced this issue May 20, 2020
The "should fail when the volume is missing" test for
NodeUnpublishVolume verifies that a NotFound error occurs when the
endpoint is invoked for a missing volume. However, this expectation
really only holds for volume types that are locally attached, such as
local disks or iscsi. Specifically, it would not hold for
network-attached storage where it is fine to return Ok if the mount
point does not exist.

This change introduces a flag to gate execution of the test, defaulting
it not running since that was the behavior we have had before. Once
container-storage-interface/spec#433 is
addressed, we can update the tests acccordingly.
timoreimann added a commit to timoreimann/csi-test that referenced this issue May 20, 2020
The "should fail when the volume is missing" test for
NodeUnpublishVolume verifies that a NotFound error occurs when the
endpoint is invoked for a missing volume. However, this expectation
really only holds for volume types that are locally attached, such as
local disks or iscsi. Specifically, it would not hold for
network-attached storage where it is fine to return Ok if the mount
point does not exist.
container-storage-interface/spec#433 was filed
to improve the spec in this regard.

For now we remove the test as it seems to block more people than it
helps.
@timoreimann
Copy link
Author

Would love to hear what folks think of this proposal. Thanks in advance.

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

No branches or pull requests

1 participant