Commit 998c712c authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix LUExportInstance

Due to deficiencies in our block device implementation, it is a must to
call SetDiskID on disks before passing them to remote nodes. Since in
export/import, we don't touch the disks themselves, this was not needed
before in this function.

However, since having instance symlinks, the correct ID is needed here
too, and with static minors it's a "must need". This reflects into
failed instance starts after migration and/or failover.

Reviewed-by: ultrotter
parent aa089b65
......@@ -5886,6 +5886,11 @@ class LUExportInstance(LogicalUnit):
snap_disks = []
# set the disks ID correctly since call_instance_start needs the
# correct drbd minor to create the symlinks
for disk in instance.disks:
self.cfg.SetDiskID(disk, src_node)
for disk in instance.disks:
# new_dev_name will be a snapshot of an lvm leaf of the one we passed
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment