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

Class LURenameInstance

source code


Rename an instance.

Instance Methods [hide private]
 
CheckArguments(self)
Check arguments.
source code
 
BuildHooksEnv(self)
Build hooks env.
source code
 
CheckPrereq(self)
Check prerequisites.
source code
 
Exec(self, feedback_fn)
Reinstall the instance.
source code

Inherited from LogicalUnit: DeclareLocks, ExpandNames, HooksCallBack, __init__

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

Class Variables [hide private]
  HPATH = "instance-rename"
  HTYPE = "INSTANCE"
  _OP_PARAMS = [_PInstanceName, ("new_name", ht.NoDefault, ht.TN...
a list of opcode attributes, their defaults values they should get if not already defined, and types they must match

Inherited from LogicalUnit: REQ_BGL, ssh

Instance Variables [hide private]

Inherited from LogicalUnit: dry_run_result

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

CheckArguments(self)

source code 

Check arguments.

Overrides: LogicalUnit.CheckArguments

BuildHooksEnv(self)

source code 

Build hooks env.

This runs on master, primary and secondary nodes of the instance.

Overrides: LogicalUnit.BuildHooksEnv

CheckPrereq(self)

source code 

Check prerequisites.

This checks that the instance is in the cluster and is not running.

Overrides: LogicalUnit.CheckPrereq

Exec(self, feedback_fn)

source code 

Reinstall the instance.

Overrides: LogicalUnit.Exec

Class Variable Details [hide private]

_OP_PARAMS

a list of opcode attributes, their defaults values they should get if not already defined, and types they must match
Value:
[_PInstanceName, ("new_name", ht.NoDefault, ht.TNonEmptyString), ("ip_\
check", False, ht.TBool), ("name_check", True, ht.TBool),]