Trees | Indices | Help |
|
---|
|
The interface to the cluster configuration.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
set |
|
||
string |
|
||
|
|||
list |
|
||
list |
|
||
list |
|
||
list |
|
||
list |
|
||
|
|||
|
|||
|
|||
(dict, list) |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
objects.Node |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
string |
|
||
string |
|
||
|
|||
dict |
|
||
|
|||
object.MasterNetworkParameters |
|
||
|
|||
|
|||
|
|||
string |
|
||
string |
|
||
objects.NodeGroup or None |
|
||
objects.NodeGroup or None |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
list |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
objects.Instance |
|
||
frozenset |
|
||
frozenset |
|
||
list |
|
||
list |
|
||
dict |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
string |
|
||
list of strings |
|
||
|
|||
|
|||
|
|||
|
|||
objects.Node |
|
||
objects.Node |
|
||
(list, list) |
|
||
frozenset |
|
||
|
|||
string |
|
||
list |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
list |
|
||
|
|||
dict |
|
||
|
|||
|
|||
|
|||
|
|||
string |
|
||
|
|||
list of strings |
|
||
frozenset |
|
||
tuple |
|
||
tuple |
|
||
list |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
dict of strings |
|
||
dict |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
objects.Cluster |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
objects.Network |
|
||
|
|||
|
|||
string |
|
||
string |
|
||
|
|||
dict or None |
|
||
|
|||
(string, dict) or (None, None) |
|
||
Inherited from |
|
|||
|
|||
same as ssconf_values |
|
|
|||
_all_rms a list of all temporary reservation managers |
|||
_temporary_lvs reservation manager for temporary LVs |
|
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Get the node params populated with cluster defaults.
|
Get the node groups params populated with cluster defaults.
|
Get the disk params populated with inherit chain.
|
Get the disk params populated with inherit chain.
|
Get the disk params populated with inherit chain down to node-group.
|
Return a function that randomly generates a MAC suffic and appends it to the given prefix. If prefix is not given get the cluster level default. |
Generate a MAC for an instance. This should check the current instances for duplicates.
|
Reserve a MAC for an instance. This only checks instances managed by this cluster, it does not check for potential collisions elsewhere.
|
Commit a reserved IP address to an IP pool. The IP address is taken from the network's IP pool and marked as reserved. |
Give a specific IP address back to an IP pool. The IP address is returned to the IP pool designated by pool_id and marked as reserved. |
Give a specified IP address back to an IP pool. This is just a wrapper around _UnlockedReleaseIp.
|
Find a free IPv4 address for an instance.
|
Reserve a given IPv4 address for use by an instance.
|
Reserve an VG/LV pair for an instance.
|
Generate a DRBD secret. This checks the current disks for duplicates.
|
Compute the list of all UUIDs and names we have.
|
Generate an unique UUID. This checks the current node, instances and disk names for duplicates.
|
Generate an unique ID. This is just a wrapper over the unlocked version.
|
Return all MACs present in the config.
|
Return all DRBD secrets present in the config.
|
Compute duplicate disk IDs
|
Verify function.
|
Verify function. This is just a wrapper over _UnlockedVerifyConfig.
|
Adds a new port to the available port pool.
Warning: this method does not "flush" the configuration (via _WriteConfig); callers should do that themselves once the configuration is stable |
Returns a copy of the current port list.
|
Allocate a port. The port will be taken from the available port pool or from the default port range (and in this case we increase highest_used_port).
|
Compute the used DRBD minor/nodes.
|
Compute the used DRBD minor/nodes. This is just a wrapper over _UnlockedComputeDRBDMap.
|
Allocate a drbd minor. The free minor will be automatically computed from the existing devices. A node can be given multiple times in order to allocate multiple minors. The result is the list of minors, in the same order as the passed nodes.
|
Release temporary drbd minors allocated for a given instance.
|
Release temporary drbd minors allocated for a given instance. This should be called on the error paths, on the success paths it's automatically called by the ConfigWriter add and update functions. This function is just a wrapper over _UnlockedReleaseDRBDMinors.
|
Get the configuration version.
|
Get cluster name.
|
Get the UUID of the master node for this cluster.
|
Get the hostname of the master node for this cluster.
|
Get the master node information for this cluster.
|
Get the IP of the master node for this cluster.
|
Get the master network device for this cluster.
|
Get the netmask of the master node for this cluster.
|
Get flag representing whether to use the external master IP setup script.
|
Get the file storage dir for this cluster.
|
Get the shared file storage dir for this cluster.
|
Get the Gluster storage dir for this cluster.
|
Get the hypervisor type for this cluster.
|
Return the rsa hostkey from the config.
|
Return the dsa hostkey from the config.
|
Get the default instance allocator for this cluster.
|
Get the default instance allocator parameters for this cluster.
|
Get cluster primary ip family.
|
Get network parameters of the master node.
|
Add a node group to the configuration. This method calls group.UpgradeConfig() to fill any missing attributes according to their default values.
|
Remove a node group from the configuration.
|
Lookup a node group's UUID.
|
Lookup a node group's UUID. This function is just a wrapper over _UnlockedLookupNodeGroup.
|
Lookup a node group.
|
Lookup a node group.
|
Get the configuration of all node groups.
|
Get the configuration of all node groups expressed as a dictionary of dictionaries.
|
Get a list of node groups.
|
Get nodes which are member in the same nodegroups as the given nodes.
|
Get the configuration of multiple node groups.
|
Add an instance to the config. This should be used after creating a new instance.
|
Ensures a given object has a valid UUID.
|
Checks that the UUID of the given object is unique.
|
Mark the instance status to up in the config. This also sets the instance disks active flag.
|
Mark the instance status to down in the config. This also clears the instance disks active flag.
|
Remove the instance from the configuration.
|
Rename an instance. This needs to be done in ConfigWriter and not by RemoveInstance combined with AddInstance as only we can guarantee an atomic rename.
|
Mark the status of an instance to down in the configuration. This does not touch the instance disks active flag, as shut down instances can still have active disks.
|
Mark the status of an instance to user down in the configuration. This does not touch the instance disks active flag, as user shut down instances can still have active disks.
|
Mark the status of instance disks active.
|
Mark the status of instance disks inactive.
|
Get the list of instances. This function is for internal use, when the config lock is already held. |
Get the list of instances.
|
Returns information about an instance. This function is for internal use, when the config lock is already held. |
Returns information about an instance. It takes the information from the configuration file. Other information of an instance are taken from the live systems.
|
Returns set of node group UUIDs for instance's nodes.
|
Returns set of network UUIDs for instance's nics.
|
Get the configuration of multiple instances.
|
Get the configuration of multiple instances.
|
Get the configuration of all instances.
|
Get instance configuration with a filter.
|
Get the objects.Instance object for a named instance.
|
Gets the instance name for the passed instance.
|
Gets the instance names for the passed list of nodes.
|
Add a node to the configuration.
|
Remove a node from the configuration.
|
Get the configuration of a node, as stored in the config. This function is for internal use, when the config lock is already held.
|
Get the configuration of a node, as stored in the config. This is just a locked wrapper over _UnlockedGetNodeInfo.
|
Get the instances of a node, as stored in the config.
|
Get the instances of a node group.
|
Return the string representation of the list of hyervisor parameters of the given hypervisor. See Also:
|
Return the hypervisor parameters of the given hypervisor.
|
Return the list of nodes which are in the configuration. This function is for internal use, when the config lock is already held.
|
Return the list of nodes which are in the configuration.
|
Return the list of nodes which are online.
|
Return the list of nodes which are not vm capable.
|
Return the list of nodes' uuids which are not vm capable.
|
Return the list of nodes' names which are not vm capable.
|
Get the configuration of multiple nodes.
|
Gets configuration of all nodes. Note: See GetAllNodesInfo |
Get the configuration of all nodes.
|
Get the objects.Node object for a named node.
|
Get the objects.NodeGroup object for a named node group.
|
Gets the node name for the passed node.
|
Gets the node names for the passed list of nodes.
|
Returns groups for a list of nodes.
|
Get the number of current and maximum desired and possible candidates.
|
Get the number of current and maximum possible candidates. This is just a wrapper over _UnlockedGetMasterCandidateStats.
|
Try to grow the candidate pool to the desired size.
|
Changes the group of a number of nodes.
|
Run any upgrade steps. This method performs both in-object upgrades and also update some data elements that need uniqueness across the whole configuration or interact with other objects. Warning: this function will call _WriteConfig(), but also DropECReservations so it needs to be called only from a "safe" place (the constructor). If one wanted to call it with the lock held, a DropECReservationUnlocked would need to be created first, to avoid causing deadlock. |
Distribute the configuration to the other nodes. Currently, this only copies the configuration file. In the future, it could be used to encapsulate the 2/3-phase update mechanism. |
Get the hvparams of all given hypervisors from the config.
|
Extends the ssconf_values dictionary by hvparams.
|
Return the values needed by ssconf.
|
Wrapper using lock around _UnlockedGetSsconf().
|
Return the volume group name.
|
Set the volume group name.
|
Return DRBD usermode helper.
|
Set DRBD usermode helper.
|
Return the mac prefix.
|
Returns information about the cluster
|
Check if in there is at disk of the given type in the configuration.
|
Notify function to be called after updates. This function must be called when an object (as returned by GetInstanceInfo, GetNodeInfo, GetCluster) has been updated and the caller wants the modifications saved to the backing store. Note that all modified objects will be saved, but the target argument is the one the caller wants to ensure that it's saved.
|
Drop per-execution-context reservations
|
Get configuration info of all the networks.
|
Get the list of networks. This function is for internal use, when the config lock is already held. |
Get the list of networks.
|
Get a list of network names
|
Returns information about a network. This function is for internal use, when the config lock is already held. |
Returns information about a network. It takes the information from the configuration file.
|
Add a network to the configuration.
|
Lookup a network's UUID.
|
Lookup a network's UUID. This function is just a wrapper over _UnlockedLookupNetwork.
|
Remove a network from the configuration.
|
Get the netparams (mode, link) of a network. Get a network's netparams for a given node.
|
Locking wrapper of _UnlockedGetGroupNetParams()
|
Check IP uniqueness in nodegroup. Check networks that are connected in the node's node group if ip is contained in any of them. Used when creating/adding a NIC to ensure uniqueness among nodegroups.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Jan 11 11:57:50 2016 | http://epydoc.sourceforge.net |