Project

General

Profile

Bug #289

can't handle ipv4 and ipv6 localhost

Added by Greg Farnum over 13 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):

Description

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

History

#1 Updated by Sage Weil over 13 years ago

  • Status changed from New to Closed

The parse bug is fixed.

The v4+v6 localhost is really a question of whether we want to bind to multiple addresses (e.g., one v4 and one v6), which is another issue/feature altogether.

Also available in: Atom PDF