Hello team, This patch series implements the generic method for the disk template conversion mechanism along with any auxiliary modifications required.
The conversion mechanism is not functional yet, since this method is not accessible from the LUInstanceSetParams LU. The next patch series that will implement the necessary checks for the disk template conversion feature will expose this method to the Logical Unit, and subsequently provide support for converting the disk template of an instance. Thanks, Dimitris --- Dimitris Bliablias (8): Fix disk size computation in ComputeDiskSizePerVG Introduce the 'ComputeDisksInfo' method Apply 'ComputeDisksInfo' to LVM-based conversions Adapt 'CreateDisks' for disk template conversions Add 'disk_template' parameter to 'CreateDisks' Add two new parameters to 'RemoveDisks' Lift 'blockdev_remove' from LVM-based conversions Introduce the '_ConvertInstanceTemplate' method lib/cmdlib/instance.py | 190 ++++++++++++++++++++++++++++++++++------ lib/cmdlib/instance_storage.py | 115 +++++++++++++++++++----- lib/cmdlib/instance_utils.py | 33 +++++-- 3 files changed, 277 insertions(+), 61 deletions(-) --- 1.7.10.4
