]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
update: do not revert a752edb
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 3 Dec 2021 09:09:47 +0000 (10:09 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 3 Dec 2021 09:09:47 +0000 (10:09 +0100)
This reverts commit a752edbd29bf9fa1915446cf4f668ab92711cca7.
This should be present only as of RHCS 5.1

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
infrastructure-playbooks/rolling_update.yml

index 116e49c96a44bd8cda5aa2d02cfd6c5c1d26dc97..a0332f517b965765c54dcded4167e88769d271dd 100644 (file)
 # If you run Red Hat Ceph Storage and are doing a **major** update (e.g: from 2 to 3), you have to change the ceph_rhcs_version to a newer one
 #
 
+- 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
   tags: always