ganeti

Safe HaskellSafe-Infered

Ganeti.Constants

Contents

Description

Constants contains the Haskell constants

The constants in this module are used in Haskell and are also converted to Python.

Do not write any definitions in this file other than constants. Do not even write helper functions. The definitions in this module are automatically stripped to build the Makefile.am target hs. If there are helper functions in this module, they will also be dragged and it will cause compilation to fail. Therefore, all helper functions should go to a separate module and imported.

Synopsis

autoconf constants for Python only ('autotools/build-bash-completion')

htoolsProgs :: [String]Source

autoconf constants for Python only ('lib/constants.py')

autoconf constants for Python only ('lib/pathutils.py')

Build-time constants

exportDir :: StringSource

backupDir :: StringSource

osSearchPath :: [String]Source

esSearchPath :: [String]Source

toolsdir :: StringSource

Paths which don't change for a virtual cluster

pkglibdir :: StringSource

sharedir :: StringSource

autoconf constants for Python only ('lib/build/sphinx_ext.py')

manPages :: Map String IntSource

autoconf constants for QA cluster only ('qa/qa_cluster.py')

autoconf constants for Python only ('tests/py/docs_unittest.py')

gntScripts :: [String]Source

Various versions

exportVersion :: IntSource

The version of the backup/export instance description file format we are producing when exporting and accepting when importing. The two are currently tightly intertwined.

configRevision :: IntSource

The configuration is supposed to remain stable across revisions. Therefore, the revision number is cleared to '0'.

protocolVersion :: IntSource

Similarly to the configuration (see configRevision), the protocols are supposed to remain stable across revisions.

User separation

metadUser :: StringSource

rapiUser :: StringSource

rapiGroup :: StringSource

confdUser :: StringSource

kvmdUser :: StringSource

kvmdGroup :: StringSource

luxidUser :: StringSource

nodedUser :: StringSource

mondUser :: StringSource

mondGroup :: StringSource

Cpu pinning separators and constants

cpuPinningAllVal :: IntSource

Internal representation of all

cpuPinningOff :: [Int]Source

One all entry in a CPU list means CPU pinning is off

cpuPinningAllXen :: StringSource

A Xen-specific implementation detail is that there is no way to actually say use any cpu for pinning in a Xen configuration file, as opposed to the command line, where you can say xm vcpu-pin domain vcpu all

The workaround used in Xen is 0-63 (see source code function xm_vcpu_pin in xen-sourcetoolspythonxenxm/main.py).

To support future changes, the following constant is treated as a blackbox string that simply means use any cpu for pinning under xen.

Image and wipe

ddCmd :: StringSource

ddBlockSize :: IntSource

1 MiB The default block size for the dd command

Directories

autoconf enable/disable

SSH constants

ssh :: StringSource

scp :: StringSource

Daemons

confd :: StringSource

masterd :: StringSource

metad :: StringSource

mond :: StringSource

noded :: StringSource

wconfd :: StringSource

luxid :: StringSource

rapi :: StringSource

kvmd :: StringSource

daemonsPorts :: Map String (Protocol, Int)Source

daemonsLogbase :: Map String StringSource

daemonsExtraLogbase :: Map String (Map String String)Source

Luxi (Local UniX Interface) related constants

luxiOverride :: StringSource

Environment variable for the luxi override socket

Syslog

syslogNo :: StringSource

syslogYes :: StringSource

Xen

xenCmdXl :: StringSource

xenCmdXm :: StringSource

xenInitrd :: StringSource

xenKernel :: StringSource

KVM and socat

kvmPath :: StringSource

kvmKernel :: StringSource

socatPath :: StringSource

LXC

Console types

consMessage :: StringSource

Display a message for console access

consSpice :: StringSource

Console as SPICE server

consSsh :: StringSource

Console as SSH command

consVnc :: StringSource

Console as VNC server

rsaKeyBits :: IntSource

