mirror of https://github.com/ceph/ceph-ansible.git
filestore-to-bluestore: stop ceph-volume services
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>pull/5127/head
parent
eac207091b
commit
38a683e5bf
|
@ -178,6 +178,16 @@
|
||||||
enabled: no
|
enabled: no
|
||||||
with_items: "{{ (ceph_volume_lvm_list.stdout | from_json).keys() | list }}"
|
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
|
- name: mark down osds
|
||||||
command: "{{ container_exec_cmd }} ceph --cluster {{ cluster }} osd down {{ item }}"
|
command: "{{ container_exec_cmd }} ceph --cluster {{ cluster }} osd down {{ item }}"
|
||||||
with_items: "{{ (ceph_volume_lvm_list.stdout | from_json).keys() | list }}"
|
with_items: "{{ (ceph_volume_lvm_list.stdout | from_json).keys() | list }}"
|
||||||
|
|
Loading…
Reference in New Issue