Revision 3636400f lib/constants.py
b/lib/constants.py | ||
---|---|---|
353 | 353 |
REPLACE_DISK_SEC = "replace_on_secondary" # replace disks on secondary |
354 | 354 |
REPLACE_DISK_CHG = "replace_new_secondary" # change secondary node |
355 | 355 |
REPLACE_DISK_AUTO = "replace_auto" |
356 |
REPLACE_MODES = frozenset([ |
|
357 |
REPLACE_DISK_PRI, |
|
358 |
REPLACE_DISK_SEC, |
|
359 |
REPLACE_DISK_CHG, |
|
360 |
REPLACE_DISK_AUTO, |
|
361 |
]) |
|
356 | 362 |
|
357 | 363 |
# Instance export mode |
358 | 364 |
EXPORT_MODE_LOCAL = "local" |
... | ... | |
414 | 420 |
TAG_CLUSTER = "cluster" |
415 | 421 |
TAG_NODE = "node" |
416 | 422 |
TAG_INSTANCE = "instance" |
423 |
VALID_TAG_TYPES = frozenset([ |
|
424 |
TAG_CLUSTER, |
|
425 |
TAG_NODE, |
|
426 |
TAG_INSTANCE, |
|
427 |
]) |
|
417 | 428 |
MAX_TAG_LEN = 128 |
418 | 429 |
MAX_TAGS_PER_OBJ = 4096 |
419 | 430 |
|
... | ... | |
718 | 729 |
IALLOCATOR_VERSION = 2 |
719 | 730 |
IALLOCATOR_DIR_IN = "in" |
720 | 731 |
IALLOCATOR_DIR_OUT = "out" |
732 |
VALID_IALLOCATOR_DIRECTIONS = frozenset([ |
|
733 |
IALLOCATOR_DIR_IN, |
|
734 |
IALLOCATOR_DIR_OUT, |
|
735 |
]) |
|
721 | 736 |
IALLOCATOR_MODE_ALLOC = "allocate" |
722 | 737 |
IALLOCATOR_MODE_RELOC = "relocate" |
723 | 738 |
IALLOCATOR_MODE_MEVAC = "multi-evacuate" |
739 |
VALID_IALLOCATOR_MODES = frozenset([ |
|
740 |
IALLOCATOR_MODE_ALLOC, |
|
741 |
IALLOCATOR_MODE_RELOC, |
|
742 |
IALLOCATOR_MODE_MEVAC, |
|
743 |
]) |
|
724 | 744 |
IALLOCATOR_SEARCH_PATH = _autoconf.IALLOCATOR_SEARCH_PATH |
725 | 745 |
|
726 | 746 |
# Job queue |
Also available in: Unified diff