Package ganeti :: Module query :: Class GroupQueryData
[hide private]
[frames] | no frames]

Class GroupQueryData

source code

Data container for node group data queries.

Instance Methods [hide private]
 
__init__(self, cluster, groups, group_to_nodes, group_to_instances, want_diskparams)
Initializes this class.
source code
 
__iter__(self)
Iterate over all node groups.
source code
Method Details [hide private]

__init__(self, cluster, groups, group_to_nodes, group_to_instances, want_diskparams)
(Constructor)

source code 

Initializes this class.

Parameters:
  • cluster - Cluster object
  • groups - List of node group objects
  • group_to_nodes (dict; group UUID as key) - Per-group list of nodes
  • group_to_instances (dict; group UUID as key) - Per-group list of (primary) instances
  • want_diskparams (bool) - Whether diskparamters should be calculated

__iter__(self)

source code 

Iterate over all node groups.

This function has side-effects and only one instance of the resulting generator should be used at a time.