Skip to content

Commit 23d227b

Browse files
committed
Change error associated with readonly volume expansion
1 parent 87a27a2 commit 23d227b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spec.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2529,6 +2529,9 @@ The `staging_target_path` field is not required, for backwards compatibility, bu
25292529
Plugins can use this field to determine if `volume_path` is where the volume is published or staged,
25302530
and setting this field to non-empty allows plugins to function with less stored state on the node.
25312531

2532+
If a plugin does not support expansion of `readonly` volumes it can return `Volume in use or readonly` error and CO must not retry.
2533+
2534+
25322535
```protobuf
25332536
message NodeExpandVolumeRequest {
25342537
// The ID of the volume. This field is REQUIRED.
@@ -2576,7 +2579,7 @@ message NodeExpandVolumeResponse {
25762579
|-----------------------|-----------|-----------------------|-----------------------------------|
25772580
| Exceeds capabilities | 3 INVALID_ARGUMENT | Indicates that CO has specified capabilities not supported by the volume. | Caller MAY verify volume capabilities by calling ValidateVolumeCapabilities and retry with matching capabilities. |
25782581
| Volume does not exist | 5 NOT FOUND | Indicates that a volume corresponding to the specified volume_id does not exist. | Caller MUST verify that the volume_id is correct and that the volume is accessible and has not been deleted before retrying with exponential back off. |
2579-
| Volume in use | 9 FAILED_PRECONDITION | Indicates that the volume corresponding to the specified `volume_id` could not be expanded because it is node-published or node-staged and the underlying filesystem does not support expansion of published or staged volumes. | Caller MUST NOT retry. |
2582+
| Volume in use or readonly | 9 FAILED_PRECONDITION | Indicates that the volume corresponding to the specified `volume_id` could not be expanded because it is node-published or node-staged or readonly and the storage provider does not support expansion of published or staged or readonly volumes. | Caller MUST NOT retry. |
25802583
| Unsupported capacity_range | 11 OUT_OF_RANGE | Indicates that the capacity range is not allowed by the Plugin. More human-readable information MAY be provided in the gRPC `status.message` field. | Caller MUST fix the capacity range before retrying. |
25812584

25822585
## Protocol

0 commit comments

Comments
 (0)