Package ganeti :: Package cmdlib :: Module instance :: Class LUInstanceMultiAlloc
[hide private]
[frames] | no frames]

Class LUInstanceMultiAlloc

source code


Allocates multiple instances at the same time.

Instance Methods [hide private]
 
CheckArguments(self)
Check arguments.
source code
 
ExpandNames(self)
Calculate the locks.
source code
 
DeclareLocks(self, level)
Declare LU locking needs for a level
source code
 
CheckPrereq(self)
Check prerequisite.
source code
 
_ConstructPartialResult(self)
Contructs the partial result.
source code
 
Exec(self, feedback_fn)
Executes the opcode.
source code

Inherited from base.NoHooksLU: BuildHooksEnv, BuildHooksNodes

Inherited from base.LogicalUnit: HooksCallBack, __init__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  REQ_BGL = False

Inherited from base.NoHooksLU: HPATH, HTYPE

Instance Variables [hide private]

Inherited from base.LogicalUnit: dry_run_result

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

CheckArguments(self)

source code 

Check arguments.

Overrides: base.LogicalUnit.CheckArguments

ExpandNames(self)

source code 

Calculate the locks.

Overrides: base.LogicalUnit.ExpandNames

DeclareLocks(self, level)

source code 

Declare LU locking needs for a level

While most LUs can just declare their locking needs at ExpandNames time, sometimes there's the need to calculate some locks after having acquired the ones before. This function is called just before acquiring locks at a particular level, but after acquiring the ones at lower levels, and permits such calculations. It can be used to modify self.needed_locks, and by default it does nothing.

This function is only called if you have something already set in self.needed_locks for the level.

Parameters:
  • level - Locking level which is going to be locked
Overrides: base.LogicalUnit.DeclareLocks
(inherited documentation)

CheckPrereq(self)

source code 

Check prerequisite.

Overrides: base.LogicalUnit.CheckPrereq

Exec(self, feedback_fn)

source code 

Executes the opcode.

Overrides: base.LogicalUnit.Exec