Project

General

Profile

Actions

Bug #19792

closed

monitor hostname and dns cache

Added by Bertrand Gouny about 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
libceph
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

Hello,

libceph seems to cache dns responses and the cache seems to never expire or the TTL is really big.
I'm not sure this comes from libceph or how the kernel dns resolver module handles requests.

Here the problem:

My monitors are behind a round robin dns:

dig ceph-mon.cluster.local
ceph-mon.cluster.local. 30 IN A 10.244.10.11
ceph-mon.cluster.local. 30 IN A 10.244.20.6
ceph-mon.cluster.local. 30 IN A 10.244.30.13

but libceph still use an old ip previously returned by the dns:
libceph: resolve 'ceph-mon.cluster.local' (ret=0): 10.244.10.6:0

the monitor with the ip 10.244.10.6 is now down so i can't mount any volume :(

is there a way to clear the dns cache ? Does it have something to do with libceph ?

Thanks.

Actions

Also available in: Atom PDF