From: Helga Velroyen Date: Wed, 5 Jun 2013 15:15:49 +0000 (+0200) Subject: Watcher: Use hvparams when listing instances X-Git-Tag: v2.9.0beta1~236 X-Git-Url: https://code.grnet.gr/git/ganeti-local/commitdiff_plain/194f0764aed4f6337c41683c2f24a0fbc05ac293 Watcher: Use hvparams when listing instances This patch makes the watcher use the hvparams from ssconf to retrieve the list of instances from the hypervisors. Signed-off-by: Helga Velroyen Reviewed-by: Thomas Thrainer --- diff --git a/lib/watcher/nodemaint.py b/lib/watcher/nodemaint.py index b9ca7e9..8228a7c 100644 --- a/lib/watcher/nodemaint.py +++ b/lib/watcher/nodemaint.py @@ -64,11 +64,12 @@ class NodeMaintenance(object): """ hyp_list = ssconf.SimpleStore().GetHypervisorList() + hvparams = ssconf.SimpleStore().GetHvparams() results = [] for hv_name in hyp_list: try: hv = hypervisor.GetHypervisor(hv_name) - ilist = hv.ListInstances() + ilist = hv.ListInstances(hvparams=hvparams) results.extend([(iname, hv_name) for iname in ilist]) except: # pylint: disable=W0702 logging.error("Error while listing instances for hypervisor %s",