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.
|
|||
SimpleConfigReader Simple class to read configuration file. |
|||
SimpleStore Interface to static cluster data. |
|
|||
tuple |
|
||
|
|
|||
SSCONF_LOCK_TIMEOUT = 10
|
|||
RE_VALID_SSCONF_NAME = re.compile(r'^[-_a-z0-9]+$')
|
Imports: sys, re, os, errors, constants, utils, serializer, objects, netutils
|
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. |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Dec 9 15:55:22 2010 | http://epydoc.sourceforge.net |