Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults body Expr Str If CompareNotEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Return Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareEq NameLoad AttributeLoad NameLoad attr body For NameStore Call NameLoad Call NameLoad NameLoad body Expr Call NameLoad NameLoad BinOpMod Str TupleLoad NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad BinOpAdd Str NameLoad NameLoad AttributeLoad NameLoad attr NameLoad orelse If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore NameLoad Assign NameStore ListLoad NameLoad orelse Assign NameStore NameLoad Assign NameStore ListLoad If Call NameLoad GeneratorExp Call NameLoad NameLoad NameLoad comprehension NameStore NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass If UnaryOpNot Call NameLoad NameLoad NameLoad body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Str attr ListLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr NameLoad decorator_list
N/A N/A Verification helpers for the configuration object. ganeti constants ganeti errors ganeti objects ganeti utils ValidateConfig N/A N/A data N/A N/A N/A Verifies that a configuration dict looks valid.

  This only verifies the version of the configuration.

  @raise errors.ConfigurationError: if the version differs from what
      we expect

   N/A N/A N/A data N/A version N/A constants CONFIG_VERSION N/A N/A N/A N/A errors ConfigVersionMismatch N/A constants CONFIG_VERSION N/A data N/A version N/A VerifyType N/A N/A owner attr value template callback N/A N/A N/A Checks if an attribute has correct form.

  @type owner: str
  @param owner: name of the object containing the attribute
  @type attr: str
  @param attr: name of the attribute
  @type value: dict
  @param value: actual value of the attribute
  @type template: dict
  @param template: expected types of the keys
  @type callback: callable
  @param callback: will be called if there is an error

   N/A N/A N/A N/A N/A utils ForceDictType value template N/A N/A N/A N/A errors GenericError N/A err N/A N/A N/A callback N/A %s has invalid %s: %s N/A owner attr err N/A VerifyNic N/A N/A owner params callback N/A N/A N/A Checks if a NIC has correct form.

  @type owner: str
  @param owner: name of the object containing the attribute
  @type params: dict
  @param params: actual value of the NIC parameters
  @type callback: callable
  @param callback: will be called if there is an error

   N/A N/A N/A N/A N/A N/A objects NIC CheckParameterSyntax params N/A N/A N/A N/A errors ConfigurationError N/A err N/A N/A N/A callback N/A %s has invalid nicparams: %s N/A owner err N/A VerifyIpolicy N/A N/A owner ipolicy iscluster callback N/A N/A N/A Checks if an ipolicy has correct form.

  @type owner: str
  @param owner: name of the object containing the attribute
  @type ipolicy: dict
  @param ipolicy: actual value of the ipolicy parameters
  @type iscluster: bool
  @param iscluster: True iff the owner is the cluster
  @type callback: callable
  @param callback: will be called if there is an error

   N/A N/A N/A N/A N/A N/A objects InstancePolicy CheckParameterSyntax ipolicy iscluster N/A N/A N/A N/A errors ConfigurationError N/A err N/A N/A N/A callback N/A %s has invalid instance policy: %s N/A owner err N/A N/A key value N/A N/A ipolicy items N/A N/A N/A key N/A constants ISPECS_MINMAX N/A N/A k N/A range N/A len value N/A N/A N/A VerifyIspecs owner N/A ipolicy/%s[%s] N/A key k N/A value N/A k callback N/A N/A N/A key N/A constants ISPECS_STD N/A N/A N/A VerifyType owner N/A ipolicy/ key value N/A constants ISPECS_PARAMETER_TYPES callback N/A N/A N/A key N/A constants IPOLICY_PARAMETERS N/A N/A exp_type float N/A convertible_types N/A int N/A N/A exp_type list N/A convertible_types N/A N/A N/A any N/A N/A isinstance value ct N/A ct convertible_types N/A N/A N/A N/A value N/A exp_type value N/A N/A ipolicy N/A key value N/A N/A N/A ValueError N/A N/A N/A N/A N/A isinstance value exp_type N/A N/A N/A callback N/A %s has invalid instance policy: for %s, expecting %s, got %s N/A owner key N/A exp_type __name__ N/A type value N/A VerifyIspecs N/A N/A owner parentkey params callback N/A N/A N/A Checks if an ispec has correct form.

  @type owner: str
  @param owner: name of the object containing the attribute
  @type parentkey: str
  @param parentkey: the root name of the key
  @type params: dict
  @param params: actual value of the ispec parameters
  @type callback: callable
  @param callback: will be called if there is an error

   N/A N/A key value N/A N/A params items N/A N/A fullkey N/A N/A / join N/A parentkey key N/A N/A VerifyType owner fullkey value N/A constants ISPECS_PARAMETER_TYPES callback N/A