]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
filestore-to-bluestore: stop ceph-volume services
authorDimitri Savineau <dsavinea@redhat.com>
Thu, 5 Mar 2020 19:18:33 +0000 (14:18 -0500)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Thu, 5 Mar 2020 22:53:32 +0000 (17:53 -0500)
We only disable the ceph-osd services but not the ceph-volume lvm
services during the filestore to bluestore migration.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
infrastructure-playbooks/filestore-to-bluestore.yml

index a8ece7c43f1ec5a6dee0efd4d63f5c10aa628635..40bd6496910455f99cb74e39ec73bcb9c2e5183f 100644 (file)
                 enabled: no
               with_items: "{{ (ceph_volume_lvm_list.stdout | from_json).keys() | list }}"
 
+            - name: stop and disable ceph-volume services
+              service:
+                name: "ceph-volume@lvm-{{ item.tags['ceph.osd_id'] }}-{{ item.tags['ceph.osd_fsid'] }}"
+                state: stopped
+                enabled: no
+              with_items: "{{ _lvm_list }}"
+              when:
+                - not containerized_deployment | bool
+                - item.type == 'data'
+
             - name: mark down osds
               command: "{{ container_exec_cmd }} ceph --cluster {{ cluster }} osd down {{ item }}"
               with_items: "{{ (ceph_volume_lvm_list.stdout | from_json).keys() | list }}"