[LU-12626] Attempt to create existing net returns EINVAL Created: 02/Aug/19  Updated: 09/Dec/19  Resolved: 15/Aug/19

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.13.0, Lustre 2.12.3

Type: Bug Priority: Minor
Reporter: Olaf Faaland Assignee: Olaf Faaland
Resolution: Fixed Votes: 0
Labels: llnlfixready

Issue Links:
Related
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

When "lnetctl net add" is called for an interface/net pair that already exists, the error code returned is EINVAL. It should be EEXIST, so the user knows that the net is already configured.

[olaf@diane lustre]$ sudo lnet/utils/lnetctl net add --net tcp1 --if enp0s3
[olaf@diane lustre]$ sudo lnet/utils/lnetctl net add --net tcp1 --if enp0s3
add:
    - net:
          errno: -22
          descr: "cannot add network: Invalid argument"


 Comments   
Comment by Peter Jones [ 02/Aug/19 ]

Olaf

You've marked this as llnlfixready - does that mean that you'll be pushing the fix?

Peter

Comment by Gerrit Updater [ 02/Aug/19 ]

Olaf Faaland-LLNL (faaland1@llnl.gov) uploaded a new patch: https://review.whamcloud.com/35681
Subject: LU-12626 lnet: create existing net returns EEXIST
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 20b8dc05a948505148bd07d51b0b7f55918603ef

Comment by Gerrit Updater [ 15/Aug/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35681/
Subject: LU-12626 lnet: create existing net returns EEXIST
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 4aa71267cc0317e126843509f1c5b237f469414b

Comment by Peter Jones [ 15/Aug/19 ]

Landed for 2.13

Comment by Gerrit Updater [ 28/Aug/19 ]

Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/35953
Subject: LU-12626 lnet: create existing net returns EEXIST
Project: fs/lustre-release
Branch: b2_12
Current Patch Set: 1
Commit: 3a1ef49a40bf6dfac13695dd0ad75abda4bf48d1

Comment by Gerrit Updater [ 12/Sep/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35953/
Subject: LU-12626 lnet: create existing net returns EEXIST
Project: fs/lustre-release
Branch: b2_12
Current Patch Set:
Commit: 2a59f48ee2bed7f80ae193edaabc67abc3445d0a

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