Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use Jira Cloud for all bug tracking management.

Bug 1504166

Summary: rbd-mirror doesn't restart after reboot
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Ken Dreyer (Red Hat) <kdreyer>
Component: RBD-MirrorAssignee: Sage Weil <sweil>
Status: CLOSED ERRATA QA Contact: Manohar Murthy <mmurthy>
Severity: high Docs Contact:
Priority: medium    
Version: 3.0CC: ceph-eng-bugs, ceph-qe-bugs, hnallurv, jdillama, vakulkar, vashastr
Target Milestone: rc   
Target Release: 3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-12.2.1-22.el7cp Ubuntu: ceph_12.2.1-25redhat1xenial Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-05 23:48:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ken Dreyer (Red Hat) 2017-10-19 15:26:23 UTC
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.

Comment 5 Manohar Murthy 2017-10-30 10:24:05 UTC
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]#

Comment 8 errata-xmlrpc 2017-12-05 23:48:29 UTC
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