Revision 1b02d7ef lib/constants.py
b/lib/constants.py | ||
---|---|---|
398 | 398 |
ST_LVM_VG, |
399 | 399 |
]) |
400 | 400 |
|
401 |
# This is used to order determine the default storage type when the list |
|
402 |
# of enabled storage types is inferred from the current state of the cluster. |
|
403 |
# This only happens on an upgrade from a version of Ganeti that did not |
|
404 |
# support the 'enabled_storage_methods' so far. |
|
405 |
STORAGE_TYPES_PREFERENCE = [ |
|
406 |
ST_LVM_VG, |
|
407 |
ST_FILE, |
|
408 |
ST_SHARED_FILE, |
|
409 |
ST_RADOS, |
|
410 |
ST_BLOCK, |
|
411 |
] |
|
412 |
|
|
413 | 401 |
# Storage fields |
414 | 402 |
# first two are valid in LU context only, not passed to backend |
415 | 403 |
SF_NODE = "node" |
... | ... | |
458 | 446 |
DT_RBD = "rbd" |
459 | 447 |
DT_SHARED_FILE = "sharedfile" |
460 | 448 |
|
449 |
# This is used to order determine the default disk template when the list |
|
450 |
# of enabled disk templates is inferred from the current state of the cluster. |
|
451 |
# This only happens on an upgrade from a version of Ganeti that did not |
|
452 |
# support the 'enabled_disk_templates' so far. |
|
453 |
DISK_TEMPLATE_PREFERENCE = [ |
|
454 |
DT_DRBD8, |
|
455 |
DT_PLAIN, |
|
456 |
DT_FILE, |
|
457 |
DT_SHARED_FILE, |
|
458 |
DT_RBD, |
|
459 |
DT_BLOCK, |
|
460 |
DT_DISKLESS, |
|
461 |
DT_EXT |
|
462 |
] |
|
463 |
|
|
464 |
DISK_TEMPLATES = compat.UniqueFrozenset([ |
|
465 |
DT_DISKLESS, |
|
466 |
DT_PLAIN, |
|
467 |
DT_DRBD8, |
|
468 |
DT_FILE, |
|
469 |
DT_SHARED_FILE, |
|
470 |
DT_BLOCK, |
|
471 |
DT_RBD, |
|
472 |
DT_EXT |
|
473 |
]) |
|
474 |
|
|
475 |
# disk templates that are enabled by default |
|
476 |
DEFAULT_ENABLED_DISK_TEMPLATES = compat.UniqueFrozenset([ |
|
477 |
DT_DRBD8, |
|
478 |
DT_PLAIN, |
|
479 |
]) |
|
480 |
|
|
461 | 481 |
# mapping of disk templates to storage types |
462 | 482 |
DISK_TEMPLATES_STORAGE_TYPE = { |
463 | 483 |
DT_BLOCK: ST_BLOCK, |
... | ... | |
645 | 665 |
#: Give child process up to 5 seconds to exit after sending a signal |
646 | 666 |
CHILD_LINGER_TIMEOUT = 5.0 |
647 | 667 |
|
648 |
DISK_TEMPLATES = compat.UniqueFrozenset([ |
|
649 |
DT_DISKLESS, |
|
650 |
DT_PLAIN, |
|
651 |
DT_DRBD8, |
|
652 |
DT_FILE, |
|
653 |
DT_SHARED_FILE, |
|
654 |
DT_BLOCK, |
|
655 |
DT_RBD, |
|
656 |
DT_EXT |
|
657 |
]) |
|
658 |
|
|
659 | 668 |
FILE_DRIVER = compat.UniqueFrozenset([FD_LOOP, FD_BLKTAP]) |
660 | 669 |
|
661 | 670 |
# import/export config options |
Also available in: Unified diff