* kclient IPv4 vs IPv6 problem
@ 2010-07-19 14:10 Thomas Mueller
2010-07-19 16:56 ` Sage Weil
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Mueller @ 2010-07-19 14:10 UTC (permalink / raw)
To: ceph-devel
hi
if I mount ceph with localhost,
> mount -t ceph localhost:/ /mnt
it fails with:
mount error 22 = Invalid argument
dmesg shows:
[ 813.704419] ceph: parse_ips bad ip '[::1],[127.0.0.1]:/'
on my machine ipv6 and ipv4 are enabled (standard debian installation).
Seems like "localhost" resolves to ipv4 and ipv6 what confuses ceph
kclient.
As I only have ipv6 on the machine I can't test it in a real network. But
maybe this also applies to DNS hostnames with both A and AAAA entries.
- Thomas
ceph-client-standalone/unstable-backport
ref 0938669c180056f517db836f05697f8a2c41ec61
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: kclient IPv4 vs IPv6 problem
2010-07-19 14:10 kclient IPv4 vs IPv6 problem Thomas Mueller
@ 2010-07-19 16:56 ` Sage Weil
0 siblings, 0 replies; 2+ messages in thread
From: Sage Weil @ 2010-07-19 16:56 UTC (permalink / raw)
To: Thomas Mueller; +Cc: ceph-devel
Hi Thomas,
On Mon, 19 Jul 2010, Thomas Mueller wrote:
> hi
>
> if I mount ceph with localhost,
>
> > mount -t ceph localhost:/ /mnt
>
> it fails with:
>
> mount error 22 = Invalid argument
>
>
> dmesg shows:
> [ 813.704419] ceph: parse_ips bad ip '[::1],[127.0.0.1]:/'
This is fixed in the 'master' branch (i.e. queued for 2.6.35). You should
be able to 'git merge origin/master' to get the fix.
> on my machine ipv6 and ipv4 are enabled (standard debian installation).
> Seems like "localhost" resolves to ipv4 and ipv6 what confuses ceph
> kclient.
>
> As I only have ipv6 on the machine I can't test it in a real network. But
> maybe this also applies to DNS hostnames with both A and AAAA entries.
There may still be a problem with using 'localhost' in this case because
the monitor binds to a specific address in a specific address family..
whatever you specify for 'mon addr' in ceph.conf during mkcephfs. If
that's the IPv4 address, and localhost resolves to both v4 and v6
addresses, then randomly half the time it will (I assume) fail to connect.
You can either specify the ip explicitly, or use a hostname that resolves
to only that ip.
We could make the monitor bind to multiple addresses as well, but that
requires extending the protocol.
sage
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-07-19 16:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-19 14:10 kclient IPv4 vs IPv6 problem Thomas Mueller
2010-07-19 16:56 ` Sage Weil
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.