Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass cluster in rolling_update call to ceph_config (backport #7645) #7646

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions infrastructure-playbooks/rolling_update.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---

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

View workflow job for this annotation

GitHub Actions / build

load-failure[runtimeerror]

Failed to load YAML file: infrastructure-playbooks/rolling_update.yml
# This playbook does a rolling update for all the Ceph services
#
# The value of 'serial:' adjusts the number of servers to be updated simultaneously.
Expand Down Expand Up @@ -174,9 +174,24 @@
become: true
gather_facts: false
tasks:
<<<<<<< HEAD
- name: Import ceph-defaults role
ansible.builtin.import_role:
name: ceph-defaults
=======
# workaround to prevent mon crash https://access.redhat.com/solutions/7020523
- name: Disable FSMap sanity checks before starting the upgrade
run_once: true
ceph_config:
action: set
who: mon
option: mon_mds_skip_sanity
value: true
cluster: "{{ cluster }}"
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 }}"
>>>>>>> d992c8a8 (Pass cluster in rolling_update call to ceph_config)

- name: Upgrade ceph mon cluster
block:
Expand Down Expand Up @@ -1396,7 +1411,28 @@
path: /etc/ceph/{{ cluster }}-crushmap
state: absent

<<<<<<< HEAD
- name: Show ceph status
=======
- name: Remove FSMap sanity checks after the upgrade
hosts: "{{ mon_group_name|default('mons') }}"
become: True
gather_facts: false
tasks:
# workaround to prevent mon crash https://access.redhat.com/solutions/7020523
- name: Remove FSMap sanity checks
run_once: true
ceph_config:
action: rm
who: mon
option: mon_mds_skip_sanity
cluster: "{{ cluster }}"
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: show ceph status
>>>>>>> d992c8a8 (Pass cluster in rolling_update call to ceph_config)
hosts: "{{ mon_group_name|default('mons') }}"
tags: always
become: true
Expand Down
Loading