rolling_upgrade: set sortbitwise properly

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>
pull/3036/merge
Sébastien Han 2018-08-21 11:15:44 +02:00 committed by mergify[bot]
parent 77a3a682f3
commit 2e6e885bb7
1 changed files with 1 additions and 1 deletions

View File

@ -415,7 +415,7 @@
delegate_to: "{{ groups[mon_group_name][0] }}" delegate_to: "{{ groups[mon_group_name][0] }}"
when: when:
- (ceph_versions.get('stdout', '{}')|from_json).get('osd', {}) | length == 1 - (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 - not jewel_minor_update
- name: get num_pgs - non container - name: get num_pgs - non container