]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Pass cluster in rolling_update call to ceph_config mergify/bp/stable-8.0/pr-7645 7646/head
authorJohn Fulton <fulton@redhat.com>
Thu, 30 Jan 2025 19:42:55 +0000 (14:42 -0500)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Fri, 31 Jan 2025 10:55:47 +0000 (10:55 +0000)
This patch is necessary to migrate older clusters which were
deployed when custom names were supported.

Follow up to 3cda8e31c4da81efeade9009b2fc9a1e379f2c66

Signed-off-by: John Fulton <fulton@redhat.com>
(cherry picked from commit d992c8a8969605a59c2e5ae25c456a46daca218d)

# Conflicts:
# infrastructure-playbooks/rolling_update.yml

infrastructure-playbooks/rolling_update.yml

index ff194d47b6c85634a5a46ca8ddf099a713cb780a..e1082e2820cea7a77ca2936f55ba429156ce95a6 100644 (file)
   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:
         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