enable ceph-mon.target service after monitor start

ceph-create-keys unit file was removed here:

* 8bcb4646b6
* dc5fe8d415

As a consequence the systemctl preset command now fails to run since the
unit does not exist anymore. Due to the redirection in /dev/null we
don't know what's happening.

Ultimately the mon unit doesn't get enabled and the mon service won't
start after reboot.
Removing the old/non-existent unit makes the command succeed now.

ceph fix: https://github.com/ceph/ceph/pull/14226

Signed-off-by: WingkaiHo <sanguosfiang@163.com>
Co-Authored-By: Sébastien Han <seb@redhat.com>
pull/1416/head
WingkaiHo 2017-03-29 11:11:04 +08:00 committed by Sébastien Han
parent e04bfdc4f0
commit 6ad8288c91
1 changed files with 9 additions and 0 deletions

View File

@ -5,3 +5,12 @@
state: started
enabled: yes
changed_when: false
# NOTE: This patch only affects Kraken. This fixes a bug when the monitor service
# does not start automatically after a reboot. Fix proposed upstream: ceph/ceph#14226
- name: enable the ceph-mon.target service
systemd:
name: ceph-mon.target
enabled: yes
masked: no
changed_when: false