mirror of https://github.com/ceph/ceph-ansible.git
switch-to-containers: set and unset osd flags
The workflow in this playbook should be the same than in rolling_update,
we should first set noout and nodeep-scrub flags before migrating the
first osd and unset osd flags after the last osd is migrated.
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 2cfaa056e0
)
pull/5429/head
parent
6f3d696742
commit
5a4134098a
|
@ -192,6 +192,19 @@
|
||||||
- ceph-mgr
|
- ceph-mgr
|
||||||
|
|
||||||
|
|
||||||
|
- name: set osd flags
|
||||||
|
hosts: "{{ mon_group_name | default('mons') }}[0]"
|
||||||
|
become: True
|
||||||
|
roles:
|
||||||
|
- ceph-defaults
|
||||||
|
post_tasks:
|
||||||
|
- name: set osd flags
|
||||||
|
command: "docker exec ceph-mon-{{ ansible_hostname }} ceph --cluster {{ cluster }} osd set {{ item }}"
|
||||||
|
with_items:
|
||||||
|
- noout
|
||||||
|
- nodeep-scrub
|
||||||
|
|
||||||
|
|
||||||
- name: switching from non-containerized to containerized ceph osd
|
- name: switching from non-containerized to containerized ceph osd
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
|
@ -344,6 +357,18 @@
|
||||||
- (ceph_pgs.stdout | from_json).pgmap.num_pgs != 0
|
- (ceph_pgs.stdout | from_json).pgmap.num_pgs != 0
|
||||||
|
|
||||||
|
|
||||||
|
- name: unset osd flags
|
||||||
|
hosts: "{{ mon_group_name | default('mons') }}[0]"
|
||||||
|
become: True
|
||||||
|
roles:
|
||||||
|
- ceph-defaults
|
||||||
|
post_tasks:
|
||||||
|
- name: set osd flags
|
||||||
|
command: "docker exec ceph-mon-{{ ansible_hostname }} ceph --cluster {{ cluster }} osd unset {{ item }}"
|
||||||
|
with_items:
|
||||||
|
- noout
|
||||||
|
- nodeep-scrub
|
||||||
|
|
||||||
- name: switching from non-containerized to containerized ceph mds
|
- name: switching from non-containerized to containerized ceph mds
|
||||||
|
|
||||||
hosts:
|
hosts:
|
||||||
|
|
Loading…
Reference in New Issue