RSA key bit length

For RSA keys more bits are better, but they also make operations more expensive. NIST SP 800-131 recommends a minimum of 2048 bits from the year 2010 on.

opensslCiphers :: StringSource

Ciphers allowed for SSL connections.

For the format, see ciphers(1). A better way to disable ciphers would be to use the exclamation mark (!), but socat versions below 1.5 can't parse exclamation marks in options properly. When modifying the ciphers, ensure not to accidentially add something after it's been removed. Use the openssl utility to check the allowed ciphers, e.g. openssl ciphers -v HIGH:-DES.

X509

x509CertCn :: StringSource

commonName (CN) used in certificates

x509CertDefaultValidity :: IntSource

Default validity of certificates in days

x509CertSignDigest :: StringSource

Digest used to sign certificates (openssl x509 uses SHA1 by default)

Import/export daemon mode

iemExport :: StringSource

iemImport :: StringSource

Import/export transport compression

iecGzip :: StringSource

iecLzop :: StringSource

iecNone :: StringSource

iecAll :: [String]Source

iecCompressionUtilities :: Map String StringSource

Importexport IO

ieioFile :: StringSource

Direct file IO, equivalent to a shell's IO redirection using < or >

ieioRawDisk :: StringSource

Raw block device I/O using dd

ieioScript :: StringSource

OS definition import/export script

Values

valueAuto :: StringSource

valueNone :: StringSource

valueTrue :: StringSource

Hooks

hooksPath :: StringSource

Hooks subject type (what object type does the LU deal with)

htypeNode :: StringSource

Hkr

Storage types

stBlock :: StringSource

stExt :: StringSource

stFile :: StringSource

stGluster :: StringSource

stLvmPv :: StringSource

stLvmVg :: StringSource

stRados :: StringSource

stsReport :: FrozenSet StringSource

The set of storage types for which full storage reporting is available

stsReportNodeStorage :: FrozenSet StringSource

The set of storage types for which node storage reporting is available | (as used by LUQueryNodeStorage)

Storage fields

First two are valid in LU context only, not passed to backend

sfNode :: StringSource

sfType :: StringSource

and the rest are valid in backend

sfFree :: StringSource

sfName :: StringSource

sfSize :: StringSource

sfUsed :: StringSource

Storage operations

Volume fields

vfDev :: StringSource

vfName :: StringSource

vfNode :: StringSource

vfPhys :: StringSource

vfSize :: StringSource

vfVg :: StringSource

Local disk status

ldsNames :: Map Int StringSource

Disk template types

dtFile :: StringSource

dtPlain :: StringSource

dtBlock :: StringSource

dtDrbd8 :: StringSource

dtRbd :: StringSource

dtExt :: StringSource

dtGluster :: StringSource

dtMixed :: StringSource

diskTemplatePreference :: [String]Source

This is used to order determine the default disk template when the list of enabled disk templates is inferred from the current state of the cluster. This only happens on an upgrade from a version of Ganeti that did not support the enabled_disk_templates so far.

defaultEnabledDiskTemplates :: [String]Source

Disk templates that are enabled by default

mapDiskTemplateStorageType :: Map String StringSource

Mapping of disk templates to storage types

dtsIntMirror :: FrozenSet StringSource

The set of network-mirrored disk templates

dtsExtMirror :: FrozenSet StringSource

DTDiskless is trivially externally mirrored

dtsNotLvm :: FrozenSet StringSource

The set of non-lvm-based disk templates

dtsGrowable :: FrozenSet StringSource

The set of disk templates which can be grown

dtsMayAdopt :: FrozenSet StringSource

The set of disk templates that allow adoption

dtsMustAdopt :: FrozenSet StringSource

The set of disk templates that *must* use adoption

dtsMirrored :: FrozenSet StringSource

The set of disk templates that allow migrations

dtsFilebased :: FrozenSet StringSource

The set of file based disk templates

