[LU-12595] Attempt to add route using non-local gateway should return EHOSTUNREACH, not EINVAL Created: 26/Jul/19  Updated: 12/Dec/19  Resolved: 09/Aug/19

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

Type: Bug Priority: Minor
Reporter: Chris Horn Assignee: Chris Horn
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
is duplicated by LU-12596 Return EHOSTUNREACH rather than EINVA... Closed
Related
is related to LU-12411 Hang on lnetctl route del Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

My fix (https://review.whamcloud.com/#/c/35198/2) for
LU-12411 was flawed. While we do not want to allow adding routes to unreachable gateways, this shouldn't be a fatal error when parsing routes entries. lnet_add_route() should return EHOSTUNREACH in such a case, so that lnet_parse_route() will continue working and add any routes that are reachable. Unreachable routes are still logged to the console, but they are not added to route table.



 Comments   
Comment by Gerrit Updater [ 26/Jul/19 ]

Chris Horn (hornc@cray.com) uploaded a new patch: https://review.whamcloud.com/35630
Subject: LU-12595 lnet: Return EHOSTUNREACH for unreachable gateway
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 28a8368d924159bf14f899ce97f74a30314da493

Comment by Gerrit Updater [ 09/Aug/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35630/
Subject: LU-12595 lnet: Return EHOSTUNREACH for unreachable gateway
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 7c12c24c8a10be2d0ad005d6d99d97cee6bcde18

Comment by Peter Jones [ 09/Aug/19 ]

Landed for 2.13

Comment by Gerrit Updater [ 26/Nov/19 ]

Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/36871
Subject: LU-12595 lnet: Return EHOSTUNREACH for unreachable gateway
Project: fs/lustre-release
Branch: b2_12
Current Patch Set: 1
Commit: f9a480a4e2164813217f3be89c434439d4f20807

Comment by Gerrit Updater [ 12/Dec/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36871/
Subject: LU-12595 lnet: Return EHOSTUNREACH for unreachable gateway
Project: fs/lustre-release
Branch: b2_12
Current Patch Set:
Commit: 215db8912b53524a3ce7c754a40674bbda36fdc9

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