Utility functions for storage.
|
GetDiskTemplatesOfStorageType(storage_type)
Given the storage type, returns a list of disk templates based on
that storage type. |
source code
|
|
|
GetLvmDiskTemplates()
Returns all disk templates that use LVM. |
source code
|
|
|
IsDiskTemplateEnabled(disk_template,
enabled_disk_templates)
Checks if a particular disk template is enabled. |
source code
|
|
|
IsFileStorageEnabled(enabled_disk_templates)
Checks if file storage is enabled. |
source code
|
|
|
IsSharedFileStorageEnabled(enabled_disk_templates)
Checks if shared file storage is enabled. |
source code
|
|
|
IsLvmEnabled(enabled_disk_templates)
Check whether or not any lvm-based disk templates are enabled. |
source code
|
|
|
LvmGetsEnabled(enabled_disk_templates,
new_enabled_disk_templates)
Checks whether lvm was not enabled before, but will be enabled after
the operation. |
source code
|
|
string
|
|
(string, string)
|
|
list of tuples (string, string)
|
GetStorageUnitsOfCluster(cfg,
include_spindles=False)
Examines the cluster's configuration and returns a list of storage
units and their storage keys, ordered by the order in which they are
enabled. |
source code
|
|
tuple
|
|