]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-osd: start osd after systemd overrides
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 14 Oct 2020 06:52:02 +0000 (08:52 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 15 Oct 2020 07:19:56 +0000 (09:19 +0200)
The service should be started after the ceph-osd systemd overrides has
been added, otherwise, the latter isn't considered.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1860739
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-osd/tasks/start_osds.yml

index 1e1f7d5767922df1f8cf77c8449d107885fa975e..de18551a8b9fb51fe2102d8c2997a79c16168054 100644 (file)
   include_tasks: systemd.yml
   when: containerized_deployment | bool
 
-- name: systemd start osd
-  systemd:
-    name: ceph-osd@{{ item }}
-    state: started
-    enabled: yes
-    masked: no
-    daemon_reload: yes
-  with_items: "{{ ((ceph_osd_ids.stdout | default('{}') | from_json).keys() | list) | union(osd_ids_non_container.stdout_lines) | default([]) }}"
-
 - name: ensure systemd service override directory exists
   file:
     state: directory
   when:
     - ceph_osd_systemd_overrides is defined
     - ansible_service_mgr == 'systemd'
+
+- name: systemd start osd
+  systemd:
+    name: ceph-osd@{{ item }}
+    state: started
+    enabled: yes
+    masked: no
+    daemon_reload: yes
+  with_items: "{{ ((ceph_osd_ids.stdout | default('{}') | from_json).keys() | list) | union(osd_ids_non_container.stdout_lines) | default([]) }}"
\ No newline at end of file