constants.py 47 KB
Newer Older
Iustin Pop's avatar
Iustin Pop committed
1
#
Iustin Pop's avatar
Iustin Pop committed
2 3
#

Iustin Pop's avatar
Iustin Pop committed
4
# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Google Inc.
Iustin Pop's avatar
Iustin Pop committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.


"""Module holding different constants."""

24
import re
25
import socket
26

27
from ganeti import _constants
28
from ganeti import _vcsversion
29
from ganeti import compat
30
from ganeti import pathutils
31

32

Iustin Pop's avatar
Iustin Pop committed
33
# various versions
34
RELEASE_VERSION = _constants.RELEASE_VERSION
35 36 37 38
OS_API_V10 = _constants.OS_API_V10
OS_API_V15 = _constants.OS_API_V15
OS_API_V20 = _constants.OS_API_V20
OS_API_VERSIONS = _constants.OS_API_VERSIONS
39
VCS_VERSION = _vcsversion.VCS_VERSION
40 41
EXPORT_VERSION = _constants.EXPORT_VERSION
RAPI_VERSION = _constants.RAPI_VERSION
Iustin Pop's avatar
Iustin Pop committed
42

43 44 45 46
VERSION_MAJOR = _constants.VERSION_MAJOR
VERSION_MINOR = _constants.VERSION_MINOR
VERSION_REVISION = _constants.VERSION_REVISION

47 48
DIR_VERSION = _constants.DIR_VERSION

49 50 51 52
CONFIG_MAJOR = _constants.CONFIG_MAJOR
CONFIG_MINOR = _constants.CONFIG_MINOR
CONFIG_REVISION = _constants.CONFIG_REVISION
CONFIG_VERSION = _constants.CONFIG_VERSION
Iustin Pop's avatar
Iustin Pop committed
53

54
PROTOCOL_VERSION = _constants.PROTOCOL_VERSION
55

Jose A. Lopes's avatar
Jose A. Lopes committed
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
DAEMONS_GROUP = _constants.DAEMONS_GROUP
ADMIN_GROUP = _constants.ADMIN_GROUP
MASTERD_USER = _constants.MASTERD_USER
MASTERD_GROUP = _constants.MASTERD_GROUP
RAPI_USER = _constants.RAPI_USER
RAPI_GROUP = _constants.RAPI_GROUP
CONFD_USER = _constants.CONFD_USER
CONFD_GROUP = _constants.CONFD_GROUP
LUXID_USER = _constants.LUXID_USER
LUXID_GROUP = _constants.LUXID_GROUP
NODED_USER = _constants.NODED_USER
NODED_GROUP = _constants.NODED_GROUP
MOND_USER = _constants.MOND_USER
MOND_GROUP = _constants.MOND_GROUP
SSH_LOGIN_USER = _constants.SSH_LOGIN_USER
SSH_CONSOLE_USER = _constants.SSH_CONSOLE_USER
72

73 74 75 76 77 78 79 80 81
CPU_PINNING_SEP = _constants.CPU_PINNING_SEP
CPU_PINNING_ALL = _constants.CPU_PINNING_ALL
CPU_PINNING_ALL_VAL = _constants.CPU_PINNING_ALL_VAL
CPU_PINNING_OFF = _constants.CPU_PINNING_OFF

CPU_PINNING_ALL_XEN = _constants.CPU_PINNING_ALL_XEN

CPU_PINNING_ALL_KVM = _constants.CPU_PINNING_ALL_KVM

82 83 84 85 86 87 88 89
DD_CMD = _constants.DD_CMD
MAX_WIPE_CHUNK = _constants.MAX_WIPE_CHUNK
MIN_WIPE_CHUNK_PERCENT = _constants.MIN_WIPE_CHUNK_PERCENT

RUN_DIRS_MODE = _constants.RUN_DIRS_MODE
SECURE_DIR_MODE = _constants.SECURE_DIR_MODE
SECURE_FILE_MODE = _constants.SECURE_FILE_MODE
ADOPTABLE_BLOCKDEV_ROOT = _constants.ADOPTABLE_BLOCKDEV_ROOT
90 91 92 93
ENABLE_CONFD = _constants.ENABLE_CONFD
ENABLE_MOND = _constants.ENABLE_MOND
ENABLE_SPLIT_QUERY = _constants.ENABLE_SPLIT_QUERY
ENABLE_RESTRICTED_COMMANDS = _constants.ENABLE_RESTRICTED_COMMANDS
94

95 96
SSH = _constants.SSH
SCP = _constants.SCP
97

98 99 100 101 102 103
NODED = _constants.NODED
CONFD = _constants.CONFD
LUXID = _constants.LUXID
RAPI = _constants.RAPI
MASTERD = _constants.MASTERD
MOND = _constants.MOND
104

105
DAEMONS = _constants.DAEMONS
106

107 108 109 110 111 112
DAEMONS_PORTS = _constants.DAEMONS_PORTS

DEFAULT_NODED_PORT = _constants.DEFAULT_NODED_PORT
DEFAULT_CONFD_PORT = _constants.DEFAULT_CONFD_PORT
DEFAULT_MOND_PORT = _constants.DEFAULT_MOND_PORT
DEFAULT_RAPI_PORT = _constants.DEFAULT_RAPI_PORT
113

114 115
FIRST_DRBD_PORT = _constants.FIRST_DRBD_PORT
LAST_DRBD_PORT = _constants.LAST_DRBD_PORT
Iustin Pop's avatar
Iustin Pop committed
116

117
DAEMONS_LOGBASE = _constants.DAEMONS_LOGBASE
118

119 120 121 122
DAEMONS_LOGFILES = \
    dict((daemon, pathutils.GetLogFilename(DAEMONS_LOGBASE[daemon]))
         for daemon in DAEMONS_LOGBASE)

123
DAEMONS_EXTRA_LOGBASE = _constants.DAEMONS_EXTRA_LOGBASE
124 125 126 127 128 129 130

DAEMONS_EXTRA_LOGFILES = \
  dict((daemon, dict((extra,
       pathutils.GetLogFilename(DAEMONS_EXTRA_LOGBASE[daemon][extra]))
       for extra in DAEMONS_EXTRA_LOGBASE[daemon]))
         for daemon in DAEMONS_EXTRA_LOGBASE)

131
DEV_CONSOLE = _constants.DEV_CONSOLE
Luca Bigliardi's avatar
Luca Bigliardi committed
132

133
PROC_MOUNTS = _constants.PROC_MOUNTS
Balazs Lecz's avatar
Balazs Lecz committed
134

135 136 137 138 139
LUXI_EOM = _constants.LUXI_EOM
LUXI_VERSION = _constants.LUXI_VERSION
LUXI_OVERRIDE = _constants.LUXI_OVERRIDE
LUXI_OVERRIDE_MASTER = _constants.LUXI_OVERRIDE_MASTER
LUXI_OVERRIDE_QUERY = _constants.LUXI_OVERRIDE_QUERY
140

141 142 143 144 145
SYSLOG_USAGE = _constants.SYSLOG_USAGE
SYSLOG_NO = _constants.SYSLOG_NO
SYSLOG_YES = _constants.SYSLOG_YES
SYSLOG_ONLY = _constants.SYSLOG_ONLY
SYSLOG_SOCKET = _constants.SYSLOG_SOCKET
146

147
EXPORT_CONF_FILE = _constants.EXPORT_CONF_FILE
Iustin Pop's avatar
Iustin Pop committed
148

149 150 151 152 153 154
XEN_BOOTLOADER = _constants.XEN_BOOTLOADER
XEN_KERNEL = _constants.XEN_KERNEL
XEN_INITRD = _constants.XEN_INITRD
XEN_CMD_XM = _constants.XEN_CMD_XM
XEN_CMD_XL = _constants.XEN_CMD_XL
KNOWN_XEN_COMMANDS = _constants.KNOWN_XEN_COMMANDS
155

Guido Trotter's avatar
Guido Trotter committed
156 157 158 159 160
# When the Xen toolstack used is "xl", live migration requires the source host
# to connect to the target host via ssh (xl runs this command). We need to pass
# the command xl runs some extra info so that it can use Ganeti's key
# verification and not fail. Note that this string is incomplete: it must be
# filled with the cluster name before being used.
161
XL_SSH_CMD = ("ssh -l %s -oGlobalKnownHostsFile=%s"
Guido Trotter's avatar
Guido Trotter committed
162 163
              " -oUserKnownHostsFile=/dev/null"
              " -oCheckHostIp=no -oStrictHostKeyChecking=yes"
164 165
              " -oHostKeyAlias=%%s") % (SSH_LOGIN_USER,
                                        pathutils.SSH_KNOWN_HOSTS_FILE)
166

167 168 169 170 171
KVM_PATH = _constants.KVM_PATH
KVM_KERNEL = _constants.KVM_KERNEL
SOCAT_PATH = _constants.SOCAT_PATH
SOCAT_USE_ESCAPE = _constants.SOCAT_USE_ESCAPE
SOCAT_USE_COMPRESS = _constants.SOCAT_USE_COMPRESS
172
SOCAT_ESCAPE_CODE = _constants.SOCAT_ESCAPE_CODE
173

174

175 176 177 178 179
CONS_SSH = _constants.CONS_SSH
CONS_VNC = _constants.CONS_VNC
CONS_SPICE = _constants.CONS_SPICE
CONS_MESSAGE = _constants.CONS_MESSAGE
CONS_ALL = _constants.CONS_ALL
180

181 182
RSA_KEY_BITS = _constants.RSA_KEY_BITS
OPENSSL_CIPHERS = _constants.OPENSSL_CIPHERS
183

184 185 186 187
X509_CERT_SIGN_DIGEST = _constants.X509_CERT_SIGN_DIGEST
X509_CERT_DEFAULT_VALIDITY = _constants.X509_CERT_DEFAULT_VALIDITY
X509_CERT_CN = _constants.X509_CERT_CN
X509_CERT_SIGNATURE_HEADER = _constants.X509_CERT_SIGNATURE_HEADER
188

189
# Import/export daemon mode
190 191
IEM_IMPORT = _constants.IEM_IMPORT
IEM_EXPORT = _constants.IEM_EXPORT
192

193
# Import/export transport compression
194 195 196
IEC_NONE = _constants.IEC_NONE
IEC_GZIP = _constants.IEC_GZIP
IEC_ALL = _constants.IEC_ALL
197

198
IE_CUSTOM_SIZE = _constants.IE_CUSTOM_SIZE
199

200 201
IE_MAGIC_RE = re.compile(r"^[-_.a-zA-Z0-9]{5,100}$")

