update: use flags noout and nodeep-scrub only

1. set noout and nodeep-scrub flags,
2. upgrade each OSD node, one by one, wait for active+clean pgs
3. after all osd nodes are upgraded, unset flags

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
Co-authored-by: Rachana Patel <racpatel@redhat.com>
(cherry picked from commit 548db78b95)
pull/4974/head
Guillaume Abrioux 2019-11-18 17:59:56 +01:00 committed by Dimitri Savineau
parent 7ce33f4865
commit 09f295e89c
1 changed files with 16 additions and 4 deletions

View File

@ -326,6 +326,19 @@
- containerized_deployment
- name: set osd flags
hosts: "{{ mon_group_name | default('mons') }}[0]"
become: True
roles:
- ceph-defaults
- ceph-facts
post_tasks:
- name: set osd flags
command: "{{ docker_exec_cmd | default('') }} ceph --cluster {{ cluster }} osd set {{ item }}"
with_items:
- noout
- nodeep-scrub
- name: upgrade ceph osds cluster
vars:
@ -419,7 +432,7 @@
- name: unset osd flags
hosts:
- "{{ mon_group_name|default('mons') }}"
- "{{ mon_group_name | default('mons') }}[0]"
become: True
@ -435,11 +448,10 @@
- containerized_deployment
- name: unset osd flags
command: "{{ docker_exec_cmd_update_osd|default('') }} ceph osd unset {{ item }} --cluster {{ cluster }}"
command: "{{ docker_exec_cmd_update_osd | default('') }} ceph osd unset {{ item }} --cluster {{ cluster }}"
with_items:
- noout
- norebalance
delegate_to: "{{ groups[mon_group_name][0] }}"
- nodeep-scrub
- name: get osd versions
command: "{{ docker_exec_cmd_update_osd|default('') }} ceph --cluster {{ cluster }} versions"