Trees | Indices | Help |
|
---|
|
Global Configuration data for Ganeti.
This module provides the interface to a special case of cluster configuration data, which is mostly static and available to all nodes.
|
|||
SimpleStore Interface to static cluster data. |
|
|||
string |
|
||
|
|||
tuple |
|
||
|
|||
|
|||
|
|
|||
SSCONF_LOCK_TIMEOUT = 10
|
|||
_VALID_KEYS = compat.UniqueFrozenset([constants.SS_CLUSTER_NAM Valid ssconf keys |
|||
_MAX_SIZE = 128* 1024 Maximum size for ssconf files |
Imports: sys, errno, logging, compat, errors, constants, utils, netutils, pathutils
|
Reads an ssconf file and verifies its size.
|
Update all ssconf files. Wrapper around SimpleStore.WriteFiles. |
Get the master node and my own hostname. This can be either used for a 'soft' check (compared to CheckMaster, which exits) or just for computing both at the same time. The function does not handle any errors, these should be handled in the caller (errors.ConfigurationError, errors.ResolverError).
|
Checks the node setup. If this is the master, the function will return. Otherwise it will exit with an exit code based on the node status. |
Verifies cluster name against a local cluster name.
|
Raises an exception if unknown ssconf keys are given.
|
|
_VALID_KEYSValid ssconf keys
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Dec 30 13:42:34 2015 | http://epydoc.sourceforge.net |