The number of mpi processes is to be calculated
based on the number of clients in clients subset.
Fixes: 9ecb000 ("LU-13281 tests: ha.sh improvements")
Test-Parameters: trivial
Signed-off-by: Elenai Gryaznova <elena.gryaznova@hpe.com>
HPE-bug-id: LUS-9716
Reviewed-by: Andriy Skulysh <andriy.skulysh@hpe.com>
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
Change-Id: If574743e2e29a309a8d7a021056fa726495fa959
Reviewed-on: https://review.whamcloud.com/43217
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Vladimir Saveliev <c17830@cray.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
ha_on $client $LFS getstripe $dir &&
ha_on $client chmod a+xwr $dir &&
ha_on $client "su $mpiuser sh -c \" $mpirun $mpirunoptions \
ha_on $client $LFS getstripe $dir &&
ha_on $client chmod a+xwr $dir &&
ha_on $client "su $mpiuser sh -c \" $mpirun $mpirunoptions \
- -np $((${#ha_clients[@]} * mpi_threads_per_client )) \
+ -np $((${#ha_clients[@]} * mpi_threads_per_client / ha_nclientsset)) \
$machines $cmd \" " || rc=$?
[[ -n "$ha_postcmd" ]] && ha_info "$ha_postcmd" &&
ha_on $client "$ha_postcmd" >>"$log" 2>&1
$machines $cmd \" " || rc=$?
[[ -n "$ha_postcmd" ]] && ha_info "$ha_postcmd" &&
ha_on $client "$ha_postcmd" >>"$log" 2>&1