ssh copy fails if hostname command returns hostname with domain
Created by: enolfc
ssh copy checks if remote node is the current host with this condition:
test $MPI_START_REMOTE_NODE = `hostname` -o $MPI_START_REMOTE_NODE = `hostname -f` -o $MPI_START_REMOTE_NODE = "localhost"
That fails when the hostname command returns the whole domain and the remote node name does not include it.
Sample failure execution
test test01 = test01.egi.cesga.es -o test01 = test01.egi.cesga.es -o test01 = localhost