From: Guillaume Abrioux Date: Mon, 18 Nov 2019 16:59:56 +0000 (+0100) Subject: update: use flags noout and nodeep-scrub only X-Git-Tag: v6.0.0alpha1~211 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=548db78b9535348dff616665be749503f80c4fca;p=ceph-ansible.git 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 Co-authored-by: Rachana Patel --- diff --git a/infrastructure-playbooks/rolling_update.yml b/infrastructure-playbooks/rolling_update.yml index 7bb4540a1..e7abec455 100644 --- a/infrastructure-playbooks/rolling_update.yml +++ b/infrastructure-playbooks/rolling_update.yml @@ -331,6 +331,21 @@ name: ceph-mgr +- name: set osd flags + hosts: "{{ mon_group_name | default('mons') }}[0]" + become: True + tasks: + - import_role: + name: ceph-defaults + - import_role: + name: ceph-facts + + - name: set osd flags + command: "{{ container_exec_cmd | default('') }} ceph --cluster {{ cluster }} osd set {{ item }}" + with_items: + - noout + - nodeep-scrub + - name: upgrade ceph osds cluster vars: health_osd_check_retries: 40 @@ -368,15 +383,6 @@ container_exec_cmd_update_osd: "{{ container_binary }} exec ceph-mon-{{ hostvars[groups[mon_group_name][0]]['ansible_hostname'] }}" when: containerized_deployment | bool - - name: set osd flags - command: "{{ container_exec_cmd_update_osd | default('') }} ceph --cluster {{ cluster }} osd set {{ item }}" - with_items: - - noout - - norebalance - - norecover - - nobackfill - delegate_to: "{{ groups[mon_group_name][0] }}" - - name: stop ceph osd systemd: name: ceph-osd@{{ item }} @@ -445,15 +451,6 @@ - ceph_release in ["nautilus", "octopus"] - not containerized_deployment | bool - - name: unset osd flags - command: "{{ container_exec_cmd_update_osd | default('') }} ceph osd unset {{ item }} --cluster {{ cluster }}" - with_items: - - noout - - norebalance - - norecover - - nobackfill - delegate_to: "{{ groups[mon_group_name][0] }}" - - name: get num_pgs - non container command: "{{ container_exec_cmd_update_osd|default('') }} ceph --cluster {{ cluster }} -s --format json" register: ceph_pgs @@ -486,6 +483,12 @@ container_exec_cmd_update_osd: "{{ container_binary }} exec ceph-mon-{{ hostvars[groups[mon_group_name][0]]['ansible_hostname'] }}" when: containerized_deployment | bool + - name: unset osd flags + command: "{{ container_exec_cmd_update_osd | default('') }} ceph osd unset {{ item }} --cluster {{ cluster }}" + with_items: + - noout + - nodeep-scrub + - name: get osd versions command: "{{ container_exec_cmd_update_osd|default('') }} ceph --cluster {{ cluster }} versions" register: ceph_versions