]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
update: block upgrade when nfs+rgw is deployed
authorGuillaume Abrioux <gabrioux@redhat.com>
Mon, 14 Jun 2021 13:03:37 +0000 (15:03 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 16 Jun 2021 17:39:42 +0000 (19:39 +0200)
This is an unsupported configuration since there
are issues with RGW+NFS upgraded from Nautilus to Pacific.

This approach might be seen as a bit aggressive but it is preferable
to wait before upgrading in that case.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1970003
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
infrastructure-playbooks/rolling_update.yml

index 170ea8c064a52b43f00668597f06325e82785bbc..a52125062cb3f6045b9dfce71af3d5b18895e663 100644 (file)
 #   - if you use an ISO, you have to change the ceph_rhcs_iso_path to the directory containing the new Ceph version
 #
 
+- name: block upgrade if nfs+rgw deployed
+  hosts: "{{ nfs_group_name | default('nfss') }}"
+  serial: 1
+  become: True
+  tasks:
+    - name: import_role ceph-defaults
+      import_role:
+        name: ceph-defaults
+
+    - name: block upgrade if nfs+rgw deployed
+      fail:
+        msg: >
+          Upgrading to Ceph Pacific isn't supported with nfs+rgw.
+          This will be supported soon in a new release of Ceph Pacific.
+      when:
+        - groups.get(nfs_group_name, []) | length > 0
+        - nfs_obj_gw | bool
+
 - name: confirm whether user really meant to upgrade the cluster
   hosts: localhost
   become: false
       private: no
 
   tasks:
+    - name: import_role ceph-defaults
+      import_role:
+        name: ceph-defaults
+
     - name: exit playbook, if user did not mean to upgrade cluster
       fail:
         msg: >
            invoking the playbook"
       when: ireallymeanit != 'yes'
 
-    - name: import_role ceph-defaults
-      import_role:
-        name: ceph-defaults
-
     - name: check if a legacy grafana-server group exists
       import_role:
         name: ceph-facts