Whamcloud - gitweb
LU-2351 tests: remote_node works wrong
authorKyrylo Shatskyy <kyrylo_shatskyy@xyratex.com>
Thu, 8 Nov 2012 10:55:33 +0000 (12:55 +0200)
committerOleg Drokin <green@whamcloud.com>
Tue, 8 Jan 2013 05:28:52 +0000 (00:28 -0500)
commitebb883e51491077ba08fe5a035cb6b089de2061f
tree1945ef97027f07b9260f0ca0fb1b0033e871a0c7
parent709c83783504111e8b355d6d68f51394e1563221
LU-2351 tests: remote_node works wrong

The test-framework's remote_node works wrong for host names with any
suffixes.

To resolve this the host identification has been switch to IP address.
Target node address is compared with address on each interface
of the local host. Assume host remote if it is unable to resolve
its IP address. Results of comparison are cached in global variables
in order to suppress host resolution overhead.

Signed-off-by: Kyrylo Shatskyy <kyrylo_shatskyy@xyratex.com>
Xyratex-bug-id: MRP-629
Reviewed-by: Alexander Lezhoev <Alexander_Lezhoev@xyratex.com>
Reviewed-by: Roman Grigoryev <Roman_Grigoryev@xyratex.com>
Reviewed-by: Bruce Korb <Bruce_Korb@xyratex.com>
Change-Id: I6128650ac8c5cc2759f9ff53856b5ffdf3222aa4
Reviewed-on: http://review.whamcloud.com/4609
Reviewed-by: Bruce Korb <bruce_korb@xyratex.com>
Reviewed-by: Alexander Lezhoev <alexander_lezhoev@xyratex.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/Makefile.am
lustre/tests/resolveip [new file with mode: 0755]
lustre/tests/test-framework.sh