__init__(self,
lu,
instance,
disks,
feedback_fn,
shutdown_timeout=constants.DEFAULT_SHUTDOWN_TIMEOUT)
(Constructor)
| source code
|
Constructor storing arguments until used later.
- Parameters:
lu (ganeti.cmdlib.base.LogicalUnit) - The LU within which this disk is created.
instance (ganeti.objects.Instance) - The instance to which the disk should be added
disks (list of triples (disk template, disk access mode, int)) - disk specification, which is a list of triples containing the
disk template (e.g., constants.DT_PLAIN), the disk access mode
(i.e., constants.DISK_RDONLY or constants.DISK_RDWR), and size in
MiB.
feedback_fn (function) - Function used to log progress
|