Package ganeti :: Module objects
[hide private]
[frames] | no frames]

Module objects

source code

Transportable objects for Ganeti.

This module provides small, mostly data-only objects which are safe to pass to and from external parties.

Classes [hide private]
  ConfigObject
A generic config object.
  TaggableObject
An generic class supporting tags.
  ConfigData
Top-level config object.
  NIC
Config object representing a network card.
  Disk
Config object representing a block device.
  Instance
Config object representing an instance.
  OS
Config object representing an operating system.
  Node
Config object representing a node.
  NodeGroup
Config object representing a node group.
  Cluster
Config object representing the cluster.
  BlockDevStatus
Config object representing the status of a block device.
  ImportExportStatus
Config object representing the status of an import or export.
  ImportExportOptions
Options for import/export daemon
  ConfdRequest
Object holding a confd request.
  ConfdReply
Object holding a confd reply.
  QueryFieldDefinition
Object holding a query field definition.
  _QueryResponseBase
  QueryRequest
Object holding a query request.
  QueryResponse
Object holding the response to a query.
  QueryFieldsRequest
Object holding a request for querying available fields.
  QueryFieldsResponse
Object holding the response to a query for fields.
  InstanceConsole
Object describing how to access the console of an instance.
  SerializableConfigParser
Simple wrapper over ConfigParse that allows serialization.
Functions [hide private]
dict
FillDict(defaults_dict, custom_dict, skip_keys=None)
Basic function to apply settings on top a default dict.
source code
 
UpgradeGroupedParams(target, defaults)
Update all groups for the target parameter.
source code
Variables [hide private]
  _TIMESTAMPS = ["ctime", "mtime"]
  _UUID = ["uuid"]

Imports: ConfigParser, re, copy, time, StringIO, errors, constants, AF_INET


Function Details [hide private]

FillDict(defaults_dict, custom_dict, skip_keys=None)

source code 

Basic function to apply settings on top a default dict.

Parameters:
  • defaults_dict (dict) - dictionary holding the default values
  • custom_dict (dict) - dictionary holding customized value
  • skip_keys (list) - which keys not to fill
Returns: dict
dict with the 'full' values

UpgradeGroupedParams(target, defaults)

source code 

Update all groups for the target parameter.

Parameters:
  • target (dict of dicts) - {group: {parameter: value}}
  • defaults (dict) - default parameter values