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 = constants.VALID_SS_KEYS Valid ssconf keys |
|||
_MAX_SIZE = 128* 1024 Maximum size for ssconf files |
Imports: sys, errno, logging, 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.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Apr 4 13:43:46 2016 | http://epydoc.sourceforge.net |