constants.py 46.5 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

33
RELEASE_VERSION = _constants.RELEASE_VERSION
34 35 36 37
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
38
VCS_VERSION = _vcsversion.VCS_VERSION
39 40
EXPORT_VERSION = _constants.EXPORT_VERSION
RAPI_VERSION = _constants.RAPI_VERSION
Iustin Pop's avatar
Iustin Pop committed
41

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

46 47
DIR_VERSION = _constants.DIR_VERSION

48 49 50 51
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
52

53
PROTOCOL_VERSION = _constants.PROTOCOL_VERSION
54

Jose A. Lopes's avatar
Jose A. Lopes committed
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
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
71

72 73 74 75 76 77 78 79 80
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

81 82 83 84 85 86 87 88
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
89 90 91 92
ENABLE_CONFD = _constants.ENABLE_CONFD
ENABLE_MOND = _constants.ENABLE_MOND
ENABLE_SPLIT_QUERY = _constants.ENABLE_SPLIT_QUERY
ENABLE_RESTRICTED_COMMANDS = _constants.ENABLE_RESTRICTED_COMMANDS
93

94 95
SSH = _constants.SSH
SCP = _constants.SCP
96

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

104
DAEMONS = _constants.DAEMONS
105

106 107 108 109 110 111
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
112

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

116
DAEMONS_LOGBASE = _constants.DAEMONS_LOGBASE
117

118
DAEMONS_EXTRA_LOGBASE = _constants.DAEMONS_EXTRA_LOGBASE
119

120
DEV_CONSOLE = _constants.DEV_CONSOLE
Luca Bigliardi's avatar
Luca Bigliardi committed
121

122
PROC_MOUNTS = _constants.PROC_MOUNTS
Balazs Lecz's avatar
Balazs Lecz committed
123

124 125 126 127 128
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
129

130 131 132 133 134
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
135

136
EXPORT_CONF_FILE = _constants.EXPORT_CONF_FILE
Iustin Pop's avatar
Iustin Pop committed
137

138 139 140 141 142 143
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
144

145 146 147 148 149
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
150
SOCAT_ESCAPE_CODE = _constants.SOCAT_ESCAPE_CODE
151

152 153 154 155 156
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
157

158 159
RSA_KEY_BITS = _constants.RSA_KEY_BITS
OPENSSL_CIPHERS = _constants.OPENSSL_CIPHERS
160

161 162 163 164
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
165

166 167
IEM_IMPORT = _constants.IEM_IMPORT
IEM_EXPORT = _constants.IEM_EXPORT
168

169 170 171
IEC_NONE = _constants.IEC_NONE
IEC_GZIP = _constants.IEC_GZIP
IEC_ALL = _constants.IEC_ALL
172

173
IE_CUSTOM_SIZE = _constants.IE_CUSTOM_SIZE
174

175 176 177
IEIO_FILE = _constants.IEIO_FILE
IEIO_RAW_DISK = _constants.IEIO_RAW_DISK
IEIO_SCRIPT = _constants.IEIO_SCRIPT
178

179 180 181 182 183 184 185
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
186

187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202
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
203

204 205 206 207 208 209 210 211
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
212
STS_REPORT = _constants.STS_REPORT
213

214 215 216 217 218 219 220
SF_NODE = _constants.SF_NODE
SF_TYPE = _constants.SF_TYPE
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
221 222
VALID_STORAGE_FIELDS = _constants.VALID_STORAGE_FIELDS
MODIFIABLE_STORAGE_FIELDS = _constants.MODIFIABLE_STORAGE_FIELDS
223

224 225
SO_FIX_CONSISTENCY = _constants.SO_FIX_CONSISTENCY
VALID_STORAGE_OPERATIONS = _constants.VALID_STORAGE_OPERATIONS
226

227 228 229 230 231 232 233
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
234

235 236 237 238
LDS_OKAY = _constants.LDS_OKAY
LDS_UNKNOWN = _constants.LDS_UNKNOWN
LDS_FAULTY = _constants.LDS_FAULTY
LDS_NAMES = _constants.LDS_NAMES
239

240 241 242 243 244 245 246 247 248 249 250
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
251

252
MAP_DISK_TEMPLATE_STORAGE_TYPE = _constants.MAP_DISK_TEMPLATE_STORAGE_TYPE
253

254 255 256 257 258 259 260 261 262 263 264 265
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
266

267 268
DTS_DRBD = _constants.DTS_DRBD

Jose A. Lopes's avatar
Jose A. Lopes committed
269 270
DTS_LVM = _constants.DTS_LVM

271 272 273 274 275 276 277 278 279 280
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
281

282
DRBD_VALID_BARRIER_OPT = _constants.DRBD_VALID_BARRIER_OPT
Iustin Pop's avatar
Iustin Pop committed
283

284
RBD_CMD = _constants.RBD_CMD
285

