@@ -96,8 +96,8 @@ service Controller {
96
96
rpc ControllerExpandVolume (ControllerExpandVolumeRequest )
97
97
returns (ControllerExpandVolumeResponse ) {}
98
98
99
- rpc GetVolume ( GetVolumeRequest )
100
- returns (GetVolumeResponse ) {
99
+ rpc ControllerGetVolume ( ControllerGetVolumeRequest )
100
+ returns (ControllerGetVolumeResponse ) {
101
101
option (alpha_method) = true ;
102
102
}
103
103
}
@@ -855,10 +855,11 @@ message ListVolumesResponse {
855
855
// reported by the SP. The CO MUST be resilient to that.
856
856
repeated string published_node_ids = 1 ;
857
857
858
- // volume_condition shows error conditions reported by the SP.
858
+ // volume_condition shows information about the current health of
859
+ // the volume.
860
+ // This field is OPTIONAL.
859
861
// This field MUST be specified if the
860
862
// LIST_VOLUMES_VOLUME_CONDITION controller capability is supported.
861
- // This field is OPTIONAL.
862
863
VolumeCondition volume_condition = 2 [(alpha_field) = true ];
863
864
}
864
865
@@ -882,31 +883,34 @@ message ListVolumesResponse {
882
883
// An empty string is equal to an unspecified field value.
883
884
string next_token = 2 ;
884
885
}
885
- message GetVolumeRequest {
886
+ message ControllerGetVolumeRequest {
886
887
option (alpha_message) = true ;
887
888
888
889
// Identity information for a specific volume. This field is
889
- // REQUIRED. GetVolume will return with current volume information.
890
+ // REQUIRED. ControllerGetVolume will return with current
891
+ // volume information.
890
892
string volume_id = 1 ;
891
893
}
892
894
893
- message GetVolumeResponse {
895
+ message ControllerGetVolumeResponse {
894
896
option (alpha_message) = true ;
895
897
896
898
message VolumeStatus {
897
899
// A list of all `node_id` of nodes that the volume in this entry
898
900
// is controller published on.
899
901
// This field is OPTIONAL. If it is not specified and the SP has
900
- // the GET_VOLUME_PUBLISHED_NODES controller capability, the CO
902
+ // the PUBLISH_UNPUBLISH_VOLUME controller capability, the CO
901
903
// MAY assume the volume is not controller published to any nodes.
902
904
// If the field is not specified and the SP does not have the
903
- // GET_VOLUME_PUBLISHED_NODES controller capability, the CO MUST
905
+ // PUBLISH_UNPUBLISH_VOLUME controller capability, the CO MUST
904
906
// not interpret this field.
905
907
// published_node_ids MAY include nodes not published to or
906
908
// reported by the SP. The CO MUST be resilient to that.
907
909
repeated string published_node_ids = 1 ;
908
910
909
- // volume_condition shows error conditions reported by the SP.
911
+ // volume_condition shows information about the current health of
912
+ // the volume.
913
+ // This field is OPTIONAL.
910
914
// This field MUST be specified if the
911
915
// GET_VOLUME_VOLUME_CONDITION controller capability is supported.
912
916
VolumeCondition volume_condition = 2 ;
@@ -995,19 +999,14 @@ message ControllerServiceCapability {
995
999
LIST_VOLUMES_PUBLISHED_NODES = 10 ;
996
1000
997
1001
// Indicates the SP supports the
998
- // ListVolumesResponse.entry.volume_condition field
999
- LIST_VOLUMES_VOLUME_CONDITION = 11 [(alpha_enum_value) = true ];
1002
+ // ListVolumesResponse.entry.status.volume_condition field
1003
+ // if SP also supports LIST_VOLUMES capability, or supports the
1004
+ // ControllerGetVolumeResponse.status.volume_condition field
1005
+ // if SP also supports GET_VOLUME capability
1006
+ VOLUME_CONDITION = 11 [(alpha_enum_value) = true ];
1000
1007
1001
- // Indicates the SP supports the GetVolume RPC
1008
+ // Indicates the SP supports the ControllerGetVolume RPC
1002
1009
GET_VOLUME = 12 [(alpha_enum_value) = true ];
1003
-
1004
- // Indicates the SP supports the
1005
- // GetVolumeResponse.volume_condition field
1006
- GET_VOLUME_VOLUME_CONDITION = 13 [(alpha_enum_value) = true ];
1007
-
1008
- // Indicates the SP supports the
1009
- // GetVolumesResponse.published_node_ids field
1010
- GET_VOLUME_PUBLISHED_NODES = 14 [(alpha_enum_value) = true ];
1011
1010
}
1012
1011
1013
1012
Type type = 1 ;
@@ -1367,8 +1366,7 @@ message VolumeCondition {
1367
1366
option (alpha_message) = true ;
1368
1367
1369
1368
// Indicates the health condition of a volume is not normal.
1370
- // This field is OPTIONAL. If not present, it indicates the
1371
- // health condition is unknown.
1369
+ // This field is REQUIRED.
1372
1370
.google.protobuf.BoolValue abnormal = 1 ;
1373
1371
1374
1372
// The message describing the health condition of the volume.
0 commit comments