Commit b352ab5b authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix a disk handling bug triggered by failover

This leaves an instance's disks configured for the primary node as after
disk activation we want to start the instance anyway. As such,
_GatherBlockDevs in will need the disks configured for the

Reviewed-by: imsnah
parent a2cfdea2
......@@ -1836,6 +1836,12 @@ def _AssembleInstanceDisks(instance, cfg, ignore_secondaries=False):
device_info.append((instance.primary_node, inst_disk.iv_name,
# leave the disks configured for the primary node
# this is a workaround that would be fixed better by
# improving the logical/physical id handling
for disk in instance.disks:
cfg.SetDiskID(disk, instance.primary_node)
return disks_ok, device_info
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