]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-osd: trigger osd container restart on script change
authorSébastien Han <seb@redhat.com>
Thu, 28 Jun 2018 07:54:24 +0000 (09:54 +0200)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Fri, 29 Jun 2018 07:22:15 +0000 (07:22 +0000)
The script ceph-osd-run.sh holds the config options to start the
container, if one of these options are modified we must restart the
container. This was not the case before becauase the 'notify' flag
wasn't present.

Closing: https://bugzilla.redhat.com/show_bug.cgi?id=1596061
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit abdb53e16a7f46ceebbf4de65ed1add04da0d543)

roles/ceph-osd/tasks/docker/start_docker_osd.yml

index 2308ffaca33db30b3bbf79ea4d702d38a30cff9e..c24e7db019c80cb56f8d553b411d7e6823796f56 100644 (file)
@@ -24,6 +24,8 @@
     owner: "root"
     group: "root"
     mode: "0744"
+  notify:
+    - restart ceph osds
 
 - name: generate systemd unit file
   become: true
@@ -42,5 +44,4 @@
     state: started
     enabled: yes
     daemon_reload: yes
-  changed_when: false
   with_items: "{{ devices }}"