[Bug 1646583] Re: Ceph mon doesn't restart on reboot with Xenial when using ceph-{mon, osd}@ systemd units

Samuel Matzek smatzek at us.ibm.com
Tue Jan 10 15:32:04 UTC 2017


I installed Ceph 10.2.5 from the SRU PPA, https://launchpad.net
/~openstack-ubuntu-testing/+archive/ubuntu/ceph-sru, on a clean system
and "# systemctl list-units | grep ceph" lists nothing.

As noted in comment 10, an install of Ceph 10.2.5 from Ceph.com gives this output:
# systemctl list-units | grep ceph
ceph-mds.target    loaded active active    ceph target allowing to start/stop all ceph-mds at .service instances at once
ceph-mon.target    loaded active active    ceph target allowing to start/stop all ceph-mon at .service instances at once
ceph-osd.target    loaded active active    ceph target allowing to start/stop all ceph-osd at .service instances at once
ceph.target        loaded active active    ceph target allowing to start/stop all ceph*@.service instances at once

Using Ceph 10.2.5 from the SRU PPA, the enabling of a ceph monitor
daemon using systemctl enable ceph-mon@<mon_name> makes the symlinks for
the ceph-mon target to want the ceph-mon@<name>.  However, since the
ceph-mon.target itself is not active, the monitor won't start on reboot.

Debian packaging and systemd are a bit of a blackbox to me so I'm not
sure where the targets are being auto-enabled during debian package
install in the upstream packages and thus am not sure what should
possibly change in the distro package to make them compatible.

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to ceph in Ubuntu.
https://bugs.launchpad.net/bugs/1646583

Title:
  Ceph mon doesn't restart on reboot with Xenial when using
  ceph-{mon,osd}@ systemd units

Status in ceph package in Ubuntu:
  In Progress
Status in ceph source package in Xenial:
  Triaged
Status in ceph source package in Yakkety:
  Triaged
Status in ceph source package in Zesty:
  In Progress

Bug description:
  The ceph monitor and osd daemons do not restart automatically on
  server reboot on Xenial.

  $ apt-cache policy ceph
  ceph:
    Installed: 10.2.2-0ubuntu0.16.04.2
    Candidate: 10.2.2-0ubuntu0.16.04.2
    Version table:
   *** 10.2.2-0ubuntu0.16.04.2 500
          500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
          100 /var/lib/dpkg/status
       10.1.2-0ubuntu1 500
          500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages

  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://bugs.launchpad.net/ubuntu/+source/ceph/+bug/1627640
  [2] https://bugs.launchpad.net/ubuntu/+source/ceph/10.2.3-0ubuntu0.16.04.2
  [3] https://github.com/ceph/ceph/commit/15c4ad44010c798af7804e287ba71dcc289f806f

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/1646583/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list