class documentation

class DetachedConfig(ConfigWriter):

View In Hierarchy

Read-only snapshot of the config.

Method __init__ Undocumented
Static Method _WriteCallError Undocumented
Method _CloseConfig Release resources relating the config data.
Method _OpenConfig Read the config data from WConfd or disk.

Inherited from ConfigWriter:

Static Method IsCluster Check if the cluster is configured.
Method AddInstance Add an instance to the config.
Method AddInstanceDisk Add a disk to the config and attach it to instance.
Method AddNetwork Add a network to the configuration.
Method AddNode Add a node to the configuration.
Method AddNodeGroup Add a node group to the configuration.
Method AddNodeToCandidateCerts Adds an entry to the candidate certificate map.
Method AddTcpUdpPort Adds a new port to the available port pool.
Method AllocateDRBDMinor Allocate a drbd minor.
Method AllocatePort Allocate a port.
Method AssignGroupNodes Changes the group of a number of nodes.
Method AttachInstanceDisk Attach an existing disk to an instance.
Method CheckIPInNodeGroup Check IP uniqueness in nodegroup.
Method CommitTemporaryIps Tell WConfD to commit all temporary ids
Method ComputeDRBDMap Compute the used DRBD minor/nodes.
Method DetachInstanceDisk Detach a disk from an instance.
Method DisksOfType Check if in there is at disk of the given type in the configuration.
Method DropECReservations Undocumented
Method ExpandInstanceName Attempt to expand an incomplete instance name.
Method ExpandNodeName Attempt to expand an incomplete node name into a node UUID.
Method FlushConfig Force the distribution of configuration to master candidates.
Method FlushConfigGroup Force the distribution of configuration to master candidates of a group.
Method GenerateDRBDSecret Generate a DRBD secret.
Method GenerateIp Find a free IPv4 address for an instance.
Method GenerateMAC Generate a MAC for an instance.
Method GenerateUniqueID Generate an unique ID.
Method GetAllDiskInfo Get the configuration of all disks.
Method GetAllDisksInfo Get the configuration of all disks.
Method GetAllInstancesInfo Get the configuration of all instances.
Method GetAllNetworksInfo Get configuration info of all the networks.
Method GetAllNodeGroupsInfo Get the configuration of all node groups.
Method GetAllNodeGroupsInfoDict Get the configuration of all node groups expressed as a dictionary of dictionaries.
Method GetAllNodesInfo Get the configuration of all nodes.
Method GetCandidateCerts Returns the candidate certificate map.
Method GetClusterInfo Returns information about the cluster
Method GetClusterName Get cluster name.
Method GetCompressionTools Get cluster compression tools
Method GetConfigManager Returns a ConfigManager, which is suitable to perform a synchronized block of configuration operations.
Method GetConfigVersion Get the configuration version.
Method GetDefaultIAllocator Get the default instance allocator for this cluster.
Method GetDefaultIAllocatorParameters Get the default instance allocator parameters for this cluster.
Method GetDetachedConfig Returns a detached version of a ConfigManager, which represents a read-only snapshot of the configuration at this particular time.
Method GetDiskInfo Returns information about a disk.
Method GetDiskInfoByName Return information about a named disk.
Method GetDRBDHelper Return DRBD usermode helper.
Method GetDsaHostKey Return the dsa hostkey from the config.
Method GetFileStorageDir Get the file storage dir for this cluster.
Method GetGlusterStorageDir Get the Gluster storage dir for this cluster.
Method GetGroupDiskParams Get the disk params populated with inherit chain.
Method GetGroupNetParams Locking wrapper of _UnlockedGetGroupNetParams()
Method GetGroupSshPorts Get a map of group UUIDs to SSH ports.
Method GetHvparamsString Return the hypervisor parameters of the given hypervisor.
Method GetHypervisorType Get the hypervisor type for this cluster.
Method GetInstallImage Get the install image location
Method GetInstanceCommunicationNetwork Get cluster instance communication network
Method GetInstanceDiskParams Get the disk params populated with inherit chain.
Method GetInstanceDisks Return the disks' info for the given instance
Method GetInstanceDiskTemplate Return the disk template of an instance.
Method GetInstanceForDisk Returns the instance the disk is currently attached to.
Method GetInstanceInfo Returns information about an instance.
Method GetInstanceInfoByName Get the objects.Instance object for a named instance.
Method GetInstanceList Get the list of instances.
Method GetInstanceLVsByNode Provide a mapping of node to LVs a given instance owns.
Method GetInstanceName Gets the instance name for the passed instance.
Method GetInstanceNames Gets the instance names for the passed list of nodes.
Method GetInstanceNetworks Returns set of network UUIDs for instance's nics.
Method GetInstanceNodeGroups Returns set of node group UUIDs for instance's nodes.
Method GetInstanceNodes Get all disk-related nodes for an instance.
Method GetInstanceSecondaryNodes Get the list of secondary nodes.
Method GetInstancesInfoByFilter Get instance configuration with a filter.
Method GetMACPrefix Return the mac prefix.
Method GetMasterCandidateStats Get the number of current and maximum possible candidates.
Method GetMasterCandidateUuids Get the list of UUIDs of master candidates.
Method GetMasterIP Get the IP of the master node for this cluster.
Method GetMasterNetdev Get the master network device for this cluster.
Method GetMasterNetmask Get the netmask of the master node for this cluster.
Method GetMasterNetworkParameters Get network parameters of the master node.
Method GetMasterNode Get the UUID of the master node for this cluster.
Method GetMasterNodeInfo Get the master node information for this cluster.
Method GetMasterNodeName Get the hostname of the master node for this cluster.
Method GetMultiInstanceInfo Get the configuration of multiple instances.
Method GetMultiInstanceInfoByName Get the configuration of multiple instances.
Method GetMultiNodeGroupInfo Get the configuration of multiple node groups.
Method GetMultiNodeInfo Get the configuration of multiple nodes.
Method GetNdGroupParams Get the node groups params populated with cluster defaults.
Method GetNdParams Get the node params populated with cluster defaults.
Method GetNetwork Returns information about a network.
Method GetNetworkList Get the list of networks.
Method GetNetworkNames Get a list of network names
Method GetNodeGroup Lookup a node group.
Method GetNodeGroupInfoByName Get the objects.NodeGroup object for a named node group.
Method GetNodeGroupInstances Get the instances of a node group.
Method GetNodeGroupList Get a list of node groups.
Method GetNodeGroupMembersByNodes Get nodes which are member in the same nodegroups as the given nodes.
Method GetNodeGroupsFromNodes Returns groups for a list of nodes.
Method GetNodeInfo Get the configuration of a node, as stored in the config.
Method GetNodeInfoByName Get the objects.Node object for a named node.
Method GetNodeInstances Get the instances of a node, as stored in the config.
Method GetNodeList Return the list of nodes which are in the configuration.
Method GetNodeName Gets the node name for the passed node.
Method GetNodeNames Gets the node names for the passed list of nodes.
Method GetNonVmCapableNodeList Return the list of nodes' uuids which are not vm capable.
Method GetNonVmCapableNodeNameList Return the list of nodes' names which are not vm capable.
Method GetOnlineNodeList Return the list of nodes which are online.
Method GetPortList Returns a copy of the current port list.
Method GetPotentialMasterCandidates Gets the list of node names of potential master candidates.
Method GetPrimaryIPFamily Get cluster primary ip family.
Method GetRsaHostKey Return the rsa hostkey from the config.
Method GetSharedFileStorageDir Get the shared file storage dir for this cluster.
Method GetSsconfValues Wrapper using lock around _UnlockedGetSsconf().
Method GetUseExternalMipScript Get flag representing whether to use the external master IP setup script.
Method GetVGName Return the volume group name.
Method GetVmCapableNodeList Return the list of nodes which are not vm capable.
Method GetZeroingImage Get the zeroing image location
Method LookupNetwork Lookup a network's UUID.
Method LookupNodeGroup Lookup a node group's UUID.
Method MaintainCandidatePool Try to grow the candidate pool to the desired size.
Method MarkInstanceDisksActive Mark the status of instance disks active.
Method MarkInstanceDisksInactive Mark the status of instance disks inactive.
Method MarkInstanceDown Mark the status of an instance to down in the configuration.
Method MarkInstanceOffline Mark the instance status to down in the config.
Method MarkInstanceUp Mark the instance status to up in the config.
Method MarkInstanceUserDown Mark the status of an instance to user down in the configuration.
Method OutDate Undocumented
Method ReleaseDRBDMinors Release temporary drbd minors allocated for a given disk.
Method ReleaseIp Give a specific IP address back to an IP pool.
Method RemoveInstance Remove the instance from the configuration.
Method RemoveInstanceDisk Detach a disk from an instance and remove it from the config.
Method RemoveNetwork Remove a network from the configuration.
Method RemoveNode Remove a node from the configuration.
Method RemoveNodeFromCandidateCerts Removes the entry of the given node in the certificate map.
Method RemoveNodeGroup Remove a node group from the configuration.
Method RenameInstance Rename an instance.
Method ReserveIp Reserve a given IPv4 address for use by an instance.
Method ReserveLV Reserve an VG/LV pair for an instance.
Method ReserveMAC Reserve a MAC for an instance.
Method SetCandidateCerts Replaces the master candidate cert list with the new values.
Method SetCompressionTools Set cluster compression tools
Method SetDiskLogicalID Sets the logical_id of an existing disk
Method SetDiskNodes Sets the nodes of an existing disk
Method SetDRBDHelper Set DRBD usermode helper.
Method SetInstallImage Set the install image location
Method SetInstanceCommunicationNetwork Set cluster instance communication network
Method SetInstancePrimaryNode Sets the primary node of an existing instance
Method SetVGName Set the volume group name.
Method Update Notify function to be called after updates.
Method UpdateOfflineCluster Undocumented
Method VerifyConfig Verify function.
Method VerifyConfigAndLog A simple wrapper around _UnlockedVerifyConfigAndLog
Instance Variable write_count Undocumented
Static Method _ExtendByAllHvparamsStrings Extends the ssconf_values dictionary by hvparams.
Static Method _VerifyDisks Per-disk verification checks
Method _AddLockCount Undocumented
Method _AllDRBDSecrets Return all DRBD secrets present in the config.
Method _AllIDs Compute the list of all UUIDs and names we have.
Method _AllInstanceNodes Compute the set of all disk-related nodes for an instance.
Method _AllLVs Compute the list of all LVs.
Method _AllMACs Return all MACs present in the config.
Method _AllNICs Compute the list of all NICs.
Method _AllUUIDObjects Returns all objects with uuid attributes.
Method _BumpSerialNo Bump up the serial number of the config.
Method _CheckUniqueUUID Checks that the UUID of the given object is unique.
Method _CheckUUIDpresent Checks that an object with the given UUID exists.
Method _ConfigData Undocumented
Method _EnsureUUID Ensures a given object has a valid UUID.
Method _GenerateUniqueID Generate an unique UUID.
Method _GetAllHvparamsStrings Get the hvparams of all given hypervisors from the config.
Method _GetWConfdContext Undocumented
Method _LockCount Undocumented
Method _SetConfigData Undocumented
Method _SetInstanceStatus Set the instance's status to a given value.
Method _UnlockedAddNetwork Add a network to the configuration.
Method _UnlockedAddNode Add a node to the configuration.
Method _UnlockedAddNodeGroup Add a node group to the configuration.
Method _UnlockedAddNodeToGroup Add a given node to the specified group.
Method _UnlockedDropECReservations Drop per-execution-context reservations
Method _UnlockedGetAllDiskInfo Undocumented
Method _UnlockedGetAllDisksInfo Get the configuration of all disks.
Method _UnlockedGetAllInstancesInfo Undocumented
Method _UnlockedGetAllNodeGroupsInfo Get the configuration of all node groups.
Method _UnlockedGetAllNodesInfo Gets configuration of all nodes.
Method _UnlockedGetDiskInfo Returns information about a disk.
Method _UnlockedGetDiskInfoByName Return information about a named disk.
Method _UnlockedGetDiskList Get the list of disks.
Method _UnlockedGetGroupDiskParams Get the disk params populated with inherit chain down to node-group.
Method _UnlockedGetGroupNetParams Get the netparams (mode, link) of a network.
Method _UnlockedGetHvparamsString Return the string representation of the list of hyervisor parameters of the given hypervisor.
Method _UnlockedGetInstanceDisks Return the disks' info for the given instance
Method _UnlockedGetInstanceInfo Returns information about an instance.
Method _UnlockedGetInstanceInfoByName Undocumented
Method _UnlockedGetInstanceList Get the list of instances.
Method _UnlockedGetInstanceLVsByNode Provide a mapping of node to LVs a given instance owns.
Method _UnlockedGetInstanceName Undocumented
Method _UnlockedGetInstanceNames Undocumented
Method _UnlockedGetInstanceNodes Get all disk-related nodes for an instance.
Method _UnlockedGetInstanceSecondaryNodes Get the list of secondary nodes.
Method _UnlockedGetMasterCandidateStats Get the number of current and maximum desired and possible candidates.
Method _UnlockedGetMasterCandidateUuids Get the list of UUIDs of master candidates.
Method _UnlockedGetNdGroupParams Get the ndparams of the group.
Method _UnlockedGetNdParams Undocumented
Method _UnlockedGetNetwork Returns information about a network.
Method _UnlockedGetNetworkList Get the list of networks.
Method _UnlockedGetNodeGroup Lookup a node group.
Method _UnlockedGetNodeInfo Get the configuration of a node, as stored in the config.
Method _UnlockedGetNodeInfoByName Undocumented
Method _UnlockedGetNodeList Return the list of nodes which are in the configuration.
Method _UnlockedGetNodeName Undocumented
Method _UnlockedGetNodeNames Undocumented
Method _UnlockedGetOnlineNodeList Return the list of nodes which are online.
Method _UnlockedGetSsconfValues Return the values needed by ssconf.
Method _UnlockedGetSshPortMap Undocumented
Method _UnlockedLookupNetwork Lookup a network's UUID.
Method _UnlockedLookupNodeGroup Lookup a node group's UUID.
Method _UnlockedRemoveDisk Remove the disk from the configuration.
Method _UnlockedRemoveNodeFromGroup Remove a given node from its group.
Method _UnlockedVerifyConfig Verify function.
Method _UnlockedVerifyConfigAndLog Verify the configuration and log any errors.
Method _UpgradeConfig Run any upgrade steps.
Method _WriteConfig Write the configuration data to persistent storage.
Instance Variable _accept_foreign Undocumented
Instance Variable _all_rms a list of all temporary reservation managers
Instance Variable _cfg_file Undocumented
Instance Variable _cfg_id Undocumented
Instance Variable _config_data Undocumented
Instance Variable _getents Undocumented
Instance Variable _lock_count Undocumented
Instance Variable _lock_current_shared Undocumented
Instance Variable _lock_forced Undocumented
Instance Variable _my_hostname Undocumented
Instance Variable _offline Undocumented
Instance Variable _temporary_ids Undocumented
Instance Variable _wconfd Undocumented
Instance Variable _wconfdcontext Undocumented
def __init__(self, config_data):

Undocumented

@staticmethod
def _WriteCallError():

Undocumented

def _CloseConfig(self, save):

Release resources relating the config data.

def _OpenConfig(self, shared, force=None):

Read the config data from WConfd or disk.