202 203 204
IEIO_FILE = _constants.IEIO_FILE
IEIO_RAW_DISK = _constants.IEIO_RAW_DISK
IEIO_SCRIPT = _constants.IEIO_SCRIPT
205

206 207 208 209 210 211 212
VALUE_DEFAULT = _constants.VALUE_DEFAULT
VALUE_AUTO = _constants.VALUE_AUTO
VALUE_GENERATE = _constants.VALUE_GENERATE
VALUE_NONE = _constants.VALUE_NONE
VALUE_TRUE = _constants.VALUE_TRUE
VALUE_FALSE = _constants.VALUE_FALSE
VALUE_HS_NOTHING = _constants.VALUE_HS_NOTHING
213

214 215 216
# External script validation mask
EXT_PLUGIN_MASK = re.compile("^[a-zA-Z0-9_-]+$")

217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232
HOOKS_PHASE_PRE = _constants.HOOKS_PHASE_PRE
HOOKS_PHASE_POST = _constants.HOOKS_PHASE_POST
HOOKS_NAME_CFGUPDATE = _constants.HOOKS_NAME_CFGUPDATE
HOOKS_NAME_WATCHER = _constants.HOOKS_NAME_WATCHER
HOOKS_VERSION = _constants.HOOKS_VERSION
HOOKS_PATH = _constants.HOOKS_PATH

HTYPE_CLUSTER = _constants.HTYPE_CLUSTER
HTYPE_NODE = _constants.HTYPE_NODE
HTYPE_GROUP = _constants.HTYPE_GROUP
HTYPE_INSTANCE = _constants.HTYPE_INSTANCE
HTYPE_NETWORK = _constants.HTYPE_NETWORK

HKR_SKIP = _constants.HKR_SKIP
HKR_FAIL = _constants.HKR_FAIL
HKR_SUCCESS = _constants.HKR_SUCCESS
Iustin Pop's avatar
Iustin Pop committed
233

234 235 236 237 238 239 240 241
ST_BLOCK = _constants.ST_BLOCK
ST_DISKLESS = _constants.ST_DISKLESS
ST_EXT = _constants.ST_EXT
ST_FILE = _constants.ST_FILE
ST_LVM_PV = _constants.ST_LVM_PV
ST_LVM_VG = _constants.ST_LVM_VG
ST_RADOS = _constants.ST_RADOS
STORAGE_TYPES = _constants.STORAGE_TYPES
242
STS_REPORT = _constants.STS_REPORT
243

244
# Storage fields
245
# first two are valid in LU context only, not passed to backend
246 247
SF_NODE = _constants.SF_NODE
SF_TYPE = _constants.SF_TYPE
248
# and the rest are valid in backend
249 250 251 252 253
SF_NAME = _constants.SF_NAME
SF_SIZE = _constants.SF_SIZE
SF_FREE = _constants.SF_FREE
SF_USED = _constants.SF_USED
SF_ALLOCATABLE = _constants.SF_ALLOCATABLE
254 255
VALID_STORAGE_FIELDS = _constants.VALID_STORAGE_FIELDS
MODIFIABLE_STORAGE_FIELDS = _constants.MODIFIABLE_STORAGE_FIELDS
256

257 258
SO_FIX_CONSISTENCY = _constants.SO_FIX_CONSISTENCY
VALID_STORAGE_OPERATIONS = _constants.VALID_STORAGE_OPERATIONS
259

260 261 262 263 264 265 266
VF_DEV = _constants.VF_DEV
VF_INSTANCE = _constants.VF_INSTANCE
VF_NAME = _constants.VF_NAME
VF_NODE = _constants.VF_NODE
VF_PHYS = _constants.VF_PHYS
VF_SIZE = _constants.VF_SIZE
VF_VG = _constants.VF_VG
267

268 269 270 271
LDS_OKAY = _constants.LDS_OKAY
LDS_UNKNOWN = _constants.LDS_UNKNOWN
LDS_FAULTY = _constants.LDS_FAULTY
LDS_NAMES = _constants.LDS_NAMES
272

273 274 275 276 277 278 279 280 281 282 283
DT_BLOCK = _constants.DT_BLOCK
DT_DISKLESS = _constants.DT_DISKLESS
DT_DRBD8 = _constants.DT_DRBD8
DT_EXT = _constants.DT_EXT
DT_FILE = _constants.DT_FILE
DT_PLAIN = _constants.DT_PLAIN
DT_RBD = _constants.DT_RBD
DT_SHARED_FILE = _constants.DT_SHARED_FILE
DISK_TEMPLATE_PREFERENCE = _constants.DISK_TEMPLATE_PREFERENCE
DISK_TEMPLATES = _constants.DISK_TEMPLATES
DEFAULT_ENABLED_DISK_TEMPLATES = _constants.DEFAULT_ENABLED_DISK_TEMPLATES
284

285
MAP_DISK_TEMPLATE_STORAGE_TYPE = _constants.MAP_DISK_TEMPLATE_STORAGE_TYPE
286

287 288 289 290 291 292 293 294 295 296 297 298
DTS_INT_MIRROR = _constants.DTS_INT_MIRROR
DTS_EXT_MIRROR = _constants.DTS_EXT_MIRROR
DTS_NOT_LVM = _constants.DTS_NOT_LVM
DTS_GROWABLE = _constants.DTS_GROWABLE
DTS_MAY_ADOPT = _constants.DTS_MAY_ADOPT
DTS_MUST_ADOPT = _constants.DTS_MUST_ADOPT
DTS_MIRRORED = _constants.DTS_MIRRORED
DTS_FILEBASED = _constants.DTS_FILEBASED
DTS_COPYABLE = _constants.DTS_COPYABLE
DTS_EXCL_STORAGE = _constants.DTS_EXCL_STORAGE
DTS_NO_FREE_SPACE_CHECK = _constants.DTS_NO_FREE_SPACE_CHECK
DTS_BLOCK = _constants.DTS_BLOCK
299

300 301
DTS_DRBD = _constants.DTS_DRBD

Jose A. Lopes's avatar
Jose A. Lopes committed
302 303
DTS_LVM = _constants.DTS_LVM

304 305 306 307 308 309 310 311 312 313
DRBD_HMAC_ALG = _constants.DRBD_HMAC_ALG
DRBD_DEFAULT_NET_PROTOCOL = _constants.DRBD_DEFAULT_NET_PROTOCOL
DRBD_MIGRATION_NET_PROTOCOL = _constants.DRBD_MIGRATION_NET_PROTOCOL
DRBD_STATUS_FILE = _constants.DRBD_STATUS_FILE
DRBD_META_SIZE = _constants.DRBD_META_SIZE

DRBD_B_NONE = _constants.DRBD_B_NONE
DRBD_B_DISK_BARRIERS = _constants.DRBD_B_DISK_BARRIERS
DRBD_B_DISK_DRAIN = _constants.DRBD_B_DISK_DRAIN
DRBD_B_DISK_FLUSH = _constants.DRBD_B_DISK_FLUSH
314

315
DRBD_VALID_BARRIER_OPT = _constants.DRBD_VALID_BARRIER_OPT
Iustin Pop's avatar
Iustin Pop committed
316

317
RBD_CMD = _constants.RBD_CMD
318

319 320
FD_BLKTAP = _constants.FD_BLKTAP
FD_LOOP = _constants.FD_LOOP
321
FILE_DRIVER = _constants.FILE_DRIVER
322

323 324 325
DISK_RDONLY = _constants.DISK_RDONLY
DISK_RDWR = _constants.DISK_RDWR
DISK_ACCESS_SET = _constants.DISK_ACCESS_SET
326 327 328
DISK_USERSPACE = _constants.DISK_USERSPACE
DISK_KERNELSPACE = _constants.DISK_KERNELSPACE
DISK_VALID_ACCESS_MODES = _constants.DISK_VALID_ACCESS_MODES
329

330 331 332 333 334
REPLACE_DISK_PRI = _constants.REPLACE_DISK_PRI
REPLACE_DISK_SEC = _constants.REPLACE_DISK_SEC
REPLACE_DISK_CHG = _constants.REPLACE_DISK_CHG
REPLACE_DISK_AUTO = _constants.REPLACE_DISK_AUTO
REPLACE_MODES = _constants.REPLACE_MODES
335

336 337 338
EXPORT_MODE_LOCAL = _constants.EXPORT_MODE_LOCAL
EXPORT_MODE_REMOTE = _constants.EXPORT_MODE_REMOTE
EXPORT_MODES = _constants.EXPORT_MODES
339

340 341 342 343
INSTANCE_CREATE = _constants.INSTANCE_CREATE
INSTANCE_IMPORT = _constants.INSTANCE_IMPORT
INSTANCE_REMOTE_IMPORT = _constants.INSTANCE_REMOTE_IMPORT
INSTANCE_CREATE_MODES = _constants.INSTANCE_CREATE_MODES
Iustin Pop's avatar
Iustin Pop committed
344

345 346 347 348 349 350 351
RIE_VERSION = _constants.RIE_VERSION
RIE_HANDSHAKE = _constants.RIE_HANDSHAKE
RIE_CERT_VALIDITY = _constants.RIE_CERT_VALIDITY
RIE_CONNECT_TIMEOUT = _constants.RIE_CONNECT_TIMEOUT
RIE_CONNECT_ATTEMPT_TIMEOUT = _constants.RIE_CONNECT_ATTEMPT_TIMEOUT
RIE_CONNECT_RETRIES = _constants.RIE_CONNECT_RETRIES
CHILD_LINGER_TIMEOUT = _constants.CHILD_LINGER_TIMEOUT
Iustin Pop's avatar
Iustin Pop committed
352

353 354 355 356 357
INISECT_EXP = _constants.INISECT_EXP
INISECT_INS = _constants.INISECT_INS
INISECT_HYP = _constants.INISECT_HYP
INISECT_BEP = _constants.INISECT_BEP
INISECT_OSP = _constants.INISECT_OSP
358

359 360 361 362 363
DDM_ADD = _constants.DDM_ADD
DDM_MODIFY = _constants.DDM_MODIFY
DDM_REMOVE = _constants.DDM_REMOVE
DDMS_VALUES = _constants.DDMS_VALUES
DDMS_VALUES_WITH_MODIFY = _constants.DDMS_VALUES_WITH_MODIFY
364

