Browse Source

Merge "Set and then unset Ceph's noout flag before/after node is rebooted" into stable/train

changes/79/740679/3
Zuul 3 weeks ago
committed by Gerrit Code Review
parent
commit
6f2e4b6848
1 changed files with 28 additions and 0 deletions
  1. +28
    -0
      deployment/ceph-ansible/ceph-base.yaml

+ 28
- 0
deployment/ceph-ansible/ceph-base.yaml View File

@@ -584,6 +584,34 @@ outputs:
when:
- step|int == 1
- 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:
config_image: ''
config_volume: ''


Loading…
Cancel
Save