This commit enables support for using 'MAX' as a possible value for size_gb for logical disks. When 'MAX' is used for a logical disk, that logical disk is created last. The remaining amount of space available is given to that logical disk. Multiple logical disks with 'MAX' may be specified, but might not be an actual use-case. Change-Id: I1af332285251667a2d40b8854a4f3c36753a3322
74 lines
3.3 KiB
JSON
74 lines
3.3 KiB
JSON
{
|
|
"title": "raid configuration json schema",
|
|
"type": "object",
|
|
"properties": {
|
|
"logical_disks": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"raid_level": {
|
|
"type": "string",
|
|
"enum": [ "0", "1", "5", "6", "1+0", "5+0", "6+0" ],
|
|
"description": "RAID level for the logical disk. Required."
|
|
},
|
|
"size_gb": {
|
|
"anyOf": [{
|
|
"type": "integer",
|
|
"minimum": 0,
|
|
"exclusiveMinimum": true
|
|
},
|
|
{
|
|
"type": "string",
|
|
"enum": [ "MAX" ]
|
|
}],
|
|
"description": "Size in GiB (Integer) for the logical disk. Use 'MAX' as size_gb if this logical disk is supposed to use the rest of the space available. Required."
|
|
},
|
|
"volume_name": {
|
|
"type": "string",
|
|
"description": "Name of the volume to be created. Optional."
|
|
},
|
|
"is_root_volume": {
|
|
"type": "boolean",
|
|
"description": "Specifies whether this disk is a root volume. Optional."
|
|
},
|
|
"share_physical_disks": {
|
|
"type": "boolean",
|
|
"description": "Specifies whether other logical disks can share physical disks with this logical disk. Optional."
|
|
},
|
|
"disk_type": {
|
|
"type": "string",
|
|
"enum": [ "hdd", "ssd" ],
|
|
"description": "Specifies the type of disk preferred. Valid values are 'hdd' and 'ssd'. Optional."
|
|
},
|
|
"interface_type": {
|
|
"type": "string",
|
|
"enum": [ "sata", "scsi", "sas" ],
|
|
"description": "Specifies the interface type of disk. Valid values are 'sata', 'scsi' and 'sas'. Optional."
|
|
},
|
|
"number_of_physical_disks": {
|
|
"type": "integer",
|
|
"minimum": 0,
|
|
"exclusiveMinimum": true,
|
|
"description": "Number of physical disks to use for this logical disk. Optional."
|
|
},
|
|
"controller": {
|
|
"type": "string",
|
|
"description": "Controller to use for this logical disk. Optional."
|
|
},
|
|
"physical_disks": {
|
|
"type": "array",
|
|
"items": { "type": "string" },
|
|
"description": "The physical disks to use for this logical disk. Optional"
|
|
}
|
|
},
|
|
"required": ["raid_level", "size_gb"],
|
|
"additionalProperties": false
|
|
},
|
|
"minItems": 1
|
|
}
|
|
},
|
|
"required": ["logical_disks"],
|
|
"additionalProperties": false
|
|
}
|