Skip to content

Commit

Permalink
update: set cluster config prior to upgrading
Browse files Browse the repository at this point in the history
As 8.0 drops cluster config from ceph.conf by default, we need
to make sure this config is well applied as part of the upgrade to 8
(reef) from 7 (quincy)

Signed-off-by: Guillaume Abrioux <[email protected]>
  • Loading branch information
guits committed Mar 13, 2024
1 parent 8737560 commit 70dd80e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions infrastructure-playbooks/rolling_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,33 @@
when: "'reef' not in ceph_version.stdout.split()"


- hosts: mons[0]

Check failure on line 144 in infrastructure-playbooks/rolling_update.yml

View workflow job for this annotation

GitHub Actions / build

name[play]

All plays should be named.
become: true
gather_facts: false
any_errors_fatal: true
tasks:
- name: Import default role
ansible.builtin.import_role:
name: ceph-defaults

- name: Import ceph-facts role
ansible.builtin.import_role:
name: ceph-facts
tasks_from: container_binary.yml

- name: Set cluster configs
ceph_config:
action: set
who: "{{ item.0.key }}"
option: "{{ item.1.key }}"
value: "{{ item.1.value }}"
when: item.1.value != omit
loop: "{{ ceph_cluster_conf | dict2dict }}"
environment:
CEPH_CONTAINER_IMAGE: "{{ ceph_docker_registry + '/' + ceph_docker_image + ':' + ceph_docker_image_tag if containerized_deployment | bool else None }}"
CEPH_CONTAINER_BINARY: "{{ container_binary }}"


- name: Upgrade ceph mon cluster
tags: mons
vars:
Expand Down

0 comments on commit 70dd80e

Please sign in to comment.