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_node_uuids, bad_node_uuids, live_data, wrongnode_inst, console, nodes, groups, networks)
Initializes this class.
source code
 
__iter__(self)
Iterate over all instances.
source code
Method Details [hide private]

__init__(self, instances, cluster, disk_usage, offline_node_uuids, bad_node_uuids, live_data, wrongnode_inst, console, nodes, groups, networks)
(Constructor)

source code 

Initializes this class.

Parameters:
  • instances - List of instance objects
  • cluster - Cluster object
  • disk_usage (dict; instance UUID as key) - Per-instance disk usage
  • offline_node_uuids (list of strings) - List of offline nodes
  • bad_node_uuids (list of strings) - List of faulty nodes
  • live_data (dict; instance UUID as key) - Per-instance live data
  • wrongnode_inst (set) - Set of instances running on wrong node(s)
  • console (dict; instance UUID as key) - Per-instance console information
  • nodes (dict; node UUID as key) - Node objects
  • networks (dict; net_uuid as key) - Network 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.