Skip to content

Commit 94346e3

Browse files
committed
Clarify intent of errors on NodePublishVolume
1 parent 60ef999 commit 94346e3

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

csi.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,6 +1315,12 @@ message NodePublishVolumeRequest {
13151315
// If NodeStageVolume was previously called with volume_mount_group
13161316
// CO MUST ensure that NodePublishVolume uses the same
13171317
// volume_mount_group for the same volume_id.
1318+
// If Plugin does not have `STAGE_UNSTAGE_VOLUME` capability the CO
1319+
// MAY call NodePublishVolume with different volume_mount_group and
1320+
// target_path for same volume_id.
1321+
// If a Plugin does not support multiple calls of NodePublishVolume
1322+
// with different volume_mount_group and target_path for same volume
1323+
// on same node - it MAY return FAILED_PRECONDITION error.
13181324
// The value of volume_mount_group should be group
13191325
// identifier (as determined by underlying operating system)
13201326
// which would be associated with workload that uses the volume.

lib/go/csi/csi.pb.go

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2264,6 +2264,12 @@ message NodePublishVolumeRequest {
22642264
// If NodeStageVolume was previously called with volume_mount_group
22652265
// CO MUST ensure that NodePublishVolume uses the same
22662266
// volume_mount_group for the same volume_id.
2267+
// If Plugin does not have `STAGE_UNSTAGE_VOLUME` capability the CO
2268+
// MAY call NodePublishVolume with different volume_mount_group and
2269+
// target_path for same volume_id.
2270+
// If a Plugin does not support multiple calls of NodePublishVolume
2271+
// with different volume_mount_group and target_path for same volume
2272+
// on same node - it MAY return FAILED_PRECONDITION error.
22672273
// The value of volume_mount_group should be group
22682274
// identifier (as determined by underlying operating system)
22692275
// which would be associated with workload that uses the volume.

0 commit comments

Comments
 (0)