286 287
FD_BLKTAP = _constants.FD_BLKTAP
FD_LOOP = _constants.FD_LOOP
288
FILE_DRIVER = _constants.FILE_DRIVER
289

290 291 292
DISK_RDONLY = _constants.DISK_RDONLY
DISK_RDWR = _constants.DISK_RDWR
DISK_ACCESS_SET = _constants.DISK_ACCESS_SET
293 294 295
DISK_USERSPACE = _constants.DISK_USERSPACE
DISK_KERNELSPACE = _constants.DISK_KERNELSPACE
DISK_VALID_ACCESS_MODES = _constants.DISK_VALID_ACCESS_MODES
296

297 298 299 300 301
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
302

303 304 305
EXPORT_MODE_LOCAL = _constants.EXPORT_MODE_LOCAL
EXPORT_MODE_REMOTE = _constants.EXPORT_MODE_REMOTE
EXPORT_MODES = _constants.EXPORT_MODES
306

307 308 309 310
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
311

312 313 314 315 316 317 318
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
319

320 321 322 323 324
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
325

326 327 328 329 330
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
331

332 333 334 335 336
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
337
EXIT_CONFIRMATION = _constants.EXIT_CONFIRMATION
338
EXIT_UNKNOWN_FIELD = _constants.EXIT_UNKNOWN_FIELD
339

340 341 342 343 344 345 346 347 348
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
349

350 351 352 353 354 355 356 357 358 359
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
360

361 362 363 364 365 366
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
367
NODE_MAX_CLOCK_SKEW = _constants.NODE_MAX_CLOCK_SKEW
368
DISK_TRANSFER_CONNECT_TIMEOUT = _constants.DISK_TRANSFER_CONNECT_TIMEOUT
369 370
DISK_SEPARATOR = _constants.DISK_SEPARATOR
IP_COMMAND_PATH = _constants.IP_COMMAND_PATH
371 372 373 374 375 376 377 378 379
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
380

381 382 383 384 385 386 387 388
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

389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420
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
421

422 423 424 425
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
426

427 428 429
INSTANCE_REBOOT_ALLOWED = _constants.INSTANCE_REBOOT_ALLOWED
INSTANCE_REBOOT_EXIT = _constants.INSTANCE_REBOOT_EXIT
REBOOT_BEHAVIORS = _constants.REBOOT_BEHAVIORS
430

431 432 433 434 435 436
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
437

438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 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
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
515

516 517
HVS_PARAMETER_TYPES = _constants.HVS_PARAMETER_TYPES
HVS_PARAMETERS = _constants.HVS_PARAMETERS
518
HVS_PARAMETER_TITLES = _constants.HVS_PARAMETER_TITLES
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
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
546

547 548 549 550 551 552 553 554 555 556 557 558
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

559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578
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

579 580 581 582 583 584 585 586 587 588
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
589

590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607
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
608

609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634
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
635

636 637 638 639 640 641
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
642

643
OOB_POWER_STATUS_POWERED = _constants.OOB_POWER_STATUS_POWERED
644

645 646
OOB_TIMEOUT = _constants.OOB_TIMEOUT
OOB_POWER_DELAY = _constants.OOB_POWER_DELAY
647

648 649 650 651 652
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
653

654
PP_DEFAULT = _constants.PP_DEFAULT
655

656 657 658
NIC_MODE = _constants.NIC_MODE
NIC_LINK = _constants.NIC_LINK
NIC_VLAN = _constants.NIC_VLAN
Jose A. Lopes's avatar
Jose A. Lopes committed
659 660
NICS_PARAMETER_TYPES = _constants.NICS_PARAMETER_TYPES
NICS_PARAMETERS = _constants.NICS_PARAMETERS
661 662 663 664 665 666

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
667

668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691
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
692

693 694 695 696 697 698 699 700
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
701

Jose A. Lopes's avatar
Jose A. Lopes committed
702 703
VNC_BASE_PORT = _constants.VNC_BASE_PORT
VNC_DEFAULT_BIND_ADDRESS = _constants.VNC_DEFAULT_BIND_ADDRESS
Guido Trotter's avatar
Guido Trotter committed
704

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 730 731 732 733 734 735 736 737 738 739 740 741 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
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
788

789 790 791
HT_MIGRATION_LIVE = _constants.HT_MIGRATION_LIVE
HT_MIGRATION_NONLIVE = _constants.HT_MIGRATION_NONLIVE
HT_MIGRATION_MODES = _constants.HT_MIGRATION_MODES
792

793 794
VERIFY_NPLUSONE_MEM = _constants.VERIFY_NPLUSONE_MEM
VERIFY_OPTIONAL_CHECKS = _constants.VERIFY_OPTIONAL_CHECKS
795

