Module holding different constants.
|
RELEASE_VERSION = '2.8.4'
|
|
OS_API_V10 = 10
|
|
OS_API_V15 = 15
|
|
OS_API_V20 = 20
|
|
OS_API_VERSIONS = compat.UniqueFrozenset([OS_API_V10, OS_API_V...
|
|
VCS_VERSION = 'v2.8.4-23-g40d79e7'
|
|
EXPORT_VERSION = 0
|
|
RAPI_VERSION = 2
|
|
CONFIG_MAJOR = int(_autoconf.VERSION_MAJOR)
|
|
CONFIG_MINOR = int(_autoconf.VERSION_MINOR)
|
|
CONFIG_REVISION = 0
|
|
CONFIG_VERSION = BuildVersion(CONFIG_MAJOR, CONFIG_MINOR, CONF...
|
|
PROTOCOL_VERSION = BuildVersion(CONFIG_MAJOR, CONFIG_MINOR, 0)
RPC protocol version
|
|
DAEMONS_GROUP = 'root'
|
|
ADMIN_GROUP = 'root'
|
|
MASTERD_USER = 'root'
|
|
MASTERD_GROUP = 'root'
|
|
RAPI_USER = 'root'
|
|
RAPI_GROUP = 'root'
|
|
CONFD_USER = 'root'
|
|
CONFD_GROUP = 'root'
|
|
LUXID_USER = 'root'
|
|
LUXID_GROUP = 'root'
|
|
NODED_USER = 'root'
|
|
NODED_GROUP = 'root'
|
|
MOND_USER = 'root'
|
|
MOND_GROUP = 'root'
|
|
SSH_LOGIN_USER = 'root'
|
|
SSH_CONSOLE_USER = 'root'
|
|
CPU_PINNING_SEP = ":"
|
|
CPU_PINNING_ALL = "all"
|
|
CPU_PINNING_ALL_VAL = -1
|
|
CPU_PINNING_OFF = [CPU_PINNING_ALL_VAL]
|
|
CPU_PINNING_ALL_XEN = "0-63"
|
|
CPU_PINNING_ALL_KVM = 0xFFFFFFFF
|
|
DD_CMD = "dd"
|
|
MAX_WIPE_CHUNK = 1024
|
|
MIN_WIPE_CHUNK_PERCENT = 10
|
|
RUN_DIRS_MODE = 0775
|
|
SECURE_DIR_MODE = 0700
|
|
SECURE_FILE_MODE = 0600
|
|
ADOPTABLE_BLOCKDEV_ROOT = "/dev/disk/"
|
|
ENABLE_FILE_STORAGE = True
|
|
ENABLE_SHARED_FILE_STORAGE = True
|
|
ENABLE_CONFD = True
|
|
ENABLE_MOND = True
|
|
ENABLE_SPLIT_QUERY = True
|
|
ENABLE_RESTRICTED_COMMANDS = False
|
|
SSH = "ssh"
|
|
SCP = "scp"
|
|
NODED = "ganeti-noded"
|
|
CONFD = "ganeti-confd"
|
|
LUXID = "ganeti-luxid"
|
|
RAPI = "ganeti-rapi"
|
|
MASTERD = "ganeti-masterd"
|
|
MOND = "ganeti-mond"
|
|
DAEMONS = compat.UniqueFrozenset([NODED, CONFD, LUXID, RAPI, M...
|
|
DAEMONS_PORTS = {NODED:("tcp", 1811), CONFD:("udp", 1814), MON...
|
|
DEFAULT_NODED_PORT = DAEMONS_PORTS [NODED] [1]
|
|
DEFAULT_CONFD_PORT = DAEMONS_PORTS [CONFD] [1]
|
|
DEFAULT_MOND_PORT = DAEMONS_PORTS [MOND] [1]
|
|
DEFAULT_RAPI_PORT = DAEMONS_PORTS [RAPI] [1]
|
|
FIRST_DRBD_PORT = 11000
|
|
LAST_DRBD_PORT = 14999
|
|
DAEMONS_LOGBASE = {NODED: "node-daemon", CONFD: "conf-daemon",...
|
|
DAEMONS_LOGFILES = dict((daemon, pathutils.GetLogFilename(DAEM...
|
|
EXTRA_LOGREASON_ACCESS = "access"
|
|
EXTRA_LOGREASON_ERROR = "error"
|
|
VALID_EXTRA_LOGREASONS = compat.UniqueFrozenset([EXTRA_LOGREAS...
|
|
DAEMONS_EXTRA_LOGBASE = {MOND: {EXTRA_LOGREASON_ACCESS: "monit...
|
|
DAEMONS_EXTRA_LOGFILES = dict((daemon, dict((extra, pathutils....
|
|
DEV_CONSOLE = "/dev/console"
|
|
PROC_MOUNTS = "/proc/mounts"
|
|
LUXI_EOM = "\3"
|
|
LUXI_VERSION = BuildVersion(CONFIG_MAJOR, CONFIG_MINOR, CONFIG...
|
|
LUXI_OVERRIDE = "FORCE_LUXI_SOCKET"
Environment variable for the luxi override socket
|
|
LUXI_OVERRIDE_MASTER = "master"
|
|
LUXI_OVERRIDE_QUERY = "query"
|
|
LUXI_SOCKET_PERMS = 0660
|
|
SYSLOG_USAGE = 'no'
|
|
SYSLOG_NO = "no"
|
|
SYSLOG_YES = "yes"
|
|
SYSLOG_ONLY = "only"
|
|
SYSLOG_SOCKET = "/dev/log"
|
|
EXPORT_CONF_FILE = "config.ini"
|
|
XEN_BOOTLOADER = ''
|
|
XEN_KERNEL = '/boot/vmlinuz-3-xenU'
|
|
XEN_INITRD = '/boot/initrd-3-xenU'
|
|
XEN_CMD_XM = "xm"
|
|
XEN_CMD_XL = "xl"
|
|
XEN_CMD = 'xm'
|
|
KNOWN_XEN_COMMANDS = compat.UniqueFrozenset([XEN_CMD_XM, XEN_C...
|
|
XL_SSH_CMD = "ssh -l %s -oGlobalKnownHostsFile=%s" " -oUserKno...
|
|
KVM_PATH = '/usr/bin/kvm'
|
|
KVM_KERNEL = '/boot/vmlinuz-3-kvmU'
|
|
SOCAT_PATH = '/usr/bin/socat'
|
|
SOCAT_USE_ESCAPE = True
|
|
SOCAT_USE_COMPRESS = False
|
|
SOCAT_ESCAPE_CODE = "0x1d"
|
|
CONS_SSH = "ssh"
Console as SSH command
|
|
CONS_VNC = "vnc"
Console as VNC server
|
|
CONS_SPICE = "spice"
Console as SPICE server
|
|
CONS_MESSAGE = "msg"
Display a message for console access
|
|
CONS_ALL = compat.UniqueFrozenset([CONS_SSH, CONS_VNC, CONS_SP...
All console types
|
|
RSA_KEY_BITS = 2048
|
|
OPENSSL_CIPHERS = "HIGH:-DES:-3DES:-EXPORT:-ADH"
|
|
X509_CERT_SIGN_DIGEST = "SHA1"
|
|
X509_CERT_DEFAULT_VALIDITY = 365* 5
|
|
X509_CERT_CN = "ganeti.example.com"
|
|
X509_CERT_SIGNATURE_HEADER = "X-Ganeti-Signature"
|
|
IEM_IMPORT = "import"
|
|
IEM_EXPORT = "export"
|
|
IEC_NONE = "none"
|
|
IEC_GZIP = "gzip"
|
|
IEC_ALL = compat.UniqueFrozenset([IEC_NONE, IEC_GZIP,])
|
|
IE_CUSTOM_SIZE = "fd"
|
|
IE_MAGIC_RE = re.compile(r"^[-_.a-zA-Z0-9]{5,100}$")
|
|
IEIO_FILE = "file"
|
|
IEIO_RAW_DISK = "raw"
|
|
IEIO_SCRIPT = "script"
|
|
VALUE_DEFAULT = "default"
|
|
VALUE_AUTO = "auto"
|
|
VALUE_GENERATE = "generate"
|
|
VALUE_NONE = "none"
|
|
VALUE_TRUE = "true"
|
|
VALUE_FALSE = "false"
|
|
EXT_PLUGIN_MASK = re.compile("^[a-zA-Z0-9_-]+$")
|
|
HOOKS_PHASE_PRE = "pre"
|
|
HOOKS_PHASE_POST = "post"
|
|
HOOKS_NAME_CFGUPDATE = "config-update"
|
|
HOOKS_NAME_WATCHER = "watcher"
|
|
HOOKS_VERSION = 2
|
|
HOOKS_PATH = "/sbin:/bin:/usr/sbin:/usr/bin"
|
|
HTYPE_CLUSTER = "CLUSTER"
|
|
HTYPE_NODE = "NODE"
|
|
HTYPE_GROUP = "GROUP"
|
|
HTYPE_INSTANCE = "INSTANCE"
|
|
HTYPE_NETWORK = "NETWORK"
|
|
HKR_SKIP = 0
|
|
HKR_FAIL = 1
|
|
HKR_SUCCESS = 2
|
|
ST_BLOCK = "blockdev"
|
|
ST_DISKLESS = "diskless"
|
|
ST_EXT = "ext"
|
|
ST_FILE = "file"
|
|
ST_LVM_PV = "lvm-pv"
|
|
ST_LVM_VG = "lvm-vg"
|
|
ST_RADOS = "rados"
|
|
VALID_STORAGE_TYPES = compat.UniqueFrozenset([ST_BLOCK, ST_DIS...
|
|
SF_NODE = "node"
|
|
SF_TYPE = "type"
|
|
SF_NAME = "name"
|
|
SF_SIZE = "size"
|
|
SF_FREE = "free"
|
|
SF_USED = "used"
|
|
SF_ALLOCATABLE = "allocatable"
|
|
SO_FIX_CONSISTENCY = "fix-consistency"
|
|
VALID_STORAGE_FIELDS = compat.UniqueFrozenset([SF_NAME, SF_TYP...
|
|
MODIFIABLE_STORAGE_FIELDS = {ST_LVM_PV: frozenset([SF_ALLOCATA...
|
|
VALID_STORAGE_OPERATIONS = {ST_LVM_VG: frozenset([SO_FIX_CONSI...
|
|
DT_BLOCK = "blockdev"
|
|
DT_DISKLESS = "diskless"
|
|
DT_DRBD8 = "drbd"
|
|
DT_EXT = "ext"
|
|
DT_FILE = "file"
|
|
DT_PLAIN = "plain"
|
|
DT_RBD = "rbd"
|
|
DT_SHARED_FILE = "sharedfile"
|
|
DISK_TEMPLATE_PREFERENCE = [DT_DRBD8, DT_PLAIN, DT_FILE, DT_SH...
|
|
DISK_TEMPLATES = compat.UniqueFrozenset([DT_DISKLESS, DT_PLAIN...
|
|
DEFAULT_ENABLED_DISK_TEMPLATES = compat.UniqueFrozenset([DT_DR...
|
|
DISK_TEMPLATES_STORAGE_TYPE = {DT_BLOCK: ST_BLOCK, DT_DISKLESS...
|
|
DTS_INT_MIRROR = compat.UniqueFrozenset([DT_DRBD8])
|
|
DTS_EXT_MIRROR = compat.UniqueFrozenset([DT_DISKLESS, DT_SHARE...
|
|
DTS_NOT_LVM = compat.UniqueFrozenset([DT_DISKLESS, DT_FILE, DT...
|
|
DTS_GROWABLE = compat.UniqueFrozenset([DT_PLAIN, DT_DRBD8, DT_...
|
|
DTS_MAY_ADOPT = compat.UniqueFrozenset([DT_PLAIN, DT_BLOCK,])
|
|
DTS_MUST_ADOPT = compat.UniqueFrozenset([DT_BLOCK])
|
|
DTS_MIRRORED = frozenset.union(DTS_INT_MIRROR, DTS_EXT_MIRROR)
|
|
DTS_FILEBASED = compat.UniqueFrozenset([DT_FILE, DT_SHARED_FIL...
|
|
DTS_COPYABLE = compat.UniqueFrozenset([DT_FILE, DT_PLAIN,])
|
|
DTS_EXCL_STORAGE = compat.UniqueFrozenset([DT_PLAIN])
|
|
DTS_NO_FREE_SPACE_CHECK = compat.UniqueFrozenset([DT_FILE, DT_...
|
|
LD_LV = "lvm"
|
|
LD_DRBD8 = "drbd8"
|
|
LD_FILE = "file"
|
|
LD_BLOCKDEV = "blockdev"
|
|
LD_RBD = "rbd"
|
|
LD_EXT = "ext"
|
|
LOGICAL_DISK_TYPES = compat.UniqueFrozenset([LD_LV, LD_DRBD8, ...
|
|
LDS_BLOCK = compat.UniqueFrozenset([LD_LV, LD_DRBD8, LD_BLOCKD...
|
|
DRBD_HMAC_ALG = "md5"
|
|
DRBD_NET_PROTOCOL = "C"
|
|
DRBD_STATUS_FILE = "/proc/drbd"
|
|
DRBD_META_SIZE = 128
Size of DRBD meta block device
|
|
DRBD_B_NONE = "n"
|
|
DRBD_B_DISK_BARRIERS = "b"
|
|
DRBD_B_DISK_DRAIN = "d"
|
|
DRBD_B_DISK_FLUSH = "f"
|
|
DRBD_VALID_BARRIER_OPT = compat.UniqueFrozenset([frozenset([DR...
|
|
RBD_CMD = "rbd"
|
|
FD_LOOP = "loop"
|
|
FD_BLKTAP = "blktap"
|
|
FD_BLKTAP2 = "blktap2"
|
|
FD_DEFAULT = "loop"
|
|
LDS_DRBD = compat.UniqueFrozenset([LD_DRBD8])
|
|
DISK_RDONLY = "ro"
|
|
DISK_RDWR = "rw"
|
|
DISK_ACCESS_SET = compat.UniqueFrozenset([DISK_RDONLY, DISK_RD...
|
|
REPLACE_DISK_PRI = "replace_on_primary"
|
|
REPLACE_DISK_SEC = "replace_on_secondary"
|
|
REPLACE_DISK_CHG = "replace_new_secondary"
|
|
REPLACE_DISK_AUTO = "replace_auto"
|
|
REPLACE_MODES = compat.UniqueFrozenset([REPLACE_DISK_PRI, REPL...
|
|
EXPORT_MODE_LOCAL = "local"
|
|
EXPORT_MODE_REMOTE = "remote"
|
|
EXPORT_MODES = compat.UniqueFrozenset([EXPORT_MODE_LOCAL, EXPO...
|
|
INSTANCE_CREATE = "create"
|
|
INSTANCE_IMPORT = "import"
|
|
INSTANCE_REMOTE_IMPORT = "remote-import"
|
|
INSTANCE_CREATE_MODES = compat.UniqueFrozenset([INSTANCE_CREAT...
|
|
RIE_VERSION = 0
|
|
RIE_HANDSHAKE = "Hi, I'm Ganeti"
|
|
RIE_CERT_VALIDITY = 24* 60* 60
|
|
RIE_CONNECT_TIMEOUT = 180
|
|
RIE_CONNECT_ATTEMPT_TIMEOUT = 20
|
|
RIE_CONNECT_RETRIES = 10
|
|
CHILD_LINGER_TIMEOUT = 5.0
Give child process up to 5 seconds to exit after sending a signal
|
|
FILE_DRIVER = compat.UniqueFrozenset([FD_LOOP, FD_BLKTAP, FD_B...
|
|
INISECT_EXP = "export"
|
|
INISECT_INS = "instance"
|
|
INISECT_HYP = "hypervisor"
|
|
INISECT_BEP = "backend"
|
|
INISECT_OSP = "os"
|
|
DDM_ADD = "add"
|
|
DDM_MODIFY = "modify"
|
|
DDM_REMOVE = "remove"
|
|
DDMS_VALUES = compat.UniqueFrozenset([DDM_ADD, DDM_REMOVE])
|
|
DDMS_VALUES_WITH_MODIFY = DDMS_VALUES | frozenset([DDM_MODIFY,])
|
|
EXIT_SUCCESS = 0
|
|
EXIT_FAILURE = 1
|
|
EXIT_NOTCLUSTER = 5
|
|
EXIT_NOTMASTER = 11
|
|
EXIT_NODESETUP_ERROR = 12
|
|
EXIT_CONFIRMATION = 13
|
|
EXIT_UNKNOWN_FIELD = 14
Exit code for query operations with unknown fields
|
|
TAG_CLUSTER = "cluster"
|
|
TAG_NODEGROUP = "nodegroup"
|
|
TAG_NODE = "node"
|
|
TAG_INSTANCE = "instance"
|
|
TAG_NETWORK = "network"
|
|
VALID_TAG_TYPES = compat.UniqueFrozenset([TAG_CLUSTER, TAG_NOD...
|
|
MAX_TAG_LEN = 128
|
|
MAX_TAGS_PER_OBJ = 4096
|
|
DEFAULT_BRIDGE = "xen-br0"
|
|
CLASSIC_DRBD_SYNC_SPEED = 60* 1024
|
|
IP4_ADDRESS_LOCALHOST = "127.0.0.1"
|
|
IP4_ADDRESS_ANY = "0.0.0.0"
|
|
IP6_ADDRESS_LOCALHOST = "::1"
|
|
IP6_ADDRESS_ANY = "::"
|
|
IP4_VERSION = 4
|
|
IP6_VERSION = 6
|
|
VALID_IP_VERSIONS = compat.UniqueFrozenset([IP4_VERSION, IP6_V...
|
|
IP4_FAMILY = socket.AF_INET
|
|
IP6_FAMILY = socket.AF_INET6
|
|
TCP_PING_TIMEOUT = 10
|
|
DEFAULT_VG = "xenvg"
|
|
DEFAULT_DRBD_HELPER = "/bin/true"
|
|
MIN_VG_SIZE = 20480
|
|
DEFAULT_MAC_PREFIX = "aa:00:00"
|
|
DEFAULT_SHUTDOWN_TIMEOUT = 120
|
|
NODE_MAX_CLOCK_SKEW = 150
|
|
DISK_TRANSFER_CONNECT_TIMEOUT = 60
|
|
DISK_SEPARATOR = ':'
|
|
IP_COMMAND_PATH = '/bin/ip'
|
|
JOB_IDS_KEY = "jobs"
Key for job IDs in opcode result
|
|
RUNPARTS_STATUS = compat.UniqueFrozenset([RUNPARTS_SKIP, RUNPA...
|
|
RPC_TMO_URGENT = 60
|
|
RPC_TMO_FAST = 5* 60
|
|
RPC_TMO_NORMAL = 15* 60
|
|
RPC_TMO_SLOW = 3600
|
|
RPC_TMO_4HRS = 4* 3600
|
|
RPC_TMO_1DAY = 86400
|
|
RPC_CONNECT_TIMEOUT = 5
|
|
OS_SCRIPT_CREATE = "create"
|
|
OS_SCRIPT_IMPORT = "import"
|
|
OS_SCRIPT_EXPORT = "export"
|
|
OS_SCRIPT_RENAME = "rename"
|
|
OS_SCRIPT_VERIFY = "verify"
|
|
OS_SCRIPTS = compat.UniqueFrozenset([OS_SCRIPT_CREATE, OS_SCRI...
|
|
OS_API_FILE = "ganeti_api_version"
|
|
OS_VARIANTS_FILE = "variants.list"
|
|
OS_PARAMETERS_FILE = "parameters.list"
|
|
OS_VALIDATE_PARAMETERS = "parameters"
|
|
OS_VALIDATE_CALLS = compat.UniqueFrozenset([OS_VALIDATE_PARAME...
|
|
ES_ACTION_CREATE = "create"
|
|
ES_ACTION_REMOVE = "remove"
|
|
ES_ACTION_GROW = "grow"
|
|
ES_ACTION_ATTACH = "attach"
|
|
ES_ACTION_DETACH = "detach"
|
|
ES_ACTION_SETINFO = "setinfo"
|
|
ES_ACTION_VERIFY = "verify"
|
|
ES_SCRIPT_CREATE = "create"
|
|
ES_SCRIPT_REMOVE = "remove"
|
|
ES_SCRIPT_GROW = "grow"
|
|
ES_SCRIPT_ATTACH = "attach"
|
|
ES_SCRIPT_DETACH = "detach"
|
|
ES_SCRIPT_SETINFO = "setinfo"
|
|
ES_SCRIPT_VERIFY = "verify"
|
|
ES_SCRIPTS = frozenset([ES_SCRIPT_CREATE, ES_SCRIPT_REMOVE, ES...
|
|
ES_PARAMETERS_FILE = "parameters.list"
|
|
INSTANCE_REBOOT_SOFT = "soft"
|
|
INSTANCE_REBOOT_HARD = "hard"
|
|
INSTANCE_REBOOT_FULL = "full"
|
|
REBOOT_TYPES = compat.UniqueFrozenset([INSTANCE_REBOOT_SOFT, I...
|
|
INSTANCE_REBOOT_ALLOWED = "reboot"
|
|
INSTANCE_REBOOT_EXIT = "exit"
|
|
REBOOT_BEHAVIORS = compat.UniqueFrozenset([INSTANCE_REBOOT_ALL...
|
|
VTYPE_STRING = "string"
|
|
VTYPE_MAYBE_STRING = "maybe-string"
|
|
VTYPE_BOOL = "bool"
|
|
VTYPE_SIZE = "size"
|
|
VTYPE_INT = "int"
|
|
ENFORCEABLE_TYPES = compat.UniqueFrozenset([VTYPE_STRING, VTYP...
|
|
IFACE_NO_IP_VERSION_SPECIFIED = 0
|
|
VALID_SERIAL_SPEEDS = compat.UniqueFrozenset([75, 110, 300, 60...
|
|
HV_BOOT_ORDER = "boot_order"
|
|
HV_CDROM_IMAGE_PATH = "cdrom_image_path"
|
|
HV_KVM_CDROM2_IMAGE_PATH = "cdrom2_image_path"
|
|
HV_KVM_FLOPPY_IMAGE_PATH = "floppy_image_path"
|
|
HV_NIC_TYPE = "nic_type"
|
|
HV_DISK_TYPE = "disk_type"
|
|
HV_KVM_CDROM_DISK_TYPE = "cdrom_disk_type"
|
|
HV_VNC_BIND_ADDRESS = "vnc_bind_address"
|
|
HV_VNC_PASSWORD_FILE = "vnc_password_file"
|
|
HV_VNC_TLS = "vnc_tls"
|
|
HV_VNC_X509 = "vnc_x509_path"
|
|
HV_VNC_X509_VERIFY = "vnc_x509_verify"
|
|
HV_KVM_SPICE_BIND = "spice_bind"
|
|
HV_KVM_SPICE_IP_VERSION = "spice_ip_version"
|
|
HV_KVM_SPICE_PASSWORD_FILE = "spice_password_file"
|
|
HV_KVM_SPICE_LOSSLESS_IMG_COMPR = "spice_image_compression"
|
|
HV_KVM_SPICE_JPEG_IMG_COMPR = "spice_jpeg_wan_compression"
|
|
HV_KVM_SPICE_ZLIB_GLZ_IMG_COMPR = "spice_zlib_glz_wan_compress...
|
|
HV_KVM_SPICE_STREAMING_VIDEO_DETECTION = "spice_streaming_video"
|
|
HV_KVM_SPICE_AUDIO_COMPR = "spice_playback_compression"
|
|
HV_KVM_SPICE_USE_TLS = "spice_use_tls"
|
|
HV_KVM_SPICE_TLS_CIPHERS = "spice_tls_ciphers"
|
|
HV_KVM_SPICE_USE_VDAGENT = "spice_use_vdagent"
|
|
HV_ACPI = "acpi"
|
|
HV_PAE = "pae"
|
|
HV_USE_BOOTLOADER = "use_bootloader"
|
|
HV_BOOTLOADER_ARGS = "bootloader_args"
|
|
HV_BOOTLOADER_PATH = "bootloader_path"
|
|
HV_KERNEL_ARGS = "kernel_args"
|
|
HV_KERNEL_PATH = "kernel_path"
|
|
HV_INITRD_PATH = "initrd_path"
|
|
HV_ROOT_PATH = "root_path"
|
|
HV_SERIAL_CONSOLE = "serial_console"
|
|
HV_SERIAL_SPEED = "serial_speed"
|
|
HV_USB_MOUSE = "usb_mouse"
|
|
HV_KEYMAP = "keymap"
|
|
HV_DEVICE_MODEL = "device_model"
|
|
HV_INIT_SCRIPT = "init_script"
|
|
HV_MIGRATION_PORT = "migration_port"
|
|
HV_MIGRATION_BANDWIDTH = "migration_bandwidth"
|
|
HV_MIGRATION_DOWNTIME = "migration_downtime"
|
|
HV_MIGRATION_MODE = "migration_mode"
|
|
HV_USE_LOCALTIME = "use_localtime"
|
|
HV_DISK_CACHE = "disk_cache"
|
|
HV_SECURITY_MODEL = "security_model"
|
|
HV_SECURITY_DOMAIN = "security_domain"
|
|
HV_KVM_FLAG = "kvm_flag"
|
|
HV_VHOST_NET = "vhost_net"
|
|
HV_KVM_USE_CHROOT = "use_chroot"
|
|
HV_CPU_MASK = "cpu_mask"
|
|
HV_MEM_PATH = "mem_path"
|
|
HV_PASSTHROUGH = "pci_pass"
|
|
HV_BLOCKDEV_PREFIX = "blockdev_prefix"
|
|
HV_REBOOT_BEHAVIOR = "reboot_behavior"
|
|
HV_CPU_TYPE = "cpu_type"
|
|
HV_CPU_CAP = "cpu_cap"
|
|
HV_CPU_WEIGHT = "cpu_weight"
|
|
HV_CPU_CORES = "cpu_cores"
|
|
HV_CPU_THREADS = "cpu_threads"
|
|
HV_CPU_SOCKETS = "cpu_sockets"
|
|
HV_SOUNDHW = "soundhw"
|
|
HV_USB_DEVICES = "usb_devices"
|
|
HV_VGA = "vga"
|
|
HV_KVM_EXTRA = "kvm_extra"
|
|
HV_KVM_MACHINE_VERSION = "machine_version"
|
|
HV_KVM_PATH = "kvm_path"
|
|
HV_VIF_TYPE = "vif_type"
|
|
HV_VNET_HDR = "vnet_hdr"
|
|
HV_VIRIDIAN = "viridian"
|
|
HVS_PARAMETER_TYPES = {HV_KVM_PATH: VTYPE_STRING, HV_BOOT_ORDE...
|
|
HVS_PARAMETERS = frozenset(HVS_PARAMETER_TYPES.keys())
|
|
HVS_PARAMETER_TITLES = {HV_ACPI: "ACPI", HV_BOOT_ORDER: "Boot_...
|
|
HV_MIGRATION_COMPLETED = "completed"
|
|
HV_MIGRATION_ACTIVE = "active"
|
|
HV_MIGRATION_FAILED = "failed"
|
|
HV_MIGRATION_CANCELLED = "cancelled"
|
|
HV_MIGRATION_VALID_STATUSES = compat.UniqueFrozenset([HV_MIGRA...
|
|
HV_MIGRATION_FAILED_STATUSES = compat.UniqueFrozenset([HV_MIGR...
|
|
HV_KVM_MIGRATION_VALID_STATUSES = compat.UniqueFrozenset([HV_M...
|
|
HV_NODEINFO_KEY_VERSION = "hv_version"
|
|
HVST_MEMORY_TOTAL = "mem_total"
|
|
HVST_MEMORY_NODE = "mem_node"
|
|
HVST_MEMORY_HV = "mem_hv"
|
|
HVST_CPU_TOTAL = "cpu_total"
|
|
HVST_CPU_NODE = "cpu_node"
|
|
HVST_DEFAULTS = {HVST_MEMORY_TOTAL: 0, HVST_MEMORY_NODE: 0, HV...
|
|
HVSTS_PARAMETER_TYPES = {HVST_MEMORY_TOTAL: VTYPE_INT, HVST_ME...
|
|
HVSTS_PARAMETERS = frozenset(HVSTS_PARAMETER_TYPES.keys())
|
|
DS_DISK_TOTAL = "disk_total"
|
|
DS_DISK_RESERVED = "disk_reserved"
|
|
DS_DISK_OVERHEAD = "disk_overhead"
|
|
DS_DEFAULTS = {DS_DISK_TOTAL: 0, DS_DISK_RESERVED: 0, DS_DISK_...
|
|
DSS_PARAMETER_TYPES = {DS_DISK_TOTAL: VTYPE_INT, DS_DISK_RESER...
|
|
DSS_PARAMETERS = frozenset(DSS_PARAMETER_TYPES.keys())
|
|
DS_VALID_TYPES = compat.UniqueFrozenset([LD_LV])
|
|
BE_MEMORY = "memory"
|
|
BE_MAXMEM = "maxmem"
|
|
BE_MINMEM = "minmem"
|
|
BE_VCPUS = "vcpus"
|
|
BE_AUTO_BALANCE = "auto_balance"
|
|
BE_ALWAYS_FAILOVER = "always_failover"
|
|
BE_SPINDLE_USE = "spindle_use"
|
|
BES_PARAMETER_TYPES = {BE_MAXMEM: VTYPE_SIZE, BE_MINMEM: VTYPE...
|
|
BES_PARAMETER_TITLES = {BE_AUTO_BALANCE: "Auto_balance", BE_MA...
|
|
BES_PARAMETER_COMPAT = {BE_MEMORY: VTYPE_SIZE,}
|
|
BES_PARAMETERS = frozenset(BES_PARAMETER_TYPES.keys())
|
|
ISPEC_MEM_SIZE = "memory-size"
|
|
ISPEC_CPU_COUNT = "cpu-count"
|
|
ISPEC_DISK_COUNT = "disk-count"
|
|
ISPEC_DISK_SIZE = "disk-size"
|
|
ISPEC_NIC_COUNT = "nic-count"
|
|
ISPEC_SPINDLE_USE = "spindle-use"
|
|
ISPECS_PARAMETER_TYPES = {ISPEC_MEM_SIZE: VTYPE_INT, ISPEC_CPU...
|
|
ISPECS_PARAMETERS = frozenset(ISPECS_PARAMETER_TYPES.keys())
|
|
ISPECS_MINMAX = "minmax"
|
|
ISPECS_MIN = "min"
|
|
ISPECS_MAX = "max"
|
|
ISPECS_STD = "std"
|
|
IPOLICY_DTS = "disk-templates"
|
|
IPOLICY_VCPU_RATIO = "vcpu-ratio"
|
|
IPOLICY_SPINDLE_RATIO = "spindle-ratio"
|
|
ISPECS_MINMAX_KEYS = compat.UniqueFrozenset([ISPECS_MIN, ISPEC...
|
|
IPOLICY_PARAMETERS = compat.UniqueFrozenset([IPOLICY_VCPU_RATI...
|
|
IPOLICY_ALL_KEYS = IPOLICY_PARAMETERS | frozenset([ISPECS_MINM...
|
|
ND_OOB_PROGRAM = "oob_program"
|
|
ND_SPINDLE_COUNT = "spindle_count"
|
|
ND_EXCLUSIVE_STORAGE = "exclusive_storage"
|
|
NDS_PARAMETER_TYPES = {ND_OOB_PROGRAM: VTYPE_STRING, ND_SPINDL...
|
|
NDS_PARAMETERS = frozenset(NDS_PARAMETER_TYPES.keys())
|
|
NDS_PARAMETER_TITLES = {ND_OOB_PROGRAM: "OutOfBandProgram", ND...
|
|
LDP_RESYNC_RATE = "resync-rate"
|
|
LDP_STRIPES = "stripes"
|
|
LDP_BARRIERS = "disabled-barriers"
|
|
LDP_NO_META_FLUSH = "disable-meta-flush"
|
|
LDP_DEFAULT_METAVG = "default-metavg"
|
|
LDP_DISK_CUSTOM = "disk-custom"
|
|
LDP_NET_CUSTOM = "net-custom"
|
|
LDP_DYNAMIC_RESYNC = "dynamic-resync"
|
|
LDP_PLAN_AHEAD = "c-plan-ahead"
|
|
LDP_FILL_TARGET = "c-fill-target"
|
|
LDP_DELAY_TARGET = "c-delay-target"
|
|
LDP_MAX_RATE = "c-max-rate"
|
|
LDP_MIN_RATE = "c-min-rate"
|
|
LDP_POOL = "pool"
|
|
DISK_LD_TYPES = {LDP_RESYNC_RATE: VTYPE_INT, LDP_STRIPES: VTYP...
|
|
DISK_LD_PARAMETERS = frozenset(DISK_LD_TYPES.keys())
|
|
DRBD_RESYNC_RATE = "resync-rate"
|
|
DRBD_DATA_STRIPES = "data-stripes"
|
|
DRBD_META_STRIPES = "meta-stripes"
|
|
DRBD_DISK_BARRIERS = "disk-barriers"
|
|
DRBD_META_BARRIERS = "meta-barriers"
|
|
DRBD_DEFAULT_METAVG = "metavg"
|
|
DRBD_DISK_CUSTOM = "disk-custom"
|
|
DRBD_NET_CUSTOM = "net-custom"
|
|
DRBD_DYNAMIC_RESYNC = "dynamic-resync"
|
|
DRBD_PLAN_AHEAD = "c-plan-ahead"
|
|
DRBD_FILL_TARGET = "c-fill-target"
|
|
DRBD_DELAY_TARGET = "c-delay-target"
|
|
DRBD_MAX_RATE = "c-max-rate"
|
|
DRBD_MIN_RATE = "c-min-rate"
|
|
LV_STRIPES = "stripes"
|
|
RBD_POOL = "pool"
|
|
DISK_DT_TYPES = {DRBD_RESYNC_RATE: VTYPE_INT, DRBD_DATA_STRIPE...
|
|
DISK_DT_PARAMETERS = frozenset(DISK_DT_TYPES.keys())
|
|
OOB_POWER_ON = "power-on"
|
|
OOB_POWER_OFF = "power-off"
|
|
OOB_POWER_CYCLE = "power-cycle"
|
|
OOB_POWER_STATUS = "power-status"
|
|
OOB_HEALTH = "health"
|
|
OOB_COMMANDS = compat.UniqueFrozenset([OOB_POWER_ON, OOB_POWER...
|
|
OOB_POWER_STATUS_POWERED = "powered"
|
|
OOB_TIMEOUT = 60
|
|
OOB_POWER_DELAY = 2.0
|
|
OOB_STATUS_OK = "OK"
|
|
OOB_STATUS_WARNING = "WARNING"
|
|
OOB_STATUS_CRITICAL = "CRITICAL"
|
|
OOB_STATUS_UNKNOWN = "UNKNOWN"
|
|
OOB_STATUSES = compat.UniqueFrozenset([OOB_STATUS_OK, OOB_STAT...
|
|
PP_DEFAULT = "default"
|
|
NIC_MODE = "mode"
|
|
NIC_LINK = "link"
|
|
NIC_MODE_BRIDGED = "bridged"
|
|
NIC_MODE_ROUTED = "routed"
|
|
NIC_MODE_OVS = "openvswitch"
|
|
NIC_IP_POOL = "pool"
|
|
NIC_VALID_MODES = compat.UniqueFrozenset([NIC_MODE_BRIDGED, NI...
|
|
RESERVE_ACTION = "reserve"
|
|
RELEASE_ACTION = "release"
|
|
NICS_PARAMETER_TYPES = {NIC_MODE: VTYPE_STRING, NIC_LINK: VTYP...
|
|
NICS_PARAMETERS = frozenset(NICS_PARAMETER_TYPES.keys())
|
|
IDISK_SIZE = "size"
|
|
IDISK_MODE = "mode"
|
|
IDISK_ADOPT = "adopt"
|
|
IDISK_VG = "vg"
|
|
IDISK_METAVG = "metavg"
|
|
IDISK_PROVIDER = "provider"
|
|
IDISK_NAME = "name"
|
|
IDISK_PARAMS_TYPES = {IDISK_SIZE: VTYPE_SIZE, IDISK_MODE: VTYP...
|
|
IDISK_PARAMS = frozenset(IDISK_PARAMS_TYPES.keys())
|
|
MODIFIABLE_IDISK_PARAMS_TYPES = {IDISK_MODE: VTYPE_STRING, IDI...
|
|
MODIFIABLE_IDISK_PARAMS = frozenset(MODIFIABLE_IDISK_PARAMS_TY...
|
|
INIC_MAC = "mac"
|
|
INIC_IP = "ip"
|
|
INIC_MODE = "mode"
|
|
INIC_LINK = "link"
|
|
INIC_NETWORK = "network"
|
|
INIC_NAME = "name"
|
|
INIC_PARAMS_TYPES = {INIC_IP: VTYPE_MAYBE_STRING, INIC_LINK: V...
|
|
INIC_PARAMS = frozenset(INIC_PARAMS_TYPES.keys())
|
|
HT_XEN_PVM = "xen-pvm"
|
|
HT_FAKE = "fake"
|
|
HT_XEN_HVM = "xen-hvm"
|
|
HT_KVM = "kvm"
|
|
HT_CHROOT = "chroot"
|
|
HT_LXC = "lxc"
|
|
HYPER_TYPES = compat.UniqueFrozenset([HT_XEN_PVM, HT_FAKE, HT_...
|
|
HTS_REQ_PORT = compat.UniqueFrozenset([HT_XEN_HVM, HT_KVM])
|
|
VNC_BASE_PORT = 5900
|
|
VNC_DEFAULT_BIND_ADDRESS = "0.0.0.0"
|
|
HT_NIC_RTL8139 = "rtl8139"
|
|
HT_NIC_NE2K_PCI = "ne2k_pci"
|
|
HT_NIC_NE2K_ISA = "ne2k_isa"
|
|
HT_NIC_I82551 = "i82551"
|
|
HT_NIC_I85557B = "i82557b"
|
|
HT_NIC_I8259ER = "i82559er"
|
|
HT_NIC_PCNET = "pcnet"
|
|
HT_NIC_E1000 = "e1000"
|
|
HT_DISK_PARAVIRTUAL = "paravirtual"
|
|
HT_NIC_PARAVIRTUAL = "paravirtual"
|
|
HT_HVM_VALID_NIC_TYPES = compat.UniqueFrozenset([HT_NIC_RTL813...
|
|
HT_KVM_VALID_NIC_TYPES = compat.UniqueFrozenset([HT_NIC_RTL813...
|
|
HT_HVM_VIF_IOEMU = "ioemu"
|
|
HT_HVM_VIF_VIF = "vif"
|
|
HT_HVM_VALID_VIF_TYPES = compat.UniqueFrozenset([HT_HVM_VIF_IO...
|
|
HT_DISK_IOEMU = "ioemu"
|
|
HT_DISK_IDE = "ide"
|
|
HT_DISK_SCSI = "scsi"
|
|
HT_DISK_SD = "sd"
|
|
HT_DISK_MTD = "mtd"
|
|
HT_DISK_PFLASH = "pflash"
|
|
HT_CACHE_DEFAULT = "default"
|
|
HT_CACHE_NONE = "none"
|
|
HT_CACHE_WTHROUGH = "writethrough"
|
|
HT_CACHE_WBACK = "writeback"
|
|
HT_VALID_CACHE_TYPES = compat.UniqueFrozenset([HT_CACHE_DEFAUL...
|
|
HT_HVM_VALID_DISK_TYPES = compat.UniqueFrozenset([HT_DISK_PARA...
|
|
HT_KVM_VALID_DISK_TYPES = compat.UniqueFrozenset([HT_DISK_PARA...
|
|
HT_MOUSE_MOUSE = "mouse"
|
|
HT_MOUSE_TABLET = "tablet"
|
|
HT_KVM_VALID_MOUSE_TYPES = compat.UniqueFrozenset([HT_MOUSE_MO...
|
|
HT_BO_FLOPPY = "floppy"
|
|
HT_BO_CDROM = "cdrom"
|
|
HT_BO_DISK = "disk"
|
|
HT_BO_NETWORK = "network"
|
|
HT_KVM_VALID_BO_TYPES = compat.UniqueFrozenset([HT_BO_FLOPPY, ...
|
|
HT_KVM_SPICE_LOSSLESS_IMG_COMPR_AUTO_GLZ = "auto_glz"
|
|
HT_KVM_SPICE_LOSSLESS_IMG_COMPR_AUTO_LZ = "auto_lz"
|
|
HT_KVM_SPICE_LOSSLESS_IMG_COMPR_QUIC = "quic"
|
|
HT_KVM_SPICE_LOSSLESS_IMG_COMPR_GLZ = "glz"
|
|
HT_KVM_SPICE_LOSSLESS_IMG_COMPR_LZ = "lz"
|
|
HT_KVM_SPICE_LOSSLESS_IMG_COMPR_OFF = "off"
|
|
HT_KVM_SPICE_VALID_LOSSLESS_IMG_COMPR_OPTIONS = compat.UniqueF...
|
|
HT_KVM_SPICE_LOSSY_IMG_COMPR_AUTO = "auto"
|
|
HT_KVM_SPICE_LOSSY_IMG_COMPR_NEVER = "never"
|
|
HT_KVM_SPICE_LOSSY_IMG_COMPR_ALWAYS = "always"
|
|
HT_KVM_SPICE_VALID_LOSSY_IMG_COMPR_OPTIONS = compat.UniqueFroz...
|
|
HT_KVM_SPICE_VIDEO_STREAM_DETECTION_OFF = "off"
|
|
HT_KVM_SPICE_VIDEO_STREAM_DETECTION_ALL = "all"
|
|
HT_KVM_SPICE_VIDEO_STREAM_DETECTION_FILTER = "filter"
|
|
HT_KVM_SPICE_VALID_VIDEO_STREAM_DETECTION_OPTIONS = compat.Uni...
|
|
HT_SM_NONE = "none"
|
|
HT_SM_USER = "user"
|
|
HT_SM_POOL = "pool"
|
|
HT_KVM_VALID_SM_TYPES = compat.UniqueFrozenset([HT_SM_NONE, HT...
|
|
HT_KVM_ENABLED = "enabled"
|
|
HT_KVM_DISABLED = "disabled"
|
|
HT_KVM_FLAG_VALUES = compat.UniqueFrozenset([HT_KVM_ENABLED, H...
|
|
HT_MIGRATION_LIVE = "live"
|
|
HT_MIGRATION_NONLIVE = "non-live"
|
|
HT_MIGRATION_MODES = compat.UniqueFrozenset([HT_MIGRATION_LIVE...
|
|
VERIFY_NPLUSONE_MEM = "nplusone_mem"
|
|
VERIFY_OPTIONAL_CHECKS = compat.UniqueFrozenset([VERIFY_NPLUSO...
|
|
CV_TCLUSTER = "cluster"
|
|
CV_TGROUP = "group"
|
|
CV_TNODE = "node"
|
|
CV_TINSTANCE = "instance"
|
|
CV_ECLUSTERCFG = CV_TCLUSTER, "ECLUSTERCFG", "Cluster configur...
|
|
CV_ECLUSTERCERT = CV_TCLUSTER, "ECLUSTERCERT", "Cluster certif...
|
|
CV_ECLUSTERFILECHECK = CV_TCLUSTER, "ECLUSTERFILECHECK", "Clus...
|
|
CV_ECLUSTERDANGLINGNODES = CV_TNODE, "ECLUSTERDANGLINGNODES", ...
|
|
CV_ECLUSTERDANGLINGINST = CV_TNODE, "ECLUSTERDANGLINGINST", "S...
|
|
CV_EGROUPDIFFERENTPVSIZE = CV_TGROUP, "EGROUPDIFFERENTPVSIZE",...
|
|
CV_EINSTANCEBADNODE = CV_TINSTANCE, "EINSTANCEBADNODE", "Insta...
|
|
CV_EINSTANCEDOWN = CV_TINSTANCE, "EINSTANCEDOWN", "Instance no...
|
|
CV_EINSTANCELAYOUT = CV_TINSTANCE, "EINSTANCELAYOUT", "Instanc...
|
|
CV_EINSTANCEMISSINGDISK = CV_TINSTANCE, "EINSTANCEMISSINGDISK"...
|
|
CV_EINSTANCEFAULTYDISK = CV_TINSTANCE, "EINSTANCEFAULTYDISK", ...
|
|
CV_EINSTANCEWRONGNODE = CV_TINSTANCE, "EINSTANCEWRONGNODE", "I...
|
|
CV_EINSTANCESPLITGROUPS = CV_TINSTANCE, "EINSTANCESPLITGROUPS"...
|
|
CV_EINSTANCEPOLICY = CV_TINSTANCE, "EINSTANCEPOLICY", "Instanc...
|
|
CV_EINSTANCEUNSUITABLENODE = CV_TINSTANCE, "EINSTANCEUNSUITABL...
|
|
CV_ENODEDRBD = CV_TNODE, "ENODEDRBD", "Error parsing the DRBD ...
|
|
CV_ENODEDRBDHELPER = CV_TNODE, "ENODEDRBDHELPER", "Error cause...
|
|
CV_ENODEFILECHECK = CV_TNODE, "ENODEFILECHECK", "Error retriev...
|
|
CV_ENODEHOOKS = CV_TNODE, "ENODEHOOKS", "Communication failure...
|
|
CV_ENODEHV = CV_TNODE, "ENODEHV", "Hypervisor parameters verif...
|
|
CV_ENODELVM = CV_TNODE, "ENODELVM", "LVM-related node error"
|
|
CV_ENODEN1 = CV_TNODE, "ENODEN1", "Not enough memory to accomm...
|
|
CV_ENODENET = CV_TNODE, "ENODENET", "Network-related node error"
|
|
CV_ENODEOS = CV_TNODE, "ENODEOS", "OS-related node error"
|
|
CV_ENODEORPHANINSTANCE = CV_TNODE, "ENODEORPHANINSTANCE", "Unk...
|
|
CV_ENODEORPHANLV = CV_TNODE, "ENODEORPHANLV", "Unknown LVM log...
|
|
CV_ENODERPC = CV_TNODE, "ENODERPC", "Error during connection t...
|
|
CV_ENODESSH = CV_TNODE, "ENODESSH", "SSH-related node error"
|
|
CV_ENODEVERSION = CV_TNODE, "ENODEVERSION", "Protocol version ...
|
|
CV_ENODESETUP = CV_TNODE, "ENODESETUP", "Node setup error"
|
|
CV_ENODETIME = CV_TNODE, "ENODETIME", "Node returned invalid t...
|
|
CV_ENODEOOBPATH = CV_TNODE, "ENODEOOBPATH", "Invalid Out Of Ba...
|
|
CV_ENODEUSERSCRIPTS = CV_TNODE, "ENODEUSERSCRIPTS", "User scri...
|
|
CV_ENODEFILESTORAGEPATHS = CV_TNODE, "ENODEFILESTORAGEPATHS", ...
|
|
CV_ALL_ECODES = compat.UniqueFrozenset([CV_ECLUSTERCFG, CV_ECL...
|
|
CV_ALL_ECODES_STRINGS = compat.UniqueFrozenset(estr for(_, est...
|
|
NV_BRIDGES = "bridges"
|
|
NV_DRBDHELPER = "drbd-helper"
|
|
NV_DRBDLIST = "drbd-list"
|
|
NV_EXCLUSIVEPVS = "exclusive-pvs"
|
|
NV_FILELIST = "filelist"
|
|
NV_FILE_STORAGE_PATHS = "file-storage-paths"
|
|
NV_HVINFO = "hvinfo"
|
|
NV_HVPARAMS = "hvparms"
|
|
NV_HYPERVISOR = "hypervisor"
|
|
NV_INSTANCELIST = "instancelist"
|
|
NV_LVLIST = "lvlist"
|
|
NV_MASTERIP = "master-ip"
|
|
NV_NODELIST = "nodelist"
|
|
NV_NODENETTEST = "node-net-test"
|
|
NV_NODESETUP = "nodesetup"
|
|
NV_OOB_PATHS = "oob-paths"
|
|
NV_OSLIST = "oslist"
|
|
NV_PVLIST = "pvlist"
|
|
NV_TIME = "time"
|
|
NV_USERSCRIPTS = "user-scripts"
|
|
NV_VERSION = "version"
|
|
NV_VGLIST = "vglist"
|
|
NV_VMNODES = "vmnodes"
|
|
INSTST_RUNNING = "running"
|
|
INSTST_ADMINDOWN = "ADMIN_down"
|
|
INSTST_ADMINOFFLINE = "ADMIN_offline"
|
|
INSTST_NODEOFFLINE = "ERROR_nodeoffline"
|
|
INSTST_NODEDOWN = "ERROR_nodedown"
|
|
INSTST_WRONGNODE = "ERROR_wrongnode"
|
|
INSTST_ERRORUP = "ERROR_up"
|
|
INSTST_ERRORDOWN = "ERROR_down"
|
|
INSTST_ALL = compat.UniqueFrozenset([INSTST_RUNNING, INSTST_AD...
|
|
ADMINST_UP = "up"
|
|
ADMINST_DOWN = "down"
|
|
ADMINST_OFFLINE = "offline"
|
|
ADMINST_ALL = compat.UniqueFrozenset([ADMINST_UP, ADMINST_DOWN...
|
|
NR_REGULAR = "R"
|
|
NR_MASTER = "M"
|
|
NR_MCANDIDATE = "C"
|
|
NR_DRAINED = "D"
|
|
NR_OFFLINE = "O"
|
|
NR_ALL = compat.UniqueFrozenset([NR_REGULAR, NR_MASTER, NR_MCA...
|
|
SSL_CERT_EXPIRATION_WARN = 30
|
|
SSL_CERT_EXPIRATION_ERROR = 7
|
|
IALLOCATOR_VERSION = 2
|
|
IALLOCATOR_DIR_IN = "in"
|
|
IALLOCATOR_DIR_OUT = "out"
|
|
VALID_IALLOCATOR_DIRECTIONS = compat.UniqueFrozenset([IALLOCAT...
|
|
IALLOCATOR_MODE_ALLOC = "allocate"
|
|
IALLOCATOR_MODE_RELOC = "relocate"
|
|
IALLOCATOR_MODE_CHG_GROUP = "change-group"
|
|
IALLOCATOR_MODE_NODE_EVAC = "node-evacuate"
|
|
IALLOCATOR_MODE_MULTI_ALLOC = "multi-allocate"
|
|
VALID_IALLOCATOR_MODES = compat.UniqueFrozenset([IALLOCATOR_MO...
|
|
IALLOCATOR_SEARCH_PATH = ['/usr/lib/ganeti/iallocators']
|
|
DEFAULT_IALLOCATOR_SHORTCUT = "."
|
|
IALLOCATOR_NEVAC_PRI = "primary-only"
|
|
IALLOCATOR_NEVAC_SEC = "secondary-only"
|
|
IALLOCATOR_NEVAC_ALL = "all"
|
|
IALLOCATOR_NEVAC_MODES = compat.UniqueFrozenset([IALLOCATOR_NE...
|
|
NODE_EVAC_PRI = "primary-only"
|
|
NODE_EVAC_SEC = "secondary-only"
|
|
NODE_EVAC_ALL = "all"
|
|
NODE_EVAC_MODES = compat.UniqueFrozenset([NODE_EVAC_PRI, NODE_...
|
|
JOB_QUEUE_VERSION = 1
|
|
JOB_QUEUE_SIZE_HARD_LIMIT = 5000
|
|
JOB_QUEUE_FILES_PERMS = 0640
|
|
JOB_ID_TEMPLATE = r"\d+"
|
|
JOB_FILE_RE = re.compile(r"^job-(%s)$" % JOB_ID_TEMPLATE)
|
|
JOB_NOTCHANGED = "nochange"
|
|
JOB_STATUS_QUEUED = "queued"
|
|
JOB_STATUS_WAITING = "waiting"
|
|
JOB_STATUS_CANCELING = "canceling"
|
|
JOB_STATUS_RUNNING = "running"
|
|
JOB_STATUS_CANCELED = "canceled"
|
|
JOB_STATUS_SUCCESS = "success"
|
|
JOB_STATUS_ERROR = "error"
|
|
JOBS_PENDING = compat.UniqueFrozenset([JOB_STATUS_QUEUED, JOB_...
|
|
JOBS_FINALIZED = compat.UniqueFrozenset([JOB_STATUS_CANCELED, ...
|
|
JOB_STATUS_ALL = compat.UniqueFrozenset([JOB_STATUS_RUNNING,])...
|
|
OP_STATUS_QUEUED = "queued"
|
|
OP_STATUS_WAITING = "waiting"
|
|
OP_STATUS_CANCELING = "canceling"
|
|
OP_STATUS_RUNNING = "running"
|
|
OP_STATUS_CANCELED = "canceled"
|
|
OP_STATUS_SUCCESS = "success"
|
|
OP_STATUS_ERROR = "error"
|
|
OPS_FINALIZED = compat.UniqueFrozenset([OP_STATUS_CANCELED, OP...
|
|
OP_PRIO_LOWEST = + 19
|
|
OP_PRIO_HIGHEST = -20
|
|
OP_PRIO_LOW = + 10
|
|
OP_PRIO_NORMAL = 0
|
|
OP_PRIO_HIGH = -10
|
|
OP_PRIO_SUBMIT_VALID = compat.UniqueFrozenset([OP_PRIO_LOW, OP...
|
|
OP_PRIO_DEFAULT = 0
|
|
LOCKS_REPLACE = "replace"
|
|
LOCKS_APPEND = "append"
|
|
LOCK_ATTEMPTS_TIMEOUT = 10* 3600/(OP_PRIO_DEFAULT-OP_PRIO_HIGH...
|
|
LOCK_ATTEMPTS_MAXWAIT = 15.0
|
|
LOCK_ATTEMPTS_MINWAIT = 1.0
|
|
ELOG_MESSAGE = "message"
|
|
ELOG_REMOTE_IMPORT = "remote-import"
|
|
ELOG_JQUEUE_TEST = "jqueue-test"
|
|
ETC_HOSTS_ADD = "add"
|
|
ETC_HOSTS_REMOVE = "remove"
|
|
JQT_MSGPREFIX = "TESTMSG="
|
|
JQT_EXPANDNAMES = "expandnames"
|
|
JQT_EXEC = "exec"
|
|
JQT_LOGMSG = "logmsg"
|
|
JQT_STARTMSG = "startmsg"
|
|
JQT_ALL = compat.UniqueFrozenset([JQT_EXPANDNAMES, JQT_EXEC, J...
|
|
QR_CLUSTER = "cluster"
|
|
QR_INSTANCE = "instance"
|
|
QR_NODE = "node"
|
|
QR_LOCK = "lock"
|
|
QR_GROUP = "group"
|
|
QR_OS = "os"
|
|
QR_JOB = "job"
|
|
QR_EXPORT = "export"
|
|
QR_NETWORK = "network"
|
|
QR_EXTSTORAGE = "extstorage"
|
|
QR_VIA_OP = compat.UniqueFrozenset([QR_CLUSTER, QR_INSTANCE, Q...
List of resources which can be queried using opcodes.OpQuery
|
|
QR_VIA_LUXI = QR_VIA_OP.union([QR_LOCK, QR_JOB,])
List of resources which can be queried using Local UniX Interface
|
|
QR_VIA_RAPI = QR_VIA_OP.union([QR_LOCK, QR_JOB,])
List of resources which can be queried using RAPI
|
|
QFT_UNKNOWN = "unknown"
|
|
QFT_TEXT = "text"
|
|
QFT_BOOL = "bool"
|
|
QFT_NUMBER = "number"
|
|
QFT_UNIT = "unit"
|
|
QFT_TIMESTAMP = "timestamp"
|
|
QFT_OTHER = "other"
|
|
QFT_ALL = compat.UniqueFrozenset([QFT_UNKNOWN, QFT_TEXT, QFT_B...
All query field types
|
|
RS_NORMAL = 0
Normal field status
|
|
RS_UNKNOWN = 1
Unknown field
|
|
RS_NODATA = 2
No data (e.g.
|
|
RS_UNAVAIL = 3
Value unavailable/unsupported for item; if this field is supported
but we cannot get the data for the moment, RS_NODATA or RS_OFFLINE
should be used
|
|
RS_OFFLINE = 4
Resource marked offline
|
|
RS_ALL = compat.UniqueFrozenset([RS_NORMAL, RS_UNKNOWN, RS_NOD...
|
|
RSS_DESCRIPTION = {RS_UNKNOWN:("(unknown)", "??"), RS_NODATA:(...
Dictionary with special field cases and their verbose/terse
formatting
|
|
MAX_NICS = 8
|
|
MAX_DISKS = 16
|
|
SSCONF_FILEPREFIX = "ssconf_"
|
|
SS_CLUSTER_NAME = "cluster_name"
|
|
SS_CLUSTER_TAGS = "cluster_tags"
|
|
SS_FILE_STORAGE_DIR = "file_storage_dir"
|
|
SS_SHARED_FILE_STORAGE_DIR = "shared_file_storage_dir"
|
|
SS_MASTER_CANDIDATES = "master_candidates"
|
|
SS_MASTER_CANDIDATES_IPS = "master_candidates_ips"
|
|
SS_MASTER_IP = "master_ip"
|
|
SS_MASTER_NETDEV = "master_netdev"
|
|
SS_MASTER_NETMASK = "master_netmask"
|
|
SS_MASTER_NODE = "master_node"
|
|
SS_NODE_LIST = "node_list"
|
|
SS_NODE_PRIMARY_IPS = "node_primary_ips"
|
|
SS_NODE_SECONDARY_IPS = "node_secondary_ips"
|
|
SS_OFFLINE_NODES = "offline_nodes"
|
|
SS_ONLINE_NODES = "online_nodes"
|
|
SS_PRIMARY_IP_FAMILY = "primary_ip_family"
|
|
SS_INSTANCE_LIST = "instance_list"
|
|
SS_RELEASE_VERSION = "release_version"
|
|
SS_HYPERVISOR_LIST = "hypervisor_list"
|
|
SS_MAINTAIN_NODE_HEALTH = "maintain_node_health"
|
|
SS_UID_POOL = "uid_pool"
|
|
SS_NODEGROUPS = "nodegroups"
|
|
SS_NETWORKS = "networks"
|
|
SS_FILE_PERMS = 0444
|
|
DEFAULT_ENABLED_HYPERVISOR = "xen-pvm"
|
|
HVC_DEFAULTS = {HT_XEN_PVM: {HV_USE_BOOTLOADER: False, HV_BOOT...
|
|
HVC_GLOBALS = compat.UniqueFrozenset([HV_MIGRATION_PORT, HV_MI...
|
|
BEC_DEFAULTS = {BE_MINMEM: 128, BE_MAXMEM: 128, BE_VCPUS: 1, B...
|
|
NDC_DEFAULTS = {ND_OOB_PROGRAM: "", ND_SPINDLE_COUNT: 1, ND_EX...
|
|
NDC_GLOBALS = compat.UniqueFrozenset([ND_EXCLUSIVE_STORAGE,])
|
|
DISK_LD_DEFAULTS = {LD_DRBD8: {LDP_RESYNC_RATE: CLASSIC_DRBD_S...
|
|
DISK_DT_DEFAULTS = {DT_PLAIN: {LV_STRIPES: DISK_LD_DEFAULTS [L...
|
|
NICC_DEFAULTS = {NIC_MODE: NIC_MODE_BRIDGED, NIC_LINK: DEFAULT...
|
|
ISPECS_MINMAX_DEFAULTS = {ISPECS_MIN: {ISPEC_MEM_SIZE: 128, IS...
|
|
IPOLICY_DEFAULTS = {ISPECS_MINMAX: [ISPECS_MINMAX_DEFAULTS], I...
|
|
MASTER_POOL_SIZE_DEFAULT = 10
|
|
PART_MARGIN = .01
|
|
PART_RESERVED = .02
|
|
CONFD_PROTOCOL_VERSION = 1
|
|
CONFD_REQ_PING = 0
|
|
CONFD_REQ_NODE_ROLE_BYNAME = 1
|
|
CONFD_REQ_NODE_PIP_BY_INSTANCE_IP = 2
|
|
CONFD_REQ_CLUSTER_MASTER = 3
|
|
CONFD_REQ_NODE_PIP_LIST = 4
|
|
CONFD_REQ_MC_PIP_LIST = 5
|
|
CONFD_REQ_INSTANCES_IPS_LIST = 6
|
|
CONFD_REQ_NODE_DRBD = 7
|
|
CONFD_REQ_NODE_INSTANCES = 8
|
|
CONFD_REQQ_LINK = "0"
|
|
CONFD_REQQ_IP = "1"
|
|
CONFD_REQQ_IPLIST = "2"
|
|
CONFD_REQQ_FIELDS = "3"
|
|
CONFD_REQFIELD_NAME = "0"
|
|
CONFD_REQFIELD_IP = "1"
|
|
CONFD_REQFIELD_MNODE_PIP = "2"
|
|
CONFD_REQS = compat.UniqueFrozenset([CONFD_REQ_PING, CONFD_REQ...
|
|
CONFD_REPL_STATUS_OK = 0
|
|
CONFD_REPL_STATUS_ERROR = 1
|
|
CONFD_REPL_STATUS_NOTIMPLEMENTED = 2
|
|
CONFD_REPL_STATUSES = compat.UniqueFrozenset([CONFD_REPL_STATU...
|
|
CONFD_ERROR_UNKNOWN_ENTRY = 1
|
|
CONFD_ERROR_INTERNAL = 2
|
|
CONFD_ERROR_ARGUMENT = 3
|
|
CONFD_MAX_CLOCK_SKEW = 2* NODE_MAX_CLOCK_SKEW
|
|
CONFD_CONFIG_RELOAD_TIMEOUT = 17
|
|
CONFD_CONFIG_RELOAD_RATELIMIT = 250000
|
|
CONFD_MAGIC_FOURCC = "plj0"
|
|
CONFD_DEFAULT_REQ_COVERAGE = 6
|
|
CONFD_CLIENT_EXPIRE_TIMEOUT = 10
|
|
MAX_UDP_DATA_SIZE = 61440
|
|
UIDPOOL_UID_MIN = 0
|
|
UIDPOOL_UID_MAX = 2** 32-1
|
|
PGREP = "pgrep"
|
|
INITIAL_NODE_GROUP_NAME = "default"
|
|
ALLOC_POLICY_PREFERRED = "preferred"
|
|
ALLOC_POLICY_LAST_RESORT = "last_resort"
|
|
ALLOC_POLICY_UNALLOCABLE = "unallocable"
|
|
VALID_ALLOC_POLICIES = [ALLOC_POLICY_PREFERRED, ALLOC_POLICY_L...
|
|
BLOCKDEV_DRIVER_MANUAL = "manual"
|
|
QEMUIMG_PATH = '/usr/bin/qemu-img'
|
|
HTOOLS = True
|
|
IALLOC_HAIL = "hail"
|
|
FAKE_OP_MASTER_TURNUP = "OP_CLUSTER_IP_TURNUP"
|
|
FAKE_OP_MASTER_TURNDOWN = "OP_CLUSTER_IP_TURNDOWN"
|
|
SSHK_RSA = "rsa"
|
|
SSHK_DSA = "dsa"
|
|
SSHK_ALL = compat.UniqueFrozenset([SSHK_RSA, SSHK_DSA])
|
|
SSHAK_RSA = "ssh-rsa"
|
|
SSHAK_DSS = "ssh-dss"
|
|
SSHAK_ALL = compat.UniqueFrozenset([SSHAK_RSA, SSHAK_DSS])
|
|
SSHS_CLUSTER_NAME = "cluster_name"
|
|
SSHS_SSH_HOST_KEY = "ssh_host_key"
|
|
SSHS_SSH_ROOT_KEY = "ssh_root_key"
|
|
SSHS_NODE_DAEMON_CERTIFICATE = "node_daemon_certificate"
|
|
SSH_DAEMON_KEYFILES = {SSHK_RSA:(pathutils.SSH_HOST_RSA_PRIV, ...
Key files for SSH daemon
|
|
NDS_CLUSTER_NAME = "cluster_name"
|
|
NDS_NODE_DAEMON_CERTIFICATE = "node_daemon_certificate"
|
|
NDS_SSCONF = "ssconf"
|
|
NDS_START_NODE_DAEMON = "start_node_daemon"
|
|
RANDOM_UUID_FILE = "/proc/sys/kernel/random/uuid"
|
|
UUID_REGEX = "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}...
|
|
AUTO_REPAIR_TAG_PREFIX = "ganeti:watcher:autorepair:"
|
|
AUTO_REPAIR_TAG_ENABLED = "ganeti:watcher:autorepair:"
|
|
AUTO_REPAIR_TAG_SUSPENDED = AUTO_REPAIR_TAG_ENABLED+ "suspend:"
|
|
AUTO_REPAIR_TAG_PENDING = AUTO_REPAIR_TAG_PREFIX+ "pending:"
|
|
AUTO_REPAIR_TAG_RESULT = AUTO_REPAIR_TAG_PREFIX+ "result:"
|
|
AUTO_REPAIR_FIX_STORAGE = "fix-storage"
|
|
AUTO_REPAIR_MIGRATE = "migrate"
|
|
AUTO_REPAIR_FAILOVER = "failover"
|
|
AUTO_REPAIR_REINSTALL = "reinstall"
|
|
AUTO_REPAIR_ALL_TYPES = [AUTO_REPAIR_FIX_STORAGE, AUTO_REPAIR_...
|
|
AUTO_REPAIR_SUCCESS = "success"
|
|
AUTO_REPAIR_FAILURE = "failure"
|
|
AUTO_REPAIR_ENOPERM = "enoperm"
|
|
AUTO_REPAIR_ALL_RESULTS = frozenset([AUTO_REPAIR_SUCCESS, AUTO...
|
|
BUILTIN_DATA_COLLECTOR_VERSION = "B"
|
|
OPCODE_REASON = "reason"
|
|
OPCODE_REASON_SRC_CLIENT = "gnt:client"
|
|
OPCODE_REASON_SRC_NODED = "gnt:daemon:noded"
|
|
OPCODE_REASON_SRC_OPCODE = "gnt:opcode"
|
|
OPCODE_REASON_SRC_RLIB2 = "gnt:library:rlib2"
|
|
OPCODE_REASON_SRC_USER = "gnt:user"
|
|
OPCODE_REASON_SOURCES = compat.UniqueFrozenset([OPCODE_REASON_...
|