Commit 4ecb94d5 authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix potential data-loss bug in disk wipe routines

For the 2.4 release, we only add the missing RPC calls. However, this
needs to be fixed properly, by preventing usage of mis-configured

Also add a bit more logging so that it's directly clear on which node
the wipe is being done.
Signed-off-by: default avatarIustin Pop <>
Reviewed-by: default avatarRené Nussbaumer <>
parent f5182ecb
......@@ -6629,6 +6629,10 @@ def _WipeDisks(lu, instance):
node = instance.primary_node
for device in instance.disks:
lu.cfg.SetDiskID(device, node)"Pause sync of instance %s disks",
result = lu.rpc.call_blockdev_pause_resume_sync(node, instance.disks, True)
......@@ -6640,7 +6644,8 @@ def _WipeDisks(lu, instance):
for idx, device in enumerate(instance.disks):
lu.LogInfo("* Wiping disk %d", idx)"Wiping disk %d for instance %s", idx,"Wiping disk %d for instance %s, node %s",
idx,, node)
# The wipe size is MIN_WIPE_CHUNK_PERCENT % of the instance disk but
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