Skip to content

Commit

Permalink
Clarify idempotent for ControllerExpandVolume
Browse files Browse the repository at this point in the history
Add explicit documentation for clarity idempotent for
ControllerExpandVolume.

Signed-off-by: Xin Wang <[email protected]>
  • Loading branch information
Xin Wang committed Nov 4, 2019
1 parent 4731db0 commit cc1aeba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -1802,6 +1802,8 @@ The CO MUST implement the specified error recovery behavior when it encounters t
A Controller plugin MUST implement this RPC call if plugin has `EXPAND_VOLUME` controller capability.
This RPC allows the CO to expand the size of a volume.

This operation MUST be idempotent. If a volume corresponding to the specified volume ID is larger than or equal to the capacity requirements after expansion, the plugin MUST reply 0 OK.

This call MAY be made by the CO during any time in the lifecycle of the volume after creation if plugin has `VolumeExpansion.ONLINE` capability.
If plugin has `EXPAND_VOLUME` node capability, then `NodeExpandVolume` MUST be called after successful `ControllerExpandVolume` and `node_expansion_required` in `ControllerExpandVolumeResponse` is `true`.

Expand Down

0 comments on commit cc1aeba

Please sign in to comment.