Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
None
-
3
-
9223372036854775807
Description
Under sanity-lnet handle while picking up IP where interface have more than one IP. This is nor normal. However, this may lead to script error. Handle this corner case and pick up the first IP. Also incorporate new info message.
Corner case: Where node has more than one IP per interface
$ ip -o -4 a s enp0s8 3: enp0s8 inet 192.168.50.188/24 brd 192.168.50.255 scope global noprefixroute enp0s8\ valid_lft forever preferred_lft forever 3: enp0s8 inet 192.168.1.12/24 brd 192.168.1.255 scope global dynamic noprefixroute enp0s8\ valid_lft 27688sec preferred_lft 27688sec
Before patch:
./lustre/tests/sanity-lnet.sh: line 1174: ((: 188 12: syntax error in expression (error token is "12") ./lustre/tests/sanity-lnet.sh: line 1177: 188 12: syntax error in expression (error token is "12")
After patch
... Total IP for enp0s8 found [2] Interface:IP are enp0s8:192.168.50.188 enp0s8:192.168.1.12 Using GW_NID:192.168.50.189@tcp ...
Attachments
Issue Links
- is related to
-
LU-10391 LNET: Support IPv6
- Resolved