Revision d2f311db daemons/ganeti-watcher
b/daemons/ganeti-watcher | ||
---|---|---|
349 | 349 |
notepad = WatcherState() |
350 | 350 |
self.CheckInstances(notepad) |
351 | 351 |
self.CheckDisks(notepad) |
352 |
self.VerifyDisks() |
|
352 | 353 |
notepad.Save() |
353 | 354 |
|
354 | 355 |
def CheckDisks(self, notepad): |
... | ... | |
417 | 418 |
msg = Message(NOTICE, "Restart of %s succeeded." % instance.name) |
418 | 419 |
self.messages.append(msg) |
419 | 420 |
|
421 |
def VerifyDisks(self): |
|
422 |
"""Run gnt-cluster verify-disks. |
|
423 |
|
|
424 |
""" |
|
425 |
result = DoCmd(['gnt-cluster', 'verify-disks', '--lock-retries=15']) |
|
426 |
if result.output: |
|
427 |
self.messages.append(Message(NOTICE, result.output)) |
|
428 |
|
|
420 | 429 |
def WriteReport(self, logfile): |
421 | 430 |
"""Log all messages to file. |
422 | 431 |
|
Also available in: Unified diff