365
# common exit codes
366 367 368 369 370
EXIT_SUCCESS = _constants.EXIT_SUCCESS
EXIT_FAILURE = _constants.EXIT_FAILURE
EXIT_NOTCLUSTER = _constants.EXIT_NOTCLUSTER
EXIT_NOTMASTER = _constants.EXIT_NOTMASTER
EXIT_NODESETUP_ERROR = _constants.EXIT_NODESETUP_ERROR
371
EXIT_CONFIRMATION = _constants.EXIT_CONFIRMATION
372
EXIT_UNKNOWN_FIELD = _constants.EXIT_UNKNOWN_FIELD
373

374 375 376 377 378 379 380 381 382
TAG_CLUSTER = _constants.TAG_CLUSTER
TAG_NODEGROUP = _constants.TAG_NODEGROUP
TAG_NODE = _constants.TAG_NODE
TAG_INSTANCE = _constants.TAG_INSTANCE
TAG_NETWORK = _constants.TAG_NETWORK
VALID_TAG_TYPES = _constants.VALID_TAG_TYPES

MAX_TAG_LEN = _constants.MAX_TAG_LEN
MAX_TAGS_PER_OBJ = _constants.MAX_TAGS_PER_OBJ
383

384
# others
385 386 387 388 389 390 391 392 393 394
DEFAULT_BRIDGE = _constants.DEFAULT_BRIDGE
DEFAULT_OVS = _constants.DEFAULT_OVS
CLASSIC_DRBD_SYNC_SPEED = _constants.CLASSIC_DRBD_SYNC_SPEED
IP4_ADDRESS_LOCALHOST = _constants.IP4_ADDRESS_LOCALHOST
IP4_ADDRESS_ANY = _constants.IP4_ADDRESS_ANY
IP6_ADDRESS_LOCALHOST = _constants.IP6_ADDRESS_LOCALHOST
IP6_ADDRESS_ANY = _constants.IP6_ADDRESS_ANY
IP4_VERSION = _constants.IP4_VERSION
IP6_VERSION = _constants.IP6_VERSION
VALID_IP_VERSIONS = _constants.VALID_IP_VERSIONS
395 396 397 398
# for export to htools
IP4_FAMILY = socket.AF_INET
IP6_FAMILY = socket.AF_INET6

399 400 401 402 403 404
TCP_PING_TIMEOUT = _constants.TCP_PING_TIMEOUT
DEFAULT_VG = _constants.DEFAULT_VG
DEFAULT_DRBD_HELPER = _constants.DEFAULT_DRBD_HELPER
MIN_VG_SIZE = _constants.MIN_VG_SIZE
DEFAULT_MAC_PREFIX = _constants.DEFAULT_MAC_PREFIX
DEFAULT_SHUTDOWN_TIMEOUT = _constants.DEFAULT_SHUTDOWN_TIMEOUT
405
NODE_MAX_CLOCK_SKEW = _constants.NODE_MAX_CLOCK_SKEW
406
DISK_TRANSFER_CONNECT_TIMEOUT = _constants.DISK_TRANSFER_CONNECT_TIMEOUT
407 408
DISK_SEPARATOR = _constants.DISK_SEPARATOR
IP_COMMAND_PATH = _constants.IP_COMMAND_PATH
409 410 411 412 413 414 415 416 417
JOB_IDS_KEY = _constants.JOB_IDS_KEY

RUNPARTS_SKIP = _constants.RUNPARTS_SKIP
RUNPARTS_RUN = _constants.RUNPARTS_RUN
RUNPARTS_ERR = _constants.RUNPARTS_ERR
RUNPARTS_STATUS = _constants.RUNPARTS_STATUS

RPC_ENCODING_NONE = _constants.RPC_ENCODING_NONE
RPC_ENCODING_ZLIB_BASE64 = _constants.RPC_ENCODING_ZLIB_BASE64
418

419 420 421 422 423 424 425 426
RPC_TMO_URGENT = _constants.RPC_TMO_URGENT
RPC_TMO_FAST = _constants.RPC_TMO_FAST
RPC_TMO_NORMAL = _constants.RPC_TMO_NORMAL
RPC_TMO_SLOW = _constants.RPC_TMO_SLOW
RPC_TMO_4HRS = _constants.RPC_TMO_4HRS
RPC_TMO_1DAY = _constants.RPC_TMO_1DAY
RPC_CONNECT_TIMEOUT = _constants.RPC_CONNECT_TIMEOUT

427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458
OS_SCRIPT_CREATE = _constants.OS_SCRIPT_CREATE
OS_SCRIPT_IMPORT = _constants.OS_SCRIPT_IMPORT
OS_SCRIPT_EXPORT = _constants.OS_SCRIPT_EXPORT
OS_SCRIPT_RENAME = _constants.OS_SCRIPT_RENAME
OS_SCRIPT_VERIFY = _constants.OS_SCRIPT_VERIFY
OS_SCRIPTS = _constants.OS_SCRIPTS

OS_API_FILE = _constants.OS_API_FILE
OS_VARIANTS_FILE = _constants.OS_VARIANTS_FILE
OS_PARAMETERS_FILE = _constants.OS_PARAMETERS_FILE

OS_VALIDATE_PARAMETERS = _constants.OS_VALIDATE_PARAMETERS
OS_VALIDATE_CALLS = _constants.OS_VALIDATE_CALLS

ES_ACTION_CREATE = _constants.ES_ACTION_CREATE
ES_ACTION_REMOVE = _constants.ES_ACTION_REMOVE
ES_ACTION_GROW = _constants.ES_ACTION_GROW
ES_ACTION_ATTACH = _constants.ES_ACTION_ATTACH
ES_ACTION_DETACH = _constants.ES_ACTION_DETACH
ES_ACTION_SETINFO = _constants.ES_ACTION_SETINFO
ES_ACTION_VERIFY = _constants.ES_ACTION_VERIFY

ES_SCRIPT_CREATE = _constants.ES_SCRIPT_CREATE
ES_SCRIPT_REMOVE = _constants.ES_SCRIPT_REMOVE
ES_SCRIPT_GROW = _constants.ES_SCRIPT_GROW
ES_SCRIPT_ATTACH = _constants.ES_SCRIPT_ATTACH
ES_SCRIPT_DETACH = _constants.ES_SCRIPT_DETACH
ES_SCRIPT_SETINFO = _constants.ES_SCRIPT_SETINFO
ES_SCRIPT_VERIFY = _constants.ES_SCRIPT_VERIFY
ES_SCRIPTS = _constants.ES_SCRIPTS

ES_PARAMETERS_FILE = _constants.ES_PARAMETERS_FILE
459

460 461 462 463
INSTANCE_REBOOT_SOFT = _constants.INSTANCE_REBOOT_SOFT
INSTANCE_REBOOT_HARD = _constants.INSTANCE_REBOOT_HARD
INSTANCE_REBOOT_FULL = _constants.INSTANCE_REBOOT_FULL
REBOOT_TYPES = _constants.REBOOT_TYPES
464

465 466 467
INSTANCE_REBOOT_ALLOWED = _constants.INSTANCE_REBOOT_ALLOWED
INSTANCE_REBOOT_EXIT = _constants.INSTANCE_REBOOT_EXIT
REBOOT_BEHAVIORS = _constants.REBOOT_BEHAVIORS
468

469 470 471 472 473 474
VTYPE_STRING = _constants.VTYPE_STRING
VTYPE_MAYBE_STRING = _constants.VTYPE_MAYBE_STRING
VTYPE_BOOL = _constants.VTYPE_BOOL
VTYPE_SIZE = _constants.VTYPE_SIZE
VTYPE_INT = _constants.VTYPE_INT
ENFORCEABLE_TYPES = _constants.ENFORCEABLE_TYPES
475

476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552
IFACE_NO_IP_VERSION_SPECIFIED = _constants.IFACE_NO_IP_VERSION_SPECIFIED

VALID_SERIAL_SPEEDS = _constants.VALID_SERIAL_SPEEDS

HV_BOOT_ORDER = _constants.HV_BOOT_ORDER
HV_CDROM_IMAGE_PATH = _constants.HV_CDROM_IMAGE_PATH
HV_KVM_CDROM2_IMAGE_PATH = _constants.HV_KVM_CDROM2_IMAGE_PATH
HV_KVM_FLOPPY_IMAGE_PATH = _constants.HV_KVM_FLOPPY_IMAGE_PATH
HV_NIC_TYPE = _constants.HV_NIC_TYPE
HV_DISK_TYPE = _constants.HV_DISK_TYPE
HV_KVM_CDROM_DISK_TYPE = _constants.HV_KVM_CDROM_DISK_TYPE
HV_VNC_BIND_ADDRESS = _constants.HV_VNC_BIND_ADDRESS
HV_VNC_PASSWORD_FILE = _constants.HV_VNC_PASSWORD_FILE
HV_VNC_TLS = _constants.HV_VNC_TLS
HV_VNC_X509 = _constants.HV_VNC_X509
HV_VNC_X509_VERIFY = _constants.HV_VNC_X509_VERIFY
HV_KVM_SPICE_BIND = _constants.HV_KVM_SPICE_BIND
HV_KVM_SPICE_IP_VERSION = _constants.HV_KVM_SPICE_IP_VERSION
HV_KVM_SPICE_PASSWORD_FILE = _constants.HV_KVM_SPICE_PASSWORD_FILE
HV_KVM_SPICE_LOSSLESS_IMG_COMPR = _constants.HV_KVM_SPICE_LOSSLESS_IMG_COMPR
HV_KVM_SPICE_JPEG_IMG_COMPR = _constants.HV_KVM_SPICE_JPEG_IMG_COMPR
HV_KVM_SPICE_ZLIB_GLZ_IMG_COMPR = _constants.HV_KVM_SPICE_ZLIB_GLZ_IMG_COMPR
HV_KVM_SPICE_STREAMING_VIDEO_DETECTION = \
  _constants.HV_KVM_SPICE_STREAMING_VIDEO_DETECTION
