From upstream Git commit log: The current systemd unit file misses 'PartOf=ceph-rbd-mirror.target', which results in the unit not starting after reboot. If you have ceph-rbd-mirror, it won't start after reboot even if enabled. Adding 'PartOf=ceph-rbd-mirror.target' will enable ceph-rbd-mirror.target when ceph-rbd-mirror gets enabled.
After reboot, rbd-mirror service restarts automatically. rbd-mirror service will starts when rbd-mirror.target starts. [root@fortress ceph-rbd-mirror.target.wants]# cat /usr/lib/systemd/system/ceph-rbd-mirror@.service |grep PartOf=ceph-rbd-mirror.target PartOf=ceph-rbd-mirror.target [root@fortress ceph-rbd-mirror.target.wants]# Version: [root@fortress ceph-rbd-mirror.target.wants]# ceph -v ceph version 12.2.1-32.el7cp (d02ed11b86dca18a55f943a3a8cb29cfd5eb75bf) luminous (stable) [root@fortress ceph-rbd-mirror.target.wants]#
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:3387