Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore ListLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore BinOpMod Str NameLoad Raise Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body If CompareNotIn NameLoad NameLoad body Assign NameStore BinOpMod Str NameLoad Raise Call AttributeLoad NameLoad attr NameLoad If CompareIn SubscriptLoad NameLoad Index NameLoad NameLoad body Continue Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Raise Call AttributeLoad NameLoad attr NameLoad If CompareIn NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If BoolOpAnd CompareIs SubscriptLoad NameLoad Index NameLoad NameLoad CompareEq NameLoad AttributeLoad NameLoad attr body Pass orelse If UnaryOpNot Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad body If BoolOpAnd Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad UnaryOpNot SubscriptLoad NameLoad Index NameLoad body Assign SubscriptStore NameLoad Index NameLoad Str orelse Assign NameStore BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index NameLoad Raise Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body If BoolOpAnd Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad body If CompareEq Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse If CompareEq Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse Assign NameStore BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index NameLoad Raise Call AttributeLoad NameLoad attr NameLoad orelse If SubscriptLoad NameLoad Index NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body TryExcept body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign NameStore BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad Raise Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body TryExcept body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index NameLoad Raise Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body TryExcept body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index NameLoad Raise Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore BoolOpAnd CompareGtE NameLoad Num CompareLt NameLoad BinOpLShift Num Num If UnaryOpNot NameLoad body Raise Call AttributeLoad NameLoad attr BinOpMod Str NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad orelse Assign NameStore NameLoad If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Str NameLoad NameLoad If NameLoad body Raise Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Str Assign NameStore Call NameLoad NameLoad Assign NameStore Dict If AttributeLoad NameLoad attr body Return NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Continue Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot NameLoad body Return ListLoad Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr Str body If CompareEq NameLoad AttributeLoad NameLoad attr body Return ListLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad If CompareGt NameLoad Num body Raise Call AttributeLoad NameLoad attr BinOpMod Str NameLoad TryExcept body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num handlers ExceptHandler type TupleLoad NameLoad NameLoad name NameStore body Raise Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad TryExcept body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num handlers ExceptHandler type TupleLoad NameLoad NameLoad name NameStore body Raise Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad If CompareGt NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad BinOpAdd NameLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot NameLoad body Return ListLoad Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str TryExcept body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Raise Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Return NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str For TupleStore NameStore NameStore Call NameLoad NameLoad body Assert CompareGtE NameLoad NameLoad Str If CompareGt NameLoad BinOpAdd NameLoad NameLoad body Return BinOpAdd NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore BinOpBitOr BinOpBitOr BinOpBitOr BinOpBitOr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body AugAssignMult NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareNotEq SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr body Raise Assign NameStore ListLoad If BoolOpAnd NameLoad BinOpBitAnd SubscriptLoad SubscriptLoad NameLoad Index Num Index Num NameLoad body Return SubscriptLoad SubscriptLoad NameLoad Index Num Index Num orelse Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Raise Call NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad TryExcept body Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad keyword TupleLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad While CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad ListLoad AttributeLoad NameLoad attr Str NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad ListLoad AttributeLoad NameLoad attr Str NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call NameLoad Call NameLoad BinOpMult NameLoad Num Num Assert CompareLtE Num NameLoad BinOpMod Str NameLoad Assert CompareLtELtE Num NameLoad Num BinOpMod Str NameLoad Return TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameLoad Assert CompareLtE Num NameLoad BinOpMod Str NameLoad Assert CompareLtELtE Num NameLoad Num BinOpMod Str NameLoad Return BinOpAdd Call NameLoad NameLoad BinOpMult Call NameLoad NameLoad Num decorator_list FunctionDef arguments args defaults body Expr Str Return Call NameLoad BinOpMult Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIn NameLoad NameLoad body Return TupleLoad SubscriptLoad NameLoad Index NameLoad ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If Call NameLoad NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Return TupleLoad NameLoad Call NameLoad Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults AttributeLoad NameLoad attr body Expr Str Assign NameStore ListLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr For NameStore NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults vararg kwarg body Assert BoolOpOr CompareNotIn Str NameLoad CompareIs SubscriptLoad NameLoad Index Str NameLoad Call NameLoad SubscriptLoad NameLoad Index Str NameLoad Str If BoolOpAnd CompareIn Str NameLoad CompareIsNot SubscriptLoad NameLoad Index Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str orelse Assign NameStore Dict Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call NameLoad NameLoad TryFinally body For NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad Return Call NameLoad NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr decorator_list Return NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults AttributeLoad NameLoad attr body Expr Str Return CompareGt Call NameLoad BinOpAdd NameLoad NameLoad decorator_list ClassDef bases NameLoad body TryExcept body Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body FunctionDef arguments args NameParam NameParam defaults body Return Num decorator_list orelse FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If BoolOpAnd Call NameLoad NameLoad Str CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assert BoolOpOr CompareIs NameLoad NameLoad Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict TryExcept body For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr TryExcept body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Raise handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Raise decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg body Assign AttributeStore NameLoad attr ListComp Call AttributeLoad NameLoad attr BinOpMod Str NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore Call AttributeLoad NameLoad attr NameLoad GeneratorExp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return ListComp NameLoad comprehension NameStore NameLoad UnaryOpNot Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore NameLoad body If Call NameLoad NameLoad NameLoad body If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad orelse Raise Call AttributeLoad NameLoad attr BinOpMod Str NameLoad AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryExcept body Expr Call NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Pass orelse Raise Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr If BoolOpAnd CompareIsNot NameLoad NameLoad CompareNotEq Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assert UnaryOpNot Call NameLoad NameLoad NameLoad If BoolOpAnd UnaryOpNot NameLoad CompareNotIn AttributeLoad NameLoad attr NameLoad body Return NameLoad For NameStore NameLoad body If CompareNotIn AttributeLoad NameLoad attr NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assert UnaryOpNot Call NameLoad NameLoad NameLoad If BoolOpAnd UnaryOpNot NameLoad CompareIn AttributeLoad NameLoad attr NameLoad body Return NameLoad For NameStore NameLoad body If CompareIn AttributeLoad NameLoad attr NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad GeneratorExp NameLoad comprehension NameStore NameLoad If UnaryOpNot NameLoad body Return AttributeLoad NameLoad attr orelse If CompareGt Call NameLoad NameLoad Num body Return AttributeLoad NameLoad attr orelse Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad GeneratorExp AttributeLoad NameLoad attr comprehension NameStore NameLoad decorator_list
N/A N/A Ganeti utility module.