HV_KVM_SPICE_AUDIO_COMPR = _constants.HV_KVM_SPICE_AUDIO_COMPR
HV_KVM_SPICE_USE_TLS = _constants.HV_KVM_SPICE_USE_TLS
HV_KVM_SPICE_TLS_CIPHERS = _constants.HV_KVM_SPICE_TLS_CIPHERS
HV_KVM_SPICE_USE_VDAGENT = _constants.HV_KVM_SPICE_USE_VDAGENT
HV_ACPI = _constants.HV_ACPI
HV_PAE = _constants.HV_PAE
HV_USE_BOOTLOADER = _constants.HV_USE_BOOTLOADER
HV_BOOTLOADER_ARGS = _constants.HV_BOOTLOADER_ARGS
HV_BOOTLOADER_PATH = _constants.HV_BOOTLOADER_PATH
HV_KERNEL_ARGS = _constants.HV_KERNEL_ARGS
HV_KERNEL_PATH = _constants.HV_KERNEL_PATH
HV_INITRD_PATH = _constants.HV_INITRD_PATH
HV_ROOT_PATH = _constants.HV_ROOT_PATH
HV_SERIAL_CONSOLE = _constants.HV_SERIAL_CONSOLE
HV_SERIAL_SPEED = _constants.HV_SERIAL_SPEED
HV_USB_MOUSE = _constants.HV_USB_MOUSE
HV_KEYMAP = _constants.HV_KEYMAP
HV_DEVICE_MODEL = _constants.HV_DEVICE_MODEL
HV_INIT_SCRIPT = _constants.HV_INIT_SCRIPT
HV_MIGRATION_PORT = _constants.HV_MIGRATION_PORT
HV_MIGRATION_BANDWIDTH = _constants.HV_MIGRATION_BANDWIDTH
HV_MIGRATION_DOWNTIME = _constants.HV_MIGRATION_DOWNTIME
HV_MIGRATION_MODE = _constants.HV_MIGRATION_MODE
HV_USE_LOCALTIME = _constants.HV_USE_LOCALTIME
HV_DISK_CACHE = _constants.HV_DISK_CACHE
HV_SECURITY_MODEL = _constants.HV_SECURITY_MODEL
HV_SECURITY_DOMAIN = _constants.HV_SECURITY_DOMAIN
HV_KVM_FLAG = _constants.HV_KVM_FLAG
HV_VHOST_NET = _constants.HV_VHOST_NET
HV_KVM_USE_CHROOT = _constants.HV_KVM_USE_CHROOT
HV_CPU_MASK = _constants.HV_CPU_MASK
HV_MEM_PATH = _constants.HV_MEM_PATH
HV_PASSTHROUGH = _constants.HV_PASSTHROUGH
HV_BLOCKDEV_PREFIX = _constants.HV_BLOCKDEV_PREFIX
HV_REBOOT_BEHAVIOR = _constants.HV_REBOOT_BEHAVIOR
HV_CPU_TYPE = _constants.HV_CPU_TYPE
HV_CPU_CAP = _constants.HV_CPU_CAP
HV_CPU_WEIGHT = _constants.HV_CPU_WEIGHT
HV_CPU_CORES = _constants.HV_CPU_CORES
HV_CPU_THREADS = _constants.HV_CPU_THREADS
HV_CPU_SOCKETS = _constants.HV_CPU_SOCKETS
HV_SOUNDHW = _constants.HV_SOUNDHW
HV_USB_DEVICES = _constants.HV_USB_DEVICES
HV_VGA = _constants.HV_VGA
HV_KVM_EXTRA = _constants.HV_KVM_EXTRA
HV_KVM_MACHINE_VERSION = _constants.HV_KVM_MACHINE_VERSION
HV_KVM_PATH = _constants.HV_KVM_PATH
HV_VIF_TYPE = _constants.HV_VIF_TYPE
HV_VIF_SCRIPT = _constants.HV_VIF_SCRIPT
HV_XEN_CMD = _constants.HV_XEN_CMD
HV_XEN_CPUID = _constants.HV_XEN_CPUID
HV_VNET_HDR = _constants.HV_VNET_HDR
HV_VIRIDIAN = _constants.HV_VIRIDIAN
553

554 555
HVS_PARAMETER_TYPES = _constants.HVS_PARAMETER_TYPES
HVS_PARAMETERS = _constants.HVS_PARAMETERS
556
HVS_PARAMETER_TITLES = _constants.HVS_PARAMETER_TITLES
557

558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583
HV_MIGRATION_COMPLETED = _constants.HV_MIGRATION_COMPLETED
HV_MIGRATION_ACTIVE = _constants.HV_MIGRATION_ACTIVE
HV_MIGRATION_FAILED = _constants.HV_MIGRATION_FAILED
HV_MIGRATION_CANCELLED = _constants.HV_MIGRATION_CANCELLED
HV_MIGRATION_VALID_STATUSES = _constants.HV_MIGRATION_VALID_STATUSES
HV_MIGRATION_FAILED_STATUSES = _constants.HV_MIGRATION_FAILED_STATUSES
HV_KVM_MIGRATION_VALID_STATUSES = _constants.HV_KVM_MIGRATION_VALID_STATUSES

HV_NODEINFO_KEY_VERSION = _constants.HV_NODEINFO_KEY_VERSION

HVST_MEMORY_TOTAL = _constants.HVST_MEMORY_TOTAL
HVST_MEMORY_NODE = _constants.HVST_MEMORY_NODE
HVST_MEMORY_HV = _constants.HVST_MEMORY_HV
HVST_CPU_TOTAL = _constants.HVST_CPU_TOTAL
HVST_CPU_NODE = _constants.HVST_CPU_NODE
HVSTS_PARAMETERS = _constants.HVSTS_PARAMETERS
HVST_DEFAULTS = _constants.HVST_DEFAULTS
HVSTS_PARAMETER_TYPES = _constants.HVSTS_PARAMETER_TYPES

DS_DISK_TOTAL = _constants.DS_DISK_TOTAL
DS_DISK_RESERVED = _constants.DS_DISK_RESERVED
DS_DISK_OVERHEAD = _constants.DS_DISK_OVERHEAD
DS_DEFAULTS = _constants.DS_DEFAULTS
DSS_PARAMETER_TYPES = _constants.DSS_PARAMETER_TYPES
DSS_PARAMETERS = _constants.DSS_PARAMETERS
DS_VALID_TYPES = _constants.DS_VALID_TYPES
584

585 586 587 588 589 590 591 592 593 594 595 596
BE_MEMORY = _constants.BE_MEMORY
BE_MAXMEM = _constants.BE_MAXMEM
BE_MINMEM = _constants.BE_MINMEM
BE_VCPUS = _constants.BE_VCPUS
BE_AUTO_BALANCE = _constants.BE_AUTO_BALANCE
BE_ALWAYS_FAILOVER = _constants.BE_ALWAYS_FAILOVER
BE_SPINDLE_USE = _constants.BE_SPINDLE_USE
BES_PARAMETER_TYPES = _constants.BES_PARAMETER_TYPES
BES_PARAMETER_TITLES = _constants.BES_PARAMETER_TITLES
BES_PARAMETER_COMPAT = _constants.BES_PARAMETER_COMPAT
BES_PARAMETERS = _constants.BES_PARAMETERS

597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616
ISPEC_MEM_SIZE = _constants.ISPEC_MEM_SIZE
ISPEC_CPU_COUNT = _constants.ISPEC_CPU_COUNT
ISPEC_DISK_COUNT = _constants.ISPEC_DISK_COUNT
ISPEC_DISK_SIZE = _constants.ISPEC_DISK_SIZE
ISPEC_NIC_COUNT = _constants.ISPEC_NIC_COUNT
ISPEC_SPINDLE_USE = _constants.ISPEC_SPINDLE_USE
ISPECS_PARAMETER_TYPES = _constants.ISPECS_PARAMETER_TYPES
ISPECS_PARAMETERS = _constants.ISPECS_PARAMETERS

ISPECS_MINMAX = _constants.ISPECS_MINMAX
ISPECS_MIN = _constants.ISPECS_MIN
ISPECS_MAX = _constants.ISPECS_MAX
ISPECS_STD = _constants.ISPECS_STD
IPOLICY_DTS = _constants.IPOLICY_DTS
IPOLICY_VCPU_RATIO = _constants.IPOLICY_VCPU_RATIO
IPOLICY_SPINDLE_RATIO = _constants.IPOLICY_SPINDLE_RATIO
ISPECS_MINMAX_KEYS = _constants.ISPECS_MINMAX_KEYS
IPOLICY_PARAMETERS = _constants.IPOLICY_PARAMETERS
IPOLICY_ALL_KEYS = _constants.IPOLICY_ALL_KEYS

617 618 619 620 621 622 623 624 625 626
ND_OOB_PROGRAM = _constants.ND_OOB_PROGRAM
ND_SPINDLE_COUNT = _constants.ND_SPINDLE_COUNT
ND_EXCLUSIVE_STORAGE = _constants.ND_EXCLUSIVE_STORAGE
ND_OVS = _constants.ND_OVS
ND_OVS_NAME = _constants.ND_OVS_NAME
ND_OVS_LINK = _constants.ND_OVS_LINK

NDS_PARAMETER_TYPES = _constants.NDS_PARAMETER_TYPES
NDS_PARAMETERS = _constants.NDS_PARAMETERS
NDS_PARAMETER_TITLES = _constants.NDS_PARAMETER_TITLES
627

628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645
LDP_RESYNC_RATE = _constants.LDP_RESYNC_RATE
LDP_STRIPES = _constants.LDP_STRIPES
LDP_BARRIERS = _constants.LDP_BARRIERS
LDP_NO_META_FLUSH = _constants.LDP_NO_META_FLUSH
LDP_DEFAULT_METAVG = _constants.LDP_DEFAULT_METAVG
LDP_DISK_CUSTOM = _constants.LDP_DISK_CUSTOM
LDP_NET_CUSTOM = _constants.LDP_NET_CUSTOM
LDP_PROTOCOL = _constants.LDP_PROTOCOL
LDP_DYNAMIC_RESYNC = _constants.LDP_DYNAMIC_RESYNC
LDP_PLAN_AHEAD = _constants.LDP_PLAN_AHEAD
LDP_FILL_TARGET = _constants.LDP_FILL_TARGET
LDP_DELAY_TARGET = _constants.LDP_DELAY_TARGET
LDP_MAX_RATE = _constants.LDP_MAX_RATE
LDP_MIN_RATE = _constants.LDP_MIN_RATE
LDP_POOL = _constants.LDP_POOL
LDP_ACCESS = _constants.LDP_ACCESS
DISK_LD_TYPES = _constants.DISK_LD_TYPES
DISK_LD_PARAMETERS = _constants.DISK_LD_PARAMETERS
646

