Package ganeti :: Module pathutils
[hide private]
[frames] | no frames]

Module pathutils

source code

Module containing constants and functions for filesystem paths.

Functions [hide private]
 
GetLogFilename(daemon_name)
Returns the full path for a daemon's log file.
source code
Variables [hide private]
  DEFAULT_FILE_STORAGE_DIR = vcluster.AddNodePrefix(DEFAULT_FILE...
  DEFAULT_SHARED_FILE_STORAGE_DIR = vcluster.AddNodePrefix(DEFAU...
  EXPORT_DIR = vcluster.AddNodePrefix(_autoconf.EXPORT_DIR)
  OS_SEARCH_PATH = ['/srv/ganeti/os']
  ES_SEARCH_PATH = ['/srv/ganeti/extstorage']
  SSH_CONFIG_DIR = '/etc/ssh'
  XEN_CONFIG_DIR = vcluster.AddNodePrefix(_autoconf.XEN_CONFIG_DIR)
  SYSCONFDIR = vcluster.AddNodePrefix(_autoconf.SYSCONFDIR)
  TOOLSDIR = '/usr/lib/ganeti/tools'
  LOCALSTATEDIR = vcluster.AddNodePrefix(_autoconf.LOCALSTATEDIR)
  DAEMON_UTIL = _autoconf.PKGLIBDIR+ "/daemon-util"
  IMPORT_EXPORT_DAEMON = _autoconf.PKGLIBDIR+ "/import-export"
  KVM_CONSOLE_WRAPPER = _autoconf.PKGLIBDIR+ "/tools/kvm-console...
  KVM_IFUP = _autoconf.PKGLIBDIR+ "/kvm-ifup"
  PREPARE_NODE_JOIN = _autoconf.PKGLIBDIR+ "/prepare-node-join"
  NODE_DAEMON_SETUP = _autoconf.PKGLIBDIR+ "/node-daemon-setup"
  XEN_CONSOLE_WRAPPER = _autoconf.PKGLIBDIR+ "/tools/xen-console...
  ETC_HOSTS = "/etc/hosts"
  DATA_DIR = LOCALSTATEDIR+ "/lib/ganeti"
  LOCK_DIR = LOCALSTATEDIR+ "/lock"
  LOG_DIR = LOCALSTATEDIR+ "/log/ganeti"
  RUN_DIR = LOCALSTATEDIR+ "/run/ganeti"
  DEFAULT_MASTER_SETUP_SCRIPT = TOOLSDIR+ "/master-ip-setup"
Script to configure master IP address
  SSH_HOST_DSA_PRIV = SSH_CONFIG_DIR+ "/ssh_host_dsa_key"
  SSH_HOST_DSA_PUB = SSH_HOST_DSA_PRIV+ ".pub"
  SSH_HOST_RSA_PRIV = SSH_CONFIG_DIR+ "/ssh_host_rsa_key"
  SSH_HOST_RSA_PUB = SSH_HOST_RSA_PRIV+ ".pub"
  BDEV_CACHE_DIR = RUN_DIR+ "/bdev-cache"
  DISK_LINKS_DIR = RUN_DIR+ "/instance-disks"
  SOCKET_DIR = RUN_DIR+ "/socket"
  CRYPTO_KEYS_DIR = RUN_DIR+ "/crypto"
  IMPORT_EXPORT_DIR = RUN_DIR+ "/import-export"
  INSTANCE_STATUS_FILE = RUN_DIR+ "/instance-status"
  INSTANCE_REASON_DIR = RUN_DIR+ "/instance-reason"
  UIDPOOL_LOCKDIR = RUN_DIR+ "/uid-pool"
User-id pool lock directory (used user IDs have a corresponding lock file in this directory)
  SSCONF_LOCK_FILE = LOCK_DIR+ "/ganeti-ssconf.lock"
  CLUSTER_CONF_FILE = DATA_DIR+ "/config.data"
  RAPI_CERT_FILE = DATA_DIR+ "/rapi.pem"
  CONFD_HMAC_KEY = DATA_DIR+ "/hmac.key"
  SPICE_CERT_FILE = DATA_DIR+ "/spice.pem"
  SPICE_CACERT_FILE = DATA_DIR+ "/spice-ca.pem"
  CLUSTER_DOMAIN_SECRET_FILE = DATA_DIR+ "/cluster-domain-secret"
  SSH_KNOWN_HOSTS_FILE = DATA_DIR+ "/known_hosts"
  RAPI_USERS_FILE = DATA_DIR+ "/rapi/users"
  QUEUE_DIR = DATA_DIR+ "/queue"
  CONF_DIR = SYSCONFDIR+ "/ganeti"
  USER_SCRIPTS_DIR = CONF_DIR+ "/scripts"
  VNC_PASSWORD_FILE = CONF_DIR+ "/vnc-cluster-password"
  HOOKS_BASE_DIR = CONF_DIR+ "/hooks"
  FILE_STORAGE_PATHS_FILE = CONF_DIR+ "/file-storage-paths"
  RESTRICTED_COMMANDS_DIR = CONF_DIR+ "/restricted-commands"
  NODED_CERT_FILE = DATA_DIR+ "/server.pem"
Node daemon certificate path
  NODED_CERT_MODE = 0440
Node daemon certificate file permissions
  RESTRICTED_COMMANDS_LOCK_FILE = LOCK_DIR+ "/ganeti-restricted-...
Locked in exclusive mode while noded verifies a remote command
  WATCHER_LOCK_FILE = LOCK_DIR+ "/ganeti-watcher.lock"
Lock file for watcher, locked in shared mode by watcher; lock in exclusive
  WATCHER_GROUP_STATE_FILE = DATA_DIR+ "/watcher.%s.data"
Status file for per-group watcher, locked in exclusive mode by watcher
  WATCHER_GROUP_INSTANCE_STATUS_FILE = DATA_DIR+ "/watcher.%s.in...
File for per-group instance status, merged into INSTANCE_STATUS_FILE by per-group processes
  WATCHER_PAUSEFILE = DATA_DIR+ "/watcher.pause"
File containing Unix timestamp until which watcher should be paused
  EXTERNAL_MASTER_SETUP_SCRIPT = USER_SCRIPTS_DIR+ "/master-ip-s...
User-provided master IP setup script
  MASTER_SOCKET = SOCKET_DIR+ "/ganeti-master"
LUXI socket used for job execution
  QUERY_SOCKET = SOCKET_DIR+ "/ganeti-query"
LUXI socket used for queries only
  LOG_OS_DIR = LOG_DIR+ "/os"
  LOG_ES_DIR = LOG_DIR+ "/extstorage"
  LOG_XEN_DIR = LOG_DIR+ "/xen"
Directory for storing Xen config files after failed instance starts
  JOB_QUEUE_LOCK_FILE = QUEUE_DIR+ "/lock"
  JOB_QUEUE_VERSION_FILE = QUEUE_DIR+ "/version"
  JOB_QUEUE_SERIAL_FILE = QUEUE_DIR+ "/serial"
  JOB_QUEUE_ARCHIVE_DIR = QUEUE_DIR+ "/archive"
  JOB_QUEUE_DRAIN_FILE = QUEUE_DIR+ "/drain"
  ALL_CERT_FILES = compat.UniqueFrozenset([NODED_CERT_FILE, RAPI...
  LOG_WATCHER = GetLogFilename("watcher")
  LOG_COMMANDS = GetLogFilename("commands")
  LOG_BURNIN = GetLogFilename("burnin")

Imports: _autoconf, compat, vcluster


Variables Details [hide private]

DEFAULT_FILE_STORAGE_DIR

Value:
vcluster.AddNodePrefix(DEFAULT_FILE_STORAGE_DIR)

DEFAULT_SHARED_FILE_STORAGE_DIR

Value:
vcluster.AddNodePrefix(DEFAULT_SHARED_FILE_STORAGE_DIR)

KVM_CONSOLE_WRAPPER

Value:
_autoconf.PKGLIBDIR+ "/tools/kvm-console-wrapper"

XEN_CONSOLE_WRAPPER

Value:
_autoconf.PKGLIBDIR+ "/tools/xen-console-wrapper"

RESTRICTED_COMMANDS_LOCK_FILE

Locked in exclusive mode while noded verifies a remote command

Value:
LOCK_DIR+ "/ganeti-restricted-commands.lock"

WATCHER_GROUP_INSTANCE_STATUS_FILE

File for per-group instance status, merged into INSTANCE_STATUS_FILE by per-group processes

Value:
DATA_DIR+ "/watcher.%s.instance-status"

EXTERNAL_MASTER_SETUP_SCRIPT

User-provided master IP setup script

Value:
USER_SCRIPTS_DIR+ "/master-ip-setup"

ALL_CERT_FILES

Value:
compat.UniqueFrozenset([NODED_CERT_FILE, RAPI_CERT_FILE, SPICE_CERT_FI\
LE, SPICE_CACERT_FILE,])