From 4d9e6835a05b0bb59060737b05af87412cf45e13 Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Mon, 10 Aug 2009 13:40:11 +0200 Subject: [PATCH] Fix a bug in LURepairDiskSizes The same old story: disks need SetDiskID before being sent to remote nodes. Signed-off-by: Iustin Pop <iustin@google.com> Reviewed-by: Guido Trotter <ultrotter@google.com> --- lib/cmdlib.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/cmdlib.py b/lib/cmdlib.py index cea239bd0..73c4e5dff 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -1394,7 +1394,10 @@ class LURepairDiskSizes(NoHooksLU): changed = [] for node, dskl in per_node_disks.items(): - result = self.rpc.call_blockdev_getsizes(node, [v[2] for v in dskl]) + newl = [v[2].Copy() for v in dskl] + for dsk in newl: + self.cfg.SetDiskID(dsk, node) + result = self.rpc.call_blockdev_getsizes(node, newl) if result.failed: self.LogWarning("Failure in blockdev_getsizes call to node" " %s, ignoring", node) -- GitLab