ceph-deploy fails on ubuntu 15.10 and 15.04
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/
[u1504][DEBUG ] create the mon path if it does not exist
[u1504][DEBUG ] checking for done path: /var/lib/
[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/
[u1504][ERROR ] reporting(conn, result, timeout)
[u1504][ERROR ] File "/usr/lib/
[u1504][ERROR ] received = result.
[u1504][ERROR ] File "/usr/lib/
[u1504][ERROR ] raise self._getremote
[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/
[u1504][ERROR ] errread, errwrite)
[u1504][ERROR ] File "/usr/lib/
[u1504][ERROR ] raise child_exception
[u1504][ERROR ] OSError: [Errno 2] No such file or directory
[u1504][ERROR ]
[u1504][ERROR ]
[ceph_deploy.
[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.
affects: | ceph (Ubuntu) → ceph-deploy (Ubuntu) |
Status changed to 'Confirmed' because the bug affects multiple users.