Merge "[FFWD Ceph] Fix ceph post_upgrade_tasks for osd options" into stable/train

This commit is contained in:
Zuul 2020-08-26 12:22:33 +00:00 committed by Gerrit Code Review
commit ae572a1ca4
5 changed files with 49 additions and 46 deletions

View File

@ -591,52 +591,7 @@ outputs:
when: when:
- step|int == 1 - step|int == 1
- ansible_distribution_major_version == '8' - ansible_distribution_major_version == '8'
post_upgrade_tasks: []
- block:
- name: Check for docker cli
stat:
path: "/var/run/docker.sock"
register: check_docker_cli
check_mode: false
- name: Set noout flag
shell: "{{ container_client }} exec -u root ceph-mon-${HOSTNAME} ceph osd set {{ item }}"
become: true
with_items:
- noout
- norecover
- nobackfill
- norebalance
- nodeep-scrub
vars:
container_client: |-
{% set container_client = 'podman' %}
{% if check_docker_cli.stat.exists|bool %}
{% set container_client = 'docker' %}
{% endif %}
{{ container_client }}
delegate_to: "{{ ceph_mon_short_bootstrap_node_name }}"
tags:
- never
- system_upgrade
- system_upgrade_prepare
when:
- step|int == 1
- upgrade_leapp_enabled
post_upgrade_tasks:
- name: Unset noout flag
shell: "{{ 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 }}"
tags:
- never
- system_upgrade
puppet_config: puppet_config:
config_image: '' config_image: ''
config_volume: '' config_volume: ''

View File

@ -62,6 +62,7 @@ outputs:
value: value:
service_name: ceph_mds service_name: ceph_mds
upgrade_tasks: {get_attr: [CephBase, role_data, upgrade_tasks]} upgrade_tasks: {get_attr: [CephBase, role_data, upgrade_tasks]}
post_upgrade_tasks: {get_attr: [CephBase, role_data, post_upgrade_tasks]}
puppet_config: puppet_config:
config_image: '' config_image: ''
config_volume: '' config_volume: ''

View File

@ -70,6 +70,7 @@ outputs:
value: value:
service_name: ceph_mon service_name: ceph_mon
upgrade_tasks: {get_attr: [CephBase, role_data, upgrade_tasks]} upgrade_tasks: {get_attr: [CephBase, role_data, upgrade_tasks]}
post_upgrade_tasks: {get_attr: [CephBase, role_data, post_upgrade_tasks]}
puppet_config: puppet_config:
config_image: '' config_image: ''
config_volume: '' config_volume: ''

View File

@ -76,6 +76,51 @@ outputs:
tags: validation tags: validation
when: step|int == 0 when: step|int == 0
shell: test "nil" == "$(hiera -c /etc/puppet/hiera.yaml ceph::profile::params::osds)" shell: test "nil" == "$(hiera -c /etc/puppet/hiera.yaml ceph::profile::params::osds)"
- block:
- name: Check for docker cli
stat:
path: "/var/run/docker.sock"
register: check_docker_cli
check_mode: false
- name: Set noout flag
shell: "{{ container_client }} exec -u root ceph-mon-${HOSTNAME} ceph osd set {{ item }}"
become: true
with_items:
- noout
- norecover
- nobackfill
- norebalance
- nodeep-scrub
vars:
container_client: |-
{% set container_client = 'podman' %}
{% if check_docker_cli.stat.exists|bool %}
{% set container_client = 'docker' %}
{% endif %}
{{ container_client }}
delegate_to: "{{ ceph_mon_short_bootstrap_node_name }}"
tags:
- never
- system_upgrade
- system_upgrade_prepare
when:
- step|int == 1
- upgrade_leapp_enabled
post_upgrade_tasks:
list_concat:
- {get_attr: [CephBase, role_data, post_upgrade_tasks]}
- - name: Unset noout flag
shell: "{{ 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: ''

View File

@ -121,6 +121,7 @@ outputs:
- ResellerAdmin - ResellerAdmin
- swiftoperator - swiftoperator
upgrade_tasks: {get_attr: [CephBase, role_data, upgrade_tasks]} upgrade_tasks: {get_attr: [CephBase, role_data, upgrade_tasks]}
post_upgrade_tasks: {get_attr: [CephBase, role_data, post_upgrade_tasks]}
puppet_config: puppet_config:
config_image: '' config_image: ''
config_volume: '' config_volume: ''