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.5.2'
  OS_API_V10 = 10
  OS_API_V15 = 15
  OS_API_V20 = 20
  OS_API_VERSIONS = frozenset([OS_API_V10, OS_API_V15, OS_API_V20])
  VCS_VERSION = 'v2.5.2'
  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'
  NODED_USER = 'root'
  NODED_GROUP = 'root'
  DD_CMD = "dd"
  WIPE_BLOCK_SIZE = 1024** 2
  MAX_WIPE_CHUNK = 1024
  MIN_WIPE_CHUNK_PERCENT = 10
  DATA_DIR = _autoconf.LOCALSTATEDIR+ "/lib/ganeti"
  RUN_DIR = _autoconf.LOCALSTATEDIR+ "/run"
  RUN_GANETI_DIR = RUN_DIR+ "/ganeti"
  BDEV_CACHE_DIR = RUN_GANETI_DIR+ "/bdev-cache"
  DISK_LINKS_DIR = RUN_GANETI_DIR+ "/instance-disks"
  RUN_DIRS_MODE = 0775
  SOCKET_DIR = RUN_GANETI_DIR+ "/socket"
  SECURE_DIR_MODE = 0700
  SECURE_FILE_MODE = 0600
  SOCKET_DIR_MODE = 0750
  CRYPTO_KEYS_DIR = RUN_GANETI_DIR+ "/crypto"
  CRYPTO_KEYS_DIR_MODE = 0700
  IMPORT_EXPORT_DIR = RUN_GANETI_DIR+ "/import-export"
  IMPORT_EXPORT_DIR_MODE = 0755
  ADOPTABLE_BLOCKDEV_ROOT = "/dev/disk/"
  SUB_RUN_DIRS = [RUN_GANETI_DIR, BDEV_CACHE_DIR, DISK_LINKS_DIR,]
  LOCK_DIR = _autoconf.LOCALSTATEDIR+ "/lock"
  SSCONF_LOCK_FILE = LOCK_DIR+ "/ganeti-ssconf.lock"
  UIDPOOL_LOCKDIR = RUN_GANETI_DIR+ "/uid-pool"
  CLUSTER_CONF_FILE = DATA_DIR+ "/config.data"
  NODED_CERT_FILE = DATA_DIR+ "/server.pem"
  RAPI_CERT_FILE = DATA_DIR+ "/rapi.pem"
  CONFD_HMAC_KEY = DATA_DIR+ "/hmac.key"
  CLUSTER_DOMAIN_SECRET_FILE = DATA_DIR+ "/cluster-domain-secret"
  INSTANCE_STATUS_FILE = RUN_GANETI_DIR+ "/instance-status"
  SSH_KNOWN_HOSTS_FILE = DATA_DIR+ "/known_hosts"
  RAPI_USERS_FILE = DATA_DIR+ "/rapi/users"
  QUEUE_DIR = DATA_DIR+ "/queue"
  DAEMON_UTIL = _autoconf.PKGLIBDIR+ "/daemon-util"
  SETUP_SSH = _autoconf.TOOLSDIR+ "/setup-ssh"
  KVM_IFUP = _autoconf.PKGLIBDIR+ "/kvm-ifup"
  KVM_CONSOLE_WRAPPER = _autoconf.PKGLIBDIR+ "/tools/kvm-console...
  XM_CONSOLE_WRAPPER = _autoconf.PKGLIBDIR+ "/tools/xm-console-w...
  ETC_HOSTS = "/etc/hosts"
  DEFAULT_FILE_STORAGE_DIR = '/srv/ganeti/file-storage'
  DEFAULT_SHARED_FILE_STORAGE_DIR = '/srv/ganeti/shared-file-sto...
  ENABLE_FILE_STORAGE = True
  ENABLE_SHARED_FILE_STORAGE = True
  SYSCONFDIR = '/usr/local/etc'
  TOOLSDIR = '/usr/local/lib/ganeti/tools'
  CONF_DIR = SYSCONFDIR+ "/ganeti"
  WATCHER_LOCK_FILE = LOCK_DIR+ "/ganeti-watcher.lock"
Lock file for watcher, locked in shared mode by watcher; lock in exclusive
  WATCHER_GROUP_STATE_FILE = DATA_DIR+ "/watcher.%s.data"
Status file for per-group watcher, locked in exclusive mode by watcher
  WATCHER_GROUP_INSTANCE_STATUS_FILE = DATA_DIR+ "/watcher.%s.in...
File for per-group instance status, merged into INSTANCE_STATUS_FILE by per-group processes
  WATCHER_PAUSEFILE = DATA_DIR+ "/watcher.pause"
