watcher: fix checking of boot IDs
authorIustin Pop <iustin@google.com>
Mon, 16 Feb 2009 11:08:18 +0000 (11:08 +0000)
committerIustin Pop <iustin@google.com>
Mon, 16 Feb 2009 11:08:18 +0000 (11:08 +0000)
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

daemons/ganeti-watcher

index 67fe6bb..f12cab5 100755 (executable)
@@ -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.