module documentation

Module keeping state for Ganeti watcher.

Class WatcherState Interface to a state file recording restart attempts.
Function OpenStateFile Opens the state file and acquires a lock on it.
Constant KEY_BOOT_ID Undocumented
Constant KEY_CLEANUP_COUNT Undocumented
Constant KEY_CLEANUP_WHEN Undocumented
Constant KEY_RESTART_COUNT Undocumented
Constant KEY_RESTART_WHEN Undocumented
Constant RETRY_EXPIRATION Undocumented
def OpenStateFile(path):

Opens the state file and acquires a lock on it.

Parameters
path:stringPath to state file
KEY_BOOT_ID: str =

Undocumented

Value
'bootid'
KEY_CLEANUP_COUNT: str =

Undocumented

Value
'cleanup_count'
KEY_CLEANUP_WHEN: str =

Undocumented

Value
'cleanup_when'
KEY_RESTART_COUNT: str =

Undocumented

Value
'restart_count'
KEY_RESTART_WHEN: str =

Undocumented

Value
'restart_when'
RETRY_EXPIRATION =

Undocumented

Value
8*3600