Project

General

Profile

Actions

Bug #23767

open

"ceph ping mon" doesn't work

Added by cory gu about 6 years ago. Updated over 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Correctness/Safety
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
librados
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

if there is only mon_host= ip1, ip2...in the ceph.conf, then "ceph ping mon.<id>" doesn't work.
Root cause is in the librados::RadosClient::ping_monitor() implementation:
it calls build_initial_monmap() to generate monmap. that's only a initial monmap version generated from local ceph.conf file.
if there is no mon_id in ceph.conf, then this initial monmap will name the monitors with mon.noname-a, mon.noname-b, etc.

Actions

Also available in: Atom PDF