Project

General

Profile

Actions

Bug #3599

closed

mkcephfs should fail out when ceph.conf has an error

Added by Anonymous over 11 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Monitor
Target version:
-
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
Severity:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

In the /etc/ceph/ceph.conf, there was a missing bracket after [mon.b , which did not get caught during mkcephfs. It errors when ceph is started.

ubuntu@burnupi46:/etc/ceph$ sudo service ceph -a start === mon.a ===
Starting Ceph mon.a on burnupi46...already running === mon.b ===
Starting Ceph mon.b on burnupi47...
unable to read magic from mon data.. did you run mkcephfs?
failed: 'ssh burnupi47 /usr/bin/ceph-mon -i b --pid-file /var/run/ceph/mon.b.pid -c /tmp/ceph.conf.22288 '

To correct the error, I had to stop, delete the contents of the directories at /var/lib/ceph, and rerun mkcephfs.

Actions

Also available in: Atom PDF