Ceph mon doesn't restart on reboot with Xenial when using ceph-{mon,osd}@ systemd units
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ceph (Ubuntu) |
Fix Released
|
High
|
James Page | ||
Xenial |
Fix Released
|
High
|
James Page | ||
Yakkety |
Fix Released
|
High
|
James Page | ||
Zesty |
Fix Released
|
High
|
James Page |
Bug Description
[Impact]
Users of the ceph-osd@ and ceph-mon@ systemd units are not able to reboot servers; the targets which ensure that daemons managed this way are missing from the packages. There is also no nice way to restart all ceph daemons on a machine due to the missing systemd targets.
[Test Case]
Install ceph-mon and ceph-osd machines
Enable and initialise cluster using ceph-osd@ and ceph-mon@ unit files.
Confirm working
Reboot machines
ceph-mon units will not start automatically after reboot
ceph-osd units will start, but only due to udev rule processing
[Regression Potential]
Minimal; we're introducing the missing targets to the packages; these targets will be enabled and started on install, and the change to the packaging ensures that the ceph-mon/
provided directly by the packaging are managed as before (not auto enabled and started).
[Original Bug Report]
The ceph monitor and osd daemons do not restart automatically on server reboot on Xenial.
$ apt-cache policy ceph
ceph:
Installed: 10.2.2-
Candidate: 10.2.2-
Version table:
*** 10.2.2-
500 http://
100 /var/lib/
10.
500 http://
This is likely caused by the same clash between upstream target files and Ubuntu systemd unit files that is noted in [1] but I have opened a separate bug because I believe the severity of not having Ceph restart automatically on server reboot is higher severity than not being able to start/stop all services with one command, which is what is reported in [1].
The source of the Ubuntu package [2] does not have the necessary target files that upstream Ceph added to allow for restart on reboot under this commit [3] which is included in Ceph's github tag 10.2.2.
[1] https:/
[2] https:/
[3] https:/
Changed in ceph (Ubuntu Zesty): | |
status: | Triaged → In Progress |
assignee: | nobody → James Page (james-page) |
description: | updated |
tags: |
added: verification-done removed: verfication-done |
I will add that Ceph Ansible v2.0.0 was used to install Ceph from both the distro apt repo and UCA, both with the same result.