4 # Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Google Inc.
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 """Module holding different constants."""
27 from ganeti import _constants
28 from ganeti import _vcsversion
29 from ganeti import compat
30 from ganeti import pathutils
34 RELEASE_VERSION = _constants.RELEASE_VERSION
35 OS_API_V10 = _constants.OS_API_V10
36 OS_API_V15 = _constants.OS_API_V15
37 OS_API_V20 = _constants.OS_API_V20
38 OS_API_VERSIONS = _constants.OS_API_VERSIONS
39 VCS_VERSION = _vcsversion.VCS_VERSION
40 EXPORT_VERSION = _constants.EXPORT_VERSION
41 RAPI_VERSION = _constants.RAPI_VERSION
43 VERSION_MAJOR = _constants.VERSION_MAJOR
44 VERSION_MINOR = _constants.VERSION_MINOR
45 VERSION_REVISION = _constants.VERSION_REVISION
47 DIR_VERSION = _constants.DIR_VERSION
49 CONFIG_MAJOR = _constants.CONFIG_MAJOR
50 CONFIG_MINOR = _constants.CONFIG_MINOR
51 CONFIG_REVISION = _constants.CONFIG_REVISION
52 CONFIG_VERSION = _constants.CONFIG_VERSION
54 PROTOCOL_VERSION = _constants.PROTOCOL_VERSION
56 DAEMONS_GROUP = _constants.DAEMONS_GROUP
57 ADMIN_GROUP = _constants.ADMIN_GROUP
58 MASTERD_USER = _constants.MASTERD_USER
59 MASTERD_GROUP = _constants.MASTERD_GROUP
60 RAPI_USER = _constants.RAPI_USER
61 RAPI_GROUP = _constants.RAPI_GROUP
62 CONFD_USER = _constants.CONFD_USER
63 CONFD_GROUP = _constants.CONFD_GROUP
64 LUXID_USER = _constants.LUXID_USER
65 LUXID_GROUP = _constants.LUXID_GROUP
66 NODED_USER = _constants.NODED_USER
67 NODED_GROUP = _constants.NODED_GROUP
68 MOND_USER = _constants.MOND_USER
69 MOND_GROUP = _constants.MOND_GROUP
70 SSH_LOGIN_USER = _constants.SSH_LOGIN_USER
71 SSH_CONSOLE_USER = _constants.SSH_CONSOLE_USER
73 CPU_PINNING_SEP = _constants.CPU_PINNING_SEP
74 CPU_PINNING_ALL = _constants.CPU_PINNING_ALL
75 CPU_PINNING_ALL_VAL = _constants.CPU_PINNING_ALL_VAL
76 CPU_PINNING_OFF = _constants.CPU_PINNING_OFF
78 CPU_PINNING_ALL_XEN = _constants.CPU_PINNING_ALL_XEN
80 CPU_PINNING_ALL_KVM = _constants.CPU_PINNING_ALL_KVM
82 DD_CMD = _constants.DD_CMD
83 MAX_WIPE_CHUNK = _constants.MAX_WIPE_CHUNK
84 MIN_WIPE_CHUNK_PERCENT = _constants.MIN_WIPE_CHUNK_PERCENT
86 RUN_DIRS_MODE = _constants.RUN_DIRS_MODE
87 SECURE_DIR_MODE = _constants.SECURE_DIR_MODE
88 SECURE_FILE_MODE = _constants.SECURE_FILE_MODE
89 ADOPTABLE_BLOCKDEV_ROOT = _constants.ADOPTABLE_BLOCKDEV_ROOT
90 ENABLE_CONFD = _constants.ENABLE_CONFD
91 ENABLE_MOND = _constants.ENABLE_MOND
92 ENABLE_SPLIT_QUERY = _constants.ENABLE_SPLIT_QUERY
93 ENABLE_RESTRICTED_COMMANDS = _constants.ENABLE_RESTRICTED_COMMANDS
98 NODED = _constants.NODED
99 CONFD = _constants.CONFD
100 LUXID = _constants.LUXID
101 RAPI = _constants.RAPI
102 MASTERD = _constants.MASTERD
103 MOND = _constants.MOND
105 DAEMONS = _constants.DAEMONS
107 DAEMONS_PORTS = _constants.DAEMONS_PORTS
109 DEFAULT_NODED_PORT = _constants.DEFAULT_NODED_PORT
110 DEFAULT_CONFD_PORT = _constants.DEFAULT_CONFD_PORT
111 DEFAULT_MOND_PORT = _constants.DEFAULT_MOND_PORT
112 DEFAULT_RAPI_PORT = _constants.DEFAULT_RAPI_PORT
114 FIRST_DRBD_PORT = _constants.FIRST_DRBD_PORT
115 LAST_DRBD_PORT = _constants.LAST_DRBD_PORT
117 DAEMONS_LOGBASE = _constants.DAEMONS_LOGBASE
120 dict((daemon, pathutils.GetLogFilename(DAEMONS_LOGBASE[daemon]))
121 for daemon in DAEMONS_LOGBASE)
123 DAEMONS_EXTRA_LOGBASE = _constants.DAEMONS_EXTRA_LOGBASE
125 DAEMONS_EXTRA_LOGFILES = \
126 dict((daemon, dict((extra,
127 pathutils.GetLogFilename(DAEMONS_EXTRA_LOGBASE[daemon][extra]))
128 for extra in DAEMONS_EXTRA_LOGBASE[daemon]))
129 for daemon in DAEMONS_EXTRA_LOGBASE)
131 DEV_CONSOLE = _constants.DEV_CONSOLE
133 PROC_MOUNTS = _constants.PROC_MOUNTS
135 LUXI_EOM = _constants.LUXI_EOM
136 LUXI_VERSION = _constants.LUXI_VERSION
137 LUXI_OVERRIDE = _constants.LUXI_OVERRIDE
138 LUXI_OVERRIDE_MASTER = _constants.LUXI_OVERRIDE_MASTER
139 LUXI_OVERRIDE_QUERY = _constants.LUXI_OVERRIDE_QUERY
141 SYSLOG_USAGE = _constants.SYSLOG_USAGE
142 SYSLOG_NO = _constants.SYSLOG_NO
143 SYSLOG_YES = _constants.SYSLOG_YES
144 SYSLOG_ONLY = _constants.SYSLOG_ONLY
145 SYSLOG_SOCKET = _constants.SYSLOG_SOCKET
147 EXPORT_CONF_FILE = _constants.EXPORT_CONF_FILE
149 XEN_BOOTLOADER = _constants.XEN_BOOTLOADER
150 XEN_KERNEL = _constants.XEN_KERNEL
151 XEN_INITRD = _constants.XEN_INITRD
152 XEN_CMD_XM = _constants.XEN_CMD_XM
153 XEN_CMD_XL = _constants.XEN_CMD_XL
154 KNOWN_XEN_COMMANDS = _constants.KNOWN_XEN_COMMANDS
156 # When the Xen toolstack used is "xl", live migration requires the source host
157 # to connect to the target host via ssh (xl runs this command). We need to pass
158 # the command xl runs some extra info so that it can use Ganeti's key
159 # verification and not fail. Note that this string is incomplete: it must be
160 # filled with the cluster name before being used.
161 XL_SSH_CMD = ("ssh -l %s -oGlobalKnownHostsFile=%s"
162 " -oUserKnownHostsFile=/dev/null"
163 " -oCheckHostIp=no -oStrictHostKeyChecking=yes"
164 " -oHostKeyAlias=%%s") % (SSH_LOGIN_USER,
165 pathutils.SSH_KNOWN_HOSTS_FILE)
167 KVM_PATH = _constants.KVM_PATH
168 KVM_KERNEL = _constants.KVM_KERNEL
169 SOCAT_PATH = _constants.SOCAT_PATH
170 SOCAT_USE_ESCAPE = _constants.SOCAT_USE_ESCAPE
171 SOCAT_USE_COMPRESS = _constants.SOCAT_USE_COMPRESS
172 SOCAT_ESCAPE_CODE = _constants.SOCAT_ESCAPE_CODE
175 CONS_SSH = _constants.CONS_SSH
176 CONS_VNC = _constants.CONS_VNC
177 CONS_SPICE = _constants.CONS_SPICE
178 CONS_MESSAGE = _constants.CONS_MESSAGE
179 CONS_ALL = _constants.CONS_ALL
181 RSA_KEY_BITS = _constants.RSA_KEY_BITS
182 OPENSSL_CIPHERS = _constants.OPENSSL_CIPHERS
184 X509_CERT_SIGN_DIGEST = _constants.X509_CERT_SIGN_DIGEST
185 X509_CERT_DEFAULT_VALIDITY = _constants.X509_CERT_DEFAULT_VALIDITY
186 X509_CERT_CN = _constants.X509_CERT_CN
187 X509_CERT_SIGNATURE_HEADER = _constants.X509_CERT_SIGNATURE_HEADER
189 # Import/export daemon mode
190 IEM_IMPORT = _constants.IEM_IMPORT
191 IEM_EXPORT = _constants.IEM_EXPORT
193 # Import/export transport compression
194 IEC_NONE = _constants.IEC_NONE
195 IEC_GZIP = _constants.IEC_GZIP
196 IEC_ALL = _constants.IEC_ALL
198 IE_CUSTOM_SIZE = _constants.IE_CUSTOM_SIZE
200 IE_MAGIC_RE = re.compile(r"^[-_.a-zA-Z0-9]{5,100}$")
202 IEIO_FILE = _constants.IEIO_FILE
203 IEIO_RAW_DISK = _constants.IEIO_RAW_DISK
204 IEIO_SCRIPT = _constants.IEIO_SCRIPT
206 VALUE_DEFAULT = _constants.VALUE_DEFAULT
207 VALUE_AUTO = _constants.VALUE_AUTO
208 VALUE_GENERATE = _constants.VALUE_GENERATE
209 VALUE_NONE = _constants.VALUE_NONE
210 VALUE_TRUE = _constants.VALUE_TRUE
211 VALUE_FALSE = _constants.VALUE_FALSE
212 VALUE_HS_NOTHING = _constants.VALUE_HS_NOTHING
214 # External script validation mask
215 EXT_PLUGIN_MASK = re.compile("^[a-zA-Z0-9_-]+$")
217 HOOKS_PHASE_PRE = _constants.HOOKS_PHASE_PRE
218 HOOKS_PHASE_POST = _constants.HOOKS_PHASE_POST
219 HOOKS_NAME_CFGUPDATE = _constants.HOOKS_NAME_CFGUPDATE
220 HOOKS_NAME_WATCHER = _constants.HOOKS_NAME_WATCHER
221 HOOKS_VERSION = _constants.HOOKS_VERSION
222 HOOKS_PATH = _constants.HOOKS_PATH
224 HTYPE_CLUSTER = _constants.HTYPE_CLUSTER
225 HTYPE_NODE = _constants.HTYPE_NODE
226 HTYPE_GROUP = _constants.HTYPE_GROUP
227 HTYPE_INSTANCE = _constants.HTYPE_INSTANCE
228 HTYPE_NETWORK = _constants.HTYPE_NETWORK
230 HKR_SKIP = _constants.HKR_SKIP
231 HKR_FAIL = _constants.HKR_FAIL
232 HKR_SUCCESS = _constants.HKR_SUCCESS
234 ST_BLOCK = _constants.ST_BLOCK
235 ST_DISKLESS = _constants.ST_DISKLESS
236 ST_EXT = _constants.ST_EXT
237 ST_FILE = _constants.ST_FILE
238 ST_LVM_PV = _constants.ST_LVM_PV
239 ST_LVM_VG = _constants.ST_LVM_VG
240 ST_RADOS = _constants.ST_RADOS
241 STORAGE_TYPES = _constants.STORAGE_TYPES
242 STS_REPORT = _constants.STS_REPORT
245 # first two are valid in LU context only, not passed to backend
246 SF_NODE = _constants.SF_NODE
247 SF_TYPE = _constants.SF_TYPE
248 # and the rest are valid in backend
249 SF_NAME = _constants.SF_NAME
250 SF_SIZE = _constants.SF_SIZE
251 SF_FREE = _constants.SF_FREE
252 SF_USED = _constants.SF_USED
253 SF_ALLOCATABLE = _constants.SF_ALLOCATABLE
254 VALID_STORAGE_FIELDS = _constants.VALID_STORAGE_FIELDS
255 MODIFIABLE_STORAGE_FIELDS = _constants.MODIFIABLE_STORAGE_FIELDS
257 SO_FIX_CONSISTENCY = _constants.SO_FIX_CONSISTENCY
258 VALID_STORAGE_OPERATIONS = _constants.VALID_STORAGE_OPERATIONS
260 VF_DEV = _constants.VF_DEV
261 VF_INSTANCE = _constants.VF_INSTANCE
262 VF_NAME = _constants.VF_NAME
263 VF_NODE = _constants.VF_NODE
264 VF_PHYS = _constants.VF_PHYS
265 VF_SIZE = _constants.VF_SIZE
266 VF_VG = _constants.VF_VG
268 LDS_OKAY = _constants.LDS_OKAY
269 LDS_UNKNOWN = _constants.LDS_UNKNOWN
270 LDS_FAULTY = _constants.LDS_FAULTY
271 LDS_NAMES = _constants.LDS_NAMES
273 DT_BLOCK = _constants.DT_BLOCK
274 DT_DISKLESS = _constants.DT_DISKLESS
275 DT_DRBD8 = _constants.DT_DRBD8
276 DT_EXT = _constants.DT_EXT
277 DT_FILE = _constants.DT_FILE
278 DT_PLAIN = _constants.DT_PLAIN
279 DT_RBD = _constants.DT_RBD
280 DT_SHARED_FILE = _constants.DT_SHARED_FILE
281 DISK_TEMPLATE_PREFERENCE = _constants.DISK_TEMPLATE_PREFERENCE
282 DISK_TEMPLATES = _constants.DISK_TEMPLATES
283 DEFAULT_ENABLED_DISK_TEMPLATES = _constants.DEFAULT_ENABLED_DISK_TEMPLATES
285 MAP_DISK_TEMPLATE_STORAGE_TYPE = _constants.MAP_DISK_TEMPLATE_STORAGE_TYPE
287 DTS_INT_MIRROR = _constants.DTS_INT_MIRROR
288 DTS_EXT_MIRROR = _constants.DTS_EXT_MIRROR
289 DTS_NOT_LVM = _constants.DTS_NOT_LVM
290 DTS_GROWABLE = _constants.DTS_GROWABLE
291 DTS_MAY_ADOPT = _constants.DTS_MAY_ADOPT
292 DTS_MUST_ADOPT = _constants.DTS_MUST_ADOPT
293 DTS_MIRRORED = _constants.DTS_MIRRORED
294 DTS_FILEBASED = _constants.DTS_FILEBASED
295 DTS_COPYABLE = _constants.DTS_COPYABLE
296 DTS_EXCL_STORAGE = _constants.DTS_EXCL_STORAGE
297 DTS_NO_FREE_SPACE_CHECK = _constants.DTS_NO_FREE_SPACE_CHECK
298 DTS_BLOCK = _constants.DTS_BLOCK
300 DTS_DRBD = _constants.DTS_DRBD
302 DTS_LVM = _constants.DTS_LVM
304 DRBD_HMAC_ALG = _constants.DRBD_HMAC_ALG
305 DRBD_DEFAULT_NET_PROTOCOL = _constants.DRBD_DEFAULT_NET_PROTOCOL
306 DRBD_MIGRATION_NET_PROTOCOL = _constants.DRBD_MIGRATION_NET_PROTOCOL
307 DRBD_STATUS_FILE = _constants.DRBD_STATUS_FILE
308 DRBD_META_SIZE = _constants.DRBD_META_SIZE
310 DRBD_B_NONE = _constants.DRBD_B_NONE
311 DRBD_B_DISK_BARRIERS = _constants.DRBD_B_DISK_BARRIERS
312 DRBD_B_DISK_DRAIN = _constants.DRBD_B_DISK_DRAIN
313 DRBD_B_DISK_FLUSH = _constants.DRBD_B_DISK_FLUSH
315 DRBD_VALID_BARRIER_OPT = _constants.DRBD_VALID_BARRIER_OPT
317 RBD_CMD = _constants.RBD_CMD
319 FD_BLKTAP = _constants.FD_BLKTAP
320 FD_LOOP = _constants.FD_LOOP
321 FILE_DRIVER = _constants.FILE_DRIVER
323 DISK_RDONLY = _constants.DISK_RDONLY
324 DISK_RDWR = _constants.DISK_RDWR
325 DISK_ACCESS_SET = _constants.DISK_ACCESS_SET
326 DISK_USERSPACE = _constants.DISK_USERSPACE
327 DISK_KERNELSPACE = _constants.DISK_KERNELSPACE
328 DISK_VALID_ACCESS_MODES = _constants.DISK_VALID_ACCESS_MODES
330 REPLACE_DISK_PRI = _constants.REPLACE_DISK_PRI
331 REPLACE_DISK_SEC = _constants.REPLACE_DISK_SEC
332 REPLACE_DISK_CHG = _constants.REPLACE_DISK_CHG
333 REPLACE_DISK_AUTO = _constants.REPLACE_DISK_AUTO
334 REPLACE_MODES = _constants.REPLACE_MODES
336 EXPORT_MODE_LOCAL = _constants.EXPORT_MODE_LOCAL
337 EXPORT_MODE_REMOTE = _constants.EXPORT_MODE_REMOTE
338 EXPORT_MODES = _constants.EXPORT_MODES
340 INSTANCE_CREATE = _constants.INSTANCE_CREATE
341 INSTANCE_IMPORT = _constants.INSTANCE_IMPORT
342 INSTANCE_REMOTE_IMPORT = _constants.INSTANCE_REMOTE_IMPORT
343 INSTANCE_CREATE_MODES = _constants.INSTANCE_CREATE_MODES
345 RIE_VERSION = _constants.RIE_VERSION
346 RIE_HANDSHAKE = _constants.RIE_HANDSHAKE
347 RIE_CERT_VALIDITY = _constants.RIE_CERT_VALIDITY
348 RIE_CONNECT_TIMEOUT = _constants.RIE_CONNECT_TIMEOUT
349 RIE_CONNECT_ATTEMPT_TIMEOUT = _constants.RIE_CONNECT_ATTEMPT_TIMEOUT
350 RIE_CONNECT_RETRIES = _constants.RIE_CONNECT_RETRIES
351 CHILD_LINGER_TIMEOUT = _constants.CHILD_LINGER_TIMEOUT
353 INISECT_EXP = _constants.INISECT_EXP
354 INISECT_INS = _constants.INISECT_INS
355 INISECT_HYP = _constants.INISECT_HYP
356 INISECT_BEP = _constants.INISECT_BEP
357 INISECT_OSP = _constants.INISECT_OSP
359 DDM_ADD = _constants.DDM_ADD
360 DDM_MODIFY = _constants.DDM_MODIFY
361 DDM_REMOVE = _constants.DDM_REMOVE
362 DDMS_VALUES = _constants.DDMS_VALUES
363 DDMS_VALUES_WITH_MODIFY = _constants.DDMS_VALUES_WITH_MODIFY
366 EXIT_SUCCESS = _constants.EXIT_SUCCESS
367 EXIT_FAILURE = _constants.EXIT_FAILURE
368 EXIT_NOTCLUSTER = _constants.EXIT_NOTCLUSTER
369 EXIT_NOTMASTER = _constants.EXIT_NOTMASTER
370 EXIT_NODESETUP_ERROR = _constants.EXIT_NODESETUP_ERROR
371 EXIT_CONFIRMATION = _constants.EXIT_CONFIRMATION
372 EXIT_UNKNOWN_FIELD = _constants.EXIT_UNKNOWN_FIELD
374 TAG_CLUSTER = _constants.TAG_CLUSTER
375 TAG_NODEGROUP = _constants.TAG_NODEGROUP
376 TAG_NODE = _constants.TAG_NODE
377 TAG_INSTANCE = _constants.TAG_INSTANCE
378 TAG_NETWORK = _constants.TAG_NETWORK
379 VALID_TAG_TYPES = _constants.VALID_TAG_TYPES
381 MAX_TAG_LEN = _constants.MAX_TAG_LEN
382 MAX_TAGS_PER_OBJ = _constants.MAX_TAGS_PER_OBJ
385 DEFAULT_BRIDGE = _constants.DEFAULT_BRIDGE
386 DEFAULT_OVS = _constants.DEFAULT_OVS
387 CLASSIC_DRBD_SYNC_SPEED = _constants.CLASSIC_DRBD_SYNC_SPEED
388 IP4_ADDRESS_LOCALHOST = _constants.IP4_ADDRESS_LOCALHOST
389 IP4_ADDRESS_ANY = _constants.IP4_ADDRESS_ANY
390 IP6_ADDRESS_LOCALHOST = _constants.IP6_ADDRESS_LOCALHOST
391 IP6_ADDRESS_ANY = _constants.IP6_ADDRESS_ANY
392 IP4_VERSION = _constants.IP4_VERSION
393 IP6_VERSION = _constants.IP6_VERSION
394 VALID_IP_VERSIONS = _constants.VALID_IP_VERSIONS
395 # for export to htools
396 IP4_FAMILY = socket.AF_INET
397 IP6_FAMILY = socket.AF_INET6
399 TCP_PING_TIMEOUT = _constants.TCP_PING_TIMEOUT
400 DEFAULT_VG = _constants.DEFAULT_VG
401 DEFAULT_DRBD_HELPER = _constants.DEFAULT_DRBD_HELPER
402 MIN_VG_SIZE = _constants.MIN_VG_SIZE
403 DEFAULT_MAC_PREFIX = _constants.DEFAULT_MAC_PREFIX
404 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 DISK_SEPARATOR = _constants.DISK_SEPARATOR
408 IP_COMMAND_PATH = _constants.IP_COMMAND_PATH
409 JOB_IDS_KEY = _constants.JOB_IDS_KEY
411 RUNPARTS_SKIP = _constants.RUNPARTS_SKIP
412 RUNPARTS_RUN = _constants.RUNPARTS_RUN
413 RUNPARTS_ERR = _constants.RUNPARTS_ERR
414 RUNPARTS_STATUS = _constants.RUNPARTS_STATUS
416 RPC_ENCODING_NONE = _constants.RPC_ENCODING_NONE
417 RPC_ENCODING_ZLIB_BASE64 = _constants.RPC_ENCODING_ZLIB_BASE64
419 RPC_TMO_URGENT = _constants.RPC_TMO_URGENT
420 RPC_TMO_FAST = _constants.RPC_TMO_FAST
421 RPC_TMO_NORMAL = _constants.RPC_TMO_NORMAL
422 RPC_TMO_SLOW = _constants.RPC_TMO_SLOW
423 RPC_TMO_4HRS = _constants.RPC_TMO_4HRS
424 RPC_TMO_1DAY = _constants.RPC_TMO_1DAY
425 RPC_CONNECT_TIMEOUT = _constants.RPC_CONNECT_TIMEOUT
427 OS_SCRIPT_CREATE = _constants.OS_SCRIPT_CREATE
428 OS_SCRIPT_IMPORT = _constants.OS_SCRIPT_IMPORT
429 OS_SCRIPT_EXPORT = _constants.OS_SCRIPT_EXPORT
430 OS_SCRIPT_RENAME = _constants.OS_SCRIPT_RENAME
431 OS_SCRIPT_VERIFY = _constants.OS_SCRIPT_VERIFY
432 OS_SCRIPTS = _constants.OS_SCRIPTS
434 OS_API_FILE = _constants.OS_API_FILE
435 OS_VARIANTS_FILE = _constants.OS_VARIANTS_FILE
436 OS_PARAMETERS_FILE = _constants.OS_PARAMETERS_FILE
438 OS_VALIDATE_PARAMETERS = _constants.OS_VALIDATE_PARAMETERS
439 OS_VALIDATE_CALLS = _constants.OS_VALIDATE_CALLS
441 ES_ACTION_CREATE = _constants.ES_ACTION_CREATE
442 ES_ACTION_REMOVE = _constants.ES_ACTION_REMOVE
443 ES_ACTION_GROW = _constants.ES_ACTION_GROW
444 ES_ACTION_ATTACH = _constants.ES_ACTION_ATTACH
445 ES_ACTION_DETACH = _constants.ES_ACTION_DETACH
446 ES_ACTION_SETINFO = _constants.ES_ACTION_SETINFO
447 ES_ACTION_VERIFY = _constants.ES_ACTION_VERIFY
449 ES_SCRIPT_CREATE = _constants.ES_SCRIPT_CREATE
450 ES_SCRIPT_REMOVE = _constants.ES_SCRIPT_REMOVE
451 ES_SCRIPT_GROW = _constants.ES_SCRIPT_GROW
452 ES_SCRIPT_ATTACH = _constants.ES_SCRIPT_ATTACH
453 ES_SCRIPT_DETACH = _constants.ES_SCRIPT_DETACH
454 ES_SCRIPT_SETINFO = _constants.ES_SCRIPT_SETINFO
455 ES_SCRIPT_VERIFY = _constants.ES_SCRIPT_VERIFY
456 ES_SCRIPTS = _constants.ES_SCRIPTS
458 ES_PARAMETERS_FILE = _constants.ES_PARAMETERS_FILE
460 INSTANCE_REBOOT_SOFT = _constants.INSTANCE_REBOOT_SOFT
461 INSTANCE_REBOOT_HARD = _constants.INSTANCE_REBOOT_HARD
462 INSTANCE_REBOOT_FULL = _constants.INSTANCE_REBOOT_FULL
463 REBOOT_TYPES = _constants.REBOOT_TYPES
465 INSTANCE_REBOOT_ALLOWED = _constants.INSTANCE_REBOOT_ALLOWED
466 INSTANCE_REBOOT_EXIT = _constants.INSTANCE_REBOOT_EXIT
467 REBOOT_BEHAVIORS = _constants.REBOOT_BEHAVIORS
469 VTYPE_STRING = _constants.VTYPE_STRING
470 VTYPE_MAYBE_STRING = _constants.VTYPE_MAYBE_STRING
471 VTYPE_BOOL = _constants.VTYPE_BOOL
472 VTYPE_SIZE = _constants.VTYPE_SIZE
473 VTYPE_INT = _constants.VTYPE_INT
474 ENFORCEABLE_TYPES = _constants.ENFORCEABLE_TYPES
476 IFACE_NO_IP_VERSION_SPECIFIED = _constants.IFACE_NO_IP_VERSION_SPECIFIED
478 VALID_SERIAL_SPEEDS = _constants.VALID_SERIAL_SPEEDS
480 HV_BOOT_ORDER = _constants.HV_BOOT_ORDER
481 HV_CDROM_IMAGE_PATH = _constants.HV_CDROM_IMAGE_PATH
482 HV_KVM_CDROM2_IMAGE_PATH = _constants.HV_KVM_CDROM2_IMAGE_PATH
483 HV_KVM_FLOPPY_IMAGE_PATH = _constants.HV_KVM_FLOPPY_IMAGE_PATH
484 HV_NIC_TYPE = _constants.HV_NIC_TYPE
485 HV_DISK_TYPE = _constants.HV_DISK_TYPE
486 HV_KVM_CDROM_DISK_TYPE = _constants.HV_KVM_CDROM_DISK_TYPE
487 HV_VNC_BIND_ADDRESS = _constants.HV_VNC_BIND_ADDRESS
488 HV_VNC_PASSWORD_FILE = _constants.HV_VNC_PASSWORD_FILE
489 HV_VNC_TLS = _constants.HV_VNC_TLS
490 HV_VNC_X509 = _constants.HV_VNC_X509
491 HV_VNC_X509_VERIFY = _constants.HV_VNC_X509_VERIFY
492 HV_KVM_SPICE_BIND = _constants.HV_KVM_SPICE_BIND
493 HV_KVM_SPICE_IP_VERSION = _constants.HV_KVM_SPICE_IP_VERSION
494 HV_KVM_SPICE_PASSWORD_FILE = _constants.HV_KVM_SPICE_PASSWORD_FILE
495 HV_KVM_SPICE_LOSSLESS_IMG_COMPR = _constants.HV_KVM_SPICE_LOSSLESS_IMG_COMPR
496 HV_KVM_SPICE_JPEG_IMG_COMPR = _constants.HV_KVM_SPICE_JPEG_IMG_COMPR
497 HV_KVM_SPICE_ZLIB_GLZ_IMG_COMPR = _constants.HV_KVM_SPICE_ZLIB_GLZ_IMG_COMPR
498 HV_KVM_SPICE_STREAMING_VIDEO_DETECTION = \
499 _constants.HV_KVM_SPICE_STREAMING_VIDEO_DETECTION
500 HV_KVM_SPICE_AUDIO_COMPR = _constants.HV_KVM_SPICE_AUDIO_COMPR
501 HV_KVM_SPICE_USE_TLS = _constants.HV_KVM_SPICE_USE_TLS
502 HV_KVM_SPICE_TLS_CIPHERS = _constants.HV_KVM_SPICE_TLS_CIPHERS
503 HV_KVM_SPICE_USE_VDAGENT = _constants.HV_KVM_SPICE_USE_VDAGENT
504 HV_ACPI = _constants.HV_ACPI
505 HV_PAE = _constants.HV_PAE
506 HV_USE_BOOTLOADER = _constants.HV_USE_BOOTLOADER
507 HV_BOOTLOADER_ARGS = _constants.HV_BOOTLOADER_ARGS
508 HV_BOOTLOADER_PATH = _constants.HV_BOOTLOADER_PATH
509 HV_KERNEL_ARGS = _constants.HV_KERNEL_ARGS
510 HV_KERNEL_PATH = _constants.HV_KERNEL_PATH
511 HV_INITRD_PATH = _constants.HV_INITRD_PATH
512 HV_ROOT_PATH = _constants.HV_ROOT_PATH
513 HV_SERIAL_CONSOLE = _constants.HV_SERIAL_CONSOLE
514 HV_SERIAL_SPEED = _constants.HV_SERIAL_SPEED
515 HV_USB_MOUSE = _constants.HV_USB_MOUSE
516 HV_KEYMAP = _constants.HV_KEYMAP
517 HV_DEVICE_MODEL = _constants.HV_DEVICE_MODEL
518 HV_INIT_SCRIPT = _constants.HV_INIT_SCRIPT
519 HV_MIGRATION_PORT = _constants.HV_MIGRATION_PORT
520 HV_MIGRATION_BANDWIDTH = _constants.HV_MIGRATION_BANDWIDTH
521 HV_MIGRATION_DOWNTIME = _constants.HV_MIGRATION_DOWNTIME
522 HV_MIGRATION_MODE = _constants.HV_MIGRATION_MODE
523 HV_USE_LOCALTIME = _constants.HV_USE_LOCALTIME
524 HV_DISK_CACHE = _constants.HV_DISK_CACHE
525 HV_SECURITY_MODEL = _constants.HV_SECURITY_MODEL
526 HV_SECURITY_DOMAIN = _constants.HV_SECURITY_DOMAIN
527 HV_KVM_FLAG = _constants.HV_KVM_FLAG
528 HV_VHOST_NET = _constants.HV_VHOST_NET
529 HV_KVM_USE_CHROOT = _constants.HV_KVM_USE_CHROOT
530 HV_CPU_MASK = _constants.HV_CPU_MASK
531 HV_MEM_PATH = _constants.HV_MEM_PATH
532 HV_PASSTHROUGH = _constants.HV_PASSTHROUGH
533 HV_BLOCKDEV_PREFIX = _constants.HV_BLOCKDEV_PREFIX
534 HV_REBOOT_BEHAVIOR = _constants.HV_REBOOT_BEHAVIOR
535 HV_CPU_TYPE = _constants.HV_CPU_TYPE
536 HV_CPU_CAP = _constants.HV_CPU_CAP
537 HV_CPU_WEIGHT = _constants.HV_CPU_WEIGHT
538 HV_CPU_CORES = _constants.HV_CPU_CORES
539 HV_CPU_THREADS = _constants.HV_CPU_THREADS
540 HV_CPU_SOCKETS = _constants.HV_CPU_SOCKETS
541 HV_SOUNDHW = _constants.HV_SOUNDHW
542 HV_USB_DEVICES = _constants.HV_USB_DEVICES
543 HV_VGA = _constants.HV_VGA
544 HV_KVM_EXTRA = _constants.HV_KVM_EXTRA
545 HV_KVM_MACHINE_VERSION = _constants.HV_KVM_MACHINE_VERSION
546 HV_KVM_PATH = _constants.HV_KVM_PATH
547 HV_VIF_TYPE = _constants.HV_VIF_TYPE
548 HV_VIF_SCRIPT = _constants.HV_VIF_SCRIPT
549 HV_XEN_CMD = _constants.HV_XEN_CMD
550 HV_XEN_CPUID = _constants.HV_XEN_CPUID
551 HV_VNET_HDR = _constants.HV_VNET_HDR
552 HV_VIRIDIAN = _constants.HV_VIRIDIAN
554 HVS_PARAMETER_TYPES = {
555 HV_KVM_PATH: VTYPE_STRING,
556 HV_BOOT_ORDER: VTYPE_STRING,
557 HV_KVM_FLOPPY_IMAGE_PATH: VTYPE_STRING,
558 HV_CDROM_IMAGE_PATH: VTYPE_STRING,
559 HV_KVM_CDROM2_IMAGE_PATH: VTYPE_STRING,
560 HV_NIC_TYPE: VTYPE_STRING,
561 HV_DISK_TYPE: VTYPE_STRING,
562 HV_KVM_CDROM_DISK_TYPE: VTYPE_STRING,
563 HV_VNC_PASSWORD_FILE: VTYPE_STRING,
564 HV_VNC_BIND_ADDRESS: VTYPE_STRING,
565 HV_VNC_TLS: VTYPE_BOOL,
566 HV_VNC_X509: VTYPE_STRING,
567 HV_VNC_X509_VERIFY: VTYPE_BOOL,
568 HV_KVM_SPICE_BIND: VTYPE_STRING,
569 HV_KVM_SPICE_IP_VERSION: VTYPE_INT,
570 HV_KVM_SPICE_PASSWORD_FILE: VTYPE_STRING,
571 HV_KVM_SPICE_LOSSLESS_IMG_COMPR: VTYPE_STRING,
572 HV_KVM_SPICE_JPEG_IMG_COMPR: VTYPE_STRING,
573 HV_KVM_SPICE_ZLIB_GLZ_IMG_COMPR: VTYPE_STRING,
574 HV_KVM_SPICE_STREAMING_VIDEO_DETECTION: VTYPE_STRING,
575 HV_KVM_SPICE_AUDIO_COMPR: VTYPE_BOOL,
576 HV_KVM_SPICE_USE_TLS: VTYPE_BOOL,
577 HV_KVM_SPICE_TLS_CIPHERS: VTYPE_STRING,
578 HV_KVM_SPICE_USE_VDAGENT: VTYPE_BOOL,
581 HV_USE_BOOTLOADER: VTYPE_BOOL,
582 HV_BOOTLOADER_PATH: VTYPE_STRING,
583 HV_BOOTLOADER_ARGS: VTYPE_STRING,
584 HV_KERNEL_PATH: VTYPE_STRING,
585 HV_KERNEL_ARGS: VTYPE_STRING,
586 HV_INITRD_PATH: VTYPE_STRING,
587 HV_ROOT_PATH: VTYPE_MAYBE_STRING,
588 HV_SERIAL_CONSOLE: VTYPE_BOOL,
589 HV_SERIAL_SPEED: VTYPE_INT,
590 HV_USB_MOUSE: VTYPE_STRING,
591 HV_KEYMAP: VTYPE_STRING,
592 HV_DEVICE_MODEL: VTYPE_STRING,
593 HV_INIT_SCRIPT: VTYPE_STRING,
594 HV_MIGRATION_PORT: VTYPE_INT,
595 HV_MIGRATION_BANDWIDTH: VTYPE_INT,
596 HV_MIGRATION_DOWNTIME: VTYPE_INT,
597 HV_MIGRATION_MODE: VTYPE_STRING,
598 HV_USE_LOCALTIME: VTYPE_BOOL,
599 HV_DISK_CACHE: VTYPE_STRING,
600 HV_SECURITY_MODEL: VTYPE_STRING,
601 HV_SECURITY_DOMAIN: VTYPE_STRING,
602 HV_KVM_FLAG: VTYPE_STRING,
603 HV_VHOST_NET: VTYPE_BOOL,
604 HV_KVM_USE_CHROOT: VTYPE_BOOL,
605 HV_CPU_MASK: VTYPE_STRING,
606 HV_MEM_PATH: VTYPE_STRING,
607 HV_PASSTHROUGH: VTYPE_STRING,
608 HV_BLOCKDEV_PREFIX: VTYPE_STRING,
609 HV_REBOOT_BEHAVIOR: VTYPE_STRING,
610 HV_CPU_TYPE: VTYPE_STRING,
611 HV_CPU_CAP: VTYPE_INT,
612 HV_CPU_WEIGHT: VTYPE_INT,
613 HV_CPU_CORES: VTYPE_INT,
614 HV_CPU_THREADS: VTYPE_INT,
615 HV_CPU_SOCKETS: VTYPE_INT,
616 HV_SOUNDHW: VTYPE_STRING,
617 HV_USB_DEVICES: VTYPE_STRING,
618 HV_VGA: VTYPE_STRING,
619 HV_KVM_EXTRA: VTYPE_STRING,
620 HV_KVM_MACHINE_VERSION: VTYPE_STRING,
621 HV_VIF_TYPE: VTYPE_STRING,
622 HV_VIF_SCRIPT: VTYPE_STRING,
623 HV_XEN_CMD: VTYPE_STRING,
624 HV_XEN_CPUID: VTYPE_STRING,
625 HV_VNET_HDR: VTYPE_BOOL,
626 HV_VIRIDIAN: VTYPE_BOOL,
629 HVS_PARAMETERS = frozenset(HVS_PARAMETER_TYPES.keys())
631 HVS_PARAMETER_TITLES = _constants.HVS_PARAMETER_TITLES
633 HV_MIGRATION_COMPLETED = _constants.HV_MIGRATION_COMPLETED
634 HV_MIGRATION_ACTIVE = _constants.HV_MIGRATION_ACTIVE
635 HV_MIGRATION_FAILED = _constants.HV_MIGRATION_FAILED
636 HV_MIGRATION_CANCELLED = _constants.HV_MIGRATION_CANCELLED
637 HV_MIGRATION_VALID_STATUSES = _constants.HV_MIGRATION_VALID_STATUSES
638 HV_MIGRATION_FAILED_STATUSES = _constants.HV_MIGRATION_FAILED_STATUSES
639 HV_KVM_MIGRATION_VALID_STATUSES = _constants.HV_KVM_MIGRATION_VALID_STATUSES
641 HV_NODEINFO_KEY_VERSION = _constants.HV_NODEINFO_KEY_VERSION
643 HVST_MEMORY_TOTAL = _constants.HVST_MEMORY_TOTAL
644 HVST_MEMORY_NODE = _constants.HVST_MEMORY_NODE
645 HVST_MEMORY_HV = _constants.HVST_MEMORY_HV
646 HVST_CPU_TOTAL = _constants.HVST_CPU_TOTAL
647 HVST_CPU_NODE = _constants.HVST_CPU_NODE
648 HVSTS_PARAMETERS = _constants.HVSTS_PARAMETERS
649 HVST_DEFAULTS = _constants.HVST_DEFAULTS
650 HVSTS_PARAMETER_TYPES = _constants.HVSTS_PARAMETER_TYPES
652 DS_DISK_TOTAL = _constants.DS_DISK_TOTAL
653 DS_DISK_RESERVED = _constants.DS_DISK_RESERVED
654 DS_DISK_OVERHEAD = _constants.DS_DISK_OVERHEAD
655 DS_DEFAULTS = _constants.DS_DEFAULTS
656 DSS_PARAMETER_TYPES = _constants.DSS_PARAMETER_TYPES
657 DSS_PARAMETERS = _constants.DSS_PARAMETERS
658 DS_VALID_TYPES = _constants.DS_VALID_TYPES
660 BE_MEMORY = _constants.BE_MEMORY
661 BE_MAXMEM = _constants.BE_MAXMEM
662 BE_MINMEM = _constants.BE_MINMEM
663 BE_VCPUS = _constants.BE_VCPUS
664 BE_AUTO_BALANCE = _constants.BE_AUTO_BALANCE
665 BE_ALWAYS_FAILOVER = _constants.BE_ALWAYS_FAILOVER
666 BE_SPINDLE_USE = _constants.BE_SPINDLE_USE
667 BES_PARAMETER_TYPES = _constants.BES_PARAMETER_TYPES
668 BES_PARAMETER_TITLES = _constants.BES_PARAMETER_TITLES
669 BES_PARAMETER_COMPAT = _constants.BES_PARAMETER_COMPAT
670 BES_PARAMETERS = _constants.BES_PARAMETERS
672 ISPEC_MEM_SIZE = _constants.ISPEC_MEM_SIZE
673 ISPEC_CPU_COUNT = _constants.ISPEC_CPU_COUNT
674 ISPEC_DISK_COUNT = _constants.ISPEC_DISK_COUNT
675 ISPEC_DISK_SIZE = _constants.ISPEC_DISK_SIZE
676 ISPEC_NIC_COUNT = _constants.ISPEC_NIC_COUNT
677 ISPEC_SPINDLE_USE = _constants.ISPEC_SPINDLE_USE
678 ISPECS_PARAMETER_TYPES = _constants.ISPECS_PARAMETER_TYPES
679 ISPECS_PARAMETERS = _constants.ISPECS_PARAMETERS
681 ISPECS_MINMAX = _constants.ISPECS_MINMAX
682 ISPECS_MIN = _constants.ISPECS_MIN
683 ISPECS_MAX = _constants.ISPECS_MAX
684 ISPECS_STD = _constants.ISPECS_STD
685 IPOLICY_DTS = _constants.IPOLICY_DTS
686 IPOLICY_VCPU_RATIO = _constants.IPOLICY_VCPU_RATIO
687 IPOLICY_SPINDLE_RATIO = _constants.IPOLICY_SPINDLE_RATIO
688 ISPECS_MINMAX_KEYS = _constants.ISPECS_MINMAX_KEYS
689 IPOLICY_PARAMETERS = _constants.IPOLICY_PARAMETERS
690 IPOLICY_ALL_KEYS = _constants.IPOLICY_ALL_KEYS
692 ND_OOB_PROGRAM = _constants.ND_OOB_PROGRAM
693 ND_SPINDLE_COUNT = _constants.ND_SPINDLE_COUNT
694 ND_EXCLUSIVE_STORAGE = _constants.ND_EXCLUSIVE_STORAGE
695 ND_OVS = _constants.ND_OVS
696 ND_OVS_NAME = _constants.ND_OVS_NAME
697 ND_OVS_LINK = _constants.ND_OVS_LINK
699 NDS_PARAMETER_TYPES = _constants.NDS_PARAMETER_TYPES
700 NDS_PARAMETERS = _constants.NDS_PARAMETERS
701 NDS_PARAMETER_TITLES = _constants.NDS_PARAMETER_TITLES
703 LDP_RESYNC_RATE = _constants.LDP_RESYNC_RATE
704 LDP_STRIPES = _constants.LDP_STRIPES
705 LDP_BARRIERS = _constants.LDP_BARRIERS
706 LDP_NO_META_FLUSH = _constants.LDP_NO_META_FLUSH
707 LDP_DEFAULT_METAVG = _constants.LDP_DEFAULT_METAVG
708 LDP_DISK_CUSTOM = _constants.LDP_DISK_CUSTOM
709 LDP_NET_CUSTOM = _constants.LDP_NET_CUSTOM
710 LDP_PROTOCOL = _constants.LDP_PROTOCOL
711 LDP_DYNAMIC_RESYNC = _constants.LDP_DYNAMIC_RESYNC
712 LDP_PLAN_AHEAD = _constants.LDP_PLAN_AHEAD
713 LDP_FILL_TARGET = _constants.LDP_FILL_TARGET
714 LDP_DELAY_TARGET = _constants.LDP_DELAY_TARGET
715 LDP_MAX_RATE = _constants.LDP_MAX_RATE
716 LDP_MIN_RATE = _constants.LDP_MIN_RATE
717 LDP_POOL = _constants.LDP_POOL
718 LDP_ACCESS = _constants.LDP_ACCESS
719 DISK_LD_TYPES = _constants.DISK_LD_TYPES
720 DISK_LD_PARAMETERS = _constants.DISK_LD_PARAMETERS
722 DRBD_RESYNC_RATE = _constants.DRBD_RESYNC_RATE
723 DRBD_DATA_STRIPES = _constants.DRBD_DATA_STRIPES
724 DRBD_META_STRIPES = _constants.DRBD_META_STRIPES
725 DRBD_DISK_BARRIERS = _constants.DRBD_DISK_BARRIERS
726 DRBD_META_BARRIERS = _constants.DRBD_META_BARRIERS
727 DRBD_DEFAULT_METAVG = _constants.DRBD_DEFAULT_METAVG
728 DRBD_DISK_CUSTOM = _constants.DRBD_DISK_CUSTOM
729 DRBD_NET_CUSTOM = _constants.DRBD_NET_CUSTOM
730 DRBD_PROTOCOL = _constants.DRBD_PROTOCOL
731 DRBD_DYNAMIC_RESYNC = _constants.DRBD_DYNAMIC_RESYNC
732 DRBD_PLAN_AHEAD = _constants.DRBD_PLAN_AHEAD
733 DRBD_FILL_TARGET = _constants.DRBD_FILL_TARGET
734 DRBD_DELAY_TARGET = _constants.DRBD_DELAY_TARGET
735 DRBD_MAX_RATE = _constants.DRBD_MAX_RATE
736 DRBD_MIN_RATE = _constants.DRBD_MIN_RATE
737 LV_STRIPES = _constants.LV_STRIPES
738 RBD_ACCESS = _constants.RBD_ACCESS
739 RBD_POOL = _constants.RBD_POOL
740 DISK_DT_TYPES = _constants.DISK_DT_TYPES
741 DISK_DT_PARAMETERS = _constants.DISK_DT_PARAMETERS
743 DDP_LOCAL_IP = _constants.DDP_LOCAL_IP
744 DDP_REMOTE_IP = _constants.DDP_REMOTE_IP
745 DDP_PORT = _constants.DDP_PORT
746 DDP_LOCAL_MINOR = _constants.DDP_LOCAL_MINOR
747 DDP_REMOTE_MINOR = _constants.DDP_REMOTE_MINOR
749 OOB_POWER_ON = _constants.OOB_POWER_ON
750 OOB_POWER_OFF = _constants.OOB_POWER_OFF
751 OOB_POWER_CYCLE = _constants.OOB_POWER_CYCLE
752 OOB_POWER_STATUS = _constants.OOB_POWER_STATUS
753 OOB_HEALTH = _constants.OOB_HEALTH
754 OOB_COMMANDS = _constants.OOB_COMMANDS
756 OOB_POWER_STATUS_POWERED = _constants.OOB_POWER_STATUS_POWERED
758 OOB_TIMEOUT = _constants.OOB_TIMEOUT
759 OOB_POWER_DELAY = _constants.OOB_POWER_DELAY
761 OOB_STATUS_OK = _constants.OOB_STATUS_OK
762 OOB_STATUS_WARNING = _constants.OOB_STATUS_WARNING
763 OOB_STATUS_CRITICAL = _constants.OOB_STATUS_CRITICAL
764 OOB_STATUS_UNKNOWN = _constants.OOB_STATUS_UNKNOWN
765 OOB_STATUSES = _constants.OOB_STATUSES
767 PP_DEFAULT = _constants.PP_DEFAULT
769 NIC_MODE = _constants.NIC_MODE
770 NIC_LINK = _constants.NIC_LINK
771 NIC_VLAN = _constants.NIC_VLAN
772 NICS_PARAMETER_TYPES = _constants.NICS_PARAMETER_TYPES
773 NICS_PARAMETERS = _constants.NICS_PARAMETERS
775 NIC_MODE_BRIDGED = _constants.NIC_MODE_BRIDGED
776 NIC_MODE_ROUTED = _constants.NIC_MODE_ROUTED
777 NIC_MODE_OVS = _constants.NIC_MODE_OVS
778 NIC_IP_POOL = _constants.NIC_IP_POOL
779 NIC_VALID_MODES = _constants.NIC_VALID_MODES
781 RESERVE_ACTION = _constants.RESERVE_ACTION
782 RELEASE_ACTION = _constants.RELEASE_ACTION
784 IDISK_SIZE = _constants.IDISK_SIZE
785 IDISK_SPINDLES = _constants.IDISK_SPINDLES
786 IDISK_MODE = _constants.IDISK_MODE
787 IDISK_ADOPT = _constants.IDISK_ADOPT
788 IDISK_VG = _constants.IDISK_VG
789 IDISK_METAVG = _constants.IDISK_METAVG
790 IDISK_PROVIDER = _constants.IDISK_PROVIDER
791 IDISK_NAME = _constants.IDISK_NAME
792 IDISK_PARAMS_TYPES = _constants.IDISK_PARAMS_TYPES
793 IDISK_PARAMS = _constants.IDISK_PARAMS
795 INIC_MAC = _constants.INIC_MAC
796 INIC_IP = _constants.INIC_IP
797 INIC_MODE = _constants.INIC_MODE
798 INIC_LINK = _constants.INIC_LINK
799 INIC_NETWORK = _constants.INIC_NETWORK
800 INIC_NAME = _constants.INIC_NAME
801 INIC_VLAN = _constants.INIC_VLAN
802 INIC_BRIDGE = _constants.INIC_BRIDGE
803 INIC_PARAMS_TYPES = _constants.INIC_PARAMS_TYPES
804 INIC_PARAMS = _constants.INIC_PARAMS
806 HT_XEN_PVM = _constants.HT_XEN_PVM
807 HT_FAKE = _constants.HT_FAKE
808 HT_XEN_HVM = _constants.HT_XEN_HVM
809 HT_KVM = _constants.HT_KVM
810 HT_CHROOT = _constants.HT_CHROOT
811 HT_LXC = _constants.HT_LXC
812 HYPER_TYPES = _constants.HYPER_TYPES
813 HTS_REQ_PORT = _constants.HTS_REQ_PORT
815 VNC_BASE_PORT = _constants.VNC_BASE_PORT
816 VNC_DEFAULT_BIND_ADDRESS = _constants.VNC_DEFAULT_BIND_ADDRESS
818 HT_NIC_RTL8139 = _constants.HT_NIC_RTL8139
819 HT_NIC_NE2K_PCI = _constants.HT_NIC_NE2K_PCI
820 HT_NIC_NE2K_ISA = _constants.HT_NIC_NE2K_ISA
821 HT_NIC_I82551 = _constants.HT_NIC_I82551
822 HT_NIC_I85557B = _constants.HT_NIC_I85557B
823 HT_NIC_I8259ER = _constants.HT_NIC_I8259ER
824 HT_NIC_PCNET = _constants.HT_NIC_PCNET
825 HT_NIC_E1000 = _constants.HT_NIC_E1000
826 HT_NIC_PARAVIRTUAL = _constants.HT_NIC_PARAVIRTUAL
827 HT_HVM_VALID_NIC_TYPES = _constants.HT_HVM_VALID_NIC_TYPES
828 HT_KVM_VALID_NIC_TYPES = _constants.HT_KVM_VALID_NIC_TYPES
830 HT_HVM_VIF_IOEMU = _constants.HT_HVM_VIF_IOEMU
831 HT_HVM_VIF_VIF = _constants.HT_HVM_VIF_VIF
832 HT_HVM_VALID_VIF_TYPES = _constants.HT_HVM_VALID_VIF_TYPES
834 HT_DISK_IOEMU = _constants.HT_DISK_IOEMU
835 HT_DISK_IDE = _constants.HT_DISK_IDE
836 HT_DISK_SCSI = _constants.HT_DISK_SCSI
837 HT_DISK_SD = _constants.HT_DISK_SD
838 HT_DISK_MTD = _constants.HT_DISK_MTD
839 HT_DISK_PFLASH = _constants.HT_DISK_PFLASH
840 HT_DISK_PARAVIRTUAL = _constants.HT_DISK_PARAVIRTUAL
841 HT_HVM_VALID_DISK_TYPES = _constants.HT_HVM_VALID_DISK_TYPES
842 HT_KVM_VALID_DISK_TYPES = _constants.HT_KVM_VALID_DISK_TYPES
844 HT_CACHE_DEFAULT = _constants.HT_CACHE_DEFAULT
845 HT_CACHE_NONE = _constants.HT_CACHE_NONE
846 HT_CACHE_WTHROUGH = _constants.HT_CACHE_WTHROUGH
847 HT_CACHE_WBACK = _constants.HT_CACHE_WBACK
848 HT_VALID_CACHE_TYPES = _constants.HT_VALID_CACHE_TYPES
850 HT_MOUSE_MOUSE = _constants.HT_MOUSE_MOUSE
851 HT_MOUSE_TABLET = _constants.HT_MOUSE_TABLET
852 HT_KVM_VALID_MOUSE_TYPES = _constants.HT_KVM_VALID_MOUSE_TYPES
854 HT_BO_FLOPPY = _constants.HT_BO_FLOPPY
855 HT_BO_CDROM = _constants.HT_BO_CDROM
856 HT_BO_DISK = _constants.HT_BO_DISK
857 HT_BO_NETWORK = _constants.HT_BO_NETWORK
858 HT_KVM_VALID_BO_TYPES = _constants.HT_KVM_VALID_BO_TYPES
860 HT_KVM_SPICE_LOSSLESS_IMG_COMPR_AUTO_GLZ = \
861 _constants.HT_KVM_SPICE_LOSSLESS_IMG_COMPR_AUTO_GLZ
862 HT_KVM_SPICE_LOSSLESS_IMG_COMPR_AUTO_LZ = \
863 _constants.HT_KVM_SPICE_LOSSLESS_IMG_COMPR_AUTO_LZ
864 HT_KVM_SPICE_LOSSLESS_IMG_COMPR_QUIC = \
865 _constants.HT_KVM_SPICE_LOSSLESS_IMG_COMPR_QUIC
866 HT_KVM_SPICE_LOSSLESS_IMG_COMPR_GLZ = \
867 _constants.HT_KVM_SPICE_LOSSLESS_IMG_COMPR_GLZ
868 HT_KVM_SPICE_LOSSLESS_IMG_COMPR_LZ = \
869 _constants.HT_KVM_SPICE_LOSSLESS_IMG_COMPR_LZ
870 HT_KVM_SPICE_LOSSLESS_IMG_COMPR_OFF = \
871 _constants.HT_KVM_SPICE_LOSSLESS_IMG_COMPR_OFF
872 HT_KVM_SPICE_VALID_LOSSLESS_IMG_COMPR_OPTIONS = \
873 _constants.HT_KVM_SPICE_VALID_LOSSLESS_IMG_COMPR_OPTIONS
875 HT_KVM_SPICE_LOSSY_IMG_COMPR_AUTO = _constants.HT_KVM_SPICE_LOSSY_IMG_COMPR_AUTO
876 HT_KVM_SPICE_LOSSY_IMG_COMPR_NEVER = \
877 _constants.HT_KVM_SPICE_LOSSY_IMG_COMPR_NEVER
878 HT_KVM_SPICE_LOSSY_IMG_COMPR_ALWAYS = \
879 _constants.HT_KVM_SPICE_LOSSY_IMG_COMPR_ALWAYS
881 HT_KVM_SPICE_VALID_LOSSY_IMG_COMPR_OPTIONS = \
882 _constants.HT_KVM_SPICE_VALID_LOSSY_IMG_COMPR_OPTIONS
884 HT_KVM_SPICE_VIDEO_STREAM_DETECTION_OFF = \
885 _constants.HT_KVM_SPICE_VIDEO_STREAM_DETECTION_OFF
886 HT_KVM_SPICE_VIDEO_STREAM_DETECTION_ALL = \
887 _constants.HT_KVM_SPICE_VIDEO_STREAM_DETECTION_ALL
888 HT_KVM_SPICE_VIDEO_STREAM_DETECTION_FILTER = \
889 _constants.HT_KVM_SPICE_VIDEO_STREAM_DETECTION_FILTER
890 HT_KVM_SPICE_VALID_VIDEO_STREAM_DETECTION_OPTIONS = \
891 _constants.HT_KVM_SPICE_VALID_VIDEO_STREAM_DETECTION_OPTIONS
893 HT_SM_NONE = _constants.HT_SM_NONE
894 HT_SM_USER = _constants.HT_SM_USER
895 HT_SM_POOL = _constants.HT_SM_POOL
896 HT_KVM_VALID_SM_TYPES = _constants.HT_KVM_VALID_SM_TYPES
898 HT_KVM_ENABLED = _constants.HT_KVM_ENABLED
899 HT_KVM_DISABLED = _constants.HT_KVM_DISABLED
900 HT_KVM_FLAG_VALUES = _constants.HT_KVM_FLAG_VALUES
902 HT_MIGRATION_LIVE = _constants.HT_MIGRATION_LIVE
903 HT_MIGRATION_NONLIVE = _constants.HT_MIGRATION_NONLIVE
904 HT_MIGRATION_MODES = _constants.HT_MIGRATION_MODES
906 VERIFY_NPLUSONE_MEM = _constants.VERIFY_NPLUSONE_MEM
907 VERIFY_OPTIONAL_CHECKS = _constants.VERIFY_OPTIONAL_CHECKS
909 CV_TCLUSTER = _constants.CV_TCLUSTER
910 CV_TGROUP = _constants.CV_TGROUP
911 CV_TNODE = _constants.CV_TNODE
912 CV_TINSTANCE = _constants.CV_TINSTANCE
914 CV_ECLUSTERCFG = _constants.CV_ECLUSTERCFG
915 CV_ECLUSTERCERT = _constants.CV_ECLUSTERCERT
916 CV_ECLUSTERFILECHECK = _constants.CV_ECLUSTERFILECHECK
917 CV_ECLUSTERDANGLINGNODES = _constants.CV_ECLUSTERDANGLINGNODES
918 CV_ECLUSTERDANGLINGINST = _constants.CV_ECLUSTERDANGLINGINST
919 CV_EGROUPDIFFERENTPVSIZE = _constants.CV_EGROUPDIFFERENTPVSIZE
920 CV_EINSTANCEBADNODE = _constants.CV_EINSTANCEBADNODE
921 CV_EINSTANCEDOWN = _constants.CV_EINSTANCEDOWN
922 CV_EINSTANCELAYOUT = _constants.CV_EINSTANCELAYOUT
923 CV_EINSTANCEMISSINGDISK = _constants.CV_EINSTANCEMISSINGDISK
924 CV_EINSTANCEFAULTYDISK = _constants.CV_EINSTANCEFAULTYDISK
925 CV_EINSTANCEWRONGNODE = _constants.CV_EINSTANCEWRONGNODE
926 CV_EINSTANCESPLITGROUPS = _constants.CV_EINSTANCESPLITGROUPS
927 CV_EINSTANCEPOLICY = _constants.CV_EINSTANCEPOLICY
928 CV_EINSTANCEUNSUITABLENODE = _constants.CV_EINSTANCEUNSUITABLENODE
929 CV_EINSTANCEMISSINGCFGPARAMETER = _constants.CV_EINSTANCEMISSINGCFGPARAMETER
930 CV_ENODEDRBD = _constants.CV_ENODEDRBD
931 CV_ENODEDRBDVERSION = _constants.CV_ENODEDRBDVERSION
932 CV_ENODEDRBDHELPER = _constants.CV_ENODEDRBDHELPER
933 CV_ENODEFILECHECK = _constants.CV_ENODEFILECHECK
934 CV_ENODEHOOKS = _constants.CV_ENODEHOOKS
935 CV_ENODEHV = _constants.CV_ENODEHV
936 CV_ENODELVM = _constants.CV_ENODELVM
937 CV_ENODEN1 = _constants.CV_ENODEN1
938 CV_ENODENET = _constants.CV_ENODENET
939 CV_ENODEOS = _constants.CV_ENODEOS
940 CV_ENODEORPHANINSTANCE = _constants.CV_ENODEORPHANINSTANCE
941 CV_ENODEORPHANLV = _constants.CV_ENODEORPHANLV
942 CV_ENODERPC = _constants.CV_ENODERPC
943 CV_ENODESSH = _constants.CV_ENODESSH
944 CV_ENODEVERSION = _constants.CV_ENODEVERSION
945 CV_ENODESETUP = _constants.CV_ENODESETUP
946 CV_ENODETIME = _constants.CV_ENODETIME
947 CV_ENODEOOBPATH = _constants.CV_ENODEOOBPATH
948 CV_ENODEUSERSCRIPTS = _constants.CV_ENODEUSERSCRIPTS
949 CV_ENODEFILESTORAGEPATHS = _constants.CV_ENODEFILESTORAGEPATHS
950 CV_ENODEFILESTORAGEPATHUNUSABLE = _constants.CV_ENODEFILESTORAGEPATHUNUSABLE
951 CV_ENODESHAREDFILESTORAGEPATHUNUSABLE = \
952 _constants.CV_ENODESHAREDFILESTORAGEPATHUNUSABLE
954 CV_ALL_ECODES = _constants.CV_ALL_ECODES
955 CV_ALL_ECODES_STRINGS = _constants.CV_ALL_ECODES_STRINGS
957 NV_BRIDGES = _constants.NV_BRIDGES
958 NV_DRBDHELPER = _constants.NV_DRBDHELPER
959 NV_DRBDVERSION = _constants.NV_DRBDVERSION
960 NV_DRBDLIST = _constants.NV_DRBDLIST
961 NV_EXCLUSIVEPVS = _constants.NV_EXCLUSIVEPVS
962 NV_FILELIST = _constants.NV_FILELIST
963 NV_ACCEPTED_STORAGE_PATHS = _constants.NV_ACCEPTED_STORAGE_PATHS
964 NV_FILE_STORAGE_PATH = _constants.NV_FILE_STORAGE_PATH
965 NV_SHARED_FILE_STORAGE_PATH = _constants.NV_SHARED_FILE_STORAGE_PATH
966 NV_HVINFO = _constants.NV_HVINFO
967 NV_HVPARAMS = _constants.NV_HVPARAMS
968 NV_HYPERVISOR = _constants.NV_HYPERVISOR
969 NV_INSTANCELIST = _constants.NV_INSTANCELIST
970 NV_LVLIST = _constants.NV_LVLIST
971 NV_MASTERIP = _constants.NV_MASTERIP
972 NV_NODELIST = _constants.NV_NODELIST
973 NV_NODENETTEST = _constants.NV_NODENETTEST
974 NV_NODESETUP = _constants.NV_NODESETUP
975 NV_OOB_PATHS = _constants.NV_OOB_PATHS
976 NV_OSLIST = _constants.NV_OSLIST
977 NV_PVLIST = _constants.NV_PVLIST
978 NV_TIME = _constants.NV_TIME
979 NV_USERSCRIPTS = _constants.NV_USERSCRIPTS
980 NV_VERSION = _constants.NV_VERSION
981 NV_VGLIST = _constants.NV_VGLIST
982 NV_VMNODES = _constants.NV_VMNODES
984 INSTST_RUNNING = _constants.INSTST_RUNNING
985 INSTST_ADMINDOWN = _constants.INSTST_ADMINDOWN
986 INSTST_ADMINOFFLINE = _constants.INSTST_ADMINOFFLINE
987 INSTST_NODEOFFLINE = _constants.INSTST_NODEOFFLINE
988 INSTST_NODEDOWN = _constants.INSTST_NODEDOWN
989 INSTST_WRONGNODE = _constants.INSTST_WRONGNODE
990 INSTST_ERRORUP = _constants.INSTST_ERRORUP
991 INSTST_ERRORDOWN = _constants.INSTST_ERRORDOWN
992 INSTST_ALL = _constants.INSTST_ALL
994 ADMINST_UP = _constants.ADMINST_UP
995 ADMINST_DOWN = _constants.ADMINST_DOWN
996 ADMINST_OFFLINE = _constants.ADMINST_OFFLINE
997 ADMINST_ALL = _constants.ADMINST_ALL
999 NR_REGULAR = _constants.NR_REGULAR
1000 NR_MASTER = _constants.NR_MASTER
1001 NR_MCANDIDATE = _constants.NR_MCANDIDATE
1002 NR_DRAINED = _constants.NR_DRAINED
1003 NR_OFFLINE = _constants.NR_OFFLINE
1004 NR_ALL = _constants.NR_ALL
1006 SSL_CERT_EXPIRATION_WARN = _constants.SSL_CERT_EXPIRATION_WARN
1007 SSL_CERT_EXPIRATION_ERROR = _constants.SSL_CERT_EXPIRATION_ERROR
1009 IALLOCATOR_VERSION = _constants.IALLOCATOR_VERSION
1010 IALLOCATOR_DIR_IN = _constants.IALLOCATOR_DIR_IN
1011 IALLOCATOR_DIR_OUT = _constants.IALLOCATOR_DIR_OUT
1012 VALID_IALLOCATOR_DIRECTIONS = _constants.VALID_IALLOCATOR_DIRECTIONS
1014 IALLOCATOR_MODE_ALLOC = _constants.IALLOCATOR_MODE_ALLOC
1015 IALLOCATOR_MODE_RELOC = _constants.IALLOCATOR_MODE_RELOC
1016 IALLOCATOR_MODE_CHG_GROUP = _constants.IALLOCATOR_MODE_CHG_GROUP
1017 IALLOCATOR_MODE_NODE_EVAC = _constants.IALLOCATOR_MODE_NODE_EVAC
1018 IALLOCATOR_MODE_MULTI_ALLOC = _constants.IALLOCATOR_MODE_MULTI_ALLOC
1019 VALID_IALLOCATOR_MODES = _constants.VALID_IALLOCATOR_MODES
1021 IALLOCATOR_SEARCH_PATH = _constants.IALLOCATOR_SEARCH_PATH
1022 DEFAULT_IALLOCATOR_SHORTCUT = _constants.DEFAULT_IALLOCATOR_SHORTCUT
1024 NODE_EVAC_PRI = _constants.NODE_EVAC_PRI
1025 NODE_EVAC_SEC = _constants.NODE_EVAC_SEC
1026 NODE_EVAC_ALL = _constants.NODE_EVAC_ALL
1027 NODE_EVAC_MODES = _constants.NODE_EVAC_MODES
1029 JOB_QUEUE_VERSION = _constants.JOB_QUEUE_VERSION
1030 JOB_QUEUE_SIZE_HARD_LIMIT = _constants.JOB_QUEUE_SIZE_HARD_LIMIT
1031 JOB_QUEUE_FILES_PERMS = _constants.JOB_QUEUE_FILES_PERMS
1033 JOB_ID_TEMPLATE = r"\d+"
1034 JOB_FILE_RE = re.compile(r"^job-(%s)$" % JOB_ID_TEMPLATE)
1036 JOB_NOTCHANGED = _constants.JOB_NOTCHANGED
1038 JOB_STATUS_QUEUED = _constants.JOB_STATUS_QUEUED
1039 JOB_STATUS_WAITING = _constants.JOB_STATUS_WAITING
1040 JOB_STATUS_CANCELING = _constants.JOB_STATUS_CANCELING
1041 JOB_STATUS_RUNNING = _constants.JOB_STATUS_RUNNING
1042 JOB_STATUS_CANCELED = _constants.JOB_STATUS_CANCELED
1043 JOB_STATUS_SUCCESS = _constants.JOB_STATUS_SUCCESS
1044 JOB_STATUS_ERROR = _constants.JOB_STATUS_ERROR
1045 JOBS_PENDING = _constants.JOBS_PENDING
1046 JOBS_FINALIZED = _constants.JOBS_FINALIZED
1047 JOB_STATUS_ALL = _constants.JOB_STATUS_ALL
1049 OP_STATUS_QUEUED = _constants.OP_STATUS_QUEUED
1050 OP_STATUS_WAITING = _constants.OP_STATUS_WAITING
1051 OP_STATUS_CANCELING = _constants.OP_STATUS_CANCELING
1052 OP_STATUS_RUNNING = _constants.OP_STATUS_RUNNING
1053 OP_STATUS_CANCELED = _constants.OP_STATUS_CANCELED
1054 OP_STATUS_SUCCESS = _constants.OP_STATUS_SUCCESS
1055 OP_STATUS_ERROR = _constants.OP_STATUS_ERROR
1056 OPS_FINALIZED = _constants.OPS_FINALIZED
1058 OP_PRIO_LOWEST = _constants.OP_PRIO_LOWEST
1059 OP_PRIO_HIGHEST = _constants.OP_PRIO_HIGHEST
1060 OP_PRIO_LOW = _constants.OP_PRIO_LOW
1061 OP_PRIO_NORMAL = _constants.OP_PRIO_NORMAL
1062 OP_PRIO_HIGH = _constants.OP_PRIO_HIGH
1063 OP_PRIO_SUBMIT_VALID = _constants.OP_PRIO_SUBMIT_VALID
1064 OP_PRIO_DEFAULT = _constants.OP_PRIO_DEFAULT
1066 LOCKS_REPLACE = _constants.LOCKS_REPLACE
1067 LOCKS_APPEND = _constants.LOCKS_APPEND
1069 LOCK_ATTEMPTS_TIMEOUT = _constants.LOCK_ATTEMPTS_TIMEOUT
1070 LOCK_ATTEMPTS_MAXWAIT = _constants.LOCK_ATTEMPTS_MAXWAIT
1071 LOCK_ATTEMPTS_MINWAIT = _constants.LOCK_ATTEMPTS_MINWAIT
1073 ELOG_MESSAGE = _constants.ELOG_MESSAGE
1074 ELOG_REMOTE_IMPORT = _constants.ELOG_REMOTE_IMPORT
1075 ELOG_JQUEUE_TEST = _constants.ELOG_JQUEUE_TEST
1077 ETC_HOSTS_ADD = _constants.ETC_HOSTS_ADD
1078 ETC_HOSTS_REMOVE = _constants.ETC_HOSTS_REMOVE
1080 JQT_MSGPREFIX = _constants.JQT_MSGPREFIX
1081 JQT_EXPANDNAMES = _constants.JQT_EXPANDNAMES
1082 JQT_EXEC = _constants.JQT_EXEC
1083 JQT_LOGMSG = _constants.JQT_LOGMSG
1084 JQT_STARTMSG = _constants.JQT_STARTMSG
1085 JQT_ALL = _constants.JQT_ALL
1087 QR_CLUSTER = _constants.QR_CLUSTER
1088 QR_INSTANCE = _constants.QR_INSTANCE
1089 QR_NODE = _constants.QR_NODE
1090 QR_LOCK = _constants.QR_LOCK
1091 QR_GROUP = _constants.QR_GROUP
1092 QR_OS = _constants.QR_OS
1093 QR_JOB = _constants.QR_JOB
1094 QR_EXPORT = _constants.QR_EXPORT
1095 QR_NETWORK = _constants.QR_NETWORK
1096 QR_EXTSTORAGE = _constants.QR_EXTSTORAGE
1097 QR_VIA_OP = _constants.QR_VIA_OP
1098 QR_VIA_LUXI = _constants.QR_VIA_LUXI
1099 QR_VIA_RAPI = _constants.QR_VIA_RAPI
1101 QFT_UNKNOWN = _constants.QFT_UNKNOWN
1102 QFT_TEXT = _constants.QFT_TEXT
1103 QFT_BOOL = _constants.QFT_BOOL
1104 QFT_NUMBER = _constants.QFT_NUMBER
1105 QFT_UNIT = _constants.QFT_UNIT
1106 QFT_TIMESTAMP = _constants.QFT_TIMESTAMP
1107 QFT_OTHER = _constants.QFT_OTHER
1108 QFT_ALL = _constants.QFT_ALL
1110 RS_NORMAL = _constants.RS_NORMAL
1111 RS_UNKNOWN = _constants.RS_UNKNOWN
1112 RS_NODATA = _constants.RS_NODATA
1113 RS_UNAVAIL = _constants.RS_UNAVAIL
1114 RS_OFFLINE = _constants.RS_OFFLINE
1115 RS_ALL = _constants.RS_ALL
1116 RSS_DESCRIPTION = _constants.RSS_DESCRIPTION
1118 MAX_NICS = _constants.MAX_NICS
1119 MAX_DISKS = _constants.MAX_DISKS
1121 SSCONF_FILEPREFIX = _constants.SSCONF_FILEPREFIX
1123 SS_CLUSTER_NAME = _constants.SS_CLUSTER_NAME
1124 SS_CLUSTER_TAGS = _constants.SS_CLUSTER_TAGS
1125 SS_FILE_STORAGE_DIR = _constants.SS_FILE_STORAGE_DIR
1126 SS_SHARED_FILE_STORAGE_DIR = _constants.SS_SHARED_FILE_STORAGE_DIR
1127 SS_MASTER_CANDIDATES = _constants.SS_MASTER_CANDIDATES
1128 SS_MASTER_CANDIDATES_IPS = _constants.SS_MASTER_CANDIDATES_IPS
1129 SS_MASTER_IP = _constants.SS_MASTER_IP
1130 SS_MASTER_NETDEV = _constants.SS_MASTER_NETDEV
1131 SS_MASTER_NETMASK = _constants.SS_MASTER_NETMASK
1132 SS_MASTER_NODE = _constants.SS_MASTER_NODE
1133 SS_NODE_LIST = _constants.SS_NODE_LIST
1134 SS_NODE_PRIMARY_IPS = _constants.SS_NODE_PRIMARY_IPS
1135 SS_NODE_SECONDARY_IPS = _constants.SS_NODE_SECONDARY_IPS
1136 SS_OFFLINE_NODES = _constants.SS_OFFLINE_NODES
1137 SS_ONLINE_NODES = _constants.SS_ONLINE_NODES
1138 SS_PRIMARY_IP_FAMILY = _constants.SS_PRIMARY_IP_FAMILY
1139 SS_INSTANCE_LIST = _constants.SS_INSTANCE_LIST
1140 SS_RELEASE_VERSION = _constants.SS_RELEASE_VERSION
1141 SS_HYPERVISOR_LIST = _constants.SS_HYPERVISOR_LIST
1142 SS_MAINTAIN_NODE_HEALTH = _constants.SS_MAINTAIN_NODE_HEALTH
1143 SS_UID_POOL = _constants.SS_UID_POOL
1144 SS_NODEGROUPS = _constants.SS_NODEGROUPS
1145 SS_NETWORKS = _constants.SS_NETWORKS
1147 SS_HVPARAMS_PREF = _constants.SS_HVPARAMS_PREF
1149 SS_HVPARAMS_XEN_PVM = _constants.SS_HVPARAMS_XEN_PVM
1150 SS_HVPARAMS_XEN_FAKE = _constants.SS_HVPARAMS_XEN_FAKE
1151 SS_HVPARAMS_XEN_HVM = _constants.SS_HVPARAMS_XEN_HVM
1152 SS_HVPARAMS_XEN_KVM = _constants.SS_HVPARAMS_XEN_KVM
1153 SS_HVPARAMS_XEN_CHROOT = _constants.SS_HVPARAMS_XEN_CHROOT
1154 SS_HVPARAMS_XEN_LXC = _constants.SS_HVPARAMS_XEN_LXC
1155 VALID_SS_HVPARAMS_KEYS = _constants.VALID_SS_HVPARAMS_KEYS
1157 SS_FILE_PERMS = _constants.SS_FILE_PERMS
1159 DEFAULT_ENABLED_HYPERVISOR = _constants.DEFAULT_ENABLED_HYPERVISOR
1161 # HVC_DEFAULTS contains one value 'HV_VNC_PASSWORD_FILE' which is not
1162 # a constant because it depends on an environment variable that is
1163 # used for VClusters. Therefore, it cannot be automatically generated
1164 # by Haskell at compilation time (given that this environment variable
1165 # might be different at runtime).
1166 HVC_DEFAULTS = _constants.HVC_DEFAULTS
1167 HVC_DEFAULTS[HT_XEN_HVM][HV_VNC_PASSWORD_FILE] = pathutils.VNC_PASSWORD_FILE
1169 HVC_GLOBALS = _constants.HVC_GLOBALS
1171 BEC_DEFAULTS = _constants.BEC_DEFAULTS
1173 NDC_DEFAULTS = _constants.NDC_DEFAULTS
1174 NDC_GLOBALS = _constants.NDC_GLOBALS
1176 DISK_LD_DEFAULTS = _constants.DISK_LD_DEFAULTS
1177 DISK_DT_DEFAULTS = _constants.DISK_DT_DEFAULTS
1179 NICC_DEFAULTS = _constants.NICC_DEFAULTS
1180 ISPECS_MINMAX_DEFAULTS = _constants.ISPECS_MINMAX_DEFAULTS
1181 IPOLICY_DEFAULTS = _constants.IPOLICY_DEFAULTS
1183 MASTER_POOL_SIZE_DEFAULT = _constants.MASTER_POOL_SIZE_DEFAULT
1185 PART_MARGIN = _constants.PART_MARGIN
1186 PART_RESERVED = _constants.PART_RESERVED
1188 CONFD_PROTOCOL_VERSION = _constants.CONFD_PROTOCOL_VERSION
1190 CONFD_REQ_PING = _constants.CONFD_REQ_PING
1191 CONFD_REQ_NODE_ROLE_BYNAME = _constants.CONFD_REQ_NODE_ROLE_BYNAME
1192 CONFD_REQ_NODE_PIP_BY_INSTANCE_IP = _constants.CONFD_REQ_NODE_PIP_BY_INSTANCE_IP
1193 CONFD_REQ_CLUSTER_MASTER = _constants.CONFD_REQ_CLUSTER_MASTER
1194 CONFD_REQ_NODE_PIP_LIST = _constants.CONFD_REQ_NODE_PIP_LIST
1195 CONFD_REQ_MC_PIP_LIST = _constants.CONFD_REQ_MC_PIP_LIST
1196 CONFD_REQ_INSTANCES_IPS_LIST = _constants.CONFD_REQ_INSTANCES_IPS_LIST
1197 CONFD_REQ_NODE_DRBD = _constants.CONFD_REQ_NODE_DRBD
1198 CONFD_REQ_NODE_INSTANCES = _constants.CONFD_REQ_NODE_INSTANCES
1199 CONFD_REQS = _constants.CONFD_REQS
1201 CONFD_REQQ_LINK = _constants.CONFD_REQQ_LINK
1202 CONFD_REQQ_IP = _constants.CONFD_REQQ_IP
1203 CONFD_REQQ_IPLIST = _constants.CONFD_REQQ_IPLIST
1204 CONFD_REQQ_FIELDS = _constants.CONFD_REQQ_FIELDS
1206 # FIXME: perhaps update code that uses these constants to deal with
1207 # integers instead of strings
1208 CONFD_REQFIELD_NAME = str(_constants.CONFD_REQFIELD_NAME)
1209 CONFD_REQFIELD_IP = str(_constants.CONFD_REQFIELD_IP)
1210 CONFD_REQFIELD_MNODE_PIP = str(_constants.CONFD_REQFIELD_MNODE_PIP)
1212 CONFD_REPL_STATUS_OK = _constants.CONFD_REPL_STATUS_OK
1213 CONFD_REPL_STATUS_ERROR = _constants.CONFD_REPL_STATUS_ERROR
1214 CONFD_REPL_STATUS_NOTIMPLEMENTED = _constants.CONFD_REPL_STATUS_NOTIMPLEMENTED
1215 CONFD_REPL_STATUSES = _constants.CONFD_REPL_STATUSES
1217 CONFD_NODE_ROLE_MASTER = _constants.CONFD_NODE_ROLE_MASTER
1218 CONFD_NODE_ROLE_CANDIDATE = _constants.CONFD_NODE_ROLE_CANDIDATE
1219 CONFD_NODE_ROLE_OFFLINE = _constants.CONFD_NODE_ROLE_OFFLINE
1220 CONFD_NODE_ROLE_DRAINED = _constants.CONFD_NODE_ROLE_DRAINED
1221 CONFD_NODE_ROLE_REGULAR = _constants.CONFD_NODE_ROLE_REGULAR
1223 CONFD_ERROR_UNKNOWN_ENTRY = _constants.CONFD_ERROR_UNKNOWN_ENTRY
1224 CONFD_ERROR_INTERNAL = _constants.CONFD_ERROR_INTERNAL
1225 CONFD_ERROR_ARGUMENT = _constants.CONFD_ERROR_ARGUMENT
1227 CONFD_MAX_CLOCK_SKEW = _constants.CONFD_MAX_CLOCK_SKEW
1229 CONFD_CONFIG_RELOAD_TIMEOUT = _constants.CONFD_CONFIG_RELOAD_TIMEOUT
1230 CONFD_CONFIG_RELOAD_RATELIMIT = _constants.CONFD_CONFIG_RELOAD_RATELIMIT
1232 CONFD_MAGIC_FOURCC = _constants.CONFD_MAGIC_FOURCC
1234 CONFD_DEFAULT_REQ_COVERAGE = _constants.CONFD_DEFAULT_REQ_COVERAGE
1236 CONFD_CLIENT_EXPIRE_TIMEOUT = _constants.CONFD_CLIENT_EXPIRE_TIMEOUT
1238 MAX_UDP_DATA_SIZE = _constants.MAX_UDP_DATA_SIZE
1240 UIDPOOL_UID_MIN = _constants.UIDPOOL_UID_MIN
1241 UIDPOOL_UID_MAX = _constants.UIDPOOL_UID_MAX
1243 PGREP = _constants.PGREP
1245 INITIAL_NODE_GROUP_NAME = _constants.INITIAL_NODE_GROUP_NAME
1247 ALLOC_POLICY_PREFERRED = _constants.ALLOC_POLICY_PREFERRED
1248 ALLOC_POLICY_LAST_RESORT = _constants.ALLOC_POLICY_LAST_RESORT
1249 ALLOC_POLICY_UNALLOCABLE = _constants.ALLOC_POLICY_UNALLOCABLE
1250 VALID_ALLOC_POLICIES = _constants.VALID_ALLOC_POLICIES
1252 BLOCKDEV_DRIVER_MANUAL = _constants.BLOCKDEV_DRIVER_MANUAL
1254 QEMUIMG_PATH = _constants.QEMUIMG_PATH
1256 HTOOLS = _constants.HTOOLS
1257 IALLOC_HAIL = _constants.IALLOC_HAIL
1259 FAKE_OP_MASTER_TURNUP = _constants.FAKE_OP_MASTER_TURNUP
1260 FAKE_OP_MASTER_TURNDOWN = _constants.FAKE_OP_MASTER_TURNDOWN
1262 SSHK_RSA = _constants.SSHK_RSA
1263 SSHK_DSA = _constants.SSHK_DSA
1264 SSHK_ALL = _constants.SSHK_ALL
1266 SSHAK_RSA = _constants.SSHAK_RSA
1267 SSHAK_DSS = _constants.SSHAK_DSS
1268 SSHAK_ALL = _constants.SSHAK_ALL
1270 SSHS_CLUSTER_NAME = _constants.SSHS_CLUSTER_NAME
1271 SSHS_SSH_HOST_KEY = _constants.SSHS_SSH_HOST_KEY
1272 SSHS_SSH_ROOT_KEY = _constants.SSHS_SSH_ROOT_KEY
1273 SSHS_NODE_DAEMON_CERTIFICATE = _constants.SSHS_NODE_DAEMON_CERTIFICATE
1274 SSH_DAEMON_KEYFILES = _constants.SSH_DAEMON_KEYFILES
1276 NDS_CLUSTER_NAME = _constants.NDS_CLUSTER_NAME
1277 NDS_NODE_DAEMON_CERTIFICATE = _constants.NDS_NODE_DAEMON_CERTIFICATE
1278 NDS_SSCONF = _constants.NDS_SSCONF
1279 NDS_START_NODE_DAEMON = _constants.NDS_START_NODE_DAEMON
1281 RANDOM_UUID_FILE = _constants.RANDOM_UUID_FILE
1283 # Regex string for verifying a UUID
1284 UUID_REGEX = "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"
1286 AUTO_REPAIR_TAG_PREFIX = _constants.AUTO_REPAIR_TAG_PREFIX
1287 AUTO_REPAIR_TAG_ENABLED = _constants.AUTO_REPAIR_TAG_ENABLED
1288 AUTO_REPAIR_TAG_SUSPENDED = _constants.AUTO_REPAIR_TAG_SUSPENDED
1289 AUTO_REPAIR_TAG_PENDING = _constants.AUTO_REPAIR_TAG_PENDING
1290 AUTO_REPAIR_TAG_RESULT = _constants.AUTO_REPAIR_TAG_RESULT
1292 AUTO_REPAIR_FIX_STORAGE = _constants.AUTO_REPAIR_FIX_STORAGE
1293 AUTO_REPAIR_MIGRATE = _constants.AUTO_REPAIR_MIGRATE
1294 AUTO_REPAIR_FAILOVER = _constants.AUTO_REPAIR_FAILOVER
1295 AUTO_REPAIR_REINSTALL = _constants.AUTO_REPAIR_REINSTALL
1296 AUTO_REPAIR_ALL_TYPES = _constants.AUTO_REPAIR_ALL_TYPES
1298 AUTO_REPAIR_SUCCESS = _constants.AUTO_REPAIR_SUCCESS
1299 AUTO_REPAIR_FAILURE = _constants.AUTO_REPAIR_FAILURE
1300 AUTO_REPAIR_ENOPERM = _constants.AUTO_REPAIR_ENOPERM
1301 AUTO_REPAIR_ALL_RESULTS = _constants.AUTO_REPAIR_ALL_RESULTS
1303 BUILTIN_DATA_COLLECTOR_VERSION = _constants.BUILTIN_DATA_COLLECTOR_VERSION
1305 OPCODE_REASON = _constants.OPCODE_REASON
1307 OPCODE_REASON_SRC_CLIENT = _constants.OPCODE_REASON_SRC_CLIENT
1308 OPCODE_REASON_SRC_NODED = _constants.OPCODE_REASON_SRC_NODED
1309 OPCODE_REASON_SRC_OPCODE = _constants.OPCODE_REASON_SRC_OPCODE
1310 OPCODE_REASON_SRC_RLIB2 = _constants.OPCODE_REASON_SRC_RLIB2
1311 OPCODE_REASON_SRC_USER = _constants.OPCODE_REASON_SRC_USER
1312 OPCODE_REASON_SOURCES = _constants.OPCODE_REASON_SOURCES
1314 DISKSTATS_FILE = _constants.DISKSTATS_FILE
1316 STAT_FILE = _constants.STAT_FILE
1317 CPUAVGLOAD_BUFFER_SIZE = _constants.CPUAVGLOAD_BUFFER_SIZE
1318 CPUAVGLOAD_WINDOW_SIZE = _constants.CPUAVGLOAD_WINDOW_SIZE
1320 MOND_TIME_INTERVAL = _constants.MOND_TIME_INTERVAL
1321 MOND_LATEST_API_VERSION = _constants.MOND_LATEST_API_VERSION
1323 # Timeouts for upgrades
1325 UPGRADE_QUEUE_DRAIN_TIMEOUT = _constants.UPGRADE_QUEUE_DRAIN_TIMEOUT
1326 UPGRADE_QUEUE_POLL_INTERVAL = _constants.UPGRADE_QUEUE_POLL_INTERVAL
1328 # device types to hotplug
1329 HOTPLUG_TARGET_DISK = _constants.HOTPLUG_TARGET_DISK
1330 HOTPLUG_TARGET_NIC = _constants.HOTPLUG_TARGET_NIC
1331 HOTPLUG_ALL_TARGETS = _constants.HOTPLUG_ALL_TARGETS
1334 HOTPLUG_ACTION_ADD = _constants.HOTPLUG_ACTION_ADD
1335 HOTPLUG_ACTION_REMOVE = _constants.HOTPLUG_ACTION_REMOVE
1336 HOTPLUG_ACTION_MODIFY = _constants.HOTPLUG_ACTION_MODIFY
1337 HOTPLUG_ALL_ACTIONS = _constants.HOTPLUG_ALL_ACTIONS
1341 HAS_GNU_LN = _constants.HAS_GNU_LN
1343 # Do not re-export imported modules
1344 del re, _vcsversion, _constants, socket, pathutils, compat
1347 ALLOCATABLE_KEY = "allocatable"
1348 FAILED_KEY = "failed"