mirror of https://github.com/ceph/ceph-ansible.git
update: use flags noout and nodeep-scrub only
1. set noout and nodeep-scrub flags,
2. upgrade each OSD node, one by one, wait for active+clean pgs
3. after all osd nodes are upgraded, unset flags
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
Co-authored-by: Rachana Patel <racpatel@redhat.com>
(cherry picked from commit 548db78b95
)
pull/4974/head
parent
7ce33f4865
commit
09f295e89c
|
@ -326,6 +326,19 @@
|
||||||
- containerized_deployment
|
- containerized_deployment
|
||||||
|
|
||||||
|
|
||||||
|
- name: set osd flags
|
||||||
|
hosts: "{{ mon_group_name | default('mons') }}[0]"
|
||||||
|
become: True
|
||||||
|
roles:
|
||||||
|
- ceph-defaults
|
||||||
|
- ceph-facts
|
||||||
|
post_tasks:
|
||||||
|
- name: set osd flags
|
||||||
|
command: "{{ docker_exec_cmd | default('') }} ceph --cluster {{ cluster }} osd set {{ item }}"
|
||||||
|
with_items:
|
||||||
|
- noout
|
||||||
|
- nodeep-scrub
|
||||||
|
|
||||||
- name: upgrade ceph osds cluster
|
- name: upgrade ceph osds cluster
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
|
@ -419,7 +432,7 @@
|
||||||
- name: unset osd flags
|
- name: unset osd flags
|
||||||
|
|
||||||
hosts:
|
hosts:
|
||||||
- "{{ mon_group_name|default('mons') }}"
|
- "{{ mon_group_name | default('mons') }}[0]"
|
||||||
|
|
||||||
become: True
|
become: True
|
||||||
|
|
||||||
|
@ -435,11 +448,10 @@
|
||||||
- containerized_deployment
|
- containerized_deployment
|
||||||
|
|
||||||
- name: unset osd flags
|
- name: unset osd flags
|
||||||
command: "{{ docker_exec_cmd_update_osd|default('') }} ceph osd unset {{ item }} --cluster {{ cluster }}"
|
command: "{{ docker_exec_cmd_update_osd | default('') }} ceph osd unset {{ item }} --cluster {{ cluster }}"
|
||||||
with_items:
|
with_items:
|
||||||
- noout
|
- noout
|
||||||
- norebalance
|
- nodeep-scrub
|
||||||
delegate_to: "{{ groups[mon_group_name][0] }}"
|
|
||||||
|
|
||||||
- name: get osd versions
|
- name: get osd versions
|
||||||
command: "{{ docker_exec_cmd_update_osd|default('') }} ceph --cluster {{ cluster }} versions"
|
command: "{{ docker_exec_cmd_update_osd|default('') }} ceph --cluster {{ cluster }} versions"
|
||||||
|
|
Loading…
Reference in New Issue