Package ganeti :: Package cmdlib :: Module misc :: Class ExtStorageQuery
[hide private]
[frames] | no frames]

Class ExtStorageQuery

source code


Instance Methods [hide private]
 
ExpandNames(self, lu)
Expand names for this query.
source code
 
DeclareLocks(self, lu, level)
Declare locks for this query.
source code
 
_GetQueryData(self, lu)
Computes the list of nodes and their attributes.
source code

Inherited from base.QueryBase: NewStyleQuery, OldStyleQuery, __init__

Inherited from base.QueryBase (private): _GetNames

Static Methods [hide private]
dict
_DiagnoseByProvider(rlist)
Remaps a per-node return list into an a per-provider per-node dictionary
source code
Class Variables [hide private]
  FIELDS = _BuildExtStorageFields()
Attribute holding field definitions

Inherited from base.QueryBase: SORT_FIELD

Method Details [hide private]

ExpandNames(self, lu)

source code 

Expand names for this query.

See LogicalUnit.ExpandNames.

Overrides: base.QueryBase.ExpandNames
(inherited documentation)

DeclareLocks(self, lu, level)

source code 

Declare locks for this query.

See LogicalUnit.DeclareLocks.

Overrides: base.QueryBase.DeclareLocks
(inherited documentation)

_DiagnoseByProvider(rlist)
Static Method

source code 

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, "", [])]
 }

_GetQueryData(self, lu)

source code 

Computes the list of nodes and their attributes.

Returns:
Query data object
Overrides: base.QueryBase._GetQueryData