MRP-1440 tests: adjust test-framework to work with mpich2

Patch changes MACHINEFILE usage to be able to operate with mpich2

Signed-off-by: Elena Gryaznova <Elena_Gryaznova@xyratex.com>
Change-Id: If8cd022a8fc29ad4641c9bb88b90a7b38382fa7a
Reviewed-on: http://morpheus.xyus.xyratex.com:8443/gerrit/838
Tested-by: Jenkins
Reviewed-by: Alexey Lyashkov <Alexey_Lyashkov@xyratex.com>
Reviewed-by: Alexander Lezhoev <Alexander_Lezhoev@xyratex.com>
Reviewed-by: Vitaly Fertman <Vitaly_Fertman@xyratex.com>
MRP-1440 tests: mpich2 support

hide machinefile handling inside of mpirun function to avoid
problems with mpich2 work

Signed-off-by: Alexey Lyashkov <alexey_lyashkov@xyratex.com>
Change-Id: Ie40d85bc4c4e99915148dea10256931ebb38ae8a
Reviewed-on: http://es-gerrit.xyus.xyratex.com:8080/3310
Tested-by: Jenkins
Reviewed-by: Vitaly Fertman <vitaly_fertman@xyratex.com>
LU-4913 mgc: mgc import reconnect race

mgc import can be reconnected by pinger or
ptlrpc_reconnect_import().
ptlrpc_invalidate_import() isn't protected against
alteration of imp_invalid state. Import can be
reconnected by pinger which makes imp_invalid
equal to false. Thus LASSERT(imp->imp_invalid) fails
in ptlrpc_invalidate_import().

It is safe to call ptlrpc_invalidate_import() when
import is deactivated, but ptlrpc_reconnect_import() doesn't
deactivate it.
Let's use only pinger when available to reconnect import

Xyratex-bug-id: MRP-1746
Change-Id: I2feb45c5f3e96da30dd5639d5824068f8a126c7d
Signed-off-by: Andriy Skulysh <Andriy_Skulysh@xyratex.com>
Reviewed-on: http://review.whamcloud.com/9967
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>