796 797 798 799
CV_TCLUSTER = _constants.CV_TCLUSTER
CV_TGROUP = _constants.CV_TGROUP
CV_TNODE = _constants.CV_TNODE
CV_TINSTANCE = _constants.CV_TINSTANCE
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 826 827 828 829 830 831 832 833 834 835 836 837
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
838
CV_ENODESHAREDFILESTORAGEPATHUNUSABLE = \
839
  _constants.CV_ENODESHAREDFILESTORAGEPATHUNUSABLE
840

841 842
CV_ALL_ECODES = _constants.CV_ALL_ECODES
CV_ALL_ECODES_STRINGS = _constants.CV_ALL_ECODES_STRINGS
843

Jose A. Lopes's avatar
Jose A. Lopes committed
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
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

871 872 873 874 875 876 877 878 879
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
880

881 882 883
ADMINST_UP = _constants.ADMINST_UP
ADMINST_DOWN = _constants.ADMINST_DOWN
ADMINST_OFFLINE = _constants.ADMINST_OFFLINE
884
ADMINST_ALL = _constants.ADMINST_ALL
885

886 887 888 889 890 891
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
892

893 894
SSL_CERT_EXPIRATION_WARN = _constants.SSL_CERT_EXPIRATION_WARN
SSL_CERT_EXPIRATION_ERROR = _constants.SSL_CERT_EXPIRATION_ERROR
895

896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914
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
915

916 917 918
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
919

920
JOB_NOTCHANGED = _constants.JOB_NOTCHANGED
921

922 923 924 925 926 927 928 929 930 931
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
932

933 934 935 936 937 938 939 940
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
941

942 943 944 945 946 947 948
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
949

950 951 952 953 954 955
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
956

957 958 959
ELOG_MESSAGE = _constants.ELOG_MESSAGE
ELOG_REMOTE_IMPORT = _constants.ELOG_REMOTE_IMPORT
ELOG_JQUEUE_TEST = _constants.ELOG_JQUEUE_TEST
960

961 962 963 964 965 966 967 968 969
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
970

971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000
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
1001

1002 1003
MAX_NICS = _constants.MAX_NICS
MAX_DISKS = _constants.MAX_DISKS
1004

Jose A. Lopes's avatar
Jose A. Lopes committed
1005 1006 1007 1008 1009 1010 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
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
1042

1043
DEFAULT_ENABLED_HYPERVISOR = _constants.DEFAULT_ENABLED_HYPERVISOR
1044

1045
HVC_GLOBALS = _constants.HVC_GLOBALS
1046

1047
BEC_DEFAULTS = _constants.BEC_DEFAULTS
1048

1049
NDC_DEFAULTS = _constants.NDC_DEFAULTS
1050
NDC_GLOBALS = _constants.NDC_GLOBALS
1051

1052
DISK_LD_DEFAULTS = _constants.DISK_LD_DEFAULTS
1053
DISK_DT_DEFAULTS = _constants.DISK_DT_DEFAULTS
1054

1055
NICC_DEFAULTS = _constants.NICC_DEFAULTS
1056
ISPECS_MINMAX_DEFAULTS = _constants.ISPECS_MINMAX_DEFAULTS
1057
IPOLICY_DEFAULTS = _constants.IPOLICY_DEFAULTS
1058

1059
MASTER_POOL_SIZE_DEFAULT = _constants.MASTER_POOL_SIZE_DEFAULT
Guido Trotter's avatar
Guido Trotter committed
1060

1061 1062
PART_MARGIN = _constants.PART_MARGIN
PART_RESERVED = _constants.PART_RESERVED
1063

1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075
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
1076

1077 1078 1079 1080
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
1081

1082 1083 1084
CONFD_REQFIELD_NAME = _constants.CONFD_REQFIELD_NAME
CONFD_REQFIELD_IP = _constants.CONFD_REQFIELD_IP
CONFD_REQFIELD_MNODE_PIP = _constants.CONFD_REQFIELD_MNODE_PIP
1085

1086 1087 1088 1089
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
1090

1091 1092 1093 1094 1095
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
1096

1097 1098 1099
CONFD_ERROR_UNKNOWN_ENTRY = _constants.CONFD_ERROR_UNKNOWN_ENTRY
CONFD_ERROR_INTERNAL = _constants.CONFD_ERROR_INTERNAL
CONFD_ERROR_ARGUMENT = _constants.CONFD_ERROR_ARGUMENT
1100

1101
CONFD_MAX_CLOCK_SKEW = _constants.CONFD_MAX_CLOCK_SKEW
1102

1103 1104
CONFD_CONFIG_RELOAD_TIMEOUT = _constants.CONFD_CONFIG_RELOAD_TIMEOUT
CONFD_CONFIG_RELOAD_RATELIMIT = _constants.CONFD_CONFIG_RELOAD_RATELIMIT
1105

