mirror of https://github.com/ceph/ceph-ansible.git
rolling_update: set osd sortbitwise
upgrade RHCS 2 -> RHCS 3 will fail if cluster has still set sortnibblewise, it stay stuck on "TASK [waiting for clean pgs...]" as RHCS 3 osds will not start if nibblewise is set. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1600943 Signed-off-by: Sébastien Han <seb@redhat.com>pull/2928/head
parent
0a88bccf87
commit
b3266c5be2
|
@ -325,6 +325,7 @@
|
|||
health_osd_check_retries: 40
|
||||
health_osd_check_delay: 30
|
||||
upgrade_ceph_packages: True
|
||||
jewel_minor_update: False
|
||||
|
||||
hosts:
|
||||
- "{{ osd_group_name|default('osds') }}"
|
||||
|
@ -387,6 +388,30 @@
|
|||
when:
|
||||
- containerized_deployment
|
||||
|
||||
- name: get osd versions
|
||||
command: "{{ docker_exec_cmd_update_osd|default('') }} ceph --cluster {{ cluster }} versions"
|
||||
register: ceph_versions
|
||||
delegate_to: "{{ groups[mon_group_name][0] }}"
|
||||
when:
|
||||
- not jewel_minor_update
|
||||
|
||||
- name: set_fact ceph_versions_osd
|
||||
set_fact:
|
||||
ceph_versions_osd: "{{ (ceph_versions.stdout|from_json).osd }}"
|
||||
delegate_to: "{{ groups[mon_group_name][0] }}"
|
||||
when:
|
||||
- not jewel_minor_update
|
||||
|
||||
# length == 1 means there is a single osds versions entry
|
||||
# thus all the osds are running the same version
|
||||
- name: osd set sortbitwise
|
||||
command: "{{ docker_exec_cmd_update_osd|default('') }} ceph --cluster {{ cluster }} osd set sortbitwise"
|
||||
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")
|
||||
- not jewel_minor_update
|
||||
|
||||
- name: get num_pgs - non container
|
||||
command: "{{ docker_exec_cmd_update_osd|default('') }} ceph --cluster {{ cluster }} -s --format json"
|
||||
register: ceph_pgs
|
||||
|
|
Loading…
Reference in New Issue