dtsInstanceDependentPath :: FrozenSet StringSource

The set of file based disk templates whose path is tied to the instance name

dtsCopyable :: FrozenSet StringSource

The set of disk templates that can be moved by copying

Note: a requirement is that they're not accessed externally or shared between nodes; in particular, sharedfile is not suitable.

dtsSnapshotCapable :: FrozenSet StringSource

The set of disk templates which can be snapshot.

dtsExclStorage :: FrozenSet StringSource

The set of disk templates that are supported by exclusive_storage

dtsNoFreeSpaceCheck :: FrozenSet StringSource

Templates for which we don't perform checks on free space

dtsLvm :: FrozenSet StringSource

The set of lvm-based disk templates

dtsHaveAccess :: FrozenSet StringSource

The set of lvm-based disk templates

dtsNotConvertibleFrom :: FrozenSet StringSource

The set of disk templates that cannot convert from

dtsNotConvertibleTo :: FrozenSet StringSource

The set of disk templates that cannot convert to

Drbd

drbdSecretLength :: IntSource

The length of generated DRBD secrets (see also TempRes module).

drbdMetaSize :: IntSource

Size of DRBD meta block device

Drbd barrier types

drbdBNone :: StringSource

drbdValidBarrierOpt :: FrozenSet (FrozenSet String)Source

Valid barrier combinations: n or any non-null subset of bfd

rbdCmd :: StringSource

Rbd tool command

File backend driver

fdBlktap :: StringSource

fdBlktap2 :: StringSource

fdLoop :: StringSource

fdDefault :: StringSource

dtsDrbd :: FrozenSet StringSource

The set of drbd-like disk types

Disk access mode

diskRdwr :: StringSource

Disk replacement mode

Instance export mode

Instance creation modes

Remote import/export handshake message and version

rieCertValidity :: IntSource

Remote import/export certificate validity (seconds)

rieConnectAttemptTimeout :: IntSource

Export only: how long to wait per connection attempt (seconds)

rieConnectRetries :: IntSource

Export only: number of attempts to connect

rieConnectTimeout :: IntSource

Overall timeout for establishing connection

childLingerTimeout :: DoubleSource

Give child process up to 5 seconds to exit after sending a signal

Import/export config options

Dynamic device modification

ddmAdd :: StringSource

ddmAttach :: StringSource

ddmModify :: StringSource

ddmRemove :: StringSource

ddmDetach :: StringSource

Common exit codes

exitConfirmation :: IntSource

Need user confirmation

exitUnknownField :: IntSource

Exit code for query operations with unknown fields

Tags

tagNode :: StringSource

Others

classicDrbdSyncSpeed :: IntSource

60 MiBs, expressed in KiBs

defaultVg :: StringSource

defaultShutdownTimeout :: IntSource

Default maximum instance wait time (seconds)

nodeMaxClockSkew :: IntSource

Node clock skew (seconds)

diskTransferConnectTimeout :: IntSource

Time for an intra-cluster disk transfer to wait for a connection

diskSeparator :: StringSource

Disk index separator

jobIdsKey :: StringSource

Key for job IDs in opcode result

Runparts results

RPC

Timeout table

rpcTmo_4hrs :: IntSource

rpcTmo_4hrs contains an underscore to circumvent a limitation in the deCamelCase function and generate the correct Python name.

rpcTmo_1day :: IntSource

rpcTmo_1day contains an underscore to circumvent a limitation in the deCamelCase function and generate the correct Python name.

rpcConnectTimeout :: IntSource

Timeout for connecting to nodes (seconds)

osScripts :: [String]Source

osApiFile :: StringSource

esActionAttach :: StringSource

External Storage (ES) related constants

Reboot types

Instance reboot behaviors

VTypes

vtypeSize :: VTypeSource

Size in MiBs

ifaceNoIpVersionSpecified :: IntSource

Constant representing that the user does not specify any IP version

