Bug #6288
closed'ceph-deploy mon create' with --cluster flag fails
0%
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