Package ganeti :: Module constants
[hide private]
[frames] | no frames]

Module constants

source code

Module holding different constants.

Functions [hide private]
 
BuildVersion(major, minor, revision)
Calculates int version number from major, minor and revision numbers.
source code
 
SplitVersion(version)
Splits version number stored in an int.
source code
Variables [hide private]
  RELEASE_VERSION = '2.9.7'
  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.9.7'
  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_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 = chr(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"
  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"
  STORAGE_TYPES = compat.UniqueFrozenset([ST_BLOCK, ST_DISKLESS,...
  STS_REPORT = compat.UniqueFrozenset([ST_FILE, ST_LVM_PV, ST_LV...
  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...
  LDS_NAMES = {LDS_OKAY: "ok", LDS_UNKNOWN: "unknown", LDS_FAULT...
  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_BLOCK, DT_DISKLESS, DT_DRBD8, D...
  DISK_TEMPLATES = compat.UniqueFrozenset([DT_DISKLESS, DT_PLAIN...
  DEFAULT_ENABLED_DISK_TEMPLATES = [DT_DRBD8, DT_PLAIN,]
  MAP_DISK_TEMPLATE_STORAGE_TYPE = {DT_BLOCK: ST_BLOCK, DT_DISKL...
  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_...
  DTS_BLOCK = compat.UniqueFrozenset([DT_PLAIN, DT_DRBD8, DT_BLO...
  DTS_DRBD = compat.UniqueFrozenset([DT_DRBD8])
  DRBD_HMAC_ALG = "md5"
  DRBD_DEFAULT_NET_PROTOCOL = "C"
  DRBD_MIGRATION_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"
  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_VIF_SCRIPT = "vif_script"
  HV_XEN_CMD = "xen_cmd"
  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([DT_PLAIN])
  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_PROTOCOL = "protocol"
  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_PROTOCOL = "protocol"
  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_SPINDLES = "spindles"
  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_SPINDLES: ...
  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_EINSTANCEMISSINGCFGPARAMETER = CV_TINSTANCE, "EINSTANCEMISS...
  CV_ENODEDRBD = CV_TNODE, "ENODEDRBD", "Error parsing the DRBD ...
  CV_ENODEDRBDVERSION = CV_TNODE, "ENODEDRBDVERSION", "DRBD vers...
  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_ENODEFILESTORAGEPATHUNUSABLE = CV_TNODE, "ENODEFILESTORAGEP...
  CV_ENODESHAREDFILESTORAGEPATHUNUSABLE = CV_TNODE, "ENODESHARED...
  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_DRBDVERSION = "drbd-version"
  NV_DRBDLIST = "drbd-list"
  NV_EXCLUSIVEPVS = "exclusive-pvs"
  NV_FILELIST = "filelist"
  NV_ACCEPTED_STORAGE_PATHS = "allowed-file-storage-paths"
  NV_FILE_STORAGE_PATH = "file-storage-path"
  NV_SHARED_FILE_STORAGE_PATH = "shared-file-storage-path"
  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_HVPARAMS_PREF = "hvparams_"
  SS_HVPARAMS_XEN_PVM = SS_HVPARAMS_PREF+ HT_XEN_PVM
  SS_HVPARAMS_XEN_FAKE = SS_HVPARAMS_PREF+ HT_FAKE
  SS_HVPARAMS_XEN_HVM = SS_HVPARAMS_PREF+ HT_XEN_HVM
  SS_HVPARAMS_XEN_KVM = SS_HVPARAMS_PREF+ HT_KVM
  SS_HVPARAMS_XEN_CHROOT = SS_HVPARAMS_PREF+ HT_CHROOT
  SS_HVPARAMS_XEN_LXC = SS_HVPARAMS_PREF+ HT_LXC
  VALID_SS_HVPARAMS_KEYS = compat.UniqueFrozenset([SS_HVPARAMS_X...
  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 = {DT_DRBD8: {LDP_RESYNC_RATE: CLASSIC_DRBD_S...
  DISK_DT_DEFAULTS = {DT_PLAIN: {LV_STRIPES: DISK_LD_DEFAULTS [D...
  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_...
  DISKSTATS_FILE = "/proc/diskstats"
Function Details [hide private]

BuildVersion(major, minor, revision)

source code 

Calculates int version number from major, minor and revision numbers.

Returns: int representing version number

SplitVersion(version)

source code 

Splits version number stored in an int.

Returns: tuple; (major, minor, revision)


Variables Details [hide private]

OS_API_VERSIONS

Value:
compat.UniqueFrozenset([OS_API_V10, OS_API_V15, OS_API_V20,])

CONFIG_VERSION

Value:
BuildVersion(CONFIG_MAJOR, CONFIG_MINOR, CONFIG_REVISION)

DAEMONS

Value:
compat.UniqueFrozenset([NODED, CONFD, LUXID, RAPI, MASTERD, MOND,])

DAEMONS_PORTS

Value:
{NODED:("tcp", 1811), CONFD:("udp", 1814), MOND:("tcp", 1815), RAPI:("\
tcp", 5080), SSH:("tcp", 22),}

DAEMONS_LOGBASE

Value:
{NODED: "node-daemon", CONFD: "conf-daemon", LUXID: "luxi-daemon", RAP\
I: "rapi-daemon", MASTERD: "master-daemon", MOND: "monitoring-daemon",\
}

DAEMONS_LOGFILES

Value:
dict((daemon, pathutils.GetLogFilename(DAEMONS_LOGBASE [daemon])) for \
daemon in DAEMONS_LOGBASE)

VALID_EXTRA_LOGREASONS

Value:
compat.UniqueFrozenset([EXTRA_LOGREASON_ACCESS, EXTRA_LOGREASON_ERROR,\
])

DAEMONS_EXTRA_LOGBASE

Value:
{MOND: {EXTRA_LOGREASON_ACCESS: "monitoring-daemon-access", EXTRA_LOGR\
EASON_ERROR: "monitoring-daemon-error",}}

DAEMONS_EXTRA_LOGFILES

Value:
dict((daemon, dict((extra, pathutils.GetLogFilename(DAEMONS_EXTRA_LOGB\
ASE [daemon] [extra])) for extra in DAEMONS_EXTRA_LOGBASE [daemon])) f\
or daemon in DAEMONS_EXTRA_LOGBASE)

LUXI_VERSION

Value:
BuildVersion(CONFIG_MAJOR, CONFIG_MINOR, CONFIG_REVISION)

KNOWN_XEN_COMMANDS

Value:
compat.UniqueFrozenset([XEN_CMD_XM, XEN_CMD_XL,])

XL_SSH_CMD

Value:
"ssh -l %s -oGlobalKnownHostsFile=%s" " -oUserKnownHostsFile=/dev/null\
" " -oCheckHostIp=no -oStrictHostKeyChecking=yes" " -oHostKeyAlias=%%s\
" %(SSH_LOGIN_USER, pathutils.SSH_KNOWN_HOSTS_FILE)

CONS_ALL

All console types

Value:
compat.UniqueFrozenset([CONS_SSH, CONS_VNC, CONS_SPICE, CONS_MESSAGE,]\
)

STORAGE_TYPES

Value:
compat.UniqueFrozenset([ST_BLOCK, ST_DISKLESS, ST_EXT, ST_FILE, ST_LVM\
_PV, ST_LVM_VG, ST_RADOS,])

STS_REPORT

Value:
compat.UniqueFrozenset([ST_FILE, ST_LVM_PV, ST_LVM_VG])

VALID_STORAGE_FIELDS

Value:
compat.UniqueFrozenset([SF_NAME, SF_TYPE, SF_SIZE, SF_USED, SF_FREE, S\
F_ALLOCATABLE,])

MODIFIABLE_STORAGE_FIELDS

Value:
{ST_LVM_PV: frozenset([SF_ALLOCATABLE]),}

VALID_STORAGE_OPERATIONS

Value:
{ST_LVM_VG: frozenset([SO_FIX_CONSISTENCY]),}

LDS_NAMES

Value:
{LDS_OKAY: "ok", LDS_UNKNOWN: "unknown", LDS_FAULTY: "faulty",}

DISK_TEMPLATE_PREFERENCE

Value:
[DT_BLOCK, DT_DISKLESS, DT_DRBD8, DT_EXT, DT_FILE, DT_PLAIN, DT_RBD, D\
T_SHARED_FILE,]

DISK_TEMPLATES

Value:
compat.UniqueFrozenset([DT_DISKLESS, DT_PLAIN, DT_DRBD8, DT_FILE, DT_S\
HARED_FILE, DT_BLOCK, DT_RBD, DT_EXT])

MAP_DISK_TEMPLATE_STORAGE_TYPE

Value:
{DT_BLOCK: ST_BLOCK, DT_DISKLESS: ST_DISKLESS, DT_DRBD8: ST_LVM_VG, DT\
_EXT: ST_EXT, DT_FILE: ST_FILE, DT_PLAIN: ST_LVM_VG, DT_RBD: ST_RADOS,\
 DT_SHARED_FILE: ST_FILE,}

DTS_EXT_MIRROR

Value:
compat.UniqueFrozenset([DT_DISKLESS, DT_SHARED_FILE, DT_BLOCK, DT_RBD,\
 DT_EXT,])

DTS_NOT_LVM

Value:
compat.UniqueFrozenset([DT_DISKLESS, DT_FILE, DT_SHARED_FILE, DT_BLOCK\
, DT_RBD, DT_EXT,])

DTS_GROWABLE

Value:
compat.UniqueFrozenset([DT_PLAIN, DT_DRBD8, DT_FILE, DT_SHARED_FILE, D\
T_RBD, DT_EXT,])

DTS_FILEBASED

Value:
compat.UniqueFrozenset([DT_FILE, DT_SHARED_FILE,])

DTS_NO_FREE_SPACE_CHECK

Value:
compat.UniqueFrozenset([DT_FILE, DT_SHARED_FILE, DT_RBD, DT_EXT,])

DTS_BLOCK

Value:
compat.UniqueFrozenset([DT_PLAIN, DT_DRBD8, DT_BLOCK, DT_RBD, DT_EXT,]\
)

DRBD_VALID_BARRIER_OPT

Value:
compat.UniqueFrozenset([frozenset([DRBD_B_NONE]), frozenset([DRBD_B_DI\
SK_BARRIERS]), frozenset([DRBD_B_DISK_DRAIN]), frozenset([DRBD_B_DISK_\
FLUSH]), frozenset([DRBD_B_DISK_DRAIN, DRBD_B_DISK_FLUSH]), frozenset(\
[DRBD_B_DISK_BARRIERS, DRBD_B_DISK_DRAIN]), frozenset([DRBD_B_DISK_BAR\
RIERS, DRBD_B_DISK_FLUSH]), frozenset([DRBD_B_DISK_BARRIERS, DRBD_B_DI\
SK_FLUSH, DRBD_B_DISK_DRAIN]),])

DISK_ACCESS_SET

Value:
compat.UniqueFrozenset([DISK_RDONLY, DISK_RDWR])

REPLACE_MODES

Value:
compat.UniqueFrozenset([REPLACE_DISK_PRI, REPLACE_DISK_SEC, REPLACE_DI\
SK_CHG, REPLACE_DISK_AUTO,])

EXPORT_MODES

Value:
compat.UniqueFrozenset([EXPORT_MODE_LOCAL, EXPORT_MODE_REMOTE,])

INSTANCE_CREATE_MODES

Value:
compat.UniqueFrozenset([INSTANCE_CREATE, INSTANCE_IMPORT, INSTANCE_REM\
OTE_IMPORT,])

FILE_DRIVER

Value:
compat.UniqueFrozenset([FD_LOOP, FD_BLKTAP, FD_BLKTAP2])

VALID_TAG_TYPES

Value:
compat.UniqueFrozenset([TAG_CLUSTER, TAG_NODEGROUP, TAG_NODE, TAG_INST\
ANCE, TAG_NETWORK,])

VALID_IP_VERSIONS

Value:
compat.UniqueFrozenset([IP4_VERSION, IP6_VERSION])

RUNPARTS_STATUS

Value:
compat.UniqueFrozenset([RUNPARTS_SKIP, RUNPARTS_RUN, RUNPARTS_ERR,])

OS_SCRIPTS

Value:
compat.UniqueFrozenset([OS_SCRIPT_CREATE, OS_SCRIPT_IMPORT, OS_SCRIPT_\
EXPORT, OS_SCRIPT_RENAME, OS_SCRIPT_VERIFY,])

OS_VALIDATE_CALLS

Value:
compat.UniqueFrozenset([OS_VALIDATE_PARAMETERS])

ES_SCRIPTS

Value:
frozenset([ES_SCRIPT_CREATE, ES_SCRIPT_REMOVE, ES_SCRIPT_GROW, ES_SCRI\
PT_ATTACH, ES_SCRIPT_DETACH, ES_SCRIPT_SETINFO, ES_SCRIPT_VERIFY])

REBOOT_TYPES

Value:
compat.UniqueFrozenset([INSTANCE_REBOOT_SOFT, INSTANCE_REBOOT_HARD, IN\
STANCE_REBOOT_FULL,])

REBOOT_BEHAVIORS

Value:
compat.UniqueFrozenset([INSTANCE_REBOOT_ALLOWED, INSTANCE_REBOOT_EXIT,\
])

ENFORCEABLE_TYPES

Value:
compat.UniqueFrozenset([VTYPE_STRING, VTYPE_MAYBE_STRING, VTYPE_BOOL, \
VTYPE_SIZE, VTYPE_INT,])

VALID_SERIAL_SPEEDS

Value:
compat.UniqueFrozenset([75, 110, 300, 600, 1200, 1800, 2400, 4800, 960\
0, 14400, 19200, 28800, 38400, 57600, 115200, 230400, 345600, 460800,]\
)

HV_KVM_SPICE_ZLIB_GLZ_IMG_COMPR

Value:
"spice_zlib_glz_wan_compression"

HVS_PARAMETER_TYPES

Value:
{HV_KVM_PATH: VTYPE_STRING, HV_BOOT_ORDER: VTYPE_STRING, HV_KVM_FLOPPY\
_IMAGE_PATH: VTYPE_STRING, HV_CDROM_IMAGE_PATH: VTYPE_STRING, HV_KVM_C\
DROM2_IMAGE_PATH: VTYPE_STRING, HV_NIC_TYPE: VTYPE_STRING, HV_DISK_TYP\
E: VTYPE_STRING, HV_KVM_CDROM_DISK_TYPE: VTYPE_STRING, HV_VNC_PASSWORD\
_FILE: VTYPE_STRING, HV_VNC_BIND_ADDRESS: VTYPE_STRING, HV_VNC_TLS: VT\
YPE_BOOL, HV_VNC_X509: VTYPE_STRING, HV_VNC_X509_VERIFY: VTYPE_BOOL, H\
V_KVM_SPICE_BIND: VTYPE_STRING, HV_KVM_SPICE_IP_VERSION: VTYPE_INT, HV\
_KVM_SPICE_PASSWORD_FILE: VTYPE_STRING, HV_KVM_SPICE_LOSSLESS_IMG_COMP\
...

HVS_PARAMETER_TITLES

Value:
{HV_ACPI: "ACPI", HV_BOOT_ORDER: "Boot_order", HV_CDROM_IMAGE_PATH: "C\
DROM_image_path", HV_DISK_TYPE: "Disk_type", HV_INITRD_PATH: "Initrd_p\
ath", HV_KERNEL_PATH: "Kernel_path", HV_NIC_TYPE: "NIC_type", HV_PAE: \
"PAE", HV_VNC_BIND_ADDRESS: "VNC_bind_address", HV_PASSTHROUGH: "pci_p\
ass", HV_CPU_TYPE: "cpu_type",}

HV_MIGRATION_VALID_STATUSES

Value:
compat.UniqueFrozenset([HV_MIGRATION_COMPLETED, HV_MIGRATION_ACTIVE, H\
V_MIGRATION_FAILED, HV_MIGRATION_CANCELLED,])

HV_MIGRATION_FAILED_STATUSES

Value:
compat.UniqueFrozenset([HV_MIGRATION_FAILED, HV_MIGRATION_CANCELLED,])

HV_KVM_MIGRATION_VALID_STATUSES

Value:
compat.UniqueFrozenset([HV_MIGRATION_COMPLETED, HV_MIGRATION_ACTIVE, H\
V_MIGRATION_FAILED, HV_MIGRATION_CANCELLED,])

HVST_DEFAULTS

Value:
{HVST_MEMORY_TOTAL: 0, HVST_MEMORY_NODE: 0, HVST_MEMORY_HV: 0, HVST_CP\
U_TOTAL: 1, HVST_CPU_NODE: 1,}

HVSTS_PARAMETER_TYPES

Value:
{HVST_MEMORY_TOTAL: VTYPE_INT, HVST_MEMORY_NODE: VTYPE_INT, HVST_MEMOR\
Y_HV: VTYPE_INT, HVST_CPU_TOTAL: VTYPE_INT, HVST_CPU_NODE: VTYPE_INT,}

DS_DEFAULTS

Value:
{DS_DISK_TOTAL: 0, DS_DISK_RESERVED: 0, DS_DISK_OVERHEAD: 0,}

DSS_PARAMETER_TYPES

Value:
{DS_DISK_TOTAL: VTYPE_INT, DS_DISK_RESERVED: VTYPE_INT, DS_DISK_OVERHE\
AD: VTYPE_INT,}

BES_PARAMETER_TYPES

Value:
{BE_MAXMEM: VTYPE_SIZE, BE_MINMEM: VTYPE_SIZE, BE_VCPUS: VTYPE_INT, BE\
_AUTO_BALANCE: VTYPE_BOOL, BE_ALWAYS_FAILOVER: VTYPE_BOOL, BE_SPINDLE_\
USE: VTYPE_INT,}

BES_PARAMETER_TITLES

Value:
{BE_AUTO_BALANCE: "Auto_balance", BE_MAXMEM: "ConfigMaxMem", BE_MINMEM\
: "ConfigMinMem", BE_VCPUS: "ConfigVCPUs",}

ISPECS_PARAMETER_TYPES

Value:
{ISPEC_MEM_SIZE: VTYPE_INT, ISPEC_CPU_COUNT: VTYPE_INT, ISPEC_DISK_COU\
NT: VTYPE_INT, ISPEC_DISK_SIZE: VTYPE_INT, ISPEC_NIC_COUNT: VTYPE_INT,\
 ISPEC_SPINDLE_USE: VTYPE_INT,}

ISPECS_MINMAX_KEYS

Value:
compat.UniqueFrozenset([ISPECS_MIN, ISPECS_MAX,])

IPOLICY_PARAMETERS

Value:
compat.UniqueFrozenset([IPOLICY_VCPU_RATIO, IPOLICY_SPINDLE_RATIO,])

IPOLICY_ALL_KEYS

Value:
IPOLICY_PARAMETERS | frozenset([ISPECS_MINMAX, ISPECS_STD, IPOLICY_DTS\
])

NDS_PARAMETER_TYPES

Value:
{ND_OOB_PROGRAM: VTYPE_STRING, ND_SPINDLE_COUNT: VTYPE_INT, ND_EXCLUSI\
VE_STORAGE: VTYPE_BOOL,}

NDS_PARAMETER_TITLES

Value:
{ND_OOB_PROGRAM: "OutOfBandProgram", ND_SPINDLE_COUNT: "SpindleCount",\
 ND_EXCLUSIVE_STORAGE: "ExclusiveStorage",}

DISK_LD_TYPES

Value:
{LDP_RESYNC_RATE: VTYPE_INT, LDP_STRIPES: VTYPE_INT, LDP_BARRIERS: VTY\
PE_STRING, LDP_NO_META_FLUSH: VTYPE_BOOL, LDP_DEFAULT_METAVG: VTYPE_ST\
RING, LDP_DISK_CUSTOM: VTYPE_STRING, LDP_NET_CUSTOM: VTYPE_STRING, LDP\
_PROTOCOL: VTYPE_STRING, LDP_DYNAMIC_RESYNC: VTYPE_BOOL, LDP_PLAN_AHEA\
D: VTYPE_INT, LDP_FILL_TARGET: VTYPE_INT, LDP_DELAY_TARGET: VTYPE_INT,\
 LDP_MAX_RATE: VTYPE_INT, LDP_MIN_RATE: VTYPE_INT, LDP_POOL: VTYPE_STR\
ING,}

DISK_DT_TYPES

Value:
{DRBD_RESYNC_RATE: VTYPE_INT, DRBD_DATA_STRIPES: VTYPE_INT, DRBD_META_\
STRIPES: VTYPE_INT, DRBD_DISK_BARRIERS: VTYPE_STRING, DRBD_META_BARRIE\
RS: VTYPE_BOOL, DRBD_DEFAULT_METAVG: VTYPE_STRING, DRBD_DISK_CUSTOM: V\
TYPE_STRING, DRBD_NET_CUSTOM: VTYPE_STRING, DRBD_PROTOCOL: VTYPE_STRIN\
G, DRBD_DYNAMIC_RESYNC: VTYPE_BOOL, DRBD_PLAN_AHEAD: VTYPE_INT, DRBD_F\
ILL_TARGET: VTYPE_INT, DRBD_DELAY_TARGET: VTYPE_INT, DRBD_MAX_RATE: VT\
YPE_INT, DRBD_MIN_RATE: VTYPE_INT, LV_STRIPES: VTYPE_INT, RBD_POOL: VT\
YPE_STRING,}

OOB_COMMANDS

Value:
compat.UniqueFrozenset([OOB_POWER_ON, OOB_POWER_OFF, OOB_POWER_CYCLE, \
OOB_POWER_STATUS, OOB_HEALTH,])

OOB_STATUSES

Value:
compat.UniqueFrozenset([OOB_STATUS_OK, OOB_STATUS_WARNING, OOB_STATUS_\
CRITICAL, OOB_STATUS_UNKNOWN,])

NIC_VALID_MODES

Value:
compat.UniqueFrozenset([NIC_MODE_BRIDGED, NIC_MODE_ROUTED, NIC_MODE_OV\
S,])

NICS_PARAMETER_TYPES

Value:
{NIC_MODE: VTYPE_STRING, NIC_LINK: VTYPE_STRING,}

IDISK_PARAMS_TYPES

Value:
{IDISK_SIZE: VTYPE_SIZE, IDISK_SPINDLES: VTYPE_INT, IDISK_MODE: VTYPE_\
STRING, IDISK_ADOPT: VTYPE_STRING, IDISK_VG: VTYPE_STRING, IDISK_METAV\
G: VTYPE_STRING, IDISK_PROVIDER: VTYPE_STRING, IDISK_NAME: VTYPE_MAYBE\
_STRING,}

MODIFIABLE_IDISK_PARAMS_TYPES

Value:
{IDISK_MODE: VTYPE_STRING, IDISK_NAME: VTYPE_STRING,}

MODIFIABLE_IDISK_PARAMS

Value:
frozenset(MODIFIABLE_IDISK_PARAMS_TYPES.keys())

INIC_PARAMS_TYPES

Value:
{INIC_IP: VTYPE_MAYBE_STRING, INIC_LINK: VTYPE_STRING, INIC_MAC: VTYPE\
_STRING, INIC_MODE: VTYPE_STRING, INIC_NETWORK: VTYPE_MAYBE_STRING, IN\
IC_NAME: VTYPE_MAYBE_STRING,}

HYPER_TYPES

Value:
compat.UniqueFrozenset([HT_XEN_PVM, HT_FAKE, HT_XEN_HVM, HT_KVM, HT_CH\
ROOT, HT_LXC,])

HT_HVM_VALID_NIC_TYPES

Value:
compat.UniqueFrozenset([HT_NIC_RTL8139, HT_NIC_NE2K_PCI, HT_NIC_E1000,\
 HT_NIC_NE2K_ISA, HT_NIC_PARAVIRTUAL,])

HT_KVM_VALID_NIC_TYPES

Value:
compat.UniqueFrozenset([HT_NIC_RTL8139, HT_NIC_NE2K_PCI, HT_NIC_NE2K_I\
SA, HT_NIC_I82551, HT_NIC_I85557B, HT_NIC_I8259ER, HT_NIC_PCNET, HT_NI\
C_E1000, HT_NIC_PARAVIRTUAL,])

HT_HVM_VALID_VIF_TYPES

Value:
compat.UniqueFrozenset([HT_HVM_VIF_IOEMU, HT_HVM_VIF_VIF,])

HT_VALID_CACHE_TYPES

Value:
compat.UniqueFrozenset([HT_CACHE_DEFAULT, HT_CACHE_NONE, HT_CACHE_WTHR\
OUGH, HT_CACHE_WBACK,])

HT_HVM_VALID_DISK_TYPES

Value:
compat.UniqueFrozenset([HT_DISK_PARAVIRTUAL, HT_DISK_IOEMU,])

HT_KVM_VALID_DISK_TYPES

Value:
compat.UniqueFrozenset([HT_DISK_PARAVIRTUAL, HT_DISK_IDE, HT_DISK_SCSI\
, HT_DISK_SD, HT_DISK_MTD, HT_DISK_PFLASH,])

HT_KVM_VALID_MOUSE_TYPES

Value:
compat.UniqueFrozenset([HT_MOUSE_MOUSE, HT_MOUSE_TABLET,])

HT_KVM_VALID_BO_TYPES

Value:
compat.UniqueFrozenset([HT_BO_FLOPPY, HT_BO_CDROM, HT_BO_DISK, HT_BO_N\
ETWORK,])

HT_KVM_SPICE_VALID_LOSSLESS_IMG_COMPR_OPTIONS

Value:
compat.UniqueFrozenset([HT_KVM_SPICE_LOSSLESS_IMG_COMPR_AUTO_GLZ, HT_K\
VM_SPICE_LOSSLESS_IMG_COMPR_AUTO_LZ, HT_KVM_SPICE_LOSSLESS_IMG_COMPR_Q\
UIC, HT_KVM_SPICE_LOSSLESS_IMG_COMPR_GLZ, HT_KVM_SPICE_LOSSLESS_IMG_CO\
MPR_LZ, HT_KVM_SPICE_LOSSLESS_IMG_COMPR_OFF,])

HT_KVM_SPICE_VALID_LOSSY_IMG_COMPR_OPTIONS

Value:
compat.UniqueFrozenset([HT_KVM_SPICE_LOSSY_IMG_COMPR_AUTO, HT_KVM_SPIC\
E_LOSSY_IMG_COMPR_NEVER, HT_KVM_SPICE_LOSSY_IMG_COMPR_ALWAYS,])

HT_KVM_SPICE_VALID_VIDEO_STREAM_DETECTION_OPTIONS

Value:
compat.UniqueFrozenset([HT_KVM_SPICE_VIDEO_STREAM_DETECTION_OFF, HT_KV\
M_SPICE_VIDEO_STREAM_DETECTION_ALL, HT_KVM_SPICE_VIDEO_STREAM_DETECTIO\
N_FILTER,])

HT_KVM_VALID_SM_TYPES

Value:
compat.UniqueFrozenset([HT_SM_NONE, HT_SM_USER, HT_SM_POOL,])

HT_KVM_FLAG_VALUES

Value:
compat.UniqueFrozenset([HT_KVM_ENABLED, HT_KVM_DISABLED])

HT_MIGRATION_MODES

Value:
compat.UniqueFrozenset([HT_MIGRATION_LIVE, HT_MIGRATION_NONLIVE,])

VERIFY_OPTIONAL_CHECKS

Value:
compat.UniqueFrozenset([VERIFY_NPLUSONE_MEM])

CV_ECLUSTERCFG

Value:
CV_TCLUSTER, "ECLUSTERCFG", "Cluster configuration verification failur\
e"

CV_ECLUSTERCERT

Value:
CV_TCLUSTER, "ECLUSTERCERT", "Cluster certificate files verification f\
ailure"

CV_ECLUSTERFILECHECK

Value:
CV_TCLUSTER, "ECLUSTERFILECHECK", "Cluster configuration verification \
failure"

CV_ECLUSTERDANGLINGNODES

Value:
CV_TNODE, "ECLUSTERDANGLINGNODES", "Some nodes belong to non-existing \
groups"

CV_ECLUSTERDANGLINGINST

Value:
CV_TNODE, "ECLUSTERDANGLINGINST", "Some instances have a non-existing \
primary node"

CV_EGROUPDIFFERENTPVSIZE

Value:
CV_TGROUP, "EGROUPDIFFERENTPVSIZE", "PVs in the group have different s\
izes"

CV_EINSTANCEBADNODE

Value:
CV_TINSTANCE, "EINSTANCEBADNODE", "Instance marked as running lives on\
 an offline node"

CV_EINSTANCEDOWN

Value:
CV_TINSTANCE, "EINSTANCEDOWN", "Instance not running on its primary no\
de"

CV_EINSTANCELAYOUT

Value:
CV_TINSTANCE, "EINSTANCELAYOUT", "Instance has multiple secondary node\
s"

CV_EINSTANCEMISSINGDISK

Value:
CV_TINSTANCE, "EINSTANCEMISSINGDISK", "Missing volume on an instance"

CV_EINSTANCEFAULTYDISK

Value:
CV_TINSTANCE, "EINSTANCEFAULTYDISK", "Impossible to retrieve status fo\
r a disk"

CV_EINSTANCEWRONGNODE

Value:
CV_TINSTANCE, "EINSTANCEWRONGNODE", "Instance running on the wrong nod\
e"

CV_EINSTANCESPLITGROUPS

Value:
CV_TINSTANCE, "EINSTANCESPLITGROUPS", "Instance with primary and secon\
dary nodes in different groups"

CV_EINSTANCEPOLICY

Value:
CV_TINSTANCE, "EINSTANCEPOLICY", "Instance does not meet policy"

CV_EINSTANCEUNSUITABLENODE

Value:
CV_TINSTANCE, "EINSTANCEUNSUITABLENODE", "Instance running on nodes th\
at are not suitable for it"

CV_EINSTANCEMISSINGCFGPARAMETER

Value:
CV_TINSTANCE, "EINSTANCEMISSINGCFGPARAMETER", "A configuration paramet\
er for an instance is missing"

CV_ENODEDRBD

Value:
CV_TNODE, "ENODEDRBD", "Error parsing the DRBD status file"

CV_ENODEDRBDVERSION

Value:
CV_TNODE, "ENODEDRBDVERSION", "DRBD version mismatch within a node gro\
up"

CV_ENODEDRBDHELPER

Value:
CV_TNODE, "ENODEDRBDHELPER", "Error caused by the DRBD helper"

CV_ENODEFILECHECK

Value:
CV_TNODE, "ENODEFILECHECK", "Error retrieving the checksum of the node\
 files"

CV_ENODEHOOKS

Value:
CV_TNODE, "ENODEHOOKS", "Communication failure in hooks execution"

CV_ENODEHV

Value:
CV_TNODE, "ENODEHV", "Hypervisor parameters verification failure"

CV_ENODEN1

Value:
CV_TNODE, "ENODEN1", "Not enough memory to accommodate instance failov\
ers"

CV_ENODEORPHANINSTANCE

Value:
CV_TNODE, "ENODEORPHANINSTANCE", "Unknown intance running on a node"

CV_ENODEORPHANLV

Value:
CV_TNODE, "ENODEORPHANLV", "Unknown LVM logical volume"

CV_ENODERPC

Value:
CV_TNODE, "ENODERPC", "Error during connection to the primary node of \
an instance"

CV_ENODEVERSION

Value:
CV_TNODE, "ENODEVERSION", "Protocol version mismatch or Ganeti version\
 mismatch"

CV_ENODETIME

Value:
CV_TNODE, "ENODETIME", "Node returned invalid time"

CV_ENODEOOBPATH

Value:
CV_TNODE, "ENODEOOBPATH", "Invalid Out Of Band path"

CV_ENODEUSERSCRIPTS

Value:
CV_TNODE, "ENODEUSERSCRIPTS", "User scripts not present or not executa\
ble"

CV_ENODEFILESTORAGEPATHS

Value:
CV_TNODE, "ENODEFILESTORAGEPATHS", "Detected bad file storage paths"

CV_ENODEFILESTORAGEPATHUNUSABLE

Value:
CV_TNODE, "ENODEFILESTORAGEPATHUNUSABLE", "File storage path unusable"

CV_ENODESHAREDFILESTORAGEPATHUNUSABLE

Value:
CV_TNODE, "ENODESHAREDFILESTORAGEPATHUNUSABLE", "Shared file storage p\
ath unusable"

CV_ALL_ECODES

Value:
compat.UniqueFrozenset([CV_ECLUSTERCFG, CV_ECLUSTERCERT, CV_ECLUSTERFI\
LECHECK, CV_ECLUSTERDANGLINGNODES, CV_ECLUSTERDANGLINGINST, CV_EINSTAN\
CEBADNODE, CV_EINSTANCEDOWN, CV_EINSTANCELAYOUT, CV_EINSTANCEMISSINGDI\
SK, CV_EINSTANCEFAULTYDISK, CV_EINSTANCEWRONGNODE, CV_EINSTANCESPLITGR\
OUPS, CV_EINSTANCEPOLICY, CV_ENODEDRBD, CV_ENODEDRBDHELPER, CV_ENODEFI\
LECHECK, CV_ENODEHOOKS, CV_ENODEHV, CV_ENODELVM, CV_ENODEN1, CV_ENODEN\
ET, CV_ENODEOS, CV_ENODEORPHANINSTANCE, CV_ENODEORPHANLV, CV_ENODERPC,\
 CV_ENODESSH, CV_ENODEVERSION, CV_ENODESETUP, CV_ENODETIME, CV_ENODEOO\
...

CV_ALL_ECODES_STRINGS

Value:
compat.UniqueFrozenset(estr for(_, estr, _) in CV_ALL_ECODES)

INSTST_ALL

Value:
compat.UniqueFrozenset([INSTST_RUNNING, INSTST_ADMINDOWN, INSTST_ADMIN\
OFFLINE, INSTST_NODEOFFLINE, INSTST_NODEDOWN, INSTST_WRONGNODE, INSTST\
_ERRORUP, INSTST_ERRORDOWN,])

ADMINST_ALL

Value:
compat.UniqueFrozenset([ADMINST_UP, ADMINST_DOWN, ADMINST_OFFLINE,])

NR_ALL

Value:
compat.UniqueFrozenset([NR_REGULAR, NR_MASTER, NR_MCANDIDATE, NR_DRAIN\
ED, NR_OFFLINE,])

VALID_IALLOCATOR_DIRECTIONS

Value:
compat.UniqueFrozenset([IALLOCATOR_DIR_IN, IALLOCATOR_DIR_OUT,])

VALID_IALLOCATOR_MODES

Value:
compat.UniqueFrozenset([IALLOCATOR_MODE_ALLOC, IALLOCATOR_MODE_RELOC, \
IALLOCATOR_MODE_CHG_GROUP, IALLOCATOR_MODE_NODE_EVAC, IALLOCATOR_MODE_\
MULTI_ALLOC,])

IALLOCATOR_NEVAC_MODES

Value:
compat.UniqueFrozenset([IALLOCATOR_NEVAC_PRI, IALLOCATOR_NEVAC_SEC, IA\
LLOCATOR_NEVAC_ALL,])

NODE_EVAC_MODES

Value:
compat.UniqueFrozenset([NODE_EVAC_PRI, NODE_EVAC_SEC, NODE_EVAC_ALL,])

JOBS_PENDING

Value:
compat.UniqueFrozenset([JOB_STATUS_QUEUED, JOB_STATUS_WAITING, JOB_STA\
TUS_CANCELING,])

JOBS_FINALIZED

Value:
compat.UniqueFrozenset([JOB_STATUS_CANCELED, JOB_STATUS_SUCCESS, JOB_S\
TATUS_ERROR,])

JOB_STATUS_ALL

Value:
compat.UniqueFrozenset([JOB_STATUS_RUNNING,]) | JOBS_PENDING | JOBS_FI\
NALIZED

OPS_FINALIZED

Value:
compat.UniqueFrozenset([OP_STATUS_CANCELED, OP_STATUS_SUCCESS, OP_STAT\
US_ERROR,])

OP_PRIO_SUBMIT_VALID

Value:
compat.UniqueFrozenset([OP_PRIO_LOW, OP_PRIO_NORMAL, OP_PRIO_HIGH,])

LOCK_ATTEMPTS_TIMEOUT

Value:
10* 3600/(OP_PRIO_DEFAULT-OP_PRIO_HIGHEST)

JQT_ALL

Value:
compat.UniqueFrozenset([JQT_EXPANDNAMES, JQT_EXEC, JQT_LOGMSG, JQT_STA\
RTMSG,])

QR_VIA_OP

List of resources which can be queried using opcodes.OpQuery

Value:
compat.UniqueFrozenset([QR_CLUSTER, QR_INSTANCE, QR_NODE, QR_GROUP, QR\
_OS, QR_EXPORT, QR_NETWORK, QR_EXTSTORAGE,])

QFT_ALL

All query field types

Value:
compat.UniqueFrozenset([QFT_UNKNOWN, QFT_TEXT, QFT_BOOL, QFT_NUMBER, Q\
FT_UNIT, QFT_TIMESTAMP, QFT_OTHER,])

RS_NODATA

No data (e.g. RPC error), can be used instead of RS_OFFLINE

Value:
2

RS_ALL

Value:
compat.UniqueFrozenset([RS_NORMAL, RS_UNKNOWN, RS_NODATA, RS_UNAVAIL, \
RS_OFFLINE,])

RSS_DESCRIPTION

Dictionary with special field cases and their verbose/terse formatting

Value:
{RS_UNKNOWN:("(unknown)", "??"), RS_NODATA:("(nodata)", "?"), RS_OFFLI\
NE:("(offline)", "*"), RS_UNAVAIL:("(unavail)", "-"),}

VALID_SS_HVPARAMS_KEYS

Value:
compat.UniqueFrozenset([SS_HVPARAMS_XEN_PVM, SS_HVPARAMS_XEN_FAKE, SS_\
HVPARAMS_XEN_HVM, SS_HVPARAMS_XEN_KVM, SS_HVPARAMS_XEN_CHROOT, SS_HVPA\
RAMS_XEN_LXC,])

HVC_DEFAULTS

Value:
{HT_XEN_PVM: {HV_USE_BOOTLOADER: False, HV_BOOTLOADER_PATH: XEN_BOOTLO\
ADER, HV_BOOTLOADER_ARGS: "", HV_KERNEL_PATH: XEN_KERNEL, HV_INITRD_PA\
TH: "", HV_ROOT_PATH: "/dev/xvda1", HV_KERNEL_ARGS: "ro", HV_MIGRATION\
_PORT: 8002, HV_MIGRATION_MODE: HT_MIGRATION_LIVE, HV_BLOCKDEV_PREFIX:\
 "sd", HV_REBOOT_BEHAVIOR: INSTANCE_REBOOT_ALLOWED, HV_CPU_MASK: CPU_P\
INNING_ALL, HV_CPU_CAP: 0, HV_CPU_WEIGHT: 256, HV_VIF_SCRIPT: "", HV_X\
EN_CMD: XEN_CMD_XM,}, HT_XEN_HVM: {HV_BOOT_ORDER: "cd", HV_CDROM_IMAGE\
_PATH: "", HV_NIC_TYPE: HT_NIC_RTL8139, HV_DISK_TYPE: HT_DISK_PARAVIRT\
...

HVC_GLOBALS

Value:
compat.UniqueFrozenset([HV_MIGRATION_PORT, HV_MIGRATION_BANDWIDTH, HV_\
MIGRATION_MODE, HV_XEN_CMD,])

BEC_DEFAULTS

Value:
{BE_MINMEM: 128, BE_MAXMEM: 128, BE_VCPUS: 1, BE_AUTO_BALANCE: True, B\
E_ALWAYS_FAILOVER: False, BE_SPINDLE_USE: 1,}

NDC_DEFAULTS

Value:
{ND_OOB_PROGRAM: "", ND_SPINDLE_COUNT: 1, ND_EXCLUSIVE_STORAGE: False,\
}

DISK_LD_DEFAULTS

Value:
{DT_DRBD8: {LDP_RESYNC_RATE: CLASSIC_DRBD_SYNC_SPEED, LDP_BARRIERS: _a\
utoconf.DRBD_BARRIERS, LDP_NO_META_FLUSH: _autoconf.DRBD_NO_META_FLUSH\
, LDP_DEFAULT_METAVG: DEFAULT_VG, LDP_DISK_CUSTOM: "", LDP_NET_CUSTOM:\
 "", LDP_PROTOCOL: DRBD_DEFAULT_NET_PROTOCOL, LDP_DYNAMIC_RESYNC: Fals\
e, LDP_PLAN_AHEAD: 20, LDP_FILL_TARGET: 0, LDP_DELAY_TARGET: 1, LDP_MA\
X_RATE: CLASSIC_DRBD_SYNC_SPEED, LDP_MIN_RATE: 4* 1024,}, DT_PLAIN: {L\
DP_STRIPES: _autoconf.LVM_STRIPECOUNT}, DT_FILE: {}, DT_SHARED_FILE: {\
}, DT_BLOCK: {}, DT_RBD: {LDP_POOL: "rbd"}, DT_EXT: {},}

DISK_DT_DEFAULTS

Value:
{DT_PLAIN: {LV_STRIPES: DISK_LD_DEFAULTS [DT_PLAIN] [LDP_STRIPES],}, D\
T_DRBD8: {DRBD_RESYNC_RATE: _DRBD_DEFAULTS [LDP_RESYNC_RATE], DRBD_DAT\
A_STRIPES: _LV_DEFAULTS [LDP_STRIPES], DRBD_META_STRIPES: _LV_DEFAULTS\
 [LDP_STRIPES], DRBD_DISK_BARRIERS: _DRBD_DEFAULTS [LDP_BARRIERS], DRB\
D_META_BARRIERS: _DRBD_DEFAULTS [LDP_NO_META_FLUSH], DRBD_DEFAULT_META\
VG: _DRBD_DEFAULTS [LDP_DEFAULT_METAVG], DRBD_DISK_CUSTOM: _DRBD_DEFAU\
LTS [LDP_DISK_CUSTOM], DRBD_NET_CUSTOM: _DRBD_DEFAULTS [LDP_NET_CUSTOM\
], DRBD_PROTOCOL: _DRBD_DEFAULTS [LDP_PROTOCOL], DRBD_DYNAMIC_RESYNC: \
...

NICC_DEFAULTS

Value:
{NIC_MODE: NIC_MODE_BRIDGED, NIC_LINK: DEFAULT_BRIDGE,}

ISPECS_MINMAX_DEFAULTS

Value:
{ISPECS_MIN: {ISPEC_MEM_SIZE: 128, ISPEC_CPU_COUNT: 1, ISPEC_DISK_COUN\
T: 1, ISPEC_DISK_SIZE: 1024, ISPEC_NIC_COUNT: 1, ISPEC_SPINDLE_USE: 1,\
}, ISPECS_MAX: {ISPEC_MEM_SIZE: 32768, ISPEC_CPU_COUNT: 8, ISPEC_DISK_\
COUNT: MAX_DISKS, ISPEC_DISK_SIZE: 1024* 1024, ISPEC_NIC_COUNT: MAX_NI\
CS, ISPEC_SPINDLE_USE: 12,},}

IPOLICY_DEFAULTS

Value:
{ISPECS_MINMAX: [ISPECS_MINMAX_DEFAULTS], ISPECS_STD: {ISPEC_MEM_SIZE:\
 128, ISPEC_CPU_COUNT: 1, ISPEC_DISK_COUNT: 1, ISPEC_DISK_SIZE: 1024, \
ISPEC_NIC_COUNT: 1, ISPEC_SPINDLE_USE: 1,}, IPOLICY_DTS: list(DISK_TEM\
PLATES), IPOLICY_VCPU_RATIO: 4.0, IPOLICY_SPINDLE_RATIO: 32.0,}

CONFD_REQS

Value:
compat.UniqueFrozenset([CONFD_REQ_PING, CONFD_REQ_NODE_ROLE_BYNAME, CO\
NFD_REQ_NODE_PIP_BY_INSTANCE_IP, CONFD_REQ_CLUSTER_MASTER, CONFD_REQ_N\
ODE_PIP_LIST, CONFD_REQ_MC_PIP_LIST, CONFD_REQ_INSTANCES_IPS_LIST, CON\
FD_REQ_NODE_DRBD,])

CONFD_REPL_STATUSES

Value:
compat.UniqueFrozenset([CONFD_REPL_STATUS_OK, CONFD_REPL_STATUS_ERROR,\
 CONFD_REPL_STATUS_NOTIMPLEMENTED,])

VALID_ALLOC_POLICIES

Value:
[ALLOC_POLICY_PREFERRED, ALLOC_POLICY_LAST_RESORT, ALLOC_POLICY_UNALLO\
CABLE,]

SSH_DAEMON_KEYFILES

Key files for SSH daemon

Value:
{SSHK_RSA:(pathutils.SSH_HOST_RSA_PRIV, pathutils.SSH_HOST_RSA_PUB), S\
SHK_DSA:(pathutils.SSH_HOST_DSA_PRIV, pathutils.SSH_HOST_DSA_PUB),}

UUID_REGEX

Value:
"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"

AUTO_REPAIR_ALL_TYPES

Value:
[AUTO_REPAIR_FIX_STORAGE, AUTO_REPAIR_MIGRATE, AUTO_REPAIR_FAILOVER, A\
UTO_REPAIR_REINSTALL,]

AUTO_REPAIR_ALL_RESULTS

Value:
frozenset([AUTO_REPAIR_SUCCESS, AUTO_REPAIR_FAILURE, AUTO_REPAIR_ENOPE\
RM,])

OPCODE_REASON_SOURCES

Value:
compat.UniqueFrozenset([OPCODE_REASON_SRC_CLIENT, OPCODE_REASON_SRC_NO\
DED, OPCODE_REASON_SRC_OPCODE, OPCODE_REASON_SRC_RLIB2, OPCODE_REASON_\
SRC_USER,])