Update remote drive requiement of node composition for RSD 2.3

Change-Id: I4c115db47077c86b1ff6ac096ac72a418d3a1891
This commit is contained in:
Lin Yang 2018-09-07 10:02:55 -07:00
parent b525bda2a3
commit 4c84afaa2e
1 changed files with 25 additions and 17 deletions

View File

@ -130,28 +130,36 @@ class ComposeNode(command.Command):
help=('Array of requirements for remote drives that should be '
'created/connected to composed node. Each remote drives '
'requirement may contain one or more optional attributes:\n'
' - CapacityGiB: Type Int, Minimum drive capacity requested'
' for composed node\n\n'
' - iSCSIAddress: Type String, Defines TargetIQN of '
'RemoteTarget to be set for new Remote Target (should be '
'unique in PODM)\n\n'
' - Master: Object Defines master logical volume that '
'should be taken to create new remote target. It contains '
'following two properties: Type and Resource\n\n'
' - Type: Type String, Type of replication of master drive:'
' Clone - volume should be cloned, Snapshot - Copy on Write '
'should be created from indicated volume\n\n'
' - Resource: Object Reference to logical volume that '
'should be used as master for replication\n\n'
'For example:\n'
' - CapacityGiB: Positive value expected, required if '
'Master Drive supplied. Should be at least the size of '
'Logical Drive used as Master Drive\n\n'
' - Protocol: Defines protocol used to communicate with '
'attached drive. Currently supported: "iSCSI" '
'"NVMeOverFabrics"\n\n'
' - Master -> Type: One of allowed enumerated values ('
'"Snapshot" "Clone"). Required if Master Drive supplied\n\n'
' - Master -> Resource: URI of Master volume that should be'
' used for clone or snapshot operation\n\n'
' - Resource: Object Reference to particular local drive '
'that should be used in composed node\n\n'
'For example:\n\n'
'# Using existing NVMe over Fabrics Remote Drive\n'
'[{\n'
' "Protocol": "NVMeOverFabrics",\n'
' "Resource": {\n'
' "@odata.id": "/redfish/v1/StorageServices/NVMeoE1/'
'Volumes/1"\n'
' }\n'
'}]\n\n'
'# Using a Master Drive for fresh Remote Drive Creation\n'
'[{\n'
' "CapacityGiB": 80,\n'
' "iSCSIAddress": "iqn.oem.com:fedora21",\n'
' "Protocol": "NVMeOverFabrics",\n'
' "Master": {\n'
' "Type": "Snapshot",\n'
' "Resource": {\n'
' "@odata.id": "/redfish/v1/Services/RSS1/LogicalDrives'
'/sda1"\n'
' "@odata.id": "/redfish/v1/StorageServices/NVMeoE1/'
'Volumes/102"\n'
' }\n'
' }\n'
'}]'))