From: Iustin Pop Date: Mon, 16 Feb 2009 11:08:18 +0000 (+0000) Subject: watcher: fix checking of boot IDs X-Git-Tag: v2.0.0beta2~10 X-Git-Url: https://code.grnet.gr/git/ganeti-local/commitdiff_plain/3448aa2292aa4a21941da6c2c809007d678f9ef0 watcher: fix checking of boot IDs The recent change (commit 2151) to the watcher to make it handle offline nodes also saves the offline attribute to the state file, but this is not needed and also breaks the checking of the boot ID. This patch simply removes it, restoring the correct behaviour. Reviewed-by: imsnah --- diff --git a/daemons/ganeti-watcher b/daemons/ganeti-watcher index 67fe6bb..f12cab5 100755 --- a/daemons/ganeti-watcher +++ b/daemons/ganeti-watcher @@ -340,7 +340,7 @@ class Watcher(object): # Keep changed boot IDs for name in check_nodes: - notepad.SetNodeBootID(name, self.bootids[name]) + notepad.SetNodeBootID(name, self.bootids[name][0]) def CheckInstances(self, notepad): """Make a pass over the list of instances, restarting downed ones.