kclient IPv4 vs IPv6 problem
hi
if I mount ceph with localhost,
Quoted 1 line
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
Hi Thomas,
Quoted 6 lines · Thomas Mueller
hi
if I mount ceph with localhost,
Quoted 1 line
mount -t ceph localhost:/ /mnt
Quoted 7 lines
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.
Quoted 6 lines
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