Logo Search packages:      
Sourcecode: ganeti version File versions  Download package

def lib::cmdlib::LogicalUnit::CheckPrereq (   self  )  [inherited]

Check prerequisites for this LU.

This method should check that the prerequisites for the execution
of this LU are fulfilled. It can do internode communication, but
it should be idempotent - no cluster or system changes are
allowed.

The method should raise errors.OpPrereqError in case something is
not fulfilled. Its return value is ignored.

This method should also update all the parameters of the opcode to
their canonical form; e.g. a short node name must be fully
expanded after this method has successfully completed (so that
hooks, logging, etc. work correctly).

Reimplemented in lib::cmdlib::LUInitCluster, lib::cmdlib::LUDestroyCluster, lib::cmdlib::LUVerifyCluster, lib::cmdlib::LURenameCluster, lib::cmdlib::LUDiagnoseOS, lib::cmdlib::LURemoveNode, lib::cmdlib::LUQueryNodes, lib::cmdlib::LUQueryNodeVolumes, lib::cmdlib::LUAddNode, lib::cmdlib::LUMasterFailover, lib::cmdlib::LUQueryClusterInfo, lib::cmdlib::LUClusterCopyFile, lib::cmdlib::LUDumpClusterConfig, lib::cmdlib::LURunClusterCommand, lib::cmdlib::LUActivateInstanceDisks, lib::cmdlib::LUDeactivateInstanceDisks, lib::cmdlib::LUStartupInstance, lib::cmdlib::LURebootInstance, lib::cmdlib::LUShutdownInstance, lib::cmdlib::LUReinstallInstance, lib::cmdlib::LURenameInstance, lib::cmdlib::LURemoveInstance, lib::cmdlib::LUQueryInstances, lib::cmdlib::LUFailoverInstance, lib::cmdlib::LUCreateInstance, lib::cmdlib::LUConnectConsole, lib::cmdlib::LUAddMDDRBDComponent, lib::cmdlib::LURemoveMDDRBDComponent, lib::cmdlib::LUReplaceDisks, lib::cmdlib::LUQueryInstanceData, lib::cmdlib::LUSetInstanceParms, lib::cmdlib::LUQueryExports, lib::cmdlib::LUExportInstance, lib::cmdlib::TagsLU, lib::cmdlib::LUSearchTags, lib::cmdlib::LUAddTags, and lib::cmdlib::LUDelTags.

Definition at line 91 of file cmdlib.py.

00091                        :
    """Check prerequisites for this LU.

    This method should check that the prerequisites for the execution
    of this LU are fulfilled. It can do internode communication, but
    it should be idempotent - no cluster or system changes are
    allowed.

    The method should raise errors.OpPrereqError in case something is
    not fulfilled. Its return value is ignored.

    This method should also update all the parameters of the opcode to
    their canonical form; e.g. a short node name must be fully
    expanded after this method has successfully completed (so that
    hooks, logging, etc. work correctly).

    """
    raise NotImplementedError

  def Exec(self, feedback_fn):


Generated by  Doxygen 1.6.0   Back to index