projects
/
ganeti-local
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reinstall instance: disallow offline secondaries
[ganeti-local]
/
lib
/
constants.py
diff --git
a/lib/constants.py
b/lib/constants.py
index
b4e9a37
..
1935064
100644
(file)
--- a/
lib/constants.py
+++ b/
lib/constants.py
@@
-95,9
+95,13
@@
CONFD_USER = _autoconf.CONFD_USER
CONFD_GROUP = _autoconf.CONFD_GROUP
NODED_USER = _autoconf.NODED_USER
CONFD_GROUP = _autoconf.CONFD_GROUP
NODED_USER = _autoconf.NODED_USER
+
# Wipe
DD_CMD = "dd"
WIPE_BLOCK_SIZE = 1024**2
# Wipe
DD_CMD = "dd"
WIPE_BLOCK_SIZE = 1024**2
+MAX_WIPE_CHUNK = 1024 # 1GB
+MIN_WIPE_CHUNK_PERCENT = 10
+
# file paths
DATA_DIR = _autoconf.LOCALSTATEDIR + "/lib/ganeti"
# file paths
DATA_DIR = _autoconf.LOCALSTATEDIR + "/lib/ganeti"
@@
-195,6
+199,7
@@
PROC_MOUNTS = "/proc/mounts"
# luxi related constants
LUXI_EOM = "\3"
# luxi related constants
LUXI_EOM = "\3"
+LUXI_VERSION = CONFIG_VERSION
# one of 'no', 'yes', 'only'
SYSLOG_USAGE = _autoconf.SYSLOG_USAGE
# one of 'no', 'yes', 'only'
SYSLOG_USAGE = _autoconf.SYSLOG_USAGE
@@
-781,6
+786,7
@@
NV_PVLIST = "pvlist"
NV_TIME = "time"
NV_VERSION = "version"
NV_VGLIST = "vglist"
NV_TIME = "time"
NV_VERSION = "version"
NV_VGLIST = "vglist"
+NV_VMNODES = "vmnodes"
# SSL certificate check constants (in days)
SSL_CERT_EXPIRATION_WARN = 30
# SSL certificate check constants (in days)
SSL_CERT_EXPIRATION_WARN = 30