HV parameter names (global namespace)

hvAcpi :: StringSource

hvCpuCap :: StringSource

hvCpuMask :: StringSource

hvCpuType :: StringSource

hvKeymap :: StringSource

hvKvmFlag :: StringSource

hvKvmPath :: StringSource

hvMemPath :: StringSource

hvNicType :: StringSource

hvPae :: StringSource

hvSoundhw :: StringSource

hvVga :: StringSource

hvVifType :: StringSource

hvVncTls :: StringSource

hvVncX509 :: StringSource

hvVnetHdr :: StringSource

hvXenCmd :: StringSource

hvsParameterTitles :: Map String StringSource

Migration statuses

hvKvmMigrationValidStatuses :: FrozenSet StringSource

KVM-specific statuses

FIXME: this constant seems unnecessary

hvNodeinfoKeyVersion :: StringSource

Node info keys

Hypervisor state

hvstDefaults :: Map String IntSource

Disk state

dsDefaults :: Map String IntSource

beMaxmem :: StringSource

beMemory :: StringSource

Deprecated and replaced by max and min mem

beMinmem :: StringSource

beVcpus :: StringSource

besParameterTitles :: Map String StringSource

ispecMemSize :: StringSource

Instance specs

FIXME: these should be associated with ISpec

ispecsMax :: StringSource

ispecsMin :: StringSource

ispecsStd :: StringSource

ndExclusiveStorage :: StringSource

Node parameter names

ndOvs :: StringSource

ndOvsLink :: StringSource

ndOvsName :: StringSource

ndSshPort :: StringSource

ndsParameterTitles :: Map String StringSource

Logical Disks parameters

ldpAccess :: StringSource

ldpPool :: StringSource

diskLdTypes :: Map String VTypeSource

Disk template parameters

lvStripes :: StringSource

rbdAccess :: StringSource

rbdPool :: StringSource

diskDtTypes :: Map String VTypeSource

Dynamic disk parameters

ddpPort :: StringSource

OOB supported commands

oobHealth :: StringSource

oobTimeout :: IntSource

60 seconds

oobPowerDelay :: DoubleSource

2 seconds

ppDefault :: StringSource

Instance Parameters Profile

nic* constants are used inside the ganeti config

nicLink :: StringSource

nicMode :: StringSource

nicVlan :: StringSource

nicIpPool :: StringSource

idisk* constants are used in opcodes, to create/change disks

idiskMode :: StringSource

idiskName :: StringSource

idiskSize :: StringSource

idiskVg :: StringSource

idiskType :: StringSource

inic* constants are used in opcodes, to create/change nics

inicIp :: StringSource

inicLink :: StringSource

inicMac :: StringSource

inicMode :: StringSource

inicName :: StringSource

inicVlan :: StringSource

Hypervisor constants

htXenPvm :: StringSource

htFake :: StringSource

htXenHvm :: StringSource

htKvm :: StringSource

htChroot :: StringSource

htLxc :: StringSource

NIC types

Vif types

htHvmVifIoemu :: StringSource

Default vif type in xen-hvm

Disk types

htDiskIde :: StringSource

htDiskMtd :: StringSource

htDiskSd :: StringSource

Mouse types

Boot order

htBoCdrom :: StringSource

htBoDisk :: StringSource

SPICE lossless image compression options

SPICE video stream detection

Security models

htSmNone :: StringSource

htSmPool :: StringSource

htSmUser :: StringSource

Kvm flag values

Migration type

Cluster verify steps

Cluster Verify error classes

cvTgroup :: StringSource

cvTnode :: StringSource

Cluster Verify error levels

cvWarning :: StringSource

cvError :: StringSource

Cluster Verify error codes and documentation

cvEclustercert :: (String, String, String)Source

cvEclusterclientcert :: (String, String, String)Source

cvEclustercfg :: (String, String, String)Source

cvEclusterdanglinginst :: (String, String, String)Source

