Revision 5a904197 lib/cmdlib/common.py
b/lib/cmdlib/common.py | ||
---|---|---|
1104 | 1104 |
CheckStorageTypeEnabled(cluster, constants.ST_LVM_VG) |
1105 | 1105 |
else: |
1106 | 1106 |
possible_disk_templates = \ |
1107 |
utils.storage.GetDiskTemplatesOfStorageType(storage_type) |
|
1107 |
utils.storage.GetDiskTemplatesOfStorageTypes(storage_type)
|
|
1108 | 1108 |
for disk_template in possible_disk_templates: |
1109 | 1109 |
if disk_template in cluster.enabled_disk_templates: |
1110 | 1110 |
return |
... | ... | |
1174 | 1174 |
access = parameters[disk_template].get(constants.LDP_ACCESS, |
1175 | 1175 |
constants.DISK_KERNELSPACE) |
1176 | 1176 |
|
1177 |
if dt not in constants.DTS_HAVE_ACCESS
|
|
1177 |
if disk_template not in constants.DTS_HAVE_ACCESS:
|
|
1178 | 1178 |
continue |
1179 | 1179 |
|
1180 | 1180 |
#Check the combination of instance hypervisor, disk template and access |
Also available in: Unified diff