All of lore.kernel.org
 help / color / mirror / Atom feed
* [Lustre-devel] lnet NAT friendliness
@ 2010-05-04 14:19 Ken Hornstein
  2010-05-05 11:55 ` Liang Zhen
  0 siblings, 1 reply; 11+ messages in thread
From: Ken Hornstein @ 2010-05-04 14:19 UTC (permalink / raw)
  To: lustre-devel

In my work with the MacOS X client, I did some work from home.  While
that had the added "benefit" of exposing the issues associated with the
lack of attribute caching from the MacOS X client, I noticed something
else: lnet is unfortunately rather NAT-unfriendly.

Obviously putting your servers behind a NAT is extremely challenging, but
I was operating in the not-so-uncommon situation where a client was behind
a NAT and the servers all had publically routable IP addresses.  Note that
I am aware that by default Lustre requires connections from reserved ports;
I worked around that issue (until I discovered the way to turn off that
check via a configuration knob).

Specifically, I can connect to the MGS okay, but after that initial
connection I get the following error from lnet_parse() on the client
(okay, I reconstructed this from memory, but I think it is reasonably
close)

src server.addr at tcp: bad dest nid 1.2.3.4 at tcp (should have been sent direct)

Where "1.2.3.4 at tcp" is the external address of my NAT box at home.  It
is worth noting that there are no other known networking issues with
this setup; if I put this machine on the external-facing network, I can
mount the Lustre filesystem in queston fine.

Obviously the problem here is that a message is being sent to my home
box, but instead of using the "internal" IP address as the destination NID,
the server is using the external address (the one it obviously is getting
from the TCP socket).

I haven't yet had a chance to play with this more, but it makes me wonder
if anyone else has tried out Lustre from behind a NAT (with 2.0-based
Lustre, obviously), and if they did, did it work for you?  I am perfectly
willing to believe this is an issue with the Mac client, but from looking
at the code it doesn't feel like it would be.

Also ... it seems like it would be easy to add a configuration knob that
would let you bypass this particular check, and that might make it work.
Anyone have any thoughts about that?

--Ken

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2010-05-06 14:35 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-04 14:19 [Lustre-devel] lnet NAT friendliness Ken Hornstein
2010-05-05 11:55 ` Liang Zhen
2010-05-05 12:38   ` Ken Hornstein
2010-05-05 15:26     ` Oleg Drokin
2010-05-05 15:31       ` Ken Hornstein
2010-05-05 15:48         ` Nicolas Williams
2010-05-05 16:13           ` Ken Hornstein
2010-05-05 16:32             ` Nicolas Williams
2010-05-06  6:02     ` Andreas Dilger
2010-05-06  9:31       ` Liang Zhen
2010-05-06 14:35         ` Ken Hornstein

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.