Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-17667

Under sanity-lnet while getting IP handle case where interface have more than one IP

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • Lustre 2.16.0
    • None
    • None
    • 3
    • 9223372036854775807

      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
      ...
      

       

            arshad512 Arshad Hussain
            arshad512 Arshad Hussain
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: