class documentation

class ExtStorageQuery(QueryBase):

View In Hierarchy

Undocumented

Method DeclareLocks Declare locks for this query.
Method ExpandNames Expand names for this query.
Instance Variable do_locking Undocumented
Instance Variable wanted Undocumented
Static Method _DiagnoseByProvider Remaps a per-node return list into an a per-provider per-node dictionary
Method _GetQueryData Computes the list of nodes and their attributes.

Inherited from QueryBase:

Method __init__ Initializes this class.
Method NewStyleQuery Collect data and execute query.
Method OldStyleQuery Collect data and execute query.
Constant FIELDS Undocumented
Constant SORT_FIELD Undocumented
Instance Variable names Undocumented
Instance Variable query Undocumented
Instance Variable requested_data Undocumented
Instance Variable sort_by_name Undocumented
Instance Variable use_locking Undocumented
Method _GetNames Helper function to determine names asked for in the query.
def DeclareLocks(self, lu, level):

Declare locks for this query.

See LogicalUnit.DeclareLocks.

def ExpandNames(self, lu):

Expand names for this query.

See LogicalUnit.ExpandNames.

do_locking =
wanted =

Undocumented

@staticmethod
def _DiagnoseByProvider(rlist):

Remaps a per-node return list into an a per-provider per-node dictionary

Parameters
rlista 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, "", [])]
  }
def _GetQueryData(self, lu):

Computes the list of nodes and their attributes.