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

Clarify NOT_FOUND returned from ControllerUnpublishVolumeRequest #373

Closed
jsafrane opened this issue Aug 6, 2019 · 4 comments · Fixed by #375
Closed

Clarify NOT_FOUND returned from ControllerUnpublishVolumeRequest #373

jsafrane opened this issue Aug 6, 2019 · 4 comments · Fixed by #375

Comments

@jsafrane
Copy link
Contributor

jsafrane commented Aug 6, 2019

The spec says that NOT_FOUND means that a volume (or node) corresponding to the specified volume_id (node_id) does not exist.

But it does not say what does it mean to CO. When CO is sure that it sent the right IDs and something else must have deleted the volume or node, can CO assume that the volume was detached from the node automatically by SP when the volume/node was deleted? In this case, returning OK would have the same meaning - the volume has been unpublished and CO does not need to do anything.

CO has no way how to check / fix attachment of deleted volumes (or nodes), so it cannot do any cleanup when NOT_FOUND is returned.

@msau42
Copy link

msau42 commented Aug 6, 2019

NOT_FOUND handling is more relevant to Unpublish right?

@davidz627
Copy link
Contributor

davidz627 commented Aug 6, 2019

I would suggest that the SP should decide (based on behavior of the storage system) whether the node or volume being deleted means:

  1. The volume/node is assumed to be detached - return OK
  2. The volume/node may not be detached - return NOT_FOUND - CO has no remedying solution besides retrying (?)

The thinking here is because there may be a case where the node/volume is temporarily not found and not assumed as detached.

If the SP can reasonably assume the disk has been detached then this is not an error, it can simply return OK

@jsafrane jsafrane changed the title Clarify NOT_FOUND returned from ControllerPublishVolumeRequest Clarify NOT_FOUND returned from ControllerUnpublishVolumeRequest Aug 6, 2019
@jsafrane
Copy link
Contributor Author

jsafrane commented Aug 6, 2019

Yeah, sorry, I meant Unpublish

@saad-ali
Copy link
Member

saad-ali commented Aug 7, 2019

Discussed at community meeting. Notes here.

Conclusion: seems like a good idea. Clarify backwards compatibility plan. And then feel free to open PR. Would need to put prominent release note when this goes out.

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 a pull request may close this issue.

4 participants