Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Lustre 2.12.0
-
None
-
3
-
9223372036854775807
Description
LNet is initially configured via the ip2nets module parameter.
nid00127:~ # cat /etc/modprobe.d/cray-lnet.conf options lnet ip2nets="gni99 10.129.*.*; gni4 10.129.*.*" nid00127:~ # lctl list_nids 127@gni99 127@gni4
I'm able to add a duplicate 127@gni4 address with lnetctl:
nid00127:~ # lnetctl net add --ip2net "gni4(ipogif0) 10.129.*.*" nid00127:~ # lctl list_nids 127@gni99 127@gni4 127@gni4
Can/should we throw an error in this case?
If I add them both with lnetctl then I get an error on the second one:
nid00127:~ # lnetctl net del --net gni4 --if ipogif0
nid00127:~ # lctl list_nids
127@gni99
127@gni4
nid00127:~ # lnetctl net del --net gni4 --if ipogif0
nid00127:~ # lctl list_nids
127@gni99
nid00127:~ # lnetctl net add --ip2net "gni4(ipogif0) 10.129.*.*"
nid00127:~ # lctl list_nids
127@gni99
127@gni4
nid00127:~ # lnetctl net add --ip2net "gni4(ipogif0) 10.129.*.*"
add:
- net:
errno: -22
descr: "cannot add network: Invalid argument"
nid00127:~ #