647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672
DRBD_RESYNC_RATE = _constants.DRBD_RESYNC_RATE
DRBD_DATA_STRIPES = _constants.DRBD_DATA_STRIPES
DRBD_META_STRIPES = _constants.DRBD_META_STRIPES
DRBD_DISK_BARRIERS = _constants.DRBD_DISK_BARRIERS
DRBD_META_BARRIERS = _constants.DRBD_META_BARRIERS
DRBD_DEFAULT_METAVG = _constants.DRBD_DEFAULT_METAVG
DRBD_DISK_CUSTOM = _constants.DRBD_DISK_CUSTOM
DRBD_NET_CUSTOM = _constants.DRBD_NET_CUSTOM
DRBD_PROTOCOL = _constants.DRBD_PROTOCOL
DRBD_DYNAMIC_RESYNC = _constants.DRBD_DYNAMIC_RESYNC
DRBD_PLAN_AHEAD = _constants.DRBD_PLAN_AHEAD
DRBD_FILL_TARGET = _constants.DRBD_FILL_TARGET
DRBD_DELAY_TARGET = _constants.DRBD_DELAY_TARGET
DRBD_MAX_RATE = _constants.DRBD_MAX_RATE
DRBD_MIN_RATE = _constants.DRBD_MIN_RATE
LV_STRIPES = _constants.LV_STRIPES
RBD_ACCESS = _constants.RBD_ACCESS
RBD_POOL = _constants.RBD_POOL
DISK_DT_TYPES = _constants.DISK_DT_TYPES
DISK_DT_PARAMETERS = _constants.DISK_DT_PARAMETERS

DDP_LOCAL_IP = _constants.DDP_LOCAL_IP
DDP_REMOTE_IP = _constants.DDP_REMOTE_IP
DDP_PORT = _constants.DDP_PORT
DDP_LOCAL_MINOR = _constants.DDP_LOCAL_MINOR
DDP_REMOTE_MINOR = _constants.DDP_REMOTE_MINOR
673

674 675 676 677 678 679
OOB_POWER_ON = _constants.OOB_POWER_ON
OOB_POWER_OFF = _constants.OOB_POWER_OFF
OOB_POWER_CYCLE = _constants.OOB_POWER_CYCLE
OOB_POWER_STATUS = _constants.OOB_POWER_STATUS
OOB_HEALTH = _constants.OOB_HEALTH
OOB_COMMANDS = _constants.OOB_COMMANDS
680

681
OOB_POWER_STATUS_POWERED = _constants.OOB_POWER_STATUS_POWERED
682

683 684
OOB_TIMEOUT = _constants.OOB_TIMEOUT
OOB_POWER_DELAY = _constants.OOB_POWER_DELAY
685

686 687 688 689 690
OOB_STATUS_OK = _constants.OOB_STATUS_OK
OOB_STATUS_WARNING = _constants.OOB_STATUS_WARNING
OOB_STATUS_CRITICAL = _constants.OOB_STATUS_CRITICAL
OOB_STATUS_UNKNOWN = _constants.OOB_STATUS_UNKNOWN
OOB_STATUSES = _constants.OOB_STATUSES
691

692
PP_DEFAULT = _constants.PP_DEFAULT
693

694 695 696
NIC_MODE = _constants.NIC_MODE
NIC_LINK = _constants.NIC_LINK
NIC_VLAN = _constants.NIC_VLAN
Jose A. Lopes's avatar
Jose A. Lopes committed
697 698
NICS_PARAMETER_TYPES = _constants.NICS_PARAMETER_TYPES
NICS_PARAMETERS = _constants.NICS_PARAMETERS
699 700 701 702 703 704

NIC_MODE_BRIDGED = _constants.NIC_MODE_BRIDGED
NIC_MODE_ROUTED = _constants.NIC_MODE_ROUTED
NIC_MODE_OVS = _constants.NIC_MODE_OVS
NIC_IP_POOL = _constants.NIC_IP_POOL
NIC_VALID_MODES = _constants.NIC_VALID_MODES
Guido Trotter's avatar
Guido Trotter committed
705

706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729
RESERVE_ACTION = _constants.RESERVE_ACTION
RELEASE_ACTION = _constants.RELEASE_ACTION

IDISK_SIZE = _constants.IDISK_SIZE
IDISK_SPINDLES = _constants.IDISK_SPINDLES
IDISK_MODE = _constants.IDISK_MODE
IDISK_ADOPT = _constants.IDISK_ADOPT
IDISK_VG = _constants.IDISK_VG
IDISK_METAVG = _constants.IDISK_METAVG
IDISK_PROVIDER = _constants.IDISK_PROVIDER
IDISK_NAME = _constants.IDISK_NAME
IDISK_PARAMS_TYPES = _constants.IDISK_PARAMS_TYPES
IDISK_PARAMS = _constants.IDISK_PARAMS

INIC_MAC = _constants.INIC_MAC
INIC_IP = _constants.INIC_IP
INIC_MODE = _constants.INIC_MODE
INIC_LINK = _constants.INIC_LINK
INIC_NETWORK = _constants.INIC_NETWORK
INIC_NAME = _constants.INIC_NAME
INIC_VLAN = _constants.INIC_VLAN
INIC_BRIDGE = _constants.INIC_BRIDGE
INIC_PARAMS_TYPES = _constants.INIC_PARAMS_TYPES
INIC_PARAMS = _constants.INIC_PARAMS
730

731 732 733 734 735 736 737 738
HT_XEN_PVM = _constants.HT_XEN_PVM
HT_FAKE = _constants.HT_FAKE
HT_XEN_HVM = _constants.HT_XEN_HVM
HT_KVM = _constants.HT_KVM
HT_CHROOT = _constants.HT_CHROOT
HT_LXC = _constants.HT_LXC
HYPER_TYPES = _constants.HYPER_TYPES
HTS_REQ_PORT = _constants.HTS_REQ_PORT
739

Jose A. Lopes's avatar
Jose A. Lopes committed
740 741
VNC_BASE_PORT = _constants.VNC_BASE_PORT
VNC_DEFAULT_BIND_ADDRESS = _constants.VNC_DEFAULT_BIND_ADDRESS
Guido Trotter's avatar
Guido Trotter committed
742

743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825
HT_NIC_RTL8139 = _constants.HT_NIC_RTL8139
HT_NIC_NE2K_PCI = _constants.HT_NIC_NE2K_PCI
HT_NIC_NE2K_ISA = _constants.HT_NIC_NE2K_ISA
HT_NIC_I82551 = _constants.HT_NIC_I82551
HT_NIC_I85557B = _constants.HT_NIC_I85557B
HT_NIC_I8259ER = _constants.HT_NIC_I8259ER
HT_NIC_PCNET = _constants.HT_NIC_PCNET
HT_NIC_E1000 = _constants.HT_NIC_E1000
HT_NIC_PARAVIRTUAL = _constants.HT_NIC_PARAVIRTUAL
HT_HVM_VALID_NIC_TYPES = _constants.HT_HVM_VALID_NIC_TYPES
HT_KVM_VALID_NIC_TYPES = _constants.HT_KVM_VALID_NIC_TYPES

HT_HVM_VIF_IOEMU = _constants.HT_HVM_VIF_IOEMU
HT_HVM_VIF_VIF = _constants.HT_HVM_VIF_VIF
HT_HVM_VALID_VIF_TYPES = _constants.HT_HVM_VALID_VIF_TYPES

HT_DISK_IOEMU = _constants.HT_DISK_IOEMU
HT_DISK_IDE = _constants.HT_DISK_IDE
HT_DISK_SCSI = _constants.HT_DISK_SCSI
HT_DISK_SD = _constants.HT_DISK_SD
HT_DISK_MTD = _constants.HT_DISK_MTD
HT_DISK_PFLASH = _constants.HT_DISK_PFLASH
HT_DISK_PARAVIRTUAL = _constants.HT_DISK_PARAVIRTUAL
HT_HVM_VALID_DISK_TYPES = _constants.HT_HVM_VALID_DISK_TYPES
HT_KVM_VALID_DISK_TYPES = _constants.HT_KVM_VALID_DISK_TYPES

HT_CACHE_DEFAULT = _constants.HT_CACHE_DEFAULT
HT_CACHE_NONE = _constants.HT_CACHE_NONE
HT_CACHE_WTHROUGH = _constants.HT_CACHE_WTHROUGH
HT_CACHE_WBACK = _constants.HT_CACHE_WBACK
HT_VALID_CACHE_TYPES = _constants.HT_VALID_CACHE_TYPES

HT_MOUSE_MOUSE = _constants.HT_MOUSE_MOUSE
HT_MOUSE_TABLET = _constants.HT_MOUSE_TABLET
HT_KVM_VALID_MOUSE_TYPES = _constants.HT_KVM_VALID_MOUSE_TYPES

HT_BO_FLOPPY = _constants.HT_BO_FLOPPY
HT_BO_CDROM = _constants.HT_BO_CDROM
HT_BO_DISK = _constants.HT_BO_DISK
HT_BO_NETWORK = _constants.HT_BO_NETWORK
HT_KVM_VALID_BO_TYPES = _constants.HT_KVM_VALID_BO_TYPES

HT_KVM_SPICE_LOSSLESS_IMG_COMPR_AUTO_GLZ = \
  _constants.HT_KVM_SPICE_LOSSLESS_IMG_COMPR_AUTO_GLZ
HT_KVM_SPICE_LOSSLESS_IMG_COMPR_AUTO_LZ = \
  _constants.HT_KVM_SPICE_LOSSLESS_IMG_COMPR_AUTO_LZ
HT_KVM_SPICE_LOSSLESS_IMG_COMPR_QUIC = \
  _constants.HT_KVM_SPICE_LOSSLESS_IMG_COMPR_QUIC
HT_KVM_SPICE_LOSSLESS_IMG_COMPR_GLZ = \
  _constants.HT_KVM_SPICE_LOSSLESS_IMG_COMPR_GLZ
HT_KVM_SPICE_LOSSLESS_IMG_COMPR_LZ = \
  _constants.HT_KVM_SPICE_LOSSLESS_IMG_COMPR_LZ
HT_KVM_SPICE_LOSSLESS_IMG_COMPR_OFF = \
  _constants.HT_KVM_SPICE_LOSSLESS_IMG_COMPR_OFF
HT_KVM_SPICE_VALID_LOSSLESS_IMG_COMPR_OPTIONS = \
  _constants.HT_KVM_SPICE_VALID_LOSSLESS_IMG_COMPR_OPTIONS

HT_KVM_SPICE_LOSSY_IMG_COMPR_AUTO = _constants.HT_KVM_SPICE_LOSSY_IMG_COMPR_AUTO
HT_KVM_SPICE_LOSSY_IMG_COMPR_NEVER = \
  _constants.HT_KVM_SPICE_LOSSY_IMG_COMPR_NEVER
HT_KVM_SPICE_LOSSY_IMG_COMPR_ALWAYS = \
  _constants.HT_KVM_SPICE_LOSSY_IMG_COMPR_ALWAYS

