Watcher: do not activate disks for started instances
authorIustin Pop <iustin@google.com>
Tue, 13 May 2008 09:38:52 +0000 (09:38 +0000)
committerIustin Pop <iustin@google.com>
Tue, 13 May 2008 09:38:52 +0000 (09:38 +0000)
commitf5ccf5ceaab200cca48385f42bb654f4ecc031b1
tree1545dfeeba5ab1022e5d9f480d3540b1bbcdef72
parenta37c60468095e9e3418be65bee84158116fda0a1
Watcher: do not activate disks for started instances

Currently the watcher runs first the instance startup and then the
boot-id method of disk reactivation. However, irrelevant of the fact
that a node has rebooted or not, if we just started an instance, there's
no need for its disks to be activated again, since the start instance
has done that (if it is at all possible).

The patch modifies the watcher to remember all started instances and not
run activate-disks for them.

Reviewed-by: ultrotter
daemons/ganeti-watcher