Skip to content

Commit

Permalink
update: check the ceph release
Browse files Browse the repository at this point in the history
Check early which Ceph release is going to be deployed and fail if it
doesn't correspond to the ceph-ansible version being used.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1978643

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit eec3878)
  • Loading branch information
guits authored and dsavineau committed Jul 26, 2021
1 parent d0a122e commit 76f6884
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions infrastructure-playbooks/rolling_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,21 @@
- (containerized_deployment | bool) or (dashboard_enabled | bool)
- ceph_docker_registry_auth | bool

- name: check ceph release in container image
when: containerized_deployment | bool
delegate_to: "{{ groups[mon_group_name][0] }}"
run_once: true
block:
- name: get the ceph release being deployed
command: "{{ ceph_cmd }} --cluster {{ cluster }} --version"
register: ceph_version
changed_when: false

- name: check ceph release being deployed
fail:
msg: "This version of ceph-ansible is intended for upgrading to Ceph Pacific only."
when: "'pacific' not in ceph_version.stdout.split()"

- name: set_fact rolling_update
set_fact:
rolling_update: true
Expand Down

0 comments on commit 76f6884

Please sign in to comment.