cvEclusterdanglingnodes :: (String, String, String)Source

cvEclusterfilecheck :: (String, String, String)Source

cvEgroupdifferentpvsize :: (String, String, String)Source

cvEinstancebadnode :: (String, String, String)Source

cvEinstancedown :: (String, String, String)Source

cvEinstancefaultydisk :: (String, String, String)Source

cvEinstancelayout :: (String, String, String)Source

cvEinstancemissingcfgparameter :: (String, String, String)Source

cvEinstancemissingdisk :: (String, String, String)Source

cvEinstancepolicy :: (String, String, String)Source

cvEinstancesplitgroups :: (String, String, String)Source

cvEinstanceunsuitablenode :: (String, String, String)Source

cvEinstancewrongnode :: (String, String, String)Source

cvEnodedrbd :: (String, String, String)Source

cvEnodedrbdhelper :: (String, String, String)Source

cvEnodedrbdversion :: (String, String, String)Source

cvEnodefilecheck :: (String, String, String)Source

cvEnodefilestoragepaths :: (String, String, String)Source

cvEnodefilestoragepathunusable :: (String, String, String)Source

cvEnodehooks :: (String, String, String)Source

cvEnodehv :: (String, String, String)Source

cvEnodelvm :: (String, String, String)Source

cvEnoden1 :: (String, String, String)Source

cvEnodenet :: (String, String, String)Source

cvEnodeoobpath :: (String, String, String)Source

cvEnodeorphaninstance :: (String, String, String)Source

cvEnodeorphanlv :: (String, String, String)Source

cvEnodeos :: (String, String, String)Source

cvEnoderpc :: (String, String, String)Source

cvEnodesetup :: (String, String, String)Source

cvEnodesharedfilestoragepathunusable :: (String, String, String)Source

cvEnodeglusterstoragepathunusable :: (String, String, String)Source

cvEnodessh :: (String, String, String)Source

cvEnodetime :: (String, String, String)Source

cvEnodeuserscripts :: (String, String, String)Source

cvEnodeversion :: (String, String, String)Source

cvAllEcodes :: FrozenSet (String, String, String)Source

Node verify constants

nvBridges :: StringSource

nvHvinfo :: StringSource

nvLvlist :: StringSource

nvOslist :: StringSource

nvPvlist :: StringSource

nvTime :: StringSource

nvVersion :: StringSource

nvVglist :: StringSource

Instance status

Admin states

adminstUp :: StringSource

Admin state sources

Node roles

nrDrained :: StringSource

nrMaster :: StringSource

nrOffline :: StringSource

nrRegular :: StringSource

SSL certificate check constants (in days)

Allocator framework constants

Opportunistic allocator usage

defaultOpportunisticRetryInterval :: IntSource

Time delay in seconds between repeated opportunistic instance creations. Rather than failing with an informative error message if the opportunistic creation cannot grab enough nodes, for some uses it is better to retry the creation with an interval between attempts. This is a reasonable default.

Node evacuation

Job queue

Unchanged job return

Job status

OpCode status

Not yet finalized opcodes

Finalized opcodes

OpCode priority

Lock recalculate mode

Lock timeout

Execution log types

etchosts modification

Job queue test

jqtExec :: StringSource

jqtLogmsg :: StringSource

Query resources

qrCluster :: StringSource

qrExport :: StringSource

qrGroup :: StringSource

qrJob :: StringSource

qrLock :: StringSource

qrNetwork :: StringSource

qrFilter :: StringSource

qrNode :: StringSource

qrOs :: StringSource

qrViaOp :: FrozenSet StringSource

List of resources which can be queried using OpQuery

qrViaLuxi :: FrozenSet StringSource

List of resources which can be queried using Local UniX Interface

qrViaRapi :: FrozenSet StringSource

List of resources which can be queried using RAPI

qrViaRapiPut :: FrozenSet StringSource

