|
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
tuple
|
|
|
_CheckDown(self,
instance_name)
Raises an error unless the given instance is down. |
source code
|
|
|
|
tuple of strings
|
|
|
|
|
_GenerateKVMRuntime(self,
instance,
block_devices)
Generate KVM information to start an instance. |
source code
|
|
|
_WriteKVMRuntime(self,
instance_name,
data)
Write an instance's KVM runtime |
source code
|
|
|
_ReadKVMRuntime(self,
instance_name)
Read an instance's KVM runtime |
source code
|
|
|
_SaveKVMRuntime(self,
instance,
kvm_runtime)
Save an instance's KVM runtime |
source code
|
|
|
_LoadKVMRuntime(self,
instance,
serialized_runtime=None)
Load an instance's KVM runtime |
source code
|
|
|
|
|
|
|
|
|
_CallMonitorCommand(self,
instance_name,
command)
Invoke a command on the instance monitor. |
source code
|
|
|
|
|
|
|
|
string
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|
|
_InstancePidFile(cls,
instance_name)
Returns the instance pidfile. |
source code
|
|
|
_InstanceUidFile(cls,
instance_name)
Returns the instance uidfile. |
source code
|
|
tuple
|
|
|
_InstanceMonitor(cls,
instance_name)
Returns the instance monitor socket name |
source code
|
|
|
_InstanceSerial(cls,
instance_name)
Returns the instance serial socket name |
source code
|
|
|
_InstanceKVMRuntime(cls,
instance_name)
Returns the instance KVM runtime filename |
source code
|
|
|
_InstanceChrootDir(cls,
instance_name)
Returns the name of the KVM chroot dir of the instance |
source code
|
|
|
_InstanceNICDir(cls,
instance_name)
Returns the name of the directory holding the tap device files for a
given instance. |
source code
|
|
|
_InstanceNICFile(cls,
instance_name,
seq)
Returns the name of the file containing the tap device for a given
NIC |
source code
|
|
|
_TryReadUidFile(cls,
uid_file)
Try to read a uid file |
source code
|
|
|
_RemoveInstanceRuntimeFiles(cls,
pidfile,
instance_name)
Removes an instance's rutime sockets/files/dirs. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from hv_base.BaseHypervisor :
GetAncillaryFiles ,
LinuxPowercycle
|
boolean
|
CAN_MIGRATE = True
whether this hypervisor can do migration (either live or non-live)
|
|
_ROOT_DIR = constants.RUN_GANETI_DIR+ "/kvm-hypervisor"
|
|
_PIDS_DIR = _ROOT_DIR+ "/pid"
|
|
_UIDS_DIR = _ROOT_DIR+ "/uid"
|
|
_CTRL_DIR = _ROOT_DIR+ "/ctrl"
|
|
_CONF_DIR = _ROOT_DIR+ "/conf"
|
|
_NICS_DIR = _ROOT_DIR+ "/nic"
|
|
_CHROOT_DIR = _ROOT_DIR+ "/chroot"
|
|
_CHROOT_QUARANTINE_DIR = _ROOT_DIR+ "/chroot-quarantine"
|
|
_DIRS = [_ROOT_DIR, _PIDS_DIR, _UIDS_DIR, _CTRL_DIR, _CONF_DIR...
|
|
PARAMETERS = {constants.HV_KERNEL_PATH: hv_base.OPT_FILE_CHECK...
a dict of parameter name: check type; the check type is a five-tuple
containing:
|
|
_MIGRATION_STATUS_RE = re.compile('Migration\s+status:\s+(\w+)...
|
|
_MIGRATION_INFO_MAX_BAD_ANSWERS = 5
|
|
_MIGRATION_INFO_RETRY_DELAY = 2
|
|
_VERSION_RE = re.compile(r"\b(\d+)\.(\d+)\.(\d+)\b")
|
|
ANCILLARY_FILES = [_KVM_NETWORK_SCRIPT,]
|