Commit bbf50ea0 authored by Guido Trotter's avatar Guido Trotter
Browse files

grow disk: call SetDiskID before blockdev_getsize



Missing this call caused blockdev_getsize to be called on the wrong
physical device, and fail.

This fixes Issue 497.
Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarMichele Tartara <mtartara@google.com>
parent 91104b80
......@@ -12817,6 +12817,7 @@ class LUInstanceGrowDisk(LogicalUnit):
 
if wipe_disks:
# Get disk size from primary node for wiping
self.cfg.SetDiskID(disk, instance.primary_node)
result = self.rpc.call_blockdev_getsize(instance.primary_node, [disk])
result.Raise("Failed to retrieve disk size from node '%s'" %
instance.primary_node)
......
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