X-Git-Url: https://code.grnet.gr/git/ganeti-local/blobdiff_plain/72884fefe9b708b4d4486aa925a252b94cfaf381..9aacb1991620bd1b0c778459b7e6e5ccea4f7e10:/lib/constants.py diff --git a/lib/constants.py b/lib/constants.py index bb6aaf3..1935064 100644 --- a/lib/constants.py +++ b/lib/constants.py @@ -95,6 +95,14 @@ CONFD_USER = _autoconf.CONFD_USER CONFD_GROUP = _autoconf.CONFD_GROUP NODED_USER = _autoconf.NODED_USER + +# 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" RUN_DIR = _autoconf.LOCALSTATEDIR + "/run" @@ -191,6 +199,7 @@ PROC_MOUNTS = "/proc/mounts" # luxi related constants LUXI_EOM = "\3" +LUXI_VERSION = CONFIG_VERSION # one of 'no', 'yes', 'only' SYSLOG_USAGE = _autoconf.SYSLOG_USAGE @@ -777,6 +786,7 @@ NV_PVLIST = "pvlist" NV_TIME = "time" NV_VERSION = "version" NV_VGLIST = "vglist" +NV_VMNODES = "vmnodes" # SSL certificate check constants (in days) SSL_CERT_EXPIRATION_WARN = 30