If "options lnet config_on_load=1" is not configured in
modprobe.d, the lnet will not be configured when trying to
add a network. The command will hit problem.
/usr/sbin/lnetctl net add --if eth1 --net tcp999
add:
- net:
errno: -22
descr: "cannot add network: Invalid argument"
Test-Parameters: trivial testlist=sanity-sec env=ONLY=31
Change-Id: If65b7cb372d4f04a10ea066d62f3ae43029fcf65
Signed-off-by: Li Xi <lixi@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54543
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
do_rpc_nodes $(comma_list $(all_nodes)) load_modules ||
error "unable to load modules on $(all_nodes)"
for node in $(all_nodes); do
+ do_node $node "$LNETCTL lnet configure" ||
+ error "unable to configure lnet on node $node"
infname=inf_$(echo $node | cut -d'.' -f1 | sed s+-+_+g)
do_node $node "$LNETCTL net add --if ${!infname} --net $net2" ||
error "unable to configure NID on $net2 for node $node"