HT_KVM_SPICE_VALID_LOSSY_IMG_COMPR_OPTIONS = \
  _constants.HT_KVM_SPICE_VALID_LOSSY_IMG_COMPR_OPTIONS

HT_KVM_SPICE_VIDEO_STREAM_DETECTION_OFF = \
  _constants.HT_KVM_SPICE_VIDEO_STREAM_DETECTION_OFF
HT_KVM_SPICE_VIDEO_STREAM_DETECTION_ALL = \
  _constants.HT_KVM_SPICE_VIDEO_STREAM_DETECTION_ALL
HT_KVM_SPICE_VIDEO_STREAM_DETECTION_FILTER = \
  _constants.HT_KVM_SPICE_VIDEO_STREAM_DETECTION_FILTER
HT_KVM_SPICE_VALID_VIDEO_STREAM_DETECTION_OPTIONS = \
  _constants.HT_KVM_SPICE_VALID_VIDEO_STREAM_DETECTION_OPTIONS

HT_SM_NONE = _constants.HT_SM_NONE
HT_SM_USER = _constants.HT_SM_USER
HT_SM_POOL = _constants.HT_SM_POOL
HT_KVM_VALID_SM_TYPES = _constants.HT_KVM_VALID_SM_TYPES

HT_KVM_ENABLED = _constants.HT_KVM_ENABLED
HT_KVM_DISABLED = _constants.HT_KVM_DISABLED
HT_KVM_FLAG_VALUES = _constants.HT_KVM_FLAG_VALUES
Guido Trotter's avatar
Guido Trotter committed
826

827 828 829
HT_MIGRATION_LIVE = _constants.HT_MIGRATION_LIVE
HT_MIGRATION_NONLIVE = _constants.HT_MIGRATION_NONLIVE
HT_MIGRATION_MODES = _constants.HT_MIGRATION_MODES
830

831 832
VERIFY_NPLUSONE_MEM = _constants.VERIFY_NPLUSONE_MEM
VERIFY_OPTIONAL_CHECKS = _constants.VERIFY_OPTIONAL_CHECKS
833

834 835 836 837
CV_TCLUSTER = _constants.CV_TCLUSTER
CV_TGROUP = _constants.CV_TGROUP
CV_TNODE = _constants.CV_TNODE
CV_TINSTANCE = _constants.CV_TINSTANCE
838

839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875
CV_ECLUSTERCFG = _constants.CV_ECLUSTERCFG
CV_ECLUSTERCERT = _constants.CV_ECLUSTERCERT
CV_ECLUSTERFILECHECK = _constants.CV_ECLUSTERFILECHECK
CV_ECLUSTERDANGLINGNODES = _constants.CV_ECLUSTERDANGLINGNODES
CV_ECLUSTERDANGLINGINST = _constants.CV_ECLUSTERDANGLINGINST
CV_EGROUPDIFFERENTPVSIZE = _constants.CV_EGROUPDIFFERENTPVSIZE
CV_EINSTANCEBADNODE = _constants.CV_EINSTANCEBADNODE
CV_EINSTANCEDOWN = _constants.CV_EINSTANCEDOWN
CV_EINSTANCELAYOUT = _constants.CV_EINSTANCELAYOUT
CV_EINSTANCEMISSINGDISK = _constants.CV_EINSTANCEMISSINGDISK
CV_EINSTANCEFAULTYDISK = _constants.CV_EINSTANCEFAULTYDISK
CV_EINSTANCEWRONGNODE = _constants.CV_EINSTANCEWRONGNODE
CV_EINSTANCESPLITGROUPS = _constants.CV_EINSTANCESPLITGROUPS
CV_EINSTANCEPOLICY = _constants.CV_EINSTANCEPOLICY
CV_EINSTANCEUNSUITABLENODE = _constants.CV_EINSTANCEUNSUITABLENODE
CV_EINSTANCEMISSINGCFGPARAMETER = _constants.CV_EINSTANCEMISSINGCFGPARAMETER
CV_ENODEDRBD = _constants.CV_ENODEDRBD
CV_ENODEDRBDVERSION = _constants.CV_ENODEDRBDVERSION
CV_ENODEDRBDHELPER = _constants.CV_ENODEDRBDHELPER
CV_ENODEFILECHECK = _constants.CV_ENODEFILECHECK
CV_ENODEHOOKS = _constants.CV_ENODEHOOKS
CV_ENODEHV = _constants.CV_ENODEHV
CV_ENODELVM = _constants.CV_ENODELVM
CV_ENODEN1 = _constants.CV_ENODEN1
CV_ENODENET = _constants.CV_ENODENET
CV_ENODEOS = _constants.CV_ENODEOS
CV_ENODEORPHANINSTANCE = _constants.CV_ENODEORPHANINSTANCE
CV_ENODEORPHANLV = _constants.CV_ENODEORPHANLV
CV_ENODERPC = _constants.CV_ENODERPC
CV_ENODESSH = _constants.CV_ENODESSH
CV_ENODEVERSION = _constants.CV_ENODEVERSION
CV_ENODESETUP = _constants.CV_ENODESETUP
CV_ENODETIME = _constants.CV_ENODETIME
CV_ENODEOOBPATH = _constants.CV_ENODEOOBPATH
CV_ENODEUSERSCRIPTS = _constants.CV_ENODEUSERSCRIPTS
CV_ENODEFILESTORAGEPATHS = _constants.CV_ENODEFILESTORAGEPATHS
CV_ENODEFILESTORAGEPATHUNUSABLE = _constants.CV_ENODEFILESTORAGEPATHUNUSABLE
876
CV_ENODESHAREDFILESTORAGEPATHUNUSABLE = \
877
  _constants.CV_ENODESHAREDFILESTORAGEPATHUNUSABLE
878

879 880
CV_ALL_ECODES = _constants.CV_ALL_ECODES
CV_ALL_ECODES_STRINGS = _constants.CV_ALL_ECODES_STRINGS
881

Jose A. Lopes's avatar
Jose A. Lopes committed
882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908
NV_BRIDGES = _constants.NV_BRIDGES
NV_DRBDHELPER = _constants.NV_DRBDHELPER
NV_DRBDVERSION = _constants.NV_DRBDVERSION
NV_DRBDLIST = _constants.NV_DRBDLIST
NV_EXCLUSIVEPVS = _constants.NV_EXCLUSIVEPVS
NV_FILELIST = _constants.NV_FILELIST
NV_ACCEPTED_STORAGE_PATHS = _constants.NV_ACCEPTED_STORAGE_PATHS
NV_FILE_STORAGE_PATH = _constants.NV_FILE_STORAGE_PATH
NV_SHARED_FILE_STORAGE_PATH = _constants.NV_SHARED_FILE_STORAGE_PATH
NV_HVINFO = _constants.NV_HVINFO
NV_HVPARAMS = _constants.NV_HVPARAMS
NV_HYPERVISOR = _constants.NV_HYPERVISOR
NV_INSTANCELIST = _constants.NV_INSTANCELIST
NV_LVLIST = _constants.NV_LVLIST
NV_MASTERIP = _constants.NV_MASTERIP
NV_NODELIST = _constants.NV_NODELIST
NV_NODENETTEST = _constants.NV_NODENETTEST
NV_NODESETUP = _constants.NV_NODESETUP
NV_OOB_PATHS = _constants.NV_OOB_PATHS
NV_OSLIST = _constants.NV_OSLIST
NV_PVLIST = _constants.NV_PVLIST
NV_TIME = _constants.NV_TIME
NV_USERSCRIPTS = _constants.NV_USERSCRIPTS
NV_VERSION = _constants.NV_VERSION
NV_VGLIST = _constants.NV_VGLIST
NV_VMNODES = _constants.NV_VMNODES

909 910 911 912 913 914 915 916 917
INSTST_RUNNING = _constants.INSTST_RUNNING
INSTST_ADMINDOWN = _constants.INSTST_ADMINDOWN
INSTST_ADMINOFFLINE = _constants.INSTST_ADMINOFFLINE
INSTST_NODEOFFLINE = _constants.INSTST_NODEOFFLINE
INSTST_NODEDOWN = _constants.INSTST_NODEDOWN
INSTST_WRONGNODE = _constants.INSTST_WRONGNODE
INSTST_ERRORUP = _constants.INSTST_ERRORUP
INSTST_ERRORDOWN = _constants.INSTST_ERRORDOWN
INSTST_ALL = _constants.INSTST_ALL
918

919 920 921
ADMINST_UP = _constants.ADMINST_UP
ADMINST_DOWN = _constants.ADMINST_DOWN
ADMINST_OFFLINE = _constants.ADMINST_OFFLINE
922
ADMINST_ALL = _constants.ADMINST_ALL
923

924 925 926 927 928 929
NR_REGULAR = _constants.NR_REGULAR
NR_MASTER = _constants.NR_MASTER
NR_MCANDIDATE = _constants.NR_MCANDIDATE
NR_DRAINED = _constants.NR_DRAINED
NR_OFFLINE = _constants.NR_OFFLINE
NR_ALL = _constants.NR_ALL
930

931 932
SSL_CERT_EXPIRATION_WARN = _constants.SSL_CERT_EXPIRATION_WARN
SSL_CERT_EXPIRATION_ERROR = _constants.SSL_CERT_EXPIRATION_ERROR
933

934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952
IALLOCATOR_VERSION = _constants.IALLOCATOR_VERSION
IALLOCATOR_DIR_IN = _constants.IALLOCATOR_DIR_IN
IALLOCATOR_DIR_OUT = _constants.IALLOCATOR_DIR_OUT
VALID_IALLOCATOR_DIRECTIONS = _constants.VALID_IALLOCATOR_DIRECTIONS

IALLOCATOR_MODE_ALLOC = _constants.IALLOCATOR_MODE_ALLOC
IALLOCATOR_MODE_RELOC = _constants.IALLOCATOR_MODE_RELOC
IALLOCATOR_MODE_CHG_GROUP = _constants.IALLOCATOR_MODE_CHG_GROUP
IALLOCATOR_MODE_NODE_EVAC = _constants.IALLOCATOR_MODE_NODE_EVAC
IALLOCATOR_MODE_MULTI_ALLOC = _constants.IALLOCATOR_MODE_MULTI_ALLOC
VALID_IALLOCATOR_MODES = _constants.VALID_IALLOCATOR_MODES

IALLOCATOR_SEARCH_PATH = _constants.IALLOCATOR_SEARCH_PATH
DEFAULT_IALLOCATOR_SHORTCUT = _constants.DEFAULT_IALLOCATOR_SHORTCUT

