This patch corrects the disk_info to disks_info in AcceptInstance, allowing migrations to work again.
Signed-off-by: Hrvoje Ribicic <[email protected]> --- lib/backend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/backend.py b/lib/backend.py index cdc61cf..21fa397 100644 --- a/lib/backend.py +++ b/lib/backend.py @@ -2557,7 +2557,7 @@ def AcceptInstance(instance, info, target): """ # TODO: why is this required only for DTS_EXT_MIRROR? - if utils.AnyDiskOfType(instance.disk_info, constants.DTS_EXT_MIRROR): + if utils.AnyDiskOfType(instance.disks_info, constants.DTS_EXT_MIRROR): # Create the symlinks, as the disks are not active # in any way try: @@ -2569,7 +2569,7 @@ def AcceptInstance(instance, info, target): try: hyper.AcceptInstance(instance, info, target) except errors.HypervisorError, err: - if utils.AnyDiskOfType(instance.disk_info, constants.DTS_EXT_MIRROR): + if utils.AnyDiskOfType(instance.disks_info, constants.DTS_EXT_MIRROR): _RemoveBlockDevLinks(instance.name, instance.disks_info) _Fail("Failed to accept instance: %s", err, exc=True) -- 1.7.10.4
