thiell/test — Issue #48: clush: wrong return code on node timeout with -S -u TIMEOUT
Author: thiell
Created: 2012-03-03 16:29:10+00:00
State: open
Labels: Scripts

Fix clush return code on node timeout when using -S -u timeout, to behave like pdsh. For instance:

PDSH case:
{{{
$ pdsh -w fortoy3 -S -u 2 sleep 10
pdsh@fortoy0: fortoy3: command timeout
sending SIGTERM to ssh fortoy3 pid 1855
pdsh@fortoy0: fortoy3: ssh exited with exit code 255
$ echo $?
255
}}}

CLUSH case:
{{{
$ clush -w fortoy3 -S -u 2 sleep 10
clush: fortoy3: command timeout
$ echo $?
0
}}}