File containing Unix timestamp until which watcher should be paused
  ALL_CERT_FILES = frozenset([NODED_CERT_FILE, RAPI_CERT_FILE])
  MASTER_SOCKET = SOCKET_DIR+ "/ganeti-master"
  NODED = "ganeti-noded"
  CONFD = "ganeti-confd"
  RAPI = "ganeti-rapi"
  MASTERD = "ganeti-masterd"
  NLD = "ganeti-nld"
  DAEMONS_PORTS = {NODED:("tcp", 1811), CONFD:("udp", 1814), RAP...
  DEFAULT_NODED_PORT = DAEMONS_PORTS [NODED] [1]
  DEFAULT_CONFD_PORT = DAEMONS_PORTS [CONFD] [1]
  DEFAULT_RAPI_PORT = DAEMONS_PORTS [RAPI] [1]
  DEFAULT_NLD_PORT = DAEMONS_PORTS [NLD] [1]
  FIRST_DRBD_PORT = 11000
  LAST_DRBD_PORT = 14999
  MASTER_SCRIPT = "ganeti-master"
  LOG_DIR = _autoconf.LOCALSTATEDIR+ "/log/ganeti/"
  DAEMONS_LOGFILES = {NODED: LOG_DIR+ "node-daemon.log", CONFD: ...
  LOG_OS_DIR = LOG_DIR+ "os"
  LOG_WATCHER = LOG_DIR+ "watcher.log"
  LOG_COMMANDS = LOG_DIR+ "commands.log"
  LOG_BURNIN = LOG_DIR+ "burnin.log"
  LOG_SETUP_SSH = LOG_DIR+ "setup-ssh.log"
  DEV_CONSOLE = "/dev/console"
  PROC_MOUNTS = "/proc/mounts"
  LUXI_EOM = "\3"
  LUXI_VERSION = BuildVersion(CONFIG_MAJOR, CONFIG_MINOR, CONFIG...
  SYSLOG_USAGE = 'no'
  SYSLOG_NO = "no"
  SYSLOG_YES = "yes"
  SYSLOG_ONLY = "only"
  SYSLOG_SOCKET = "/dev/log"
  OS_SEARCH_PATH = ['/srv/ganeti/os']
  EXPORT_DIR = '/srv/ganeti/export'
  EXPORT_CONF_FILE = "config.ini"
  XEN_BOOTLOADER = ''
  XEN_KERNEL = '/boot/vmlinuz-2.6-xenU'
  XEN_INITRD = '/boot/initrd-2.6-xenU'
  KVM_PATH = '/usr/bin/kvm'
  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_MESSAGE = "msg"
Display a message for console access
  CONS_ALL = frozenset([CONS_SSH, CONS_VNC, CONS_MESSAGE])
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"
  IMPORT_EXPORT_DAEMON = _autoconf.PKGLIBDIR+ "/import-export"
  IEM_IMPORT = "import"
  IEM_EXPORT = "export"
  IEC_NONE = "none"
  IEC_GZIP = "gzip"
  IEC_ALL = frozenset([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_BASE_DIR = CONF_DIR+ "/hooks"
  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"
  HKR_SKIP = 0
  HKR_FAIL = 1
  HKR_SUCCESS = 2
  ST_FILE = "file"
  ST_LVM_PV = "lvm-pv"
  ST_LVM_VG = "lvm-vg"
  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 = frozenset([SF_NAME, SF_TYPE, SF_SIZE, S...
  VALID_STORAGE_TYPES = frozenset([ST_FILE, ST_LVM_PV, ST_LVM_VG])
  MODIFIABLE_STORAGE_FIELDS = {ST_LVM_PV: frozenset([SF_ALLOCATA...
  VALID_STORAGE_OPERATIONS = {ST_LVM_VG: frozenset([SO_FIX_CONSI...
  DT_DISKLESS = "diskless"
  DT_PLAIN = "plain"
  DT_DRBD8 = "drbd"
  DT_FILE = "file"
  DT_SHARED_FILE = "sharedfile"
  DT_BLOCK = "blockdev"
  DTS_INT_MIRROR = frozenset([DT_DRBD8])
  DTS_EXT_MIRROR = frozenset([DT_SHARED_FILE, DT_BLOCK])
  DTS_NOT_LVM = frozenset([DT_DISKLESS, DT_FILE, DT_SHARED_FILE,...
  DTS_GROWABLE = frozenset([DT_PLAIN, DT_DRBD8, DT_FILE, DT_SHAR...
  DTS_MAY_ADOPT = frozenset([DT_PLAIN, DT_BLOCK])
  DTS_MUST_ADOPT = frozenset([DT_BLOCK])
  DTS_MIRRORED = frozenset.union(DTS_INT_MIRROR, DTS_EXT_MIRROR)
  DTS_FILEBASED = frozenset([DT_FILE, DT_SHARED_FILE])
  LD_LV = "lvm"
  LD_DRBD8 = "drbd8"
  LD_FILE = "file"
  LD_BLOCKDEV = "blockdev"
  LDS_BLOCK = frozenset([LD_LV, LD_DRBD8, LD_BLOCKDEV])
  DRBD_HMAC_ALG = "md5"
  DRBD_NET_PROTOCOL = "C"
  DRBD_BARRIERS = True
  FD_LOOP = "loop"
  FD_BLKTAP = "blktap"
  LDS_DRBD = frozenset([LD_DRBD8])
  DISK_RDONLY = "ro"
  DISK_RDWR = "rw"
  DISK_ACCESS_SET = frozenset([DISK_RDONLY, DISK_RDWR])
  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 = frozenset([REPLACE_DISK_PRI, REPLACE_DISK_SEC,...
  EXPORT_MODE_LOCAL = "local"
  EXPORT_MODE_REMOTE = "remote"
  EXPORT_MODES = frozenset([EXPORT_MODE_LOCAL, EXPORT_MODE_REMOT...
  LOCKS_REPLACE = "replace"
  LOCKS_APPEND = "append"
  LOCK_ATTEMPTS_TIMEOUT = 10* 3600/ 20.0
  LOCK_ATTEMPTS_MAXWAIT = 15.0
  LOCK_ATTEMPTS_MINWAIT = 1.0
  INSTANCE_CREATE = "create"
  INSTANCE_IMPORT = "import"
  INSTANCE_REMOTE_IMPORT = "remote-import"
  INSTANCE_CREATE_MODES = frozenset([INSTANCE_CREATE, INSTANCE_I...
  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
  DISK_TEMPLATES = frozenset([DT_DISKLESS, DT_PLAIN, DT_DRBD8, D...
  FILE_DRIVER = frozenset([FD_LOOP, FD_BLKTAP])
  INISECT_EXP = "export"
  INISECT_INS = "instance"
  INISECT_HYP = "hypervisor"
  INISECT_BEP = "backend"
  INISECT_OSP = "os"
  DDM_ADD = "add"
  DDM_REMOVE = "remove"
  DDMS_VALUES = frozenset([DDM_ADD, DDM_REMOVE])
  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"
  VALID_TAG_TYPES = frozenset([TAG_CLUSTER, TAG_NODEGROUP, TAG_N...
  MAX_TAG_LEN = 128
  MAX_TAGS_PER_OBJ = 4096
  DEFAULT_BRIDGE = "xen-br0"
  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 = frozenset([IP4_VERSION, IP6_VERSION])
  TCP_PING_TIMEOUT = 10
  GANETI_RUNAS = "root"
  DEFAULT_VG = "xenvg"
  DEFAULT_DRBD_HELPER = "/bin/true"
  MIN_VG_SIZE = 20480
  DEFAULT_MAC_PREFIX = "aa:00:00"
  LVM_STRIPECOUNT = 1
  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 = frozenset([RUNPARTS_SKIP, RUNPARTS_RUN, RUNP...
  OS_SCRIPT_CREATE = "create"
  OS_SCRIPT_IMPORT = "import"
  OS_SCRIPT_EXPORT = "export"
  OS_SCRIPT_RENAME = "rename"
  OS_SCRIPT_VERIFY = "verify"
  OS_SCRIPTS = frozenset([OS_SCRIPT_CREATE, OS_SCRIPT_IMPORT, OS...
  OS_API_FILE = "ganeti_api_version"
  OS_VARIANTS_FILE = "variants.list"
  OS_PARAMETERS_FILE = "parameters.list"
  OS_VALIDATE_PARAMETERS = "parameters"
  OS_VALIDATE_CALLS = frozenset([OS_VALIDATE_PARAMETERS])
  SSH_CONFIG_DIR = '/etc/ssh'
  SSH_HOST_DSA_PRIV = SSH_CONFIG_DIR+ "/ssh_host_dsa_key"
  SSH_HOST_DSA_PUB = SSH_HOST_DSA_PRIV+ ".pub"
  SSH_HOST_RSA_PRIV = SSH_CONFIG_DIR+ "/ssh_host_rsa_key"
  SSH_HOST_RSA_PUB = SSH_HOST_RSA_PRIV+ ".pub"
  SSH = "ssh"
  SCP = "scp"
  INSTANCE_REBOOT_SOFT = "soft"
  INSTANCE_REBOOT_HARD = "hard"
  INSTANCE_REBOOT_FULL = "full"
  REBOOT_TYPES = frozenset([INSTANCE_REBOOT_SOFT, INSTANCE_REBOO...
  INSTANCE_REBOOT_ALLOWED = "reboot"
  INSTANCE_REBOOT_EXIT = "exit"
  REBOOT_BEHAVIORS = frozenset([INSTANCE_REBOOT_ALLOWED, INSTANC...
  VTYPE_STRING = "string"
  VTYPE_MAYBE_STRING = "maybe-string"
  VTYPE_BOOL = "bool"
  VTYPE_SIZE = "size"
  VTYPE_INT = "int"
  ENFORCEABLE_TYPES = frozenset([VTYPE_STRING, VTYPE_MAYBE_STRIN...
  IFACE_NO_IP_VERSION_SPECIFIED = 0
  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_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_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_BLOCKDEV_PREFIX = "blockdev_prefix"
  HV_REBOOT_BEHAVIOR = "reboot_behavior"
  HVS_PARAMETER_TYPES = {HV_BOOT_ORDER: VTYPE_STRING, HV_KVM_FLO...
  HVS_PARAMETERS = frozenset(HVS_PARAMETER_TYPES.keys())
  BE_MEMORY = "memory"
  BE_VCPUS = "vcpus"
  BE_AUTO_BALANCE = "auto_balance"
  BES_PARAMETER_TYPES = {BE_MEMORY: VTYPE_SIZE, BE_VCPUS: VTYPE_...
  BES_PARAMETERS = frozenset(BES_PARAMETER_TYPES.keys())
  ND_OOB_PROGRAM = "oob_program"
  NDS_PARAMETER_TYPES = {ND_OOB_PROGRAM: VTYPE_MAYBE_STRING,}
  NDS_PARAMETERS = frozenset(NDS_PARAMETER_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 = frozenset([OOB_POWER_ON, OOB_POWER_OFF, OOB_POW...
  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 = frozenset([OOB_STATUS_OK, OOB_STATUS_WARNING, O...
  PP_DEFAULT = "default"
  NIC_MODE = "mode"
  NIC_LINK = "link"
  NIC_MODE_BRIDGED = "bridged"
  NIC_MODE_ROUTED = "routed"
  NIC_VALID_MODES = frozenset([NIC_MODE_BRIDGED, NIC_MODE_ROUTED])
  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_PARAMS_TYPES = {IDISK_SIZE: VTYPE_SIZE, IDISK_MODE: VTYP...
  IDISK_PARAMS = frozenset(IDISK_PARAMS_TYPES.keys())
  INIC_MAC = "mac"
  INIC_IP = "ip"
  INIC_MODE = "mode"
  INIC_LINK = "link"
  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 = frozenset([HT_XEN_PVM, HT_FAKE, HT_XEN_HVM, HT_K...
  HTS_REQ_PORT = frozenset([HT_XEN_HVM, HT_KVM])
  VNC_BASE_PORT = 5900
  VNC_PASSWORD_FILE = CONF_DIR+ "/vnc-cluster-password"
  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 = frozenset([HT_NIC_RTL8139, HT_NIC_NE2...
  HT_KVM_VALID_NIC_TYPES = frozenset([HT_NIC_RTL8139, HT_NIC_NE2...
  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 = frozenset([HT_CACHE_DEFAULT, HT_CACHE_N...
  HT_HVM_VALID_DISK_TYPES = frozenset([HT_DISK_PARAVIRTUAL, HT_D...
  HT_KVM_VALID_DISK_TYPES = frozenset([HT_DISK_PARAVIRTUAL, HT_D...
  HT_MOUSE_MOUSE = "mouse"
  HT_MOUSE_TABLET = "tablet"
  HT_KVM_VALID_MOUSE_TYPES = frozenset([HT_MOUSE_MOUSE, HT_MOUSE...
  HT_BO_FLOPPY = "floppy"
  HT_BO_CDROM = "cdrom"
  HT_BO_DISK = "disk"
  HT_BO_NETWORK = "network"
  HT_KVM_VALID_BO_TYPES = frozenset([HT_BO_FLOPPY, HT_BO_CDROM, ...
  HT_SM_NONE = "none"
  HT_SM_USER = "user"
  HT_SM_POOL = "pool"
  HT_KVM_VALID_SM_TYPES = frozenset([HT_SM_NONE, HT_SM_USER, HT_...
  HT_KVM_ENABLED = "enabled"
  HT_KVM_DISABLED = "disabled"
  HT_KVM_FLAG_VALUES = frozenset([HT_KVM_ENABLED, HT_KVM_DISABLED])
  HT_MIGRATION_LIVE = "live"
  HT_MIGRATION_NONLIVE = "non-live"
  HT_MIGRATION_MODES = frozenset([HT_MIGRATION_LIVE, HT_MIGRATIO...
  VERIFY_NPLUSONE_MEM = "nplusone_mem"
  VERIFY_OPTIONAL_CHECKS = frozenset([VERIFY_NPLUSONE_MEM])
  NV_DRBDHELPER = "drbd-helper"
  NV_DRBDLIST = "drbd-list"
  NV_FILELIST = "filelist"
  NV_HVINFO = "hvinfo"
  NV_HYPERVISOR = "hypervisor"
  NV_HVPARAMS = "hvparms"
  NV_INSTANCELIST = "instancelist"
  NV_LVLIST = "lvlist"
  NV_MASTERIP = "master-ip"
  NV_NODELIST = "nodelist"
  NV_NODENETTEST = "node-net-test"
  NV_NODESETUP = "nodesetup"
  NV_OSLIST = "oslist"
  NV_PVLIST = "pvlist"
  NV_TIME = "time"
  NV_VERSION = "version"
  NV_VGLIST = "vglist"
  NV_VMNODES = "vmnodes"
  NV_OOB_PATHS = "oob-paths"
  NV_BRIDGES = "bridges"
  INSTST_RUNNING = "running"
  INSTST_ADMINDOWN = "ADMIN_down"
  INSTST_NODEOFFLINE = "ERROR_nodeoffline"
  INSTST_NODEDOWN = "ERROR_nodedown"
  INSTST_WRONGNODE = "ERROR_wrongnode"
  INSTST_ERRORUP = "ERROR_up"
  INSTST_ERRORDOWN = "ERROR_down"
  INSTST_ALL = frozenset([INSTST_RUNNING, INSTST_ADMINDOWN, INST...
  NR_REGULAR = "R"
  NR_MASTER = "M"
  NR_MCANDIDATE = "C"
  NR_DRAINED = "D"
  NR_OFFLINE = "O"
  NR_ALL = frozenset([NR_REGULAR, NR_MASTER, NR_MCANDIDATE, NR_D...
  SSL_CERT_EXPIRATION_WARN = 30
  SSL_CERT_EXPIRATION_ERROR = 7
  IALLOCATOR_VERSION = 2
  IALLOCATOR_DIR_IN = "in"
  IALLOCATOR_DIR_OUT = "out"
  VALID_IALLOCATOR_DIRECTIONS = frozenset([IALLOCATOR_DIR_IN, IA...
  IALLOCATOR_MODE_ALLOC = "allocate"
  IALLOCATOR_MODE_RELOC = "relocate"
  IALLOCATOR_MODE_CHG_GROUP = "change-group"
  IALLOCATOR_MODE_NODE_EVAC = "node-evacuate"
  VALID_IALLOCATOR_MODES = frozenset([IALLOCATOR_MODE_ALLOC, IAL...
  IALLOCATOR_SEARCH_PATH = ['/usr/local/lib/ganeti/iallocators']
  IALLOCATOR_NEVAC_PRI = "primary-only"
  IALLOCATOR_NEVAC_SEC = "secondary-only"
  IALLOCATOR_NEVAC_ALL = "all"
  IALLOCATOR_NEVAC_MODES = frozenset([IALLOCATOR_NEVAC_PRI, IALL...
  JOB_QUEUE_VERSION = 1
  JOB_QUEUE_LOCK_FILE = QUEUE_DIR+ "/lock"
  JOB_QUEUE_VERSION_FILE = QUEUE_DIR+ "/version"
  JOB_QUEUE_SERIAL_FILE = QUEUE_DIR+ "/serial"
  JOB_QUEUE_ARCHIVE_DIR = QUEUE_DIR+ "/archive"
  JOB_QUEUE_DRAIN_FILE = QUEUE_DIR+ "/drain"
  JOB_QUEUE_SIZE_HARD_LIMIT = 5000
  JOB_QUEUE_DIRS = [QUEUE_DIR, JOB_QUEUE_ARCHIVE_DIR]
  JOB_QUEUE_DIRS_MODE = 0700
  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_FINALIZED = frozenset([JOB_STATUS_CANCELED, JOB_STATUS_SU...
  JOB_STATUS_ALL = frozenset([JOB_STATUS_QUEUED, JOB_STATUS_WAIT...
  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 = frozenset([OP_STATUS_CANCELED, OP_STATUS_SUCCE...
  OP_PRIO_LOWEST = + 19
  OP_PRIO_HIGHEST = -20
  OP_PRIO_LOW = + 10
  OP_PRIO_NORMAL = 0
  OP_PRIO_HIGH = -10
  OP_PRIO_SUBMIT_VALID = frozenset([OP_PRIO_LOW, OP_PRIO_NORMAL,...
  OP_PRIO_DEFAULT = 0
  ELOG_MESSAGE = "message"
  ELOG_PROGRESS = "progress"
  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 = frozenset([JQT_EXPANDNAMES, JQT_EXEC, JQT_LOGMSG, JQ...
  QR_INSTANCE = "instance"
  QR_NODE = "node"
  QR_LOCK = "lock"
  QR_GROUP = "group"
  QR_OS = "os"
  QR_VIA_OP = frozenset([QR_INSTANCE, QR_NODE, QR_GROUP, QR_OS])
List of resources which can be queried using opcodes.OpQuery
  QR_VIA_LUXI = QR_VIA_OP.union([QR_LOCK,])
List of resources which can be queried using Local UniX Interface
  QR_VIA_RAPI = QR_VIA_OP.union([QR_LOCK,])
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 = frozenset([QFT_UNKNOWN, QFT_TEXT, QFT_BOOL, QFT_NUMB...
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 = frozenset([RS_NORMAL, RS_UNKNOWN, RS_NODATA, RS_UNAVA...
  RSS_DESCRIPTION = {RS_UNKNOWN:("(unknown)", "??"), RS_NODATA:(...
Dictionary with special field cases and their verbose/terse formatting
  MAX_NICS = 8
  MAX_DISKS = 16
  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_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_FILE_PERMS = 0444
  DEFAULT_ENABLED_HYPERVISOR = "xen-pvm"
  HVC_DEFAULTS = {HT_XEN_PVM: {HV_USE_BOOTLOADER: False, HV_BOOT...
  HVC_GLOBALS = frozenset([HV_MIGRATION_PORT, HV_MIGRATION_BANDW...
  BEC_DEFAULTS = {BE_MEMORY: 128, BE_VCPUS: 1, BE_AUTO_BALANCE: ...
  NDC_DEFAULTS = {ND_OOB_PROGRAM: None,}
  NICC_DEFAULTS = {NIC_MODE: NIC_MODE_BRIDGED, NIC_LINK: DEFAULT...
  MASTER_POOL_SIZE_DEFAULT = 10
  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_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 = frozenset([CONFD_REQ_PING, CONFD_REQ_NODE_ROLE_BY...
  CONFD_REPL_STATUS_OK = 0
  CONFD_REPL_STATUS_ERROR = 1
  CONFD_REPL_STATUS_NOTIMPLEMENTED = 2
  CONFD_REPL_STATUSES = frozenset([CONFD_REPL_STATUS_OK, CONFD_R...
  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 = 60
  CONFD_CONFIG_RELOAD_RATELIMIT = 2
  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"
  HTOOLS = True
  IALLOC_HAIL = "hail"

Imports: re, _autoconf, _vcsversion


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]

CONFIG_VERSION

Value:
BuildVersion(CONFIG_MAJOR, CONFIG_MINOR, CONFIG_REVISION)

KVM_CONSOLE_WRAPPER

Value:
_autoconf.PKGLIBDIR+ "/tools/kvm-console-wrapper"

XM_CONSOLE_WRAPPER

Value:
_autoconf.PKGLIBDIR+ "/tools/xm-console-wrapper"

DEFAULT_SHARED_FILE_STORAGE_DIR

Value:
'/srv/ganeti/shared-file-storage'

WATCHER_GROUP_INSTANCE_STATUS_FILE

File for per-group instance status, merged into INSTANCE_STATUS_FILE by per-group processes

Value:
DATA_DIR+ "/watcher.%s.instance-status"

DAEMONS_PORTS

Value:
{NODED:("tcp", 1811), CONFD:("udp", 1814), RAPI:("tcp", 5080), "ssh":(\
"tcp", 22), NLD:("udp", 1816),}

DAEMONS_LOGFILES

Value:
{NODED: LOG_DIR+ "node-daemon.log", CONFD: LOG_DIR+ "conf-daemon.log",\
 RAPI: LOG_DIR+ "rapi-daemon.log", MASTERD: LOG_DIR+ "master-daemon.lo\
g", NLD: LOG_DIR+ "nl-daemon.log",}

LUXI_VERSION

Value:
BuildVersion(CONFIG_MAJOR, CONFIG_MINOR, CONFIG_REVISION)

VALID_STORAGE_FIELDS

Value:
frozenset([SF_NAME, SF_TYPE, SF_SIZE, SF_USED, SF_FREE, SF_ALLOCATABLE\
])

MODIFIABLE_STORAGE_FIELDS

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

VALID_STORAGE_OPERATIONS

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

DTS_NOT_LVM

Value:
frozenset([DT_DISKLESS, DT_FILE, DT_SHARED_FILE, DT_BLOCK])

DTS_GROWABLE

Value:
frozenset([DT_PLAIN, DT_DRBD8, DT_FILE, DT_SHARED_FILE])

REPLACE_MODES

Value:
frozenset([REPLACE_DISK_PRI, REPLACE_DISK_SEC, REPLACE_DISK_CHG, REPLA\
CE_DISK_AUTO,])

EXPORT_MODES

Value:
frozenset([EXPORT_MODE_LOCAL, EXPORT_MODE_REMOTE,])

INSTANCE_CREATE_MODES

Value:
frozenset([INSTANCE_CREATE, INSTANCE_IMPORT, INSTANCE_REMOTE_IMPORT,])

DISK_TEMPLATES

Value:
frozenset([DT_DISKLESS, DT_PLAIN, DT_DRBD8, DT_FILE, DT_SHARED_FILE, D\
T_BLOCK])

VALID_TAG_TYPES

Value:
frozenset([TAG_CLUSTER, TAG_NODEGROUP, TAG_NODE, TAG_INSTANCE,])

RUNPARTS_STATUS

Value:
frozenset([RUNPARTS_SKIP, RUNPARTS_RUN, RUNPARTS_ERR])

OS_SCRIPTS

Value:
frozenset([OS_SCRIPT_CREATE, OS_SCRIPT_IMPORT, OS_SCRIPT_EXPORT, OS_SC\
RIPT_RENAME, OS_SCRIPT_VERIFY])

REBOOT_TYPES

Value:
frozenset([INSTANCE_REBOOT_SOFT, INSTANCE_REBOOT_HARD, INSTANCE_REBOOT\
_FULL])

REBOOT_BEHAVIORS

Value:
frozenset([INSTANCE_REBOOT_ALLOWED, INSTANCE_REBOOT_EXIT])

ENFORCEABLE_TYPES

Value:
frozenset([VTYPE_STRING, VTYPE_MAYBE_STRING, VTYPE_BOOL, VTYPE_SIZE, V\
TYPE_INT,])

HVS_PARAMETER_TYPES

Value:
{HV_BOOT_ORDER: VTYPE_STRING, HV_KVM_FLOPPY_IMAGE_PATH: VTYPE_STRING, \
HV_CDROM_IMAGE_PATH: VTYPE_STRING, HV_KVM_CDROM2_IMAGE_PATH: VTYPE_STR\
ING, HV_NIC_TYPE: VTYPE_STRING, HV_DISK_TYPE: VTYPE_STRING, HV_KVM_CDR\
OM_DISK_TYPE: VTYPE_STRING, HV_VNC_PASSWORD_FILE: VTYPE_STRING, HV_VNC\
_BIND_ADDRESS: VTYPE_STRING, HV_VNC_TLS: VTYPE_BOOL, HV_VNC_X509: VTYP\
E_STRING, HV_VNC_X509_VERIFY: VTYPE_BOOL, HV_KVM_SPICE_BIND: VTYPE_STR\
ING, HV_KVM_SPICE_IP_VERSION: VTYPE_INT, HV_ACPI: VTYPE_BOOL, HV_PAE: \
VTYPE_BOOL, HV_USE_BOOTLOADER: VTYPE_BOOL, HV_BOOTLOADER_PATH: VTYPE_S\
...

BES_PARAMETER_TYPES

Value:
{BE_MEMORY: VTYPE_SIZE, BE_VCPUS: VTYPE_INT, BE_AUTO_BALANCE: VTYPE_BO\
OL,}

OOB_COMMANDS

Value:
frozenset([OOB_POWER_ON, OOB_POWER_OFF, OOB_POWER_CYCLE, OOB_POWER_STA\
TUS, OOB_HEALTH])

OOB_STATUSES

Value:
frozenset([OOB_STATUS_OK, OOB_STATUS_WARNING, OOB_STATUS_CRITICAL, OOB\
_STATUS_UNKNOWN,])

NICS_PARAMETER_TYPES

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

IDISK_PARAMS_TYPES

Value:
{IDISK_SIZE: VTYPE_SIZE, IDISK_MODE: VTYPE_STRING, IDISK_ADOPT: VTYPE_\
STRING, IDISK_VG: VTYPE_STRING, IDISK_METAVG: VTYPE_STRING,}

INIC_PARAMS_TYPES

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

HYPER_TYPES

Value:
frozenset([HT_XEN_PVM, HT_FAKE, HT_XEN_HVM, HT_KVM, HT_CHROOT, HT_LXC,\
])

HT_HVM_VALID_NIC_TYPES

Value:
frozenset([HT_NIC_RTL8139, HT_NIC_NE2K_PCI, HT_NIC_E1000, HT_NIC_NE2K_\
ISA, HT_NIC_PARAVIRTUAL])

HT_KVM_VALID_NIC_TYPES

Value:
frozenset([HT_NIC_RTL8139, HT_NIC_NE2K_PCI, HT_NIC_NE2K_ISA, HT_NIC_I8\
2551, HT_NIC_I85557B, HT_NIC_I8259ER, HT_NIC_PCNET, HT_NIC_E1000, HT_N\
IC_PARAVIRTUAL])

HT_VALID_CACHE_TYPES

Value:
frozenset([HT_CACHE_DEFAULT, HT_CACHE_NONE, HT_CACHE_WTHROUGH, HT_CACH\
E_WBACK])

HT_HVM_VALID_DISK_TYPES

Value:
frozenset([HT_DISK_PARAVIRTUAL, HT_DISK_IOEMU])

HT_KVM_VALID_DISK_TYPES

Value:
frozenset([HT_DISK_PARAVIRTUAL, HT_DISK_IDE, HT_DISK_SCSI, HT_DISK_SD,\
 HT_DISK_MTD, HT_DISK_PFLASH])

HT_KVM_VALID_MOUSE_TYPES

Value:
frozenset([HT_MOUSE_MOUSE, HT_MOUSE_TABLET])

HT_KVM_VALID_BO_TYPES

Value:
frozenset([HT_BO_FLOPPY, HT_BO_CDROM, HT_BO_DISK, HT_BO_NETWORK])

HT_KVM_VALID_SM_TYPES

Value:
frozenset([HT_SM_NONE, HT_SM_USER, HT_SM_POOL])

HT_MIGRATION_MODES

Value:
frozenset([HT_MIGRATION_LIVE, HT_MIGRATION_NONLIVE])

INSTST_ALL

Value:
frozenset([INSTST_RUNNING, INSTST_ADMINDOWN, INSTST_NODEOFFLINE, INSTS\
T_NODEDOWN, INSTST_WRONGNODE, INSTST_ERRORUP, INSTST_ERRORDOWN,])

NR_ALL

Value:
frozenset([NR_REGULAR, NR_MASTER, NR_MCANDIDATE, NR_DRAINED, NR_OFFLIN\
E,])

VALID_IALLOCATOR_DIRECTIONS

Value:
frozenset([IALLOCATOR_DIR_IN, IALLOCATOR_DIR_OUT,])

VALID_IALLOCATOR_MODES

Value:
frozenset([IALLOCATOR_MODE_ALLOC, IALLOCATOR_MODE_RELOC, IALLOCATOR_MO\
DE_CHG_GROUP, IALLOCATOR_MODE_NODE_EVAC,])

IALLOCATOR_NEVAC_MODES

Value:
frozenset([IALLOCATOR_NEVAC_PRI, IALLOCATOR_NEVAC_SEC, IALLOCATOR_NEVA\
C_ALL,])

JOBS_FINALIZED

Value:
frozenset([JOB_STATUS_CANCELED, JOB_STATUS_SUCCESS, JOB_STATUS_ERROR,]\
)

JOB_STATUS_ALL

Value:
frozenset([JOB_STATUS_QUEUED, JOB_STATUS_WAITING, JOB_STATUS_CANCELING\
, JOB_STATUS_RUNNING,]) | JOBS_FINALIZED

OPS_FINALIZED

Value:
frozenset([OP_STATUS_CANCELED, OP_STATUS_SUCCESS, OP_STATUS_ERROR])

OP_PRIO_SUBMIT_VALID

Value:
frozenset([OP_PRIO_LOW, OP_PRIO_NORMAL, OP_PRIO_HIGH,])

JQT_ALL

Value:
frozenset([JQT_EXPANDNAMES, JQT_EXEC, JQT_LOGMSG, JQT_STARTMSG,])

QFT_ALL

All query field types

Value:
frozenset([QFT_UNKNOWN, QFT_TEXT, QFT_BOOL, QFT_NUMBER, QFT_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:
frozenset([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)", "-"),}

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/sda1", HV_KERNEL_ARGS: "ro", HV_MIGRATION_\
PORT: 8002, HV_MIGRATION_MODE: HT_MIGRATION_LIVE, HV_BLOCKDEV_PREFIX: \
"sd", HV_REBOOT_BEHAVIOR: INSTANCE_REBOOT_ALLOWED,}, HT_XEN_HVM: {HV_B\
OOT_ORDER: "cd", HV_CDROM_IMAGE_PATH: "", HV_NIC_TYPE: HT_NIC_RTL8139,\
 HV_DISK_TYPE: HT_DISK_PARAVIRTUAL, HV_VNC_BIND_ADDRESS: IP4_ADDRESS_A\
NY, HV_VNC_PASSWORD_FILE: VNC_PASSWORD_FILE, HV_ACPI: True, HV_PAE: Tr\
...

HVC_GLOBALS

Value:
frozenset([HV_MIGRATION_PORT, HV_MIGRATION_BANDWIDTH, HV_MIGRATION_MOD\
E,])

BEC_DEFAULTS

Value:
{BE_MEMORY: 128, BE_VCPUS: 1, BE_AUTO_BALANCE: True,}

NICC_DEFAULTS

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

CONFD_REQS

Value:
frozenset([CONFD_REQ_PING, CONFD_REQ_NODE_ROLE_BYNAME, CONFD_REQ_NODE_\
PIP_BY_INSTANCE_IP, CONFD_REQ_CLUSTER_MASTER, CONFD_REQ_NODE_PIP_LIST,\
 CONFD_REQ_MC_PIP_LIST, CONFD_REQ_INSTANCES_IPS_LIST,])

CONFD_REPL_STATUSES

Value:
frozenset([CONFD_REPL_STATUS_OK, CONFD_REPL_STATUS_ERROR, CONFD_REPL_S\
TATUS_NOTIMPLEMENTED,])

VALID_ALLOC_POLICIES

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