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

Class InstanceQueryData

source code

Data container for instance data queries.

Instance Methods [hide private]
 
__init__(self, instances, cluster, disk_usage, offline_nodes, bad_nodes, live_data, wrongnode_inst, console, nodes, groups)
Initializes this class.
source code
 
__iter__(self)
Iterate over all instances.
source code
Method Details [hide private]

__init__(self, instances, cluster, disk_usage, offline_nodes, bad_nodes, live_data, wrongnode_inst, console, nodes, groups)
(Constructor)

source code 

Initializes this class.

Parameters:
  • instances - List of instance objects
  • cluster - Cluster object
  • disk_usage (dict; instance name as key) - Per-instance disk usage
  • offline_nodes (list of strings) - List of offline nodes
  • bad_nodes (list of strings) - List of faulty nodes
  • live_data (dict; instance name as key) - Per-instance live data
  • wrongnode_inst (set) - Set of instances running on wrong node(s)
  • console (dict; instance name as key) - Per-instance console information
  • nodes (dict; node name as key) - Node objects

__iter__(self)

source code 

Iterate over all instances.

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