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 backend.py will need the disks configured for the
primary.

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,
master_result))
# 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