[LU-5881] Allow hostnames in NID Created: 06/Nov/14  Updated: 08/Jan/24  Resolved: 08/Jan/24

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

Type: Improvement Priority: Minor
Reporter: Amir Shehata (Inactive) Assignee: WC Triage
Resolution: Duplicate Votes: 0
Labels: None

Attachments: Microsoft PowerPoint Oucharek_DNS_NIDS_LUG 2013.pptx    
Issue Links:
Related
is related to LU-5960 Add ability to get peer and connectio... Open
is related to LU-10359 remove NIDs from config llogs Open
is related to LU-10360 use Imperative Recovery logs for clie... Open
is related to LU-10391 LNET: Support IPv6 Reopened
Rank (Obsolete): 16445

 Description   

Currently the NID is in the form <ip>@<net>. One possible improvement is to make it <hostname | ip>@<net>. This will allow abstraction of IP addresses, and possibly replacing nodes without having to change the configuration on other nodes.



 Comments   
Comment by Bob Glossman (Inactive) [ 06/Nov/14 ]

not all net types use an ip address as <nid>, and not all have a well known mapping method like hostname -> ip address for TCP/IP. whatever add on you do to allow transparent use of hostnames, you must be careful not to break addressing for other network types.

Comment by Robert Read (Inactive) [ 06/Nov/14 ]

This is a useful feature, though it is not a full replacement of the dynamic NID idea which has been discussed before. Dynamic NIDs would allow the NIDs for targets to be discovered when the targets connect to the MGS, and not be stored in the configuration. This would allow a target to be failed over to any NID.

Comment by Gene Campbell (Inactive) [ 07/Nov/14 ]

Hi Amir, Robert,

I'm curious what user scenario this addresses? Might be obvious to you. Or, restated, what problem does it solve for someone to have this feature, or what goal does it allow them to achieve?

Using hostnames allows abstraction to the specification of a host. Is the idea that you can configure your targets once, with a name, and then "tie" them to a host later with DNS? If that is the nuts and bolt, what is the actual user need? I'm assuming the user in this case is a Lustre admin.

Comment by Doug Oucharek (Inactive) [ 07/Nov/14 ]

I'm attaching the slides I presented in the 2013 LUG on Dynamic NIDs. These may help answer some questions as to why we need a name to NID mapping.

Comment by Robert Read (Inactive) [ 08/Nov/14 ]

We should support dynamic NIDs directly and not rely on Dynamic DNS. NID mapping is something that should just work out of the box and not requiring more external configuration. This is an opportunity to greatly simplify one of the more difficult aspects of Lustre configuration. But if we add yet another third party dependency we're just increasing the complexity and fragility of our stack, and limiting it's usability to sites that can support. This makes things harder, not easier.

Comment by Andreas Dilger [ 28/Feb/20 ]

We can already use <hostname>@<net> for NIDs with mount.lustre and mkfs.lustre, but they are translated to <IPv4>@<net> before being passed to the kernel.

It isn't clear if there is a need for this ticket, or if it is redundant with LU-10359 and could be closed?

Comment by Andreas Dilger [ 08/Jan/24 ]

Prefer not to store static NIDs or hostnames in the config log at all...

Generated at Sat Feb 10 01:55:19 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.