From 26b6af5ead796bde7516e0d425ad8dc39a921723 Mon Sep 17 00:00:00 2001 From: Guido Trotter <ultrotter@google.com> Date: Thu, 10 Apr 2008 17:03:54 +0000 Subject: [PATCH] Verify: save instance config Save the instance config after we queried it in an instance_cfg dict. This can be used later by any function that wants it, without reloading it from the configuration module. It will be used for N+1 memory resilience checking. Reviewed-by: iustinp --- lib/cmdlib.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/cmdlib.py b/lib/cmdlib.py index f43a11019..674e41341 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -769,6 +769,7 @@ class LUVerifyCluster(NoHooksLU): node_volume = {} node_instance = {} node_info = {} + instance_cfg = {} # FIXME: verify OS list # do local checksums @@ -858,6 +859,8 @@ class LUVerifyCluster(NoHooksLU): inst_config.MapLVsByNode(node_vol_should) + instance_cfg[instance] = inst_config + pnode = inst_config.primary_node if pnode in node_info: node_info[pnode]['pinst'].append(instance) -- GitLab