Skip to content

Commit

Permalink
Clarify topology information for volume and snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
xing-yang committed Oct 31, 2018
1 parent 0dbe605 commit 1c6b79a
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 82 deletions.
14 changes: 11 additions & 3 deletions csi.proto
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,11 @@ message CreateVolumeRequest {
// If this field is not specified and the SP has the
// VOLUME_ACCESSIBILITY_CONSTRAINTS plugin capability, the SP MAY
// choose where the provisioned volume is accessible from.
// When creating a volume from a snapshot, SP SHALL look at
// accessibility_requirements in CreateVolumeRequest and
// accessible_topology in CreateSnapshotResponse, and find an
// intersection of the two. This intersection SHALL be reflected in
// accessible_topology of CreateVolumeResponse.
TopologyRequirement accessibility_requirements = 7;
}

Expand Down Expand Up @@ -1183,9 +1188,12 @@ message NodeGetInfoResponse {
// VOLUME_ACCESSIBILITY_CONSTRAINTS or
// SNAPSHOT_ACCESSIBILITY_CONSTRAINTS plugin capability.
// COs MAY use this information along with the topology information
// returned in CreateVolumeResponse CreateSnapshotResponse to ensure
// that a given volume or snapshot is accessible from a given node
// when scheduling workloads.
// returned in CreateVolumeResponse or CreateSnapshotResponse to
// ensure that a given volume or snapshot is accessible from a given
// node when scheduling workloads.
// For creating a volume from a snapshot, the topology information in
// CreateVolumeResponse is the intersection of topologies accessible
// by the volume and its source snapshot.
// This field is OPTIONAL. If it is not specified, the CO MAY assume
// the node is not subject to any topological constraint, and MAY
// schedule workloads that reference any volume V, such that there are
Expand Down
Loading

0 comments on commit 1c6b79a

Please sign in to comment.