ceph-deploy fails on ubuntu 15.10 and 15.04

Bug #1519923 reported by Breno Leitão
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ceph-deploy (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When I try to add Ubuntu 15.10 and Ubuntu 15.04 nodes using ceph-deploy, it fails because it thinks that both distro still use upstart, and tries to execute initctl which does exist any more. This is an example of the failure:

[u1504][WARNIN] ********************************************************************************
[u1504][WARNIN] provided hostname must match remote hostname
[u1504][WARNIN] provided hostname: u1504
[u1504][WARNIN] remote hostname: 1504
[u1504][WARNIN] monitors may not reach quorum and create-keys will not complete
[u1504][WARNIN] ********************************************************************************
[u1504][DEBUG ] deploying mon to u1504
[u1504][DEBUG ] get remote short hostname
[u1504][DEBUG ] remote hostname: 1504
[u1504][DEBUG ] write cluster configuration to /etc/ceph/{cluster}.conf
[u1504][DEBUG ] create the mon path if it does not exist
[u1504][DEBUG ] checking for done path: /var/lib/ceph/mon/ceph-1504/done
[u1504][DEBUG ] create a done file to avoid re-doing the mon deployment
[u1504][DEBUG ] create the init path if it does not exist
[u1504][DEBUG ] locating the `service` executable...
[u1504][INFO ] Running command: sudo initctl emit ceph-mon cluster=ceph id=1504
[u1504][ERROR ] Traceback (most recent call last):
[u1504][ERROR ] File "/usr/lib/python2.7/dist-packages/ceph_deploy/lib/vendor/remoto/process.py", line 94, in run
[u1504][ERROR ] reporting(conn, result, timeout)
[u1504][ERROR ] File "/usr/lib/python2.7/dist-packages/ceph_deploy/lib/vendor/remoto/log.py", line 13, in reporting
[u1504][ERROR ] received = result.receive(timeout)
[u1504][ERROR ] File "/usr/lib/python2.7/dist-packages/ceph_deploy/lib/vendor/remoto/lib/vendor/execnet/gateway_base.py", line 704, in receive
[u1504][ERROR ] raise self._getremoteerror() or EOFError()
[u1504][ERROR ] RemoteError: Traceback (most recent call last):
[u1504][ERROR ] File "<string>", line 1036, in executetask
[u1504][ERROR ] File "<remote exec>", line 12, in _remote_run
[u1504][ERROR ] File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
[u1504][ERROR ] errread, errwrite)
[u1504][ERROR ] File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
[u1504][ERROR ] raise child_exception
[u1504][ERROR ] OSError: [Errno 2] No such file or directory
[u1504][ERROR ]
[u1504][ERROR ]
[ceph_deploy.mon][ERROR ] Failed to execute command: initctl emit ceph-mon cluster=ceph id=1504
[ceph_deploy][ERROR ] GenericError: Failed to create 1 monitors

If the node is Debian, everything runs fine. I am using ceph-deploy version 1.5.20-0ubuntu1 and ceph version 0.94.5-0ubuntu1.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ceph (Ubuntu):
status: New → Confirmed
Revision history for this message
Dr. Jens Harbott (j-harbott) wrote :

IMHO this is a bug for ceph-deploy, which is a separate project from ceph itself. It should be solved with a new upstream version, probably 1.5.29, see also bug #1550853.

James Page (james-page)
affects: ceph (Ubuntu) → ceph-deploy (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.