[LU-11858] LNet interfaces can be undefined when defining nets with --ip2net Created: 14/Jan/19  Updated: 14/Jan/19

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.12.0
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Chris Horn Assignee: WC Triage
Resolution: Unresolved Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

This issue can prevent the output of 'lnetctl export --backup' from being used with 'lnetctl import'.

Note the two different formats for the ip2net string. Both are, historically, valid, but the second form results in a bug where the interfaces for that net are undefined:

sles15s01:~ # lustre_rmmod
sles15s01:~ # modprobe lnet
sles15s01:~ # lnetctl lnet configure
sles15s01:~ # lnetctl net add --ip2net "tcp1(eth0) 192.168.2.[21-50]"
sles15s01:~ # lnetctl net add --ip2net "tcp2 192.168.2.[21-50]"
sles15s01:~ # lnetctl export --backup
net:
    - net type: tcp1
      local NI(s):
        - interfaces:
              0: eth0
          tunables:
              peer_timeout: 180
              peer_credits: 8
              peer_buffer_credits: 0
              credits: 256
          CPT: "[0,1,2,3]"
    - net type: tcp2
      local NI(s):
        - tunables:
              peer_timeout: 180
              peer_credits: 8
              peer_buffer_credits: 0
              credits: 256
          CPT: "[0,1,2,3]"
global:
    numa_range: 0
    max_intf: 200
    discovery: 1
sles15s01:~ # lnetctl export --backup > /tmp/lnet.yml
sles15s01:~ # lnetctl lnet unconfigure
sles15s01:~ # lustre_rmmod
sles15s01:~ # modprobe lnet
sles15s01:~ # lnetctl lnet configure
sles15s01:~ # lnetctl import < /tmp/lnet.yml
add:
    - net:
          errno: 0
          descr: "success"
    - net:
          errno: -2
          descr: "missing mandatory parameters in NI config: 'interface'"
    - max_interfaces:
          errno: 0
          descr: "success"
    - numa_range:
          errno: 0
          descr: "success"
    - discovery:
          errno: 0
          descr: "success"
sles15s01:~ #

Generated at Sat Feb 10 02:47:33 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.