class documentation
class DetachedConfig(ConfigWriter):
Read-only snapshot of the config.
Method | __init__ |
Undocumented |
Static Method | _ |
Undocumented |
Method | _ |
Release resources relating the config data. |
Method | _ |
Read the config data from WConfd or disk. |
Inherited from ConfigWriter
:
Static Method |
|
Check if the cluster is configured. |
Method |
|
Add an instance to the config. |
Method |
|
Add a disk to the config and attach it to instance. |
Method |
|
Add a network to the configuration. |
Method |
|
Add a node to the configuration. |
Method |
|
Add a node group to the configuration. |
Method |
|
Adds an entry to the candidate certificate map. |
Method |
|
Adds a new port to the available port pool. |
Method |
|
Allocate a drbd minor. |
Method |
|
Allocate a port. |
Method |
|
Changes the group of a number of nodes. |
Method |
|
Attach an existing disk to an instance. |
Method |
|
Check IP uniqueness in nodegroup. |
Method |
|
Tell WConfD to commit all temporary ids |
Method |
|
Compute the used DRBD minor/nodes. |
Method |
|
Detach a disk from an instance. |
Method |
|
Check if in there is at disk of the given type in the configuration. |
Method |
|
Undocumented |
Method |
|
Attempt to expand an incomplete instance name. |
Method |
|
Attempt to expand an incomplete node name into a node UUID. |
Method |
|
Force the distribution of configuration to master candidates. |
Method |
|
Force the distribution of configuration to master candidates of a group. |
Method |
|
Generate a DRBD secret. |
Method |
|
Find a free IPv4 address for an instance. |
Method |
|
Generate a MAC for an instance. |
Method |
|
Generate an unique ID. |
Method |
|
Get the configuration of all disks. |
Method |
|
Get the configuration of all disks. |
Method |
|
Get the configuration of all instances. |
Method |
|
Get configuration info of all the networks. |
Method |
|
Get the configuration of all node groups. |
Method |
|
Get the configuration of all node groups expressed as a dictionary of dictionaries. |
Method |
|
Get the configuration of all nodes. |
Method |
|
Returns the candidate certificate map. |
Method |
|
Returns information about the cluster |
Method |
|
Get cluster name. |
Method |
|
Get cluster compression tools |
Method |
|
Returns a ConfigManager, which is suitable to perform a synchronized block of configuration operations. |
Method |
|
Get the configuration version. |
Method |
|
Get the default instance allocator for this cluster. |
Method |
|
Get the default instance allocator parameters for this cluster. |
Method |
|
Returns a detached version of a ConfigManager, which represents a read-only snapshot of the configuration at this particular time. |
Method |
|
Returns information about a disk. |
Method |
|
Return information about a named disk. |
Method |
|
Return DRBD usermode helper. |
Method |
|
Return the dsa hostkey from the config. |
Method |
|
Get the file storage dir for this cluster. |
Method |
|
Get the Gluster storage dir for this cluster. |
Method |
|
Get the disk params populated with inherit chain. |
Method |
|
Locking wrapper of _UnlockedGetGroupNetParams() |
Method |
|
Get a map of group UUIDs to SSH ports. |
Method |
|
Return the hypervisor parameters of the given hypervisor. |
Method |
|
Get the hypervisor type for this cluster. |
Method |
|
Get the install image location |
Method |
|
Get cluster instance communication network |
Method |
|
Get the disk params populated with inherit chain. |
Method |
|
Return the disks' info for the given instance |
Method |
|
Return the disk template of an instance. |
Method |
|
Returns the instance the disk is currently attached to. |
Method |
|
Returns information about an instance. |
Method |
|
Get the objects.Instance object for a named instance. |
Method |
|
Get the list of instances. |
Method |
|
Provide a mapping of node to LVs a given instance owns. |
Method |
|
Gets the instance name for the passed instance. |
Method |
|
Gets the instance names for the passed list of nodes. |
Method |
|
Returns set of network UUIDs for instance's nics. |
Method |
|
Returns set of node group UUIDs for instance's nodes. |
Method |
|
Get all disk-related nodes for an instance. |
Method |
|
Get the list of secondary nodes. |
Method |
|
Get instance configuration with a filter. |
Method |
|
Return the mac prefix. |
Method |
|
Get the number of current and maximum possible candidates. |
Method |
|
Get the list of UUIDs of master candidates. |
Method |
|
Get the IP of the master node for this cluster. |
Method |
|
Get the master network device for this cluster. |
Method |
|
Get the netmask of the master node for this cluster. |
Method |
|
Get network parameters of the master node. |
Method |
|
Get the UUID of the master node for this cluster. |
Method |
|
Get the master node information for this cluster. |
Method |
|
Get the hostname of the master node for this cluster. |
Method |
|
Get the configuration of multiple instances. |
Method |
|
Get the configuration of multiple instances. |
Method |
|
Get the configuration of multiple node groups. |
Method |
|
Get the configuration of multiple nodes. |
Method |
|
Get the node groups params populated with cluster defaults. |
Method |
|
Get the node params populated with cluster defaults. |
Method |
|
Returns information about a network. |
Method |
|
Get the list of networks. |
Method |
|
Get a list of network names |
Method |
|
Lookup a node group. |
Method |
|
Get the objects.NodeGroup object for a named node group. |
Method |
|
Get the instances of a node group. |
Method |
|
Get a list of node groups. |
Method |
|
Get nodes which are member in the same nodegroups as the given nodes. |
Method |
|
Returns groups for a list of nodes. |
Method |
|
Get the configuration of a node, as stored in the config. |
Method |
|
Get the objects.Node object for a named node. |
Method |
|
Get the instances of a node, as stored in the config. |
Method |
|
Return the list of nodes which are in the configuration. |
Method |
|
Gets the node name for the passed node. |
Method |
|
Gets the node names for the passed list of nodes. |
Method |
|
Return the list of nodes' uuids which are not vm capable. |
Method |
|
Return the list of nodes' names which are not vm capable. |
Method |
|
Return the list of nodes which are online. |
Method |
|
Returns a copy of the current port list. |
Method |
|
Gets the list of node names of potential master candidates. |
Method |
|
Get cluster primary ip family. |
Method |
|
Return the rsa hostkey from the config. |
Method |
|
Get the shared file storage dir for this cluster. |
Method |
|
Wrapper using lock around _UnlockedGetSsconf(). |
Method |
|
Get flag representing whether to use the external master IP setup script. |
Method |
|
Return the volume group name. |
Method |
|
Return the list of nodes which are not vm capable. |
Method |
|
Get the zeroing image location |
Method |
|
Lookup a network's UUID. |
Method |
|
Lookup a node group's UUID. |
Method |
|
Try to grow the candidate pool to the desired size. |
Method |
|
Mark the status of instance disks active. |
Method |
|
Mark the status of instance disks inactive. |
Method |
|
Mark the status of an instance to down in the configuration. |
Method |
|
Mark the instance status to down in the config. |
Method |
|
Mark the instance status to up in the config. |
Method |
|
Mark the status of an instance to user down in the configuration. |
Method |
|
Undocumented |
Method |
|
Release temporary drbd minors allocated for a given disk. |
Method |
|
Give a specific IP address back to an IP pool. |
Method |
|
Remove the instance from the configuration. |
Method |
|
Detach a disk from an instance and remove it from the config. |
Method |
|
Remove a network from the configuration. |
Method |
|
Remove a node from the configuration. |
Method |
|
Removes the entry of the given node in the certificate map. |
Method |
|
Remove a node group from the configuration. |
Method |
|
Rename an instance. |
Method |
|
Reserve a given IPv4 address for use by an instance. |
Method |
|
Reserve an VG/LV pair for an instance. |
Method |
|
Reserve a MAC for an instance. |
Method |
|
Replaces the master candidate cert list with the new values. |
Method |
|
Set cluster compression tools |
Method |
|
Sets the logical_id of an existing disk |
Method |
|
Sets the nodes of an existing disk |
Method |
|
Set DRBD usermode helper. |
Method |
|
Set the install image location |
Method |
|
Set cluster instance communication network |
Method |
|
Sets the primary node of an existing instance |
Method |
|
Set the volume group name. |
Method |
|
Notify function to be called after updates. |
Method |
|
Undocumented |
Method |
|
Verify function. |
Method |
|
A simple wrapper around _UnlockedVerifyConfigAndLog |
Instance Variable | write |
Undocumented |
Static Method | _ |
Extends the ssconf_values dictionary by hvparams. |
Static Method | _ |
Per-disk verification checks |
Method | _ |
Undocumented |
Method | _ |
Return all DRBD secrets present in the config. |
Method | _ |
Compute the list of all UUIDs and names we have. |
Method | _ |
Compute the set of all disk-related nodes for an instance. |
Method | _ |
Compute the list of all LVs. |
Method | _ |
Return all MACs present in the config. |
Method | _ |
Compute the list of all NICs. |
Method | _ |
Returns all objects with uuid attributes. |
Method | _ |
Bump up the serial number of the config. |
Method | _ |
Checks that the UUID of the given object is unique. |
Method | _ |
Checks that an object with the given UUID exists. |
Method | _ |
Undocumented |
Method | _ |
Ensures a given object has a valid UUID. |
Method | _ |
Generate an unique UUID. |
Method | _ |
Get the hvparams of all given hypervisors from the config. |
Method | _ |
Undocumented |
Method | _ |
Undocumented |
Method | _ |
Undocumented |
Method | _ |
Set the instance's status to a given value. |
Method | _ |
Add a network to the configuration. |
Method | _ |
Add a node to the configuration. |
Method | _ |
Add a node group to the configuration. |
Method | _ |
Add a given node to the specified group. |
Method | _ |
Drop per-execution-context reservations |
Method | _ |
Undocumented |
Method | _ |
Get the configuration of all disks. |
Method | _ |
Undocumented |
Method | _ |
Get the configuration of all node groups. |
Method | _ |
Gets configuration of all nodes. |
Method | _ |
Returns information about a disk. |
Method | _ |
Return information about a named disk. |
Method | _ |
Get the list of disks. |
Method | _ |
Get the disk params populated with inherit chain down to node-group. |
Method | _ |
Get the netparams (mode, link) of a network. |
Method | _ |
Return the string representation of the list of hyervisor parameters of the given hypervisor. |
Method | _ |
Return the disks' info for the given instance |
Method | _ |
Returns information about an instance. |
Method | _ |
Undocumented |
Method | _ |
Get the list of instances. |
Method | _ |
Provide a mapping of node to LVs a given instance owns. |
Method | _ |
Undocumented |
Method | _ |
Undocumented |
Method | _ |
Get all disk-related nodes for an instance. |
Method | _ |
Get the list of secondary nodes. |
Method | _ |
Get the number of current and maximum desired and possible candidates. |
Method | _ |
Get the list of UUIDs of master candidates. |
Method | _ |
Get the ndparams of the group. |
Method | _ |
Undocumented |
Method | _ |
Returns information about a network. |
Method | _ |
Get the list of networks. |
Method | _ |
Lookup a node group. |
Method | _ |
Get the configuration of a node, as stored in the config. |
Method | _ |
Undocumented |
Method | _ |
Return the list of nodes which are in the configuration. |
Method | _ |
Undocumented |
Method | _ |
Undocumented |
Method | _ |
Return the list of nodes which are online. |
Method | _ |
Return the values needed by ssconf. |
Method | _ |
Undocumented |
Method | _ |
Lookup a network's UUID. |
Method | _ |
Lookup a node group's UUID. |
Method | _ |
Remove the disk from the configuration. |
Method | _ |
Remove a given node from its group. |
Method | _ |
Verify function. |
Method | _ |
Verify the configuration and log any errors. |
Method | _ |
Run any upgrade steps. |
Method | _ |
Write the configuration data to persistent storage. |
Instance Variable | _accept |
Undocumented |
Instance Variable | _all |
a list of all temporary reservation managers |
Instance Variable | _cfg |
Undocumented |
Instance Variable | _cfg |
Undocumented |
Instance Variable | _config |
Undocumented |
Instance Variable | _getents |
Undocumented |
Instance Variable | _lock |
Undocumented |
Instance Variable | _lock |
Undocumented |
Instance Variable | _lock |
Undocumented |
Instance Variable | _my |
Undocumented |
Instance Variable | _offline |
Undocumented |
Instance Variable | _temporary |
Undocumented |
Instance Variable | _wconfd |
Undocumented |
Instance Variable | _wconfdcontext |
Undocumented |