NODE_EVAC_PRI = _constants.NODE_EVAC_PRI
NODE_EVAC_SEC = _constants.NODE_EVAC_SEC
NODE_EVAC_ALL = _constants.NODE_EVAC_ALL
NODE_EVAC_MODES = _constants.NODE_EVAC_MODES
953

954 955 956
JOB_QUEUE_VERSION = _constants.JOB_QUEUE_VERSION
JOB_QUEUE_SIZE_HARD_LIMIT = _constants.JOB_QUEUE_SIZE_HARD_LIMIT
JOB_QUEUE_FILES_PERMS = _constants.JOB_QUEUE_FILES_PERMS
957

958
JOB_ID_TEMPLATE = r"\d+"
959
JOB_FILE_RE = re.compile(r"^job-(%s)$" % JOB_ID_TEMPLATE)
960

961
JOB_NOTCHANGED = _constants.JOB_NOTCHANGED
962

963 964 965 966 967 968 969 970 971 972
JOB_STATUS_QUEUED = _constants.JOB_STATUS_QUEUED
JOB_STATUS_WAITING = _constants.JOB_STATUS_WAITING
JOB_STATUS_CANCELING = _constants.JOB_STATUS_CANCELING
JOB_STATUS_RUNNING = _constants.JOB_STATUS_RUNNING
JOB_STATUS_CANCELED = _constants.JOB_STATUS_CANCELED
JOB_STATUS_SUCCESS = _constants.JOB_STATUS_SUCCESS
JOB_STATUS_ERROR = _constants.JOB_STATUS_ERROR
JOBS_PENDING = _constants.JOBS_PENDING
JOBS_FINALIZED = _constants.JOBS_FINALIZED
JOB_STATUS_ALL = _constants.JOB_STATUS_ALL
973

974 975 976 977 978 979 980 981
OP_STATUS_QUEUED = _constants.OP_STATUS_QUEUED
OP_STATUS_WAITING = _constants.OP_STATUS_WAITING
OP_STATUS_CANCELING = _constants.OP_STATUS_CANCELING
OP_STATUS_RUNNING = _constants.OP_STATUS_RUNNING
OP_STATUS_CANCELED = _constants.OP_STATUS_CANCELED
OP_STATUS_SUCCESS = _constants.OP_STATUS_SUCCESS
OP_STATUS_ERROR = _constants.OP_STATUS_ERROR
OPS_FINALIZED = _constants.OPS_FINALIZED
982

983 984 985 986 987 988 989
OP_PRIO_LOWEST = _constants.OP_PRIO_LOWEST
OP_PRIO_HIGHEST = _constants.OP_PRIO_HIGHEST
OP_PRIO_LOW = _constants.OP_PRIO_LOW
OP_PRIO_NORMAL = _constants.OP_PRIO_NORMAL
OP_PRIO_HIGH = _constants.OP_PRIO_HIGH
OP_PRIO_SUBMIT_VALID = _constants.OP_PRIO_SUBMIT_VALID
OP_PRIO_DEFAULT = _constants.OP_PRIO_DEFAULT
990

991 992 993 994 995 996
LOCKS_REPLACE = _constants.LOCKS_REPLACE
LOCKS_APPEND = _constants.LOCKS_APPEND

LOCK_ATTEMPTS_TIMEOUT = _constants.LOCK_ATTEMPTS_TIMEOUT
LOCK_ATTEMPTS_MAXWAIT = _constants.LOCK_ATTEMPTS_MAXWAIT
LOCK_ATTEMPTS_MINWAIT = _constants.LOCK_ATTEMPTS_MINWAIT
997

998 999 1000
ELOG_MESSAGE = _constants.ELOG_MESSAGE
ELOG_REMOTE_IMPORT = _constants.ELOG_REMOTE_IMPORT
ELOG_JQUEUE_TEST = _constants.ELOG_JQUEUE_TEST
1001

1002 1003 1004 1005 1006 1007 1008 1009 1010
ETC_HOSTS_ADD = _constants.ETC_HOSTS_ADD
ETC_HOSTS_REMOVE = _constants.ETC_HOSTS_REMOVE

JQT_MSGPREFIX = _constants.JQT_MSGPREFIX
JQT_EXPANDNAMES = _constants.JQT_EXPANDNAMES
JQT_EXEC = _constants.JQT_EXEC
JQT_LOGMSG = _constants.JQT_LOGMSG
JQT_STARTMSG = _constants.JQT_STARTMSG
JQT_ALL = _constants.JQT_ALL
1011

1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041
QR_CLUSTER = _constants.QR_CLUSTER
QR_INSTANCE = _constants.QR_INSTANCE
QR_NODE = _constants.QR_NODE
QR_LOCK = _constants.QR_LOCK
QR_GROUP = _constants.QR_GROUP
QR_OS = _constants.QR_OS
QR_JOB = _constants.QR_JOB
QR_EXPORT = _constants.QR_EXPORT
QR_NETWORK = _constants.QR_NETWORK
QR_EXTSTORAGE = _constants.QR_EXTSTORAGE
QR_VIA_OP = _constants.QR_VIA_OP
QR_VIA_LUXI = _constants.QR_VIA_LUXI
QR_VIA_RAPI = _constants.QR_VIA_RAPI

QFT_UNKNOWN = _constants.QFT_UNKNOWN
QFT_TEXT = _constants.QFT_TEXT
QFT_BOOL = _constants.QFT_BOOL
QFT_NUMBER = _constants.QFT_NUMBER
QFT_UNIT = _constants.QFT_UNIT
QFT_TIMESTAMP = _constants.QFT_TIMESTAMP
QFT_OTHER = _constants.QFT_OTHER
QFT_ALL = _constants.QFT_ALL

RS_NORMAL = _constants.RS_NORMAL
RS_UNKNOWN = _constants.RS_UNKNOWN
RS_NODATA = _constants.RS_NODATA
RS_UNAVAIL = _constants.RS_UNAVAIL
RS_OFFLINE = _constants.RS_OFFLINE
RS_ALL = _constants.RS_ALL
RSS_DESCRIPTION = _constants.RSS_DESCRIPTION
1042

1043 1044
MAX_NICS = _constants.MAX_NICS
MAX_DISKS = _constants.MAX_DISKS
1045

Jose A. Lopes's avatar
Jose A. Lopes committed
1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082
SSCONF_FILEPREFIX = _constants.SSCONF_FILEPREFIX

SS_CLUSTER_NAME = _constants.SS_CLUSTER_NAME
SS_CLUSTER_TAGS = _constants.SS_CLUSTER_TAGS
SS_FILE_STORAGE_DIR = _constants.SS_FILE_STORAGE_DIR
SS_SHARED_FILE_STORAGE_DIR = _constants.SS_SHARED_FILE_STORAGE_DIR
SS_MASTER_CANDIDATES = _constants.SS_MASTER_CANDIDATES
SS_MASTER_CANDIDATES_IPS = _constants.SS_MASTER_CANDIDATES_IPS
SS_MASTER_IP = _constants.SS_MASTER_IP
SS_MASTER_NETDEV = _constants.SS_MASTER_NETDEV
SS_MASTER_NETMASK = _constants.SS_MASTER_NETMASK
SS_MASTER_NODE = _constants.SS_MASTER_NODE
SS_NODE_LIST = _constants.SS_NODE_LIST
SS_NODE_PRIMARY_IPS = _constants.SS_NODE_PRIMARY_IPS
SS_NODE_SECONDARY_IPS = _constants.SS_NODE_SECONDARY_IPS
SS_OFFLINE_NODES = _constants.SS_OFFLINE_NODES
SS_ONLINE_NODES = _constants.SS_ONLINE_NODES
SS_PRIMARY_IP_FAMILY = _constants.SS_PRIMARY_IP_FAMILY
SS_INSTANCE_LIST = _constants.SS_INSTANCE_LIST
SS_RELEASE_VERSION = _constants.SS_RELEASE_VERSION
SS_HYPERVISOR_LIST = _constants.SS_HYPERVISOR_LIST
SS_MAINTAIN_NODE_HEALTH = _constants.SS_MAINTAIN_NODE_HEALTH
SS_UID_POOL = _constants.SS_UID_POOL
SS_NODEGROUPS = _constants.SS_NODEGROUPS
SS_NETWORKS = _constants.SS_NETWORKS

SS_HVPARAMS_PREF = _constants.SS_HVPARAMS_PREF

SS_HVPARAMS_XEN_PVM = _constants.SS_HVPARAMS_XEN_PVM
SS_HVPARAMS_XEN_FAKE = _constants.SS_HVPARAMS_XEN_FAKE
SS_HVPARAMS_XEN_HVM = _constants.SS_HVPARAMS_XEN_HVM
SS_HVPARAMS_XEN_KVM = _constants.SS_HVPARAMS_XEN_KVM
SS_HVPARAMS_XEN_CHROOT = _constants.SS_HVPARAMS_XEN_CHROOT
SS_HVPARAMS_XEN_LXC = _constants.SS_HVPARAMS_XEN_LXC
VALID_SS_HVPARAMS_KEYS = _constants.VALID_SS_HVPARAMS_KEYS

SS_FILE_PERMS = _constants.SS_FILE_PERMS
1083

1084
DEFAULT_ENABLED_HYPERVISOR = _constants.DEFAULT_ENABLED_HYPERVISOR
1085

1086 1087 1088 1089 1090 1091 1092
# HVC_DEFAULTS contains one value 'HV_VNC_PASSWORD_FILE' which is not
# a constant because it depends on an environment variable that is
# used for VClusters.  Therefore, it cannot be automatically generated
# by Haskell at compilation time (given that this environment variable
# might be different at runtime).
HVC_DEFAULTS = _constants.HVC_DEFAULTS
HVC_DEFAULTS[HT_XEN_HVM][HV_VNC_PASSWORD_FILE] = pathutils.VNC_PASSWORD_FILE
1093

1094
HVC_GLOBALS = _constants.HVC_GLOBALS
1095

1096
BEC_DEFAULTS = _constants.BEC_DEFAULTS
1097

1098
NDC_DEFAULTS = _constants.NDC_DEFAULTS
1099
NDC_GLOBALS = _constants.NDC_GLOBALS
1100

1101
DISK_LD_DEFAULTS = _constants.DISK_LD_DEFAULTS
1102
DISK_DT_DEFAULTS = _constants.DISK_DT_DEFAULTS
1103

1104
NICC_DEFAULTS = _constants.NICC_DEFAULTS
1105
ISPECS_MINMAX_DEFAULTS = _constants.ISPECS_MINMAX_DEFAULTS
1106
IPOLICY_DEFAULTS = _constants.IPOLICY_DEFAULTS
1107

