I'm using 2.4.5; apologies if this has since been corrected.
Is there a way to get gnt-cluster to give an exit code of 1 when any one of the executions on each node fails?
For instance, if I run:
# gnt-cluster command /root/test.sh
------------------------------------------------
node: test-01
return code = 0
------------------------------------------------
node: test-02
/foo/bar/ does note exist on test-02
return code = 1
------------------------------------------------
return code = 0
... I would expect that the exit value returned to the shell ( e.g. the output of `echo $?` in bash ) would be set to 1, as there was an error somewhere within the execution process. Instead, the return code is 0, and I have to parse the output to make sure that operator output is or is not required.
Thanks,
Karl Katzke