Project

General

Profile

Actions

Bug #6288

closed

'ceph-deploy mon create' with --cluster flag fails

Added by Jeff Kline over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
ceph-deploy
Target version:
-
% Done:

0%

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

Description

The command:

$ ceph-deploy --cluster ceph0 mon create cephgs-{0,1,2}

runs without error yet it fails to do anything on the monitor hosts. One problem is that the 'service start' command on each host that the above issues does not succeed.

$ /usr/sbin/service ceph start mon.cephgs-0
/etc/init.d/ceph: ceph conf /etc/ceph/ceph.conf not found; system is not configured.
$ echo $?
0

Note that despite failure, the exit status is 0.

Since the cluster is named ceph0, the service-start command should have some pointer to the ceph0.conf file.

Here is full output:

$ ceph-deploy --cluster ceph0 mon create cephgs-{0,1,2}
[ceph_deploy.mon][DEBUG ] Deploying mon, cluster ceph0 hosts cephgs-0 cephgs-1 cephgs-2
[ceph_deploy.mon][DEBUG ] detecting platform for host cephgs-0 ...
[ceph_deploy.mon][INFO ] distro info: Debian 7.1 wheezy
[cephgs-0][DEBUG ] deploying mon to cephgs-0
[cephgs-0][DEBUG ] remote hostname: cephgs-0
[cephgs-0][INFO ] write cluster configuration to /etc/ceph/{cluster}.conf
[cephgs-0][DEBUG ] checking for done path: /var/lib/ceph/mon/ceph0-cephgs-0/done
[cephgs-0][INFO ] create a done file to avoid re-doing the mon deployment
[cephgs-0][INFO ] create the init path if it does not exist
[cephgs-0][INFO ] locating `service` executable...
[cephgs-0][INFO ] found `service` executable: /usr/sbin/service
[cephgs-0][INFO ] Running command: /usr/sbin/service ceph start mon.cephgs-0
[ceph_deploy.mon][DEBUG ] detecting platform for host cephgs-1 ...
[ceph_deploy.mon][INFO ] distro info: Debian 7.1 wheezy
[cephgs-1][DEBUG ] deploying mon to cephgs-1
[cephgs-1][DEBUG ] remote hostname: cephgs-1
[cephgs-1][INFO ] write cluster configuration to /etc/ceph/{cluster}.conf
[cephgs-1][DEBUG ] checking for done path: /var/lib/ceph/mon/ceph0-cephgs-1/done
[cephgs-1][INFO ] create a done file to avoid re-doing the mon deployment
[cephgs-1][INFO ] create the init path if it does not exist
[cephgs-1][INFO ] locating `service` executable...
[cephgs-1][INFO ] found `service` executable: /usr/sbin/service
[cephgs-1][INFO ] Running command: /usr/sbin/service ceph start mon.cephgs-1
[ceph_deploy.mon][DEBUG ] detecting platform for host cephgs-2 ...
[ceph_deploy.mon][INFO ] distro info: Debian 7.1 wheezy
[cephgs-2][DEBUG ] deploying mon to cephgs-2
[cephgs-2][DEBUG ] remote hostname: cephgs-2
[cephgs-2][INFO ] write cluster configuration to /etc/ceph/{cluster}.conf
[cephgs-2][DEBUG ] checking for done path: /var/lib/ceph/mon/ceph0-cephgs-2/done
[cephgs-2][INFO ] create a done file to avoid re-doing the mon deployment
[cephgs-2][INFO ] create the init path if it does not exist
[cephgs-2][INFO ] locating `service` executable...
[cephgs-2][INFO ] found `service` executable: /usr/sbin/service
[cephgs-2][INFO ] Running command: /usr/sbin/service ceph start mon.cephgs-2

Actions #1

Updated by Ian Colle over 10 years ago

  • Assignee set to Alfredo Deza
  • Priority changed from Normal to High
  • Target version deleted (v0.67 - Dumpling)
  • Source changed from other to Community (dev)
Actions #2

Updated by Alfredo Deza over 10 years ago

What happens here is that the call to start the daemon in `ceph_deploy/hosts/debian/mon/create.py` does not pass the `-c /etc/ceph/{cluster}.conf` path.

Actions #3

Updated by Alfredo Deza over 10 years ago

  • Status changed from New to 12
Actions #4

Updated by Alfredo Deza over 10 years ago

  • Status changed from 12 to Fix Under Review
Actions #5

Updated by Alfredo Deza over 10 years ago

  • Status changed from Fix Under Review to Resolved

Merged to ceph-deploy master branch with hash: a4b6b6f

Actions

Also available in: Atom PDF