class documentation
class ExtStorageQuery(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 an a per-provider 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 an a per-provider per-node dictionary
Parameters | |
rlist | a map with node uuids as keys and ExtStorage objects as values |
Returns | |
dict | a dictionary with extstorage providers as keys and as value another map, with node uuids as keys and tuples of (path, status, diagnose, parameters) as values, eg: {"provider1": {"node_uuid1": [(/usr/lib/..., True, "", [])] "node_uuid2": [(/srv/..., False, "missing file")] "node_uuid3": [(/srv/..., True, "", [])] } |