Skip to content

Commit

Permalink
update: block upgrade when nfs+rgw is deployed
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
guits committed Jun 16, 2021
1 parent 1bfedb8 commit 93f1765
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions infrastructure-playbooks/rolling_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,24 @@
# - 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
Expand All @@ -27,6 +45,10 @@
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: >
Expand All @@ -36,10 +58,6 @@
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
Expand Down

0 comments on commit 93f1765

Please sign in to comment.