Package ganeti :: Package cmdlib :: Module cluster
[hide private]
[frames] | no frames]

Module cluster

source code

Logical units dealing with the cluster.

Classes [hide private]
  LUClusterActivateMasterIp
Activate the master IP on the master node.
  LUClusterDeactivateMasterIp
Deactivate the master IP on the master node.
  LUClusterConfigQuery
Return configuration values.
  LUClusterDestroy
Logical unit for destroying the cluster.
  LUClusterPostInit
Logical unit for running hooks after cluster initialization.
  ClusterQuery
  LUClusterQuery
Query cluster configuration.
  LUClusterRedistConf
Force the redistribution of cluster configuration.
  LUClusterRename
Rename the cluster.
  LUClusterRepairDiskSizes
Verifies the cluster disks sizes.
  LUClusterSetParams
Change the parameters of the cluster.
  LUClusterVerify
Submits all jobs necessary to verify the cluster.
  _VerifyErrors
Mix-in for cluster/group verify LUs.
  LUClusterVerifyConfig
Verifies the cluster config.
  LUClusterVerifyGroup
Verifies the status of a node group.
  LUClusterVerifyDisks
Verifies the cluster disks status.
Functions [hide private]
 
_ValidateNetmask(cfg, netmask)
Checks if a netmask is valid.
source code
 
_VerifyCertificate(filename)
Verifies a certificate for LUClusterVerifyConfig.
source code
list of (origin, hypervisor, parameters)
_GetAllHypervisorParameters(cluster, instances)
Compute the set of all hypervisor parameters.
source code

Imports: OpenSSL, copy, itertools, logging, operator, os, re, time, compat, constants, errors, hypervisor, locking, masterd, netutils, objects, opcodes, pathutils, query, rpc, runtime, ssh, uidpool, utils, vcluster, NoHooksLU, QueryBase, LogicalUnit, ResultWithJobs, ShareAll, RunPostHook, ComputeAncillaryFiles, RedistributeAncillaryFiles, UploadHelper, GetWantedInstances, MergeAndVerifyHvState, MergeAndVerifyDiskState, GetUpdatedIPolicy, ComputeNewInstanceViolations, GetUpdatedParams, CheckOSParams, CheckHVParams, AdjustCandidatePool, CheckNodePVs, ComputeIPolicyInstanceViolation, AnnotateDiskParams, SupportsOob, ganeti


Function Details [hide private]

_ValidateNetmask(cfg, netmask)

source code 

Checks if a netmask is valid.

Parameters:
  • cfg (config.ConfigWriter) - The cluster configuration
  • netmask (int) - the netmask to be verified
Raises:

_VerifyCertificate(filename)

source code 

Verifies a certificate for LUClusterVerifyConfig.

Parameters:
  • filename (string) - Path to PEM file

_GetAllHypervisorParameters(cluster, instances)

source code 

Compute the set of all hypervisor parameters.

Parameters:
Returns: list of (origin, hypervisor, parameters)
a list with all parameters found, indicating the hypervisor they apply to, and the origin (can be "cluster", "os X", or "instance Y")