This new OpCode runs a specified repair command on a given node with a given input (the input is passed as stdin). The new OpCode takes as input node_name, command, and input. It returns stdout + stderr of the command run. The last patch is for testing purposes only.
Bhimanavajjula Aditya (4): Add OpCode OpRepairCommand Add RPC repair_command Add LURepairCommand Add subcommand repair-command to gnt-node lib/backend.py | 41 ++++++++++++++++++++++---------- lib/client/gnt_node.py | 13 +++++++++++ lib/cmdlib/__init__.py | 3 ++- lib/cmdlib/misc.py | 38 +++++++++++++++++++++++++++++- lib/pathutils.py | 4 ++++ lib/rpc_defs.py | 4 ++++ lib/server/noded.py | 18 +++++++++++++- man/gnt-node.rst | 8 +++++++ src/Ganeti/Hs2Py/OpDoc.hs | 4 ++++ src/Ganeti/OpCodes.hs | 8 +++++++ src/Ganeti/OpParams.hs | 13 +++++++++++ test/hs/Test/Ganeti/OpCodes.hs | 3 +++ test/py/docs_unittest.py | 1 + test/py/ganeti.backend_unittest.py | 48 +++++++++++++++++++------------------- 14 files changed, 167 insertions(+), 39 deletions(-) -- 2.5.0.457.gab17608
