class documentation
class OsQuery(QueryBase):
Undocumented
Method |
|
Declare locks for this query. |
Method |
|
Expand names for this query. |
Instance Variable | do |
Undocumented |
Instance Variable | wanted |
Undocumented |
Static Method | _ |
Remaps a per-node return list into a per-os per-node dictionary |
Method | _ |
Computes the list of nodes and their attributes. |
Inherited from QueryBase
:
Method | __init__ |
Initializes this class. |
Method |
|
Collect data and execute query. |
Method |
|
Collect data and execute query. |
Constant | FIELDS |
Undocumented |
Constant | SORT |
Undocumented |
Instance Variable | names |
Undocumented |
Instance Variable | query |
Undocumented |
Instance Variable | requested |
Undocumented |
Instance Variable | sort |
Undocumented |
Instance Variable | use |
Undocumented |
Method | _ |
Helper function to determine names asked for in the query. |
Remaps a per-node return list into a per-os per-node dictionary
Parameters | |
rlist | a map with node names as keys and OS objects as values |
Returns | |
dict | a dictionary with osnames as keys and as value another map, with node UUIDs as keys and tuples of (path, status, diagnose, variants, parameters, api_versions) as values, eg: {"debian-etch": {"node1-uuid": [(/usr/lib/..., True, "", [], []), (/srv/..., False, "invalid api")], "node2-uuid": [(/srv/..., True, "", [], [])]} } |