Fix gnt-cluster “command” and “copyfile”
authorIustin Pop <iustin@google.com>
Mon, 23 Jun 2008 16:55:22 +0000 (16:55 +0000)
committerIustin Pop <iustin@google.com>
Mon, 23 Jun 2008 16:55:22 +0000 (16:55 +0000)
commitb39895510a1983409e943646e06095620752ad18
tree4dd77bdef2212d98b1e3cbee47c5af92cf453064
parent0db7ac4d0e9375eb78dc7259f5cf44827847ac6e
Fix gnt-cluster “command” and “copyfile”

Since the disabling of forking in the master daemon, the two ssh-based
subcommands were not working anymore. However, there is no need at all
for the commands to be run from the master daemon (permissions to read
the cluster private ssh key notwithstanding), they can be run directly
from the command line utilities.

The patch removes the two opcodes OpRunClusterCommand and
OpClusterCopyFile (and their associated LUs) and changes the code in
‘gnt-cluster’ to query the list of nodes and run directly the SshRunner
over the list. As such, all forking is done from the gnt-cluster script,
and the commands are working again.

Reviewed-by: imsnah
lib/cmdlib.py
lib/mcpu.py
lib/opcodes.py
scripts/gnt-cluster