From 6321a651d1de74c7079e7abb5daca75ed58a58c3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Wed, 16 May 2018 16:02:41 +0200 Subject: [PATCH] rolling_update: move osd flag section MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit During a minor update from a jewel to a higher jewel version (10.2.9 to 10.2.10 for example) osd flags don't get applied because they were done in the mgr section which is skipped in jewel since this daemons does not exist. Moving the set flag section after all the mons have been updated solves that problem. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1548071 Co-authored-by: Tomas Petr Signed-off-by: Sébastien Han (cherry picked from commit d80a871a078a175d0775e91df00baf625dc39725) --- infrastructure-playbooks/rolling_update.yml | 38 ++++++++++----------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/infrastructure-playbooks/rolling_update.yml b/infrastructure-playbooks/rolling_update.yml index 9216184cd..5dbd3eea6 100644 --- a/infrastructure-playbooks/rolling_update.yml +++ b/infrastructure-playbooks/rolling_update.yml @@ -179,6 +179,25 @@ when: - containerized_deployment + - name: set osd flags + command: ceph --cluster {{ cluster }} osd set {{ item }} + with_items: + - noout + - noscrub + - nodeep-scrub + delegate_to: "{{ mon_host }}" + when: not containerized_deployment + + - name: set containerized osd flags + command: | + docker exec ceph-mon-{{ hostvars[mon_host]['ansible_hostname'] }} ceph --cluster {{ cluster }} osd set {{ item }} + with_items: + - noout + - noscrub + - nodeep-scrub + delegate_to: "{{ mon_host }}" + when: containerized_deployment + - name: upgrade ceph mgr node @@ -229,25 +248,6 @@ when: - containerized_deployment - - name: set osd flags - command: ceph --cluster {{ cluster }} osd set {{ item }} - with_items: - - noout - - noscrub - - nodeep-scrub - delegate_to: "{{ groups[mon_group_name][0] }}" - when: not containerized_deployment - - - name: set containerized osd flags - command: | - docker exec ceph-mon-{{ hostvars[groups[mon_group_name][0]]['ansible_hostname'] }} ceph --cluster {{ cluster }} osd set {{ item }} - with_items: - - noout - - noscrub - - nodeep-scrub - delegate_to: "{{ groups[mon_group_name][0] }}" - when: containerized_deployment - - name: upgrade ceph osds cluster -- 2.39.5