Revision 615551b2 lib/constants.py
b/lib/constants.py | ||
---|---|---|
457 | 457 |
# This only happens on an upgrade from a version of Ganeti that did not |
458 | 458 |
# support the 'enabled_disk_templates' so far. |
459 | 459 |
DISK_TEMPLATE_PREFERENCE = [ |
460 |
DT_BLOCK, |
|
461 |
DT_DISKLESS, |
|
460 | 462 |
DT_DRBD8, |
461 |
DT_PLAIN,
|
|
463 |
DT_EXT,
|
|
462 | 464 |
DT_FILE, |
463 |
DT_SHARED_FILE,
|
|
465 |
DT_PLAIN,
|
|
464 | 466 |
DT_RBD, |
465 |
DT_BLOCK, |
|
466 |
DT_DISKLESS, |
|
467 |
DT_EXT |
|
467 |
DT_SHARED_FILE, |
|
468 | 468 |
] |
469 | 469 |
|
470 | 470 |
DISK_TEMPLATES = compat.UniqueFrozenset([ |
... | ... | |
485 | 485 |
] |
486 | 486 |
|
487 | 487 |
# mapping of disk templates to storage types |
488 |
DISK_TEMPLATES_STORAGE_TYPE = {
|
|
488 |
MAP_DISK_TEMPLATE_STORAGE_TYPE = {
|
|
489 | 489 |
DT_BLOCK: ST_BLOCK, |
490 | 490 |
DT_DISKLESS: ST_DISKLESS, |
491 | 491 |
DT_DRBD8: ST_LVM_VG, |
Also available in: Unified diff