List of resources which can be queried via RAPI including PUT requests

Query field types

qftBool :: StringSource

qftNumber :: StringSource

qftOther :: StringSource

qftText :: StringSource

qftUnit :: StringSource

Query result field status

rsNodata :: IntSource

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

rsOffline :: IntSource

Resource marked offline

rsUnavail :: IntSource

Value unavailable/unsupported for item; if this field is supported but we cannot get the data for the moment, rsNodata or rsOffline should be used

rssDescription :: Map Int (String, String)Source

Special field cases and their verbose/terse formatting

Max dynamic devices

ssconfFileprefix :: StringSource

SSCONF file prefix

SSCONF keys

ssUidPool :: StringSource

ssHvparamsPref :: StringSource

This is not a complete SSCONF key, but the prefix for the hypervisor keys

Hvparams keys

defaultEnabledHypervisor :: StringSource

Cluster wide default parameters

defaultDelayTarget :: IntSource

Default delay target measured in sectors

defaultFillTarget :: IntSource

Default fill target measured in sectors

defaultMinRate :: IntSource

Default mininum rate measured in KiB/s

defaultPlanAhead :: IntSource

Default plan ahead measured in sectors

The default values for the DRBD dynamic resync speed algorithm are taken from the drbsetup 8.3.11 man page, except for c-plan-ahead (that we don't need to set to 0, because we have a separate option to enable it) and for c-max-rate, that we cap to the default value for the static resync rate.

ispecsMinmaxDefaults :: Map String (Map String Int)Source

All of the following values are quite arbitrary - there are no good defaults, these must be customised per-site

Exclusive storage

partMargin :: DoubleSource

Error margin used to compare physical disks

partReserved :: DoubleSource

Space reserved when creating instance disks

Luxid job scheduling

luxidJobqueuePollInterval :: IntSource

Time intervall in seconds for polling updates on the job queue. This intervall is only relevant if the number of running jobs reaches the maximal allowed number, as otherwise new jobs will be started immediately anyway. Also, as jobs are watched via inotify, scheduling usually works independent of polling. Therefore we chose a sufficiently large interval, in the order of 5 minutes. As with the interval for reloading the configuration, we chose a prime number to avoid accidental 'same wakeup' with other processes.

luxidMaximalRunningJobsDefault :: IntSource

The default value for the maximal number of jobs to be running at the same time. Once the maximal number is reached, new jobs will just be queued and only started, once some of the other jobs have finished.

luxidMaximalTrackedJobsDefault :: IntSource

The default value for the maximal number of jobs that luxid tracks via inotify. If the number of running jobs exceeds this limit (which only happens if the user increases the default value of maximal running jobs), new forked jobs are no longer tracked by inotify; progress will still be noticed on the regular polls.

luxidRetryForkCount :: IntSource

The number of retries when trying to fork a new job. Due to a bug in GHC, this can fail even though we synchronize all forks and restrain from other IO operations in the thread.

luxidRetryForkStepUS :: IntSource

The average time period (in us) to wait between two fork attempts. The forking thread wait a random time period between 0 and twice the number, and with each attempt it doubles the step. See luxidRetryForkCount.

Luxid job death testing

luxidJobDeathDetectionRetries :: IntSource

The number of attempts to prove that a job is dead after sending it a KILL signal.

luxidJobDeathDelay :: IntSource

Time to delay (in us) after unsucessfully verifying the death of a job we believe to be dead. This is best choosen to be the average time sending a SIGKILL to take effect.

WConfD

wconfdDeathdetectionIntervall :: IntSource

Time itnervall in seconds between checks that all lock owners are still alive, and cleaning up the resources for the dead ones. As jobs dying without releasing resources is the exception, not the rule, we don't want this task to take up too many cycles itself. Hence we choose a sufficiently large intervall, in the order of 5 minutes. To avoid accidental 'same wakeup' with other tasks, we choose the next unused prime number.

wconfLivelockPrefix :: StringSource

The prefix of the WConfD livelock file name.

Confd

Confd request type

Confd repl status

Confd node role

A few common errors for confd

Confd request query fields

confdMaxClockSkew :: IntSource

Each request is salted by the current timestamp.

This constant decides how many seconds of skew to accept.

TODO: make this a default and allow the value to be more configurable

confdConfigReloadTimeout :: IntSource

When we haven't reloaded the config for more than this amount of seconds, we force a test to see if inotify is betraying us. Using a prime number to ensure we get less chance of 'same wakeup' with other processes.

confdConfigReloadRatelimit :: IntSource

If we receive more than one update in this amount of microseconds, we move to polling every RATELIMIT seconds, rather than relying on inotify, to be able to serve more requests.

confdMagicFourcc :: StringSource

Magic number prepended to all confd queries.

This allows us to distinguish different types of confd protocols and handle them. For example by changing this we can move the whole payload to be compressed, or move away from json.

confdDefaultReqCoverage :: IntSource

By default a confd request is sent to the minimum between this number and all MCs. 6 was chosen because even in the case of a disastrous 50% response rate, we should have enough answers to be able to compare more than one.

confdClientExpireTimeout :: IntSource

Timeout in seconds to expire pending query request in the confd client library. We don't actually expect any answer more than 10 seconds after we sent a request.

maxUdpDataSize :: IntSource

Maximum UDP datagram size.

On IPv4: 64K - 20 (ip header size) - 8 (udp header size) = 65507 On IPv6: 64K - 40 (ip6 header size) - 8 (udp header size) = 65487 (assuming we can't use jumbo frames) We just set this to 60K, which should be enough

User-id pool minimum/maximum acceptable user-ids

uidpoolUidMax :: IntegerSource

Assuming 32 bit user-ids

pgrep :: StringSource

Name or path of the pgrep command

initialNodeGroupName :: StringSource

Name of the node group that gets created at cluster init or upgrade

Possible values for NodeGroup.alloc_policy

blockdevDriverManual :: StringSource

Temporary external/shared storage parameters

qemuimgPath :: StringSource

'qemu-img' path, required for ovfconverter

iallocHail :: StringSource

The hail iallocator

Fake opcodes for functions that have hooks attached to them via

Crypto Types

Crypto Actions

Options for CryptoActions

SSH key types

sshkDsa :: StringSource

sshkEcdsa :: StringSource

sshkRsa :: StringSource

SSH authorized key types

sshakDss :: StringSource

sshakRsa :: StringSource

SSH setup

sshsAdd :: StringSource

sshsClear :: StringSource

Key files for SSH daemon

sshDaemonKeyfiles :: Map String (String, String)Source

Node daemon setup

ndsSsconf :: StringSource

ndsAction :: StringSource

VCluster related constants

The source reasons for the execution of an OpCode

randomUuidFile :: StringSource

Path generating random UUID

Auto-repair levels

Auto-repair results

builtinDataCollectorVersion :: StringSource

The version identifier for builtin data collectors

opcodeReason :: StringSource

The reason trail opcode parameter name

opcodeSequential :: StringSource

The reason trail opcode parameter name

CPU load collector

statFile :: StringSource

cpuavgloadWindowSize :: IntSource

Window size for averaging in seconds.

Xen cpu load collector

xentopAverageThreshold :: IntSource

Minimal observation time in seconds, the xen cpu load collector can report load averages for the first time.

Monitoring daemon

mondTimeInterval :: IntSource

Mond's variable for periodical data collection

mondConfigTimeInterval :: IntSource

Mond's waiting time for requesting the current configuration.

mondLatestApiVersion :: IntSource

Mond's latest API version

Disk access modes

upgradeQueueDrainTimeout :: IntSource

Timeout for queue draining in upgrades

upgradeQueuePollInterval :: IntSource

Intervall at which the queue is polled during upgrades

Hotplug Actions

Hotplug Device Targets

diskRemoveRetryTimeout :: IntSource

Timeout for disk removal (seconds)

diskRemoveRetryInterval :: IntSource

Interval between disk removal retries (seconds)

UUID regex

uuidRegex :: StringSource

Luxi constants

luxiWfjcTimeout :: IntSource

Luxi WaitForJobChange timeout

luxiLivelockPrefix :: StringSource

The prefix of the LUXI livelock file name

luxiCancelJobTimeout :: IntSource

The LUXI daemon waits this number of seconds for ensuring that a canceled job terminates before giving up.

Master voting constants

masterVotingRetries :: IntSource

Number of retries to carry out if nodes do not answer

masterVotingRetryIntervall :: IntSource

Retry interval (in seconds) in master voting, if not enough answers could be gathered.

Query language constants

Logic operators with one or more operands, each of which is a

qlangOpOr :: StringSource

Unary operators with exactly one operand

Binary operators with exactly two operands, the field name and

qlangOpGe :: StringSource

qlangOpGt :: StringSource

qlangOpLe :: StringSource

qlangOpLt :: StringSource

qlangFilterDetectionChars :: FrozenSet StringSource

Characters used for detecting user-written filters (see L{_CheckFilter})

qlangGlobDetectionChars :: FrozenSet StringSource

Characters used to detect globbing filters

Error related constants

errorsEcodeEnviron :: StringSource

Environment error (e.g. node disk error)

errorsEcodeExists :: StringSource

Entity already exists

errorsEcodeFault :: StringSource

Internal cluster error

errorsEcodeInval :: StringSource

Wrong arguments (at syntax level)

errorsEcodeNoent :: StringSource

Entity not found

errorsEcodeNores :: StringSource

Not enough resources (iallocator failure, disk space, memory, etc)

errorsEcodeNotunique :: StringSource

Resource not unique (e.g. MAC or IP duplication)

errorsEcodeResolver :: StringSource

Resolver errors

errorsEcodeState :: StringSource

Wrong entity state

errorsEcodeTempNores :: StringSource

Temporarily out of resources; operation can be tried again

Jstore related constants

Gluster settings

glusterHost :: StringSource

Name of the Gluster host setting

glusterHostDefault :: StringSource

Default value of the Gluster host setting

glusterVolume :: StringSource

Name of the Gluster volume setting

glusterVolumeDefault :: StringSource

Default value of the Gluster volume setting

glusterPort :: StringSource

Name of the Gluster port setting

glusterPortDefault :: IntSource

Default value of the Gluster port setting

Instance communication

instanceCommunicationNetwork4 :: StringSource

The instance communication network is a link-local IPv4/IPv6 network because the communication is meant to be exclusive between the host and the guest and not routed outside the node.

privateParametersBlacklist :: [String]Source

Parameters that should be protected

Python does not have a type system and can't automatically infer what should be the resulting type of a JSON request. As a result, it must rely on this list of parameter names to protect values correctly.

Names ending in _cluster will be treated as dicts of dicts of private values. Otherwise they are considered dicts of private values.

debugModeConfidentialityWarning :: StringSource

Warn the user that the logging level is too low for production use.

Stat dictionary entries

statSize :: StringSource

The size of the file

Helper VM-related timeouts

helperVmStartup :: IntSource

The default fixed timeout needed to startup the helper VM.

helperVmShutdown :: IntSource

The default fixed timeout needed until the helper VM is finally shutdown, for example, after installing the OS.

zeroingTimeoutPerMib :: DoubleSource

The zeroing timeout per MiB of disks to zero

Determined by estimating that a disk writes at a relatively slow speed of 1/5 of the max speed of current drives.

Networking

Data Collectors

cliWfjcFrequency :: IntSource

The polling frequency to wait for a job status change

defaultWfjcTimeout :: IntSource

Default WaitForJobChange timeout in seconds