@@ -313,10 +313,10 @@ message ControllerPublishVolumeRequest {
313
313
string volume_id = 2 ;
314
314
315
315
// The ID of the node. This field is OPTIONAL. The CO SHALL set (or
316
- // clear) this field to match the `NodeID` returned by `GetNodeID`.
317
- // `GetNodeID` is allowed to omit `NodeID` from a successful `Result`;
316
+ // clear) this field to match the node ID returned by `GetNodeID`.
317
+ // `GetNodeID` is allowed to omit node ID from a successful `Result`;
318
318
// in such cases the CO SHALL NOT specify this field.
319
- NodeID node_id = 3 ;
319
+ string node_id = 3 ;
320
320
321
321
// The capability of the volume the CO expects the volume to have.
322
322
// This is a REQUIRED field.
@@ -351,14 +351,6 @@ message ControllerPublishVolumeResponse {
351
351
Error error = 2 ;
352
352
}
353
353
}
354
-
355
- message NodeID {
356
- // Information about a node in the form of key-value pairs. This
357
- // information is opaque to the CO. Given this information will be
358
- // passed around by the CO, it is RECOMMENDED that each Plugin keeps
359
- // this information as small as possible. This field is REQUIRED.
360
- map <string , string > values = 1 ;
361
- }
362
354
////////
363
355
////////
364
356
message ControllerUnpublishVolumeRequest {
@@ -369,15 +361,15 @@ message ControllerUnpublishVolumeRequest {
369
361
string volume_id = 2 ;
370
362
371
363
// The ID of the node. This field is OPTIONAL. The CO SHALL set (or
372
- // clear) this field to match the `NodeID` returned by `GetNodeID`.
373
- // `GetNodeID` is allowed to omit `NodeID` from a successful `Result`;
364
+ // clear) this field to match the node ID returned by `GetNodeID`.
365
+ // `GetNodeID` is allowed to omit node ID from a successful `Result`;
374
366
// in such cases the CO SHALL NOT specify this field.
375
367
//
376
- // If `GetNodeID` does not omit `NodeID` from a successful `Result`,
368
+ // If `GetNodeID` does not omit node ID from a successful `Result`,
377
369
// the CO MAY omit this field as well, indicating that it does not
378
370
// know which node the volume was previously used. The Plugin SHOULD
379
371
// return an Error if this is not supported.
380
- NodeID node_id = 3 ;
372
+ string node_id = 3 ;
381
373
382
374
// End user credentials used to authenticate/authorize controller
383
375
// unpublish request.
@@ -655,7 +647,7 @@ message GetNodeIDResponse {
655
647
// `ControllerPublishVolume`. This is an OPTIONAL field. If unset,
656
648
// the CO SHALL leave the `node_id` field unset in
657
649
// `ControllerPublishVolume`.
658
- NodeID node_id = 1 ;
650
+ string node_id = 1 ;
659
651
}
660
652
661
653
// One of the following fields MUST be specified.
@@ -984,10 +976,10 @@ message Error {
984
976
// node before retrying with exponential back off.
985
977
VOLUME_ALREADY_PUBLISHED = 5 ;
986
978
987
- // Indicates that a node corresponding to the specified `NodeID`
979
+ // Indicates that a node corresponding to the specified node ID
988
980
// does not exist.
989
981
//
990
- // Recovery behavior: Caller SHOULD verify that the `NodeID` is
982
+ // Recovery behavior: Caller SHOULD verify that the node ID is
991
983
// correct and that the node is available and has not been
992
984
// terminated or deleted before retrying with exponential backoff.
993
985
NODE_DOES_NOT_EXIST = 6 ;
@@ -997,7 +989,7 @@ message Error {
997
989
// number of nodes and therefore this operation can not be
998
990
// completed until the volume is detached from at least one of the
999
991
// existing nodes. When this error code is returned, the Plugin
1000
- // MUST also specify the `NodeId` of all the nodes the volume is
992
+ // MUST also specify the node ID of all the nodes the volume is
1001
993
// attached to.
1002
994
//
1003
995
// Recovery behavior: Caller MAY use the provided `node_ids`
@@ -1009,12 +1001,12 @@ message Error {
1009
1001
UNSUPPORTED_VOLUME_TYPE = 10 ;
1010
1002
UNSUPPORTED_FS_TYPE = 11 ;
1011
1003
1012
- // Indicates that the specified `NodeID` is not allowed or
1004
+ // Indicates that the specified node ID is not allowed or
1013
1005
// understood by the Plugin, or the Plugin does not support the
1014
- // operation without a `NodeID` . More human-readable information
1006
+ // operation without a node ID . More human-readable information
1015
1007
// MAY be provided in the `error_description` field.
1016
1008
//
1017
- // Recovery behavior: Caller MUST fix the `NodeID` before
1009
+ // Recovery behavior: Caller MUST fix the node ID before
1018
1010
// retrying.
1019
1011
INVALID_NODE_ID = 8 ;
1020
1012
}
@@ -1029,7 +1021,7 @@ message Error {
1029
1021
// On `VOLUME_ALREADY_ATTACHED` and `MAX_ATTACHED_NODES` errors,
1030
1022
// this field contains the node(s) that the specified volume is
1031
1023
// already attached to.
1032
- repeated NodeID node_ids = 3 ;
1024
+ repeated string node_ids = 3 ;
1033
1025
}
1034
1026
1035
1027
// `ControllerUnpublishVolume` specific error.
@@ -1084,28 +1076,28 @@ message Error {
1084
1076
// deleted before retrying with exponential back off.
1085
1077
VOLUME_DOES_NOT_EXIST = 4 ;
1086
1078
1087
- // Indicates that a node corresponding to the specified `NodeID`
1079
+ // Indicates that a node corresponding to the specified node ID
1088
1080
// does not exist.
1089
1081
//
1090
- // Recovery behavior: Caller SHOULD verify that the `NodeID` is
1082
+ // Recovery behavior: Caller SHOULD verify that the node ID is
1091
1083
// correct and that the node is available and has not been
1092
1084
// terminated or deleted before retrying.
1093
1085
NODE_DOES_NOT_EXIST = 5 ;
1094
1086
1095
- // Indicates that the specified `NodeID` is not allowed or
1087
+ // Indicates that the specified node ID is not allowed or
1096
1088
// understood by the Plugin. More human-readable information MAY
1097
1089
// be provided in the `error_description` field.
1098
1090
//
1099
- // Recovery behavior: Caller MUST fix the `NodeID` before
1091
+ // Recovery behavior: Caller MUST fix the node ID before
1100
1092
// retrying.
1101
1093
INVALID_NODE_ID = 6 ;
1102
1094
1103
1095
VOLUME_NOT_ATTACHED_TO_SPECIFIED_NODE = 7 ;
1104
1096
1105
1097
// Indicates that the Plugin does not support the operation
1106
- // without a `NodeID` .
1098
+ // without a node ID .
1107
1099
//
1108
- // Recovery behavior: Caller MUST specify the `NodeID` before
1100
+ // Recovery behavior: Caller MUST specify the node ID before
1109
1101
// retrying.
1110
1102
NODE_ID_REQUIRED = 8 ;
1111
1103
}
0 commit comments