Merge "Set and then unset Ceph's noout flag before/after node is rebooted" into stable/train
This commit is contained in:
commit
6f2e4b6848
|
@ -584,6 +584,34 @@ outputs:
|
||||||
when:
|
when:
|
||||||
- step|int == 1
|
- step|int == 1
|
||||||
- ansible_distribution_major_version == '8'
|
- ansible_distribution_major_version == '8'
|
||||||
|
- name: Set noout flag
|
||||||
|
command: "{{ container_cli }} exec -u root ceph-mon-${HOSTNAME} ceph osd set {{ item }}"
|
||||||
|
with_items:
|
||||||
|
- noout
|
||||||
|
- norecover
|
||||||
|
- nobackfill
|
||||||
|
- norebalance
|
||||||
|
- nodeep-scrub
|
||||||
|
tags:
|
||||||
|
- never
|
||||||
|
- system_upgrade
|
||||||
|
- system_upgrade_prepare
|
||||||
|
when:
|
||||||
|
- step|int == 3
|
||||||
|
- upgrade_leapp_enabled
|
||||||
|
delegate_to: "{{ ceph_mon_short_bootstrap_node_name }}"
|
||||||
|
post_upgrade_tasks:
|
||||||
|
- name: Unset noout flag
|
||||||
|
command: "{{ container_cli }} exec -u root ceph-mon-${HOSTNAME} ceph osd unset {{ item }}"
|
||||||
|
with_items:
|
||||||
|
- noout
|
||||||
|
- norecover
|
||||||
|
- nobackfill
|
||||||
|
- norebalance
|
||||||
|
- nodeep-scrub
|
||||||
|
when: step|int == 2
|
||||||
|
become: true
|
||||||
|
delegate_to: "{{ ceph_mon_short_bootstrap_node_name }}"
|
||||||
puppet_config:
|
puppet_config:
|
||||||
config_image: ''
|
config_image: ''
|
||||||
config_volume: ''
|
config_volume: ''
|
||||||
|
|
Loading…
Reference in New Issue