]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
rolling_upgrade: set sortbitwise properly
authorSébastien Han <seb@redhat.com>
Tue, 21 Aug 2018 09:15:44 +0000 (11:15 +0200)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Tue, 21 Aug 2018 12:22:32 +0000 (12:22 +0000)
Running 'osd set sortbitwise' when we detect a version 12 of Ceph is
wrong. When OSD are getting updated, even though the package is updated
they won't send their updated version (12) and will stick with 10 if the
command is not applied. So we have to check if OSD are sending a version
10 and then run the command to unlock the OSDs.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1600943
Signed-off-by: Sébastien Han <seb@redhat.com>
infrastructure-playbooks/rolling_update.yml

index c9438d7136b0bcc91d8a9734ad5e4e17eee5c95b..abc0e14d4cdaae9c3472b4311e77ff913b3c3d32 100644 (file)
       delegate_to: "{{ groups[mon_group_name][0] }}"
       when:
         - (ceph_versions.get('stdout', '{}')|from_json).get('osd', {}) | length == 1
-        - ceph_versions_osd | string | search("ceph version 12")
+        - ceph_versions_osd | string | search("ceph version 10")
         - not jewel_minor_update
 
     - name: get num_pgs - non container