1106
CONFD_MAGIC_FOURCC = _constants.CONFD_MAGIC_FOURCC
1107

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

1110
CONFD_CLIENT_EXPIRE_TIMEOUT = _constants.CONFD_CLIENT_EXPIRE_TIMEOUT
Guido Trotter's avatar
Guido Trotter committed
1111

1112
MAX_UDP_DATA_SIZE = _constants.MAX_UDP_DATA_SIZE
Balazs Lecz's avatar
Balazs Lecz committed
1113

Jose A. Lopes's avatar
Jose A. Lopes committed
1114 1115
UIDPOOL_UID_MIN = _constants.UIDPOOL_UID_MIN
UIDPOOL_UID_MAX = _constants.UIDPOOL_UID_MAX
1116

1117
PGREP = _constants.PGREP
1118

1119
INITIAL_NODE_GROUP_NAME = _constants.INITIAL_NODE_GROUP_NAME
1120

1121 1122 1123 1124
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
1125

1126
BLOCKDEV_DRIVER_MANUAL = _constants.BLOCKDEV_DRIVER_MANUAL
1127

1128
QEMUIMG_PATH = _constants.QEMUIMG_PATH
1129

1130
HTOOLS = _constants.HTOOLS
1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147
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
1148
SSH_DAEMON_KEYFILES = _constants.SSH_DAEMON_KEYFILES
1149

1150 1151 1152 1153
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
1154

1155
RANDOM_UUID_FILE = _constants.RANDOM_UUID_FILE
1156

1157 1158 1159 1160 1161
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
1162

1163 1164 1165 1166 1167
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
1168

1169 1170 1171 1172
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
1173

1174
BUILTIN_DATA_COLLECTOR_VERSION = _constants.BUILTIN_DATA_COLLECTOR_VERSION
1175

1176
OPCODE_REASON = _constants.OPCODE_REASON
1177

Jose A. Lopes's avatar
Jose A. Lopes committed
1178 1179 1180 1181 1182 1183
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
1184

1185
DISKSTATS_FILE = _constants.DISKSTATS_FILE
1186

1187
STAT_FILE = _constants.STAT_FILE
1188 1189
CPUAVGLOAD_BUFFER_SIZE = _constants.CPUAVGLOAD_BUFFER_SIZE
CPUAVGLOAD_WINDOW_SIZE = _constants.CPUAVGLOAD_WINDOW_SIZE
Spyros Trigazis's avatar
Spyros Trigazis committed
1190

1191
MOND_TIME_INTERVAL = _constants.MOND_TIME_INTERVAL
1192
MOND_LATEST_API_VERSION = _constants.MOND_LATEST_API_VERSION
1193

1194 1195 1196
UPGRADE_QUEUE_DRAIN_TIMEOUT = _constants.UPGRADE_QUEUE_DRAIN_TIMEOUT
UPGRADE_QUEUE_POLL_INTERVAL = _constants.UPGRADE_QUEUE_POLL_INTERVAL

1197 1198 1199 1200 1201 1202 1203 1204 1205
HOTPLUG_TARGET_DISK = _constants.HOTPLUG_TARGET_DISK
HOTPLUG_TARGET_NIC = _constants.HOTPLUG_TARGET_NIC
HOTPLUG_ALL_TARGETS = _constants.HOTPLUG_ALL_TARGETS

HOTPLUG_ACTION_ADD = _constants.HOTPLUG_ACTION_ADD
HOTPLUG_ACTION_REMOVE = _constants.HOTPLUG_ACTION_REMOVE
HOTPLUG_ACTION_MODIFY = _constants.HOTPLUG_ACTION_MODIFY
HOTPLUG_ALL_ACTIONS = _constants.HOTPLUG_ALL_ACTIONS

1206 1207 1208
DISK_REMOVE_RETRY_INTERVAL = _constants.DISK_REMOVE_RETRY_INTERVAL
DISK_REMOVE_RETRY_TIMEOUT = _constants.DISK_REMOVE_RETRY_TIMEOUT

1209 1210
HAS_GNU_LN = _constants.HAS_GNU_LN

1211 1212
ALLOCATABLE_KEY = "allocatable"
FAILED_KEY = "failed"
1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259

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

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)

# 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.
XL_SSH_CMD = ("ssh -l %s -oGlobalKnownHostsFile=%s"
              " -oUserKnownHostsFile=/dev/null"
              " -oCheckHostIp=no -oStrictHostKeyChecking=yes"
              " -oHostKeyAlias=%%s") % (SSH_LOGIN_USER,
                                        pathutils.SSH_KNOWN_HOSTS_FILE)

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

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

# for export to htools
IP4_FAMILY = socket.AF_INET
IP6_FAMILY = socket.AF_INET6

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

# 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

# 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}$"

# Do not re-export imported modules
del re, _vcsversion, _constants, socket, pathutils, compat