Commit 878c42ae authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Rename constants and directory for restricted commands

As per Iustin Pop's suggestion in <> on
Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarGuido Trotter <>
parent 1fdeb284
......@@ -3709,8 +3709,8 @@ def _PrepareRemoteCommand(path, cmd,
def RunRemoteCommand(cmd,
......@@ -88,10 +88,10 @@ USER_SCRIPTS_DIR = CONF_DIR + "/scripts"
VNC_PASSWORD_FILE = CONF_DIR + "/vnc-cluster-password"
FILE_STORAGE_PATHS_FILE = CONF_DIR + "/file-storage-paths"
REMOTE_COMMANDS_DIR = CONF_DIR + "/remote-commands"
RESTRICTED_COMMANDS_DIR = CONF_DIR + "/restricted-commands"
#: Locked in exclusive mode while noded verifies a remote command
REMOTE_COMMANDS_LOCK_FILE = LOCK_DIR + "/ganeti-remote-commands.lock"
RESTRICTED_COMMANDS_LOCK_FILE = LOCK_DIR + "/ganeti-restricted-commands.lock"
#: Lock file for watcher, locked in shared mode by watcher; lock in exclusive
# mode to block watcher (see L{cli._RunWhileClusterStoppedHelper.Call}
......@@ -621,7 +621,7 @@ RESTRICTED-COMMAND
Executes a restricted command on the specified nodes. Restricted commands are
not arbitrary, but must reside in
``@SYSCONFDIR@/ganeti/remote-commands`` on a node, either as a regular
``@SYSCONFDIR@/ganeti/restricted-commands`` on a node, either as a regular
file or as a symlink. The directory must be owned by root and not be
world- or group-writable. If a command fails verification or otherwise
fails to start, the node daemon log must be consulted for more detailed
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment