mirror of https://github.com/ceph/ceph-ansible.git
upgrade: consider all 'active+clean' states as valid pgs
In cluster with a large number of PGs, it can be expected some of them scrubbing, it's a normal operation. Preventing from scrubbing operation force to set noscrub flag before a rolling update which is a problem because it pauses an important data integrity operation until the end of the rolling upgrade. This commit allows an upgrade even while PGs are scrubbing. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1616066 Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>pull/3168/head
parent
4cd675e7ec
commit
c13a3c3492
|
@ -185,8 +185,6 @@
|
||||||
with_items:
|
with_items:
|
||||||
- noout
|
- noout
|
||||||
- norebalance
|
- norebalance
|
||||||
- noscrub
|
|
||||||
- nodeep-scrub
|
|
||||||
delegate_to: "{{ mon_host }}"
|
delegate_to: "{{ mon_host }}"
|
||||||
when: not containerized_deployment
|
when: not containerized_deployment
|
||||||
|
|
||||||
|
@ -196,8 +194,6 @@
|
||||||
with_items:
|
with_items:
|
||||||
- noout
|
- noout
|
||||||
- norebalance
|
- norebalance
|
||||||
- noscrub
|
|
||||||
- nodeep-scrub
|
|
||||||
delegate_to: "{{ mon_host }}"
|
delegate_to: "{{ mon_host }}"
|
||||||
when: containerized_deployment
|
when: containerized_deployment
|
||||||
|
|
||||||
|
@ -427,9 +423,7 @@
|
||||||
command: "{{ docker_exec_cmd_update_osd|default('') }} ceph --cluster {{ cluster }} -s --format json"
|
command: "{{ docker_exec_cmd_update_osd|default('') }} ceph --cluster {{ cluster }} -s --format json"
|
||||||
register: ceph_health_post
|
register: ceph_health_post
|
||||||
until: >
|
until: >
|
||||||
((ceph_health_post.stdout | from_json).pgmap.pgs_by_state | length) == 1
|
((ceph_health_post.stdout | from_json).pgmap.pgs_by_state | selectattr('state_name', 'search', '^active\\+clean') | map(attribute='count') | list | sum) == (ceph_pgs.stdout | from_json).pgmap.num_pgs
|
||||||
and
|
|
||||||
(ceph_health_post.stdout | from_json).pgmap.pgs_by_state.0.state_name == "active+clean"
|
|
||||||
delegate_to: "{{ groups[mon_group_name][0] }}"
|
delegate_to: "{{ groups[mon_group_name][0] }}"
|
||||||
retries: "{{ health_osd_check_retries }}"
|
retries: "{{ health_osd_check_retries }}"
|
||||||
delay: "{{ health_osd_check_delay }}"
|
delay: "{{ health_osd_check_delay }}"
|
||||||
|
@ -461,8 +455,6 @@
|
||||||
with_items:
|
with_items:
|
||||||
- noout
|
- noout
|
||||||
- norebalance
|
- norebalance
|
||||||
- noscrub
|
|
||||||
- nodeep-scrub
|
|
||||||
delegate_to: "{{ groups[mon_group_name][0] }}"
|
delegate_to: "{{ groups[mon_group_name][0] }}"
|
||||||
|
|
||||||
- name: get osd versions
|
- name: get osd versions
|
||||||
|
|
Loading…
Reference in New Issue