]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
switch2containers: do not stop ceph.target in osd play v5.0.3
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 26 Nov 2020 09:11:36 +0000 (10:11 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 30 Nov 2020 09:11:57 +0000 (10:11 +0100)
`ceph.target` should be disabled only. Otherwise, in collocation
scenario you stop other collocated services in the OSD play which isn't
what we want to do. Each daemon has its corresponding play for managing
the transition to container.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1901865
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 0b05620597121c6388b7fbf227fb01f8efb2bda6)

infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml

index 5ddd1b38c0aee7b5fb13483417bff23329977afd..0fff6b80fbe408ffeb2705909dd754d8c705e893 100644 (file)
     - name: collect running osds
       shell: |
         set -o pipefail;
-        systemctl list-units | grep -E "loaded * active" | grep -Eo 'ceph-osd@[0-9]+.service|ceph-volume|ceph\.target'
+        systemctl list-units | grep -E "loaded * active" | grep -Eo 'ceph-osd@[0-9]+.service|ceph-volume'
       register: running_osds
       changed_when: false
       failed_when: false
       with_items: "{{ running_osds.stdout_lines | default([]) }}"
       when: running_osds != []
 
+    - name: disable ceph.target
+      systemd:
+        name: ceph.target
+        enabled: no
+
     - name: remove old ceph-osd systemd units
       file:
         path: "{{ item }}"