1108
MASTER_POOL_SIZE_DEFAULT = _constants.MASTER_POOL_SIZE_DEFAULT
Guido Trotter's avatar
Guido Trotter committed
1109

1110 1111
PART_MARGIN = _constants.PART_MARGIN
PART_RESERVED = _constants.PART_RESERVED
1112

1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124
CONFD_PROTOCOL_VERSION = _constants.CONFD_PROTOCOL_VERSION

CONFD_REQ_PING = _constants.CONFD_REQ_PING
CONFD_REQ_NODE_ROLE_BYNAME = _constants.CONFD_REQ_NODE_ROLE_BYNAME
CONFD_REQ_NODE_PIP_BY_INSTANCE_IP = _constants.CONFD_REQ_NODE_PIP_BY_INSTANCE_IP
CONFD_REQ_CLUSTER_MASTER = _constants.CONFD_REQ_CLUSTER_MASTER
CONFD_REQ_NODE_PIP_LIST = _constants.CONFD_REQ_NODE_PIP_LIST
CONFD_REQ_MC_PIP_LIST = _constants.CONFD_REQ_MC_PIP_LIST
CONFD_REQ_INSTANCES_IPS_LIST = _constants.CONFD_REQ_INSTANCES_IPS_LIST
CONFD_REQ_NODE_DRBD = _constants.CONFD_REQ_NODE_DRBD
CONFD_REQ_NODE_INSTANCES = _constants.CONFD_REQ_NODE_INSTANCES
CONFD_REQS = _constants.CONFD_REQS
Guido Trotter's avatar
Guido Trotter committed
1125

1126 1127 1128 1129
CONFD_REQQ_LINK = _constants.CONFD_REQQ_LINK
CONFD_REQQ_IP = _constants.CONFD_REQQ_IP
CONFD_REQQ_IPLIST = _constants.CONFD_REQQ_IPLIST
CONFD_REQQ_FIELDS = _constants.CONFD_REQQ_FIELDS
1130

1131 1132 1133 1134 1135
# FIXME: perhaps update code that uses these constants to deal with
# integers instead of strings
CONFD_REQFIELD_NAME = str(_constants.CONFD_REQFIELD_NAME)
CONFD_REQFIELD_IP = str(_constants.CONFD_REQFIELD_IP)
CONFD_REQFIELD_MNODE_PIP = str(_constants.CONFD_REQFIELD_MNODE_PIP)
1136

1137 1138 1139 1140
CONFD_REPL_STATUS_OK = _constants.CONFD_REPL_STATUS_OK
CONFD_REPL_STATUS_ERROR = _constants.CONFD_REPL_STATUS_ERROR
CONFD_REPL_STATUS_NOTIMPLEMENTED = _constants.CONFD_REPL_STATUS_NOTIMPLEMENTED
CONFD_REPL_STATUSES = _constants.CONFD_REPL_STATUSES
1141

1142 1143 1144 1145 1146
CONFD_NODE_ROLE_MASTER = _constants.CONFD_NODE_ROLE_MASTER
CONFD_NODE_ROLE_CANDIDATE = _constants.CONFD_NODE_ROLE_CANDIDATE
CONFD_NODE_ROLE_OFFLINE = _constants.CONFD_NODE_ROLE_OFFLINE
CONFD_NODE_ROLE_DRAINED = _constants.CONFD_NODE_ROLE_DRAINED
CONFD_NODE_ROLE_REGULAR = _constants.CONFD_NODE_ROLE_REGULAR
Guido Trotter's avatar
Guido Trotter committed
1147

1148 1149 1150
CONFD_ERROR_UNKNOWN_ENTRY = _constants.CONFD_ERROR_UNKNOWN_ENTRY
CONFD_ERROR_INTERNAL = _constants.CONFD_ERROR_INTERNAL
CONFD_ERROR_ARGUMENT = _constants.CONFD_ERROR_ARGUMENT
1151

1152
CONFD_MAX_CLOCK_SKEW = _constants.CONFD_MAX_CLOCK_SKEW
1153

1154 1155
CONFD_CONFIG_RELOAD_TIMEOUT = _constants.CONFD_CONFIG_RELOAD_TIMEOUT
CONFD_CONFIG_RELOAD_RATELIMIT = _constants.CONFD_CONFIG_RELOAD_RATELIMIT
1156

1157
CONFD_MAGIC_FOURCC = _constants.CONFD_MAGIC_FOURCC
1158

1159
CONFD_DEFAULT_REQ_COVERAGE = _constants.CONFD_DEFAULT_REQ_COVERAGE
Guido Trotter's avatar
Guido Trotter committed
1160

1161
CONFD_CLIENT_EXPIRE_TIMEOUT = _constants.CONFD_CLIENT_EXPIRE_TIMEOUT
Guido Trotter's avatar
Guido Trotter committed
1162

1163
MAX_UDP_DATA_SIZE = _constants.MAX_UDP_DATA_SIZE
Balazs Lecz's avatar
Balazs Lecz committed
1164

Jose A. Lopes's avatar
Jose A. Lopes committed
1165 1166
UIDPOOL_UID_MIN = _constants.UIDPOOL_UID_MIN
UIDPOOL_UID_MAX = _constants.UIDPOOL_UID_MAX
1167

1168
PGREP = _constants.PGREP
1169

1170
INITIAL_NODE_GROUP_NAME = _constants.INITIAL_NODE_GROUP_NAME
1171

1172 1173 1174 1175
ALLOC_POLICY_PREFERRED = _constants.ALLOC_POLICY_PREFERRED
ALLOC_POLICY_LAST_RESORT = _constants.ALLOC_POLICY_LAST_RESORT
ALLOC_POLICY_UNALLOCABLE = _constants.ALLOC_POLICY_UNALLOCABLE
VALID_ALLOC_POLICIES = _constants.VALID_ALLOC_POLICIES
1176

1177
BLOCKDEV_DRIVER_MANUAL = _constants.BLOCKDEV_DRIVER_MANUAL
1178

1179
QEMUIMG_PATH = _constants.QEMUIMG_PATH
1180

1181
HTOOLS = _constants.HTOOLS
1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198
IALLOC_HAIL = _constants.IALLOC_HAIL

FAKE_OP_MASTER_TURNUP = _constants.FAKE_OP_MASTER_TURNUP
FAKE_OP_MASTER_TURNDOWN = _constants.FAKE_OP_MASTER_TURNDOWN

SSHK_RSA = _constants.SSHK_RSA
SSHK_DSA = _constants.SSHK_DSA
SSHK_ALL = _constants.SSHK_ALL

SSHAK_RSA = _constants.SSHAK_RSA
SSHAK_DSS = _constants.SSHAK_DSS
SSHAK_ALL = _constants.SSHAK_ALL

SSHS_CLUSTER_NAME = _constants.SSHS_CLUSTER_NAME
SSHS_SSH_HOST_KEY = _constants.SSHS_SSH_HOST_KEY
SSHS_SSH_ROOT_KEY = _constants.SSHS_SSH_ROOT_KEY
SSHS_NODE_DAEMON_CERTIFICATE = _constants.SSHS_NODE_DAEMON_CERTIFICATE
1199
SSH_DAEMON_KEYFILES = _constants.SSH_DAEMON_KEYFILES
1200

1201 1202 1203 1204
NDS_CLUSTER_NAME = _constants.NDS_CLUSTER_NAME
NDS_NODE_DAEMON_CERTIFICATE = _constants.NDS_NODE_DAEMON_CERTIFICATE
NDS_SSCONF = _constants.NDS_SSCONF
NDS_START_NODE_DAEMON = _constants.NDS_START_NODE_DAEMON
1205

1206
RANDOM_UUID_FILE = _constants.RANDOM_UUID_FILE
1207 1208 1209 1210

# Regex string for verifying a UUID
UUID_REGEX = "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"

1211 1212 1213 1214 1215
AUTO_REPAIR_TAG_PREFIX = _constants.AUTO_REPAIR_TAG_PREFIX
AUTO_REPAIR_TAG_ENABLED = _constants.AUTO_REPAIR_TAG_ENABLED
AUTO_REPAIR_TAG_SUSPENDED = _constants.AUTO_REPAIR_TAG_SUSPENDED
AUTO_REPAIR_TAG_PENDING = _constants.AUTO_REPAIR_TAG_PENDING
AUTO_REPAIR_TAG_RESULT = _constants.AUTO_REPAIR_TAG_RESULT
1216

1217 1218 1219 1220 1221
AUTO_REPAIR_FIX_STORAGE = _constants.AUTO_REPAIR_FIX_STORAGE
AUTO_REPAIR_MIGRATE = _constants.AUTO_REPAIR_MIGRATE
AUTO_REPAIR_FAILOVER = _constants.AUTO_REPAIR_FAILOVER
AUTO_REPAIR_REINSTALL = _constants.AUTO_REPAIR_REINSTALL
AUTO_REPAIR_ALL_TYPES = _constants.AUTO_REPAIR_ALL_TYPES
1222

1223 1224 1225 1226
AUTO_REPAIR_SUCCESS = _constants.AUTO_REPAIR_SUCCESS
AUTO_REPAIR_FAILURE = _constants.AUTO_REPAIR_FAILURE
AUTO_REPAIR_ENOPERM = _constants.AUTO_REPAIR_ENOPERM
AUTO_REPAIR_ALL_RESULTS = _constants.AUTO_REPAIR_ALL_RESULTS
1227

1228
BUILTIN_DATA_COLLECTOR_VERSION = _constants.BUILTIN_DATA_COLLECTOR_VERSION
1229

1230
OPCODE_REASON = _constants.OPCODE_REASON
1231

Jose A. Lopes's avatar
Jose A. Lopes committed
1232 1233 1234 1235 1236 1237
OPCODE_REASON_SRC_CLIENT = _constants.OPCODE_REASON_SRC_CLIENT
OPCODE_REASON_SRC_NODED = _constants.OPCODE_REASON_SRC_NODED
OPCODE_REASON_SRC_OPCODE = _constants.OPCODE_REASON_SRC_OPCODE
OPCODE_REASON_SRC_RLIB2 = _constants.OPCODE_REASON_SRC_RLIB2
OPCODE_REASON_SRC_USER = _constants.OPCODE_REASON_SRC_USER
OPCODE_REASON_SOURCES = _constants.OPCODE_REASON_SOURCES
1238

1239
DISKSTATS_FILE = _constants.DISKSTATS_FILE
1240