Interface to static cluster data.
This is different that the config.ConfigWriter and SimpleConfigReader
classes in that it holds data that will always be present, even on nodes
which don't have all the cluster data.
|
__init__(self,
cfg_location=None,
_lockfile=pathutils.SSCONF_LOCK_FILE)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
KeyToFilename(self,
key)
Convert a given key into filename. |
source code
|
|
|
|
dict
|
|
|
|
|
|
|
|
|
GetFileStorageDir(self)
Get the file storage dir. |
source code
|
|
|
GetSharedFileStorageDir(self)
Get the shared file storage dir. |
source code
|
|
|
GetMasterCandidates(self)
Return the list of master candidates. |
source code
|
|
|
GetMasterCandidatesIPList(self)
Return the list of master candidates' primary IP. |
source code
|
|
|
GetMasterIP(self)
Get the IP of the master node for this cluster. |
source code
|
|
|
GetMasterNetdev(self)
Get the netdev to which we'll add the master ip. |
source code
|
|
|
GetMasterNetmask(self)
Get the master netmask. |
source code
|
|
|
GetMasterNode(self)
Get the hostname of the master node for this cluster. |
source code
|
|
|
GetNodeList(self)
Return the list of cluster nodes. |
source code
|
|
|
GetNodePrimaryIPList(self)
Return the list of cluster nodes' primary IP. |
source code
|
|
|
GetNodeSecondaryIPList(self)
Return the list of cluster nodes' secondary IP. |
source code
|
|
|
GetNodegroupList(self)
Return the list of nodegroups. |
source code
|
|
|
GetNetworkList(self)
Return the list of networks. |
source code
|
|
|
GetClusterTags(self)
Return the cluster tags. |
source code
|
|
|
GetHypervisorList(self)
Return the list of enabled hypervisors. |
source code
|
|
|
GetMaintainNodeHealth(self)
Return the value of the maintain_node_health option. |
source code
|
|
|
|
|
GetPrimaryIPFamily(self)
Return the cluster-wide primary address family. |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|