projects
/
ganeti-local
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a generic write file function
[ganeti-local]
/
lib
/
constants.py
diff --git
a/lib/constants.py
b/lib/constants.py
index
9516d4d
..
8bb1655
100644
(file)
--- a/
lib/constants.py
+++ b/
lib/constants.py
@@
-62,6
+62,7
@@
XEN_INITRD = _autoconf.XEN_INITRD
HOOKS_BASE_DIR = _autoconf.SYSCONFDIR + "/ganeti/hooks"
HOOKS_PHASE_PRE = "pre"
HOOKS_PHASE_POST = "post"
HOOKS_BASE_DIR = _autoconf.SYSCONFDIR + "/ganeti/hooks"
HOOKS_PHASE_PRE = "pre"
HOOKS_PHASE_POST = "post"
+HOOKS_NAME_CFGUPDATE = "config-update"
HOOKS_VERSION = 1
# hooks subject type (what object type does the LU deal with)
HOOKS_VERSION = 1
# hooks subject type (what object type does the LU deal with)
@@
-91,8
+92,10
@@
INISECT_EXP = "export"
INISECT_INS = "instance"
# common exit codes
INISECT_INS = "instance"
# common exit codes
+EXIT_SUCCESS = 0
EXIT_NOTMASTER = 11
EXIT_NODESETUP_ERROR = 12
EXIT_NOTMASTER = 11
EXIT_NODESETUP_ERROR = 12
+EXIT_CONFIRMATION = 13 # need user confirmation
# tags
TAG_CLUSTER = "cluster"
# tags
TAG_CLUSTER = "cluster"
@@
-104,3
+107,5
@@
MAX_TAGS_PER_OBJ = 4096
# others
DEFAULT_BRIDGE = "xen-br0"
SYNC_SPEED = 30 * 1024
# others
DEFAULT_BRIDGE = "xen-br0"
SYNC_SPEED = 30 * 1024
+LOCALHOST_IP_ADDRESS="127.0.0.1"
+TCP_PING_TIMEOUT = 10