This module holds functions that can be used in both daemons (all) and
the command line scripts.

 N/A os N/A re N/A errno N/A pwd N/A time N/A itertools N/A select N/A logging N/A signal ganeti errors ganeti constants ganeti compat ganeti pathutils ganeti.utils.algo * ganeti.utils.filelock * ganeti.utils.hash * ganeti.utils.io * ganeti.utils.livelock * ganeti.utils.log * ganeti.utils.lvm * ganeti.utils.mlock * ganeti.utils.nodesetup * ganeti.utils.process * ganeti.utils.retry * ganeti.utils.security * ganeti.utils.storage * ganeti.utils.tags * ganeti.utils.text * ganeti.utils.wrapper * ganeti.utils.version * ganeti.utils.x509 * ganeti.utils.bitarrays * N/A _VALID_SERVICE_NAME_RE N/A N/A re compile ^[-_.a-zA-Z0-9]{1,128}$ N/A UUID_RE N/A N/A re compile N/A constants UUID_REGEX ForceDictType N/A N/A target key_types allowed_values N/A None N/A N/A Force the values of a dict to have certain types.

  @type target: dict
  @param target: the dict to update
  @type key_types: dict
  @param key_types: dict mapping target dict keys to types
                    in constants.ENFORCEABLE_TYPES
  @type allowed_values: list
  @keyword allowed_values: list of specially allowed values

   N/A N/A allowed_values None N/A N/A allowed_values N/A N/A N/A N/A isinstance target dict N/A N/A msg N/A Expected dictionary, got '%s' target N/A N/A N/A errors TypeEnforcementError msg N/A key target N/A N/A N/A key key_types N/A N/A msg N/A Unknown parameter '%s' key N/A N/A N/A errors TypeEnforcementError msg N/A N/A N/A target N/A key allowed_values N/A N/A N/A ktype N/A key_types N/A key N/A N/A ktype N/A constants ENFORCEABLE_TYPES N/A N/A msg N/A '%s' has non-enforceable type %s N/A key ktype N/A N/A N/A errors ProgrammerError msg N/A N/A ktype N/A N/A constants VTYPE_STRING N/A constants VTYPE_MAYBE_STRING N/A N/A N/A N/A N/A target N/A key None N/A ktype N/A constants VTYPE_MAYBE_STRING N/A N/A N/A N/A N/A N/A isinstance N/A target N/A key basestring N/A N/A N/A N/A isinstance N/A target N/A key bool N/A N/A target N/A key N/A N/A N/A target N/A key N/A N/A msg N/A '%s' (value %s) is not a valid string N/A key N/A target N/A key N/A N/A N/A errors TypeEnforcementError msg N/A N/A N/A ktype N/A constants VTYPE_BOOL N/A N/A N/A N/A isinstance N/A target N/A key basestring N/A target N/A key N/A N/A N/A N/A N/A N/A target N/A key lower N/A constants VALUE_FALSE N/A N/A N/A target N/A key False N/A N/A N/A N/A N/A N/A target N/A key lower N/A constants VALUE_TRUE N/A N/A N/A target N/A key True N/A N/A msg N/A '%s' (value %s) is not a valid boolean N/A key N/A target N/A key N/A N/A N/A errors TypeEnforcementError msg N/A N/A N/A target N/A key N/A N/A N/A target N/A key True N/A N/A N/A target N/A key False N/A N/A N/A ktype N/A constants VTYPE_SIZE N/A N/A N/A N/A N/A target N/A key N/A ParseUnit N/A target N/A key N/A N/A N/A N/A errors UnitParseError N/A err N/A N/A msg N/A '%s' (value %s) is not a valid size. error: %s N/A key N/A target N/A key err N/A N/A N/A errors TypeEnforcementError msg N/A N/A N/A ktype N/A constants VTYPE_INT N/A N/A N/A N/A N/A target N/A key N/A int N/A target N/A key N/A N/A N/A N/A ValueError TypeError N/A N/A msg N/A '%s' (value %s) is not a valid integer N/A key N/A target N/A key N/A N/A N/A errors TypeEnforcementError msg N/A N/A N/A ktype N/A constants VTYPE_FLOAT N/A N/A N/A N/A N/A target N/A key N/A float N/A target N/A key N/A N/A N/A N/A ValueError TypeError N/A N/A msg N/A '%s' (value %s) is not a valid float N/A key N/A target N/A key N/A N/A N/A errors TypeEnforcementError msg N/A ValidateServiceName N/A N/A name N/A N/A N/A Validate the given service name.

  @type name: number or string
  @param name: Service name or port specification

   N/A N/A N/A numport N/A int name N/A N/A N/A N/A ValueError TypeError N/A N/A valid N/A N/A _VALID_SERVICE_NAME_RE match name N/A N/A valid N/A N/A numport 0 N/A numport N/A 1 16 N/A N/A valid N/A N/A N/A N/A errors OpPrereqError N/A Invalid service name '%s' name N/A errors ECODE_INVAL N/A name N/A _ComputeMissingKeys N/A N/A key_path options defaults N/A N/A N/A Helper functions to compute which keys a invalid.

  @param key_path: The current key path (if any)
  @param options: The user provided options
  @param defaults: The default dictionary
  @return: A list of invalid keys

   N/A defaults_keys N/A frozenset N/A N/A defaults keys N/A invalid N/A N/A N/A key value N/A N/A options items N/A N/A key_path N/A N/A new_path N/A %s/%s N/A key_path key N/A N/A new_path key N/A N/A key defaults_keys N/A N/A N/A N/A invalid append new_path N/A N/A N/A isinstance value dict N/A N/A N/A N/A invalid extend N/A _ComputeMissingKeys new_path value N/A defaults N/A key N/A invalid N/A VerifyDictOptions N/A N/A options defaults N/A N/A N/A Verify a dict has only keys set which also are in the defaults dict.

  @param options: The user provided options
  @param defaults: The default dictionary
  @raise error.OpPrereqError: If one of the keys is not supported

   N/A invalid N/A _ComputeMissingKeys options defaults N/A invalid N/A N/A N/A N/A errors OpPrereqError N/A Provided option keys not supported: %s N/A CommaJoin invalid N/A errors ECODE_INVAL N/A ListVolumeGroups N/A N/A N/A N/A N/A List volume groups and their size

  @rtype: dict
  @return:
       Dictionary with keys volume name and values
       the size of the volume

   N/A command vgs --noheadings --units m --nosuffix -o name,size N/A result N/A RunCmd command N/A retval N/A N/A N/A result failed N/A N/A retval N/A line N/A N/A N/A result stdout splitlines N/A N/A N/A N/A N/A name size N/A N/A line split N/A size N/A int N/A float size N/A N/A N/A N/A IndexError ValueError N/A err N/A N/A N/A N/A logging error Invalid output from vgs (%s): %s err line N/A N/A N/A retval N/A name size N/A retval N/A BridgeExists N/A N/A bridge N/A N/A N/A Check whether the given bridge exists in the system

  @type bridge: str
  @param bridge: the bridge name to check
  @rtype: boolean
  @return: True if it does

   N/A N/A N/A N/A os path isdir N/A /sys/class/net/%s/bridge bridge N/A TryConvert N/A N/A fn val N/A N/A N/A Try to convert a value ignoring errors.

  This function tries to apply function I{fn} to I{val}. If no
  C{ValueError} or C{TypeError} exceptions are raised, it will return
  the result, else it will return the original value. Any other
  exceptions are propagated to the caller.

  @type fn: callable
  @param fn: function to apply to the value
  @param val: the value to be converted
  @return: The converted value if the conversion was successful,
      otherwise the original value.

   N/A N/A N/A nv N/A fn val N/A N/A N/A N/A ValueError TypeError N/A N/A nv val N/A nv N/A ParseCpuMask N/A N/A cpu_mask N/A N/A N/A Parse a CPU mask definition and return the list of CPU IDs.

  CPU mask format: comma-separated list of CPU IDs
  or dash-separated ID ranges
  Example: "0-2,5" -> "0,1,2,5"

  @type cpu_mask: str
  @param cpu_mask: CPU mask definition
  @rtype: list of int
  @return: list of CPU IDs

   N/A N/A cpu_mask N/A N/A N/A N/A cpu_list N/A N/A range_def N/A N/A cpu_mask split , N/A N/A N/A range_def N/A constants CPU_PINNING_ALL N/A N/A N/A N/A constants CPU_PINNING_ALL_VAL N/A boundaries N/A N/A range_def split - N/A n_elements N/A len boundaries N/A N/A n_elements 2 N/A N/A N/A N/A errors ParseError N/A Invalid CPU ID range definition (only one hyphen allowed): %s range_def N/A N/A N/A lower N/A int N/A boundaries N/A 0 N/A N/A N/A N/A ValueError TypeError N/A err N/A N/A N/A N/A errors ParseError N/A Invalid CPU ID value for lower boundary of CPU ID range: %s N/A str err N/A N/A N/A higher N/A int N/A boundaries N/A -1 N/A N/A N/A N/A ValueError TypeError N/A err N/A N/A N/A N/A errors ParseError N/A Invalid CPU ID value for higher boundary of CPU ID range: %s N/A str err N/A N/A lower higher N/A N/A N/A N/A errors ParseError N/A Invalid CPU ID range definition (%d > %d): %s N/A lower higher range_def N/A N/A N/A cpu_list extend N/A range lower N/A higher 1 N/A cpu_list N/A ParseMultiCpuMask N/A N/A cpu_mask N/A N/A N/A Parse a multiple CPU mask definition and return the list of CPU IDs.

  CPU mask format: colon-separated list of comma-separated list of CPU IDs
  or dash-separated ID ranges, with optional "all" as CPU value
  Example: "0-2,5:all:1,5,6:2" -> [ [ 0,1,2,5 ], [ -1 ], [ 1, 5, 6 ], [ 2 ] ]

  @type cpu_mask: str
  @param cpu_mask: multiple CPU mask definition
  @rtype: list of lists of int
  @return: list of lists of CPU IDs

   N/A N/A cpu_mask N/A N/A N/A N/A cpu_list N/A N/A range_def N/A N/A cpu_mask split N/A constants CPU_PINNING_SEP N/A N/A N/A N/A cpu_list append N/A sorted N/A set N/A ParseCpuMask range_def N/A cpu_list N/A GetHomeDir N/A N/A user default N/A None N/A N/A Try to get the homedir of the given user.

  The user can be passed either as a string (denoting the name) or as
  an integer (denoting the user id). If the user is not found, the
  C{default} argument is returned, which defaults to C{None}.

   N/A N/A N/A N/A isinstance user basestring N/A N/A result N/A N/A pwd getpwnam user N/A N/A N/A isinstance user N/A int long N/A N/A result N/A N/A pwd getpwuid user N/A N/A N/A N/A errors ProgrammerError N/A Invalid type passed to GetHomeDir (%s) N/A type user N/A N/A N/A KeyError N/A N/A default N/A N/A result pw_dir N/A FirstFree N/A N/A seq base N/A 0 N/A N/A Returns the first non-existing integer from seq.

  The seq argument should be a sorted list of positive integers. The
  first time the index of an element is smaller than the element
  value, the index will be returned.

  The base argument is used to start at a different offset,
  i.e. C{[3, 4, 6]} with I{offset=3} will return 5.

  Example: C{[0, 1, 3]} will return I{2}.

  @type seq: sequence
  @param seq: the sequence to be analyzed.
  @type base: int
  @param base: use this value as the base index of the sequence
  @rtype: int
  @return: the first non-used index in the sequence

   N/A N/A idx elem N/A enumerate seq N/A N/A N/A elem base Passed element is higher than base offset N/A N/A elem N/A idx base N/A N/A N/A idx base N/A None N/A SingleWaitForFdCondition N/A N/A fdobj event timeout N/A N/A N/A Waits for a condition to occur on the socket.

  Immediately returns at the first interruption.

  @type fdobj: integer or object supporting a fileno() method
  @param fdobj: entity to wait for events on
  @type event: integer
  @param event: ORed condition (see select module)
  @type timeout: float or None
  @param timeout: Timeout in seconds
  @rtype: int or None
  @return: None for timeout, otherwise occured conditions

   N/A check N/A N/A N/A N/A event N/A select POLLPRI N/A select POLLNVAL N/A select POLLHUP N/A select POLLERR N/A N/A timeout None N/A N/A timeout 1000 N/A poller N/A N/A select poll N/A N/A N/A poller register fdobj event N/A N/A N/A io_events N/A N/A poller poll timeout N/A N/A N/A N/A select error N/A err N/A N/A N/A N/A err N/A 0 N/A errno EINTR N/A N/A N/A io_events N/A N/A N/A io_events N/A N/A N/A io_events N/A 0 N/A 1 check N/A N/A N/A N/A io_events N/A 0 N/A 1 N/A N/A None N/A FdConditionWaiterHelper N/A object N/A N/A Retry helper for WaitForFdCondition.

  This class contains the retried and wait functions that make sure
  WaitForFdCondition can continue waiting until the timeout is actually
  expired.

   __init__ N/A N/A self timeout N/A N/A N/A N/A self timeout timeout N/A Poll N/A N/A self fdobj event N/A N/A N/A result N/A SingleWaitForFdCondition fdobj event N/A self timeout N/A N/A result None N/A N/A N/A RetryAgain N/A N/A result N/A UpdateTimeout N/A N/A self timeout N/A N/A N/A N/A self timeout timeout N/A N/A WaitForFdCondition N/A N/A fdobj event timeout N/A N/A N/A Waits for a condition to occur on the socket.

  Retries until the timeout is expired, even if interrupted.

  @type fdobj: integer or object supporting a fileno() method
  @param fdobj: entity to wait for events on
  @type event: integer
  @param event: ORed condition (see select module)
  @type timeout: float or None
  @param timeout: Timeout in seconds
  @rtype: int or None
  @return: None for timeout, otherwise occured conditions

   N/A N/A timeout None N/A N/A retrywaiter N/A FdConditionWaiterHelper timeout N/A N/A N/A result N/A Retry N/A retrywaiter Poll RETRY_REMAINING_TIME timeout args N/A fdobj event wait_fn N/A retrywaiter UpdateTimeout N/A N/A N/A RetryTimeout N/A N/A result None N/A N/A result None N/A N/A result None N/A N/A result N/A SingleWaitForFdCondition fdobj event timeout N/A result N/A EnsureDaemon N/A N/A name N/A N/A N/A Check for and start daemon if not alive.

  @type name: string
  @param name: daemon name

  @rtype: bool
  @return: 'True' if daemon successfully started,
           'False' otherwise

   N/A result N/A RunCmd N/A N/A pathutils DAEMON_UTIL check-and-start name N/A N/A result failed N/A N/A N/A N/A logging error Can't start daemon '%s', failure %s, output: %s name N/A result fail_reason N/A result output N/A False N/A True N/A StopDaemon N/A N/A name N/A N/A N/A Stop daemon

  @type name: string
  @param name: daemon name

  @rtype: bool
  @return: 'True' if daemon successfully stopped,
           'False' otherwise

   N/A result N/A RunCmd N/A N/A pathutils DAEMON_UTIL stop name N/A N/A result failed N/A N/A N/A N/A logging error Can't stop daemon '%s', failure %s, output: %s name N/A result fail_reason N/A result output N/A False N/A True N/A SplitTime N/A N/A value N/A N/A N/A Splits time as floating point number into a tuple.

  @param value: Time in seconds
  @type value: int or float
  @return: Tuple containing (seconds, microseconds)

   N/A N/A seconds microseconds N/A divmod N/A int N/A value 1000000 1000000 N/A N/A 0 seconds N/A Seconds must be larger than or equal to 0, but are %s seconds N/A N/A 0 microseconds 999999 N/A Microseconds must be 0-999999, but are %s microseconds N/A N/A N/A int seconds N/A int microseconds N/A MergeTime N/A N/A timetuple N/A N/A N/A Merges a tuple into time as a floating point number.

  @param timetuple: Time as tuple, (seconds, microseconds)
  @type timetuple: tuple
  @return: Time as a floating point number expressed in seconds

   N/A N/A seconds microseconds timetuple N/A N/A 0 seconds N/A Seconds must be larger than or equal to 0, but are %s seconds N/A N/A 0 microseconds 999999 N/A Microseconds must be 0-999999, but are %s microseconds N/A N/A N/A float seconds N/A N/A float microseconds 1e-06 N/A EpochNano N/A N/A N/A N/A N/A Return the current timestamp expressed as number of nanoseconds since the
  unix epoch

  @return: nanoseconds since the Unix epoch

   N/A N/A int N/A N/A N/A time time 1000000000 N/A FindMatch N/A N/A data name N/A N/A N/A Tries to find an item in a dictionary matching a name.

  Callers have to ensure the data names aren't contradictory (e.g. a regexp
  that matches a string). If the name isn't a direct key, all regular
  expression objects in the dictionary are matched against it.

  @type data: dict
  @param data: Dictionary containing data
  @type name: string
  @param name: Name to look for
  @rtype: tuple; (value in dictionary, matched groups as list)

   N/A N/A name data N/A N/A N/A N/A data N/A name N/A N/A N/A key value N/A N/A data items N/A N/A N/A hasattr key match N/A N/A m N/A N/A key match name N/A m N/A N/A N/A value N/A list N/A N/A m groups N/A None N/A GetMounts N/A N/A filename N/A N/A constants PROC_MOUNTS N/A N/A Returns the list of mounted filesystems.

  This function is Linux-specific.

  @param filename: path of mounts file (/proc/mounts by default)
  @rtype: list of tuples
  @return: list of mount entries (device, mountpoint, fstype, options)

   N/A data N/A N/A mountlines N/A N/A N/A ReadFile filename splitlines N/A line mountlines N/A N/A N/A device mountpoint fstype options _ N/A N/A line split None 4 N/A N/A N/A data append N/A device mountpoint fstype options N/A data N/A SignalHandled N/A N/A signums N/A N/A N/A Signal Handled decoration.

  This special decorator installs a signal handler and then calls the target
  function. The function must accept a 'signal_handlers' keyword argument,
  which will contain a dict indexed by signal number, with SignalHandler
  objects as values.

  The decorator can be safely stacked with iself, to handle multiple signals
  with different handlers.

  @type signums: list
  @param signums: signals to intercept

   wrap N/A N/A fn N/A N/A sig_function N/A N/A N/A args kwargs N/A N/A N/A N/A signal_handlers kwargs N/A N/A kwargs N/A signal_handlers None N/A isinstance N/A kwargs N/A signal_handlers dict Wrong signal_handlers parameter in original function call N/A N/A N/A signal_handlers kwargs N/A N/A kwargs N/A signal_handlers None N/A N/A signal_handlers N/A kwargs N/A signal_handlers N/A N/A signal_handlers N/A N/A N/A kwargs N/A signal_handlers signal_handlers N/A sighandler N/A SignalHandler signums N/A N/A N/A sig signums N/A N/A N/A signal_handlers N/A sig sighandler N/A N/A fn args kwargs N/A N/A N/A N/A sighandler Reset N/A N/A sig_function N/A N/A wrap N/A TimeoutExpired N/A N/A epoch timeout _time_fn N/A N/A time time N/A N/A Checks whether a timeout has expired.

   N/A N/A N/A _time_fn N/A epoch timeout N/A SignalWakeupFd N/A object N/A N/A N/A N/A _set_wakeup_fd_fn N/A signal set_wakeup_fd N/A N/A N/A AttributeError N/A _SetWakeupFd N/A N/A self _ N/A N/A N/A -1 N/A N/A _SetWakeupFd N/A N/A self fd N/A N/A N/A N/A N/A self _set_wakeup_fd_fn fd N/A __init__ N/A N/A self N/A N/A N/A Initializes this class.

     N/A N/A read_fd write_fd N/A N/A os pipe N/A N/A self _read_fh N/A N/A os fdopen read_fd r 0 N/A N/A self _write_fh N/A N/A os fdopen write_fd w 0 N/A N/A self _previous N/A N/A self _SetWakeupFd N/A N/A N/A self _write_fh fileno N/A N/A self fileno N/A N/A self _read_fh fileno N/A N/A self read N/A N/A self _read_fh read N/A Reset N/A N/A self N/A N/A N/A Restores the previous wakeup file descriptor.

     N/A N/A N/A hasattr self _previous N/A N/A self _previous None N/A N/A N/A N/A self _SetWakeupFd N/A self _previous N/A N/A self _previous None N/A Notify N/A N/A self N/A N/A N/A Notifies the wakeup file descriptor.

     N/A N/A N/A N/A self _write_fh write N/A chr 0 N/A __del__ N/A N/A self N/A N/A N/A Called before object deletion.

     N/A N/A N/A self Reset N/A N/A SignalHandler N/A object N/A N/A Generic signal handler class.

  It automatically restores the original handler when deconstructed or
  when L{Reset} is called. You can either pass your own handler
  function in or query the L{called} attribute to detect whether the
  signal was sent.

  @type signum: list
  @ivar signum: the signals we handle
  @type called: boolean
  @ivar called: tracks whether any of the signals have been raised

   __init__ N/A N/A self signum handler_fn wakeup N/A None None N/A N/A Constructs a new SignalHandler instance.

    @type signum: int or list of ints
    @param signum: Single signal number or set of signal numbers
    @type handler_fn: callable
    @param handler_fn: Signal handling function

     N/A N/A N/A handler_fn None N/A callable handler_fn N/A N/A self signum N/A set signum N/A N/A self called False N/A N/A self _handler_fn handler_fn N/A N/A self _wakeup wakeup N/A N/A self _previous N/A N/A N/A N/A signum N/A self signum N/A N/A prev_handler N/A N/A signal signal signum N/A self _HandleSignal N/A N/A N/A N/A N/A self _previous N/A signum prev_handler N/A N/A N/A N/A N/A N/A signal signal signum prev_handler N/A N/A N/A N/A N/A N/A N/A self Reset N/A N/A __del__ N/A N/A self N/A N/A N/A N/A N/A self Reset N/A Reset N/A N/A self N/A N/A N/A Restore previous handler.

    This will reset all the signals to their previous handlers.

     N/A N/A signum prev_handler N/A N/A N/A self _previous items N/A N/A N/A N/A signal signal signum prev_handler N/A N/A N/A self _previous N/A signum N/A Clear N/A N/A self N/A N/A N/A Unsets the L{called} flag.

    This function can be used in case a signal may arrive several times.

     N/A N/A self called False N/A _HandleSignal N/A N/A self signum frame N/A N/A N/A Actual signal handling function.

     N/A N/A self called True N/A N/A self _wakeup N/A N/A N/A N/A N/A self _wakeup Notify N/A N/A self _handler_fn N/A N/A N/A N/A self _handler_fn signum frame N/A N/A FieldSet N/A object N/A N/A A simple field set.

  Among the features are:
    - checking if a string is among a list of static string or regex objects
    - checking if a whole list of string matches
    - returning the matching groups from a regex match

  Internally, all fields are held as regular expression objects.

   __init__ N/A N/A self N/A items N/A N/A N/A self items N/A N/A N/A re compile N/A ^%s$ value N/A value items N/A Extend N/A N/A self other_set N/A N/A N/A Extend the field set with the items from another one N/A N/A N/A N/A self items extend N/A other_set items N/A Matches N/A N/A self field N/A N/A N/A Checks if a field matches the current set

    @type field: str
    @param field: the string to match
    @return: either None or a regular expression match object

     N/A m N/A N/A itertools ifilter None N/A N/A N/A val match field N/A val N/A self items N/A N/A m N/A None N/A NonMatching N/A N/A self items N/A N/A N/A Returns the list of fields not matching the current set

    @type items: list
    @param items: the list of fields to check
    @rtype: list
    @return: list of non-matching fields

     N/A N/A val N/A val items N/A N/A N/A self Matches val N/A N/A ValidateDeviceNames N/A N/A kind container N/A N/A N/A Validate instance device names.

  Check that a device container contains only unique and valid names.

  @type kind: string
  @param kind: One-word item description
  @type container: list
  @param container: Container containing the devices

   N/A valid N/A N/A device container N/A N/A N/A isinstance device dict N/A N/A N/A kind NIC N/A N/A name N/A N/A device get N/A constants INIC_NAME None N/A N/A N/A kind disk N/A N/A name N/A N/A device get N/A constants IDISK_NAME None N/A N/A N/A N/A errors OpPrereqError N/A Invalid container kind '%s' kind N/A errors ECODE_INVAL N/A N/A name N/A device name N/A N/A N/A valid append N/A device uuid N/A N/A N/A N/A int name N/A N/A N/A N/A ValueError TypeError N/A N/A N/A N/A N/A N/A errors OpPrereqError N/A Invalid name '%s'. Purely numeric %s names are not allowed N/A name kind N/A errors ECODE_INVAL N/A N/A N/A name None N/A N/A N/A name lower N/A constants VALUE_NONE N/A N/A N/A name valid N/A N/A N/A N/A errors OpPrereqError N/A %s name '%s' already used N/A kind name N/A errors ECODE_NOTUNIQUE N/A N/A N/A N/A valid append name N/A AllDiskOfType N/A N/A disks_info dev_types N/A N/A N/A Checks if the instance has only disks of any of the dev_types.

  @type disks_info: list of L{Disk}
  @param disks_info: all the disks of the instance.
  @type dev_types: list of disk templates
  @param dev_types: the disk type required.

  @rtype: bool
  @return: True iff the instance only has disks of type dev_type.
   N/A N/A N/A isinstance dev_types str N/A N/A N/A disks_info N/A N/A constants DT_DISKLESS dev_types N/A N/A False N/A disk disks_info N/A N/A N/A N/A disk dev_type dev_types N/A N/A False N/A True N/A AnyDiskOfType N/A N/A disks_info dev_types N/A N/A N/A Checks if the instance has some disks of any types in dev_types.

  @type disks_info: list of L{Disk}
  @param disks_info: all the disks of the instance.
  @type dev_types: list of disk template
  @param dev_types: the disk type required.

  @rtype: bool
  @return: True if the instance has disks of type dev_types or the instance has
    no disks and the dev_types allow DT_DISKLESS.
   N/A N/A N/A isinstance dev_types str N/A N/A N/A disks_info N/A N/A constants DT_DISKLESS dev_types N/A N/A True N/A disk disks_info N/A N/A N/A N/A disk dev_type dev_types N/A N/A True N/A False N/A GetDiskTemplateString N/A N/A disk_types N/A N/A N/A Gives a summary disk template from disk devtypes.

  @type disk_types: list of string
  @param disk_types: all the dev_types of the instance.
  @rtype disk template
  @returns the summarized disk template of the disk types.

   N/A disk_types N/A set N/A dev_type N/A dev_type disk_types N/A N/A disk_types N/A N/A N/A constants DT_DISKLESS N/A N/A N/A N/A len disk_types 1 N/A N/A N/A constants DT_MIXED N/A N/A N/A N/A disk_types pop N/A GetDiskTemplate N/A N/A disks_info N/A N/A N/A Gives a summary disk template from disks.

  @type disks_info: list of L{Disk}
  @param disks_info: all the disks of the instance.
  @rtype disk template
  @returns the summarized disk template of the disk types.

   N/A N/A GetDiskTemplateString N/A N/A d dev_type N/A d disks_info N/A