Revision 0cc9e018
b/lib/watcher/__init__.py | ||
---|---|---|
51 | 51 |
|
52 | 52 |
|
53 | 53 |
MAXTRIES = 5 |
54 |
BAD_STATES = [constants.INSTST_ERRORDOWN] |
|
55 |
HELPLESS_STATES = [constants.INSTST_NODEDOWN, constants.INSTST_NODEOFFLINE] |
|
56 |
NOTICE = 'NOTICE' |
|
57 |
ERROR = 'ERROR' |
|
58 | 54 |
|
59 | 55 |
|
60 | 56 |
# Global LUXI client object |
61 | 57 |
client = None |
58 |
BAD_STATES = frozenset([ |
|
59 |
constants.INSTST_ERRORDOWN, |
|
60 |
]) |
|
61 |
HELPLESS_STATES = frozenset([ |
|
62 |
constants.INSTST_NODEDOWN, |
|
63 |
constants.INSTST_NODEOFFLINE, |
|
64 |
]) |
|
65 |
NOTICE = "NOTICE" |
|
66 |
ERROR = "ERROR" |
|
62 | 67 |
|
63 | 68 |
|
64 | 69 |
class NotMasterError(errors.GenericError): |
Also available in: Unified diff