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...
  DEFAULT_GLUSTER_STORAGE_DIR = vcluster.AddNodePrefix(DEFAULT_G...
  EXPORT_DIR = vcluster.AddNodePrefix(_constants.EXPORT_DIR)
  BACKUP_DIR = vcluster.AddNodePrefix(_constants.BACKUP_DIR)
  OS_SEARCH_PATH = ["/srv/ganeti/os"]
  ES_SEARCH_PATH = ["/srv/ganeti/extstorage"]
  SSH_CONFIG_DIR = "/etc/ssh"
  XEN_CONFIG_DIR = vcluster.AddNodePrefix(_constants.XEN_CONFIG_...
  SYSCONFDIR = vcluster.AddNodePrefix(_constants.SYSCONFDIR)
  TOOLSDIR = "/usr/lib/ganeti/tools"
  PKGLIBDIR = "/usr/lib/ganeti"
  SHAREDIR = "/usr/share/ganeti"
  LOCALSTATEDIR = vcluster.AddNodePrefix(_constants.LOCALSTATEDIR)
  DAEMON_UTIL = _constants.PKGLIBDIR+ "/daemon-util"
  IMPORT_EXPORT_DAEMON = _constants.PKGLIBDIR+ "/import-export"
  KVM_CONSOLE_WRAPPER = _constants.PKGLIBDIR+ "/tools/kvm-consol...
  KVM_IFUP = _constants.PKGLIBDIR+ "/kvm-ifup"
  PREPARE_NODE_JOIN = _constants.PKGLIBDIR+ "/prepare-node-join"
  SSH_UPDATE = _constants.PKGLIBDIR+ "/ssh-update"
  NODE_DAEMON_SETUP = _constants.PKGLIBDIR+ "/node-daemon-setup"
  SSL_UPDATE = _constants.PKGLIBDIR+ "/ssl-update"
  XEN_CONSOLE_WRAPPER = _constants.PKGLIBDIR+ "/tools/xen-consol...
  CFGUPGRADE = _constants.PKGLIBDIR+ "/tools/cfgupgrade"
  POST_UPGRADE = _constants.PKGLIBDIR+ "/tools/post-upgrade"
  ENSURE_DIRS = _constants.PKGLIBDIR+ "/ensure-dirs"
  XEN_VIF_METAD_SETUP = _constants.PKGLIBDIR+ "/vif-ganeti-metad"
  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 = "/etc/ssh/ssh_host_dsa_key"
  SSH_HOST_DSA_PUB = "/etc/ssh/ssh_host_dsa_key.pub"
  SSH_HOST_RSA_PRIV = "/etc/ssh/ssh_host_rsa_key"
  SSH_HOST_RSA_PUB = "/etc/ssh/ssh_host_rsa_key.pub"
  SSH_PUB_KEYS = DATA_DIR+ "/ganeti_pub_keys"
  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)
  LIVELOCK_DIR = RUN_DIR+ "/livelocks"
  LUXID_MESSAGE_DIR = RUN_DIR+ "/luxidmessages"
  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_DATA_DIR = DATA_DIR+ "/rapi"
  RAPI_USERS_FILE = RAPI_DATA_DIR+ "/users"
  QUEUE_DIR = DATA_DIR+ "/queue"
  INTENT_TO_UPGRADE = DATA_DIR+ "/intent-to-upgrade"
  CONF_DIR = SYSCONFDIR+ "/ganeti"
  XEN_IFUP_OS = CONF_DIR+ "/xen-ifup-os"
  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_CLIENT_CERT_FILE = DATA_DIR+ "/client.pem"
  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
  WCONFD_SOCKET = SOCKET_DIR+ "/ganeti-wconfd"
WConfD socket
  METAD_SOCKET = SOCKET_DIR+ "/ganeti-metad"
Metad socket
  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: _constants, 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)

DEFAULT_GLUSTER_STORAGE_DIR

Value:
vcluster.AddNodePrefix(DEFAULT_GLUSTER_STORAGE_DIR)

XEN_CONFIG_DIR

Value:
vcluster.AddNodePrefix(_constants.XEN_CONFIG_DIR)

KVM_CONSOLE_WRAPPER

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

XEN_CONSOLE_WRAPPER

Value:
_constants.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,])