Skip to content

Commit

Permalink
Run ceph update if part of the deployment
Browse files Browse the repository at this point in the history
In case we perform a minor update job where Ceph is deployed, as part of
the minor update procedure we might want to update Ceph (according to a
given container tag) to verify the combination between the target Ceph
version and the target RHOSO version is still healthy.
This patch introduces the tasks that are supposed to call the Ceph
update before openstack:
- it results in a noop in case the ceph container image tag is the <= of
  the current deployed Ceph cluster
- it is skipped by default if no "ceph_update" variable is passed or it
  is set to false
- it can be skipped by passing --skip-tags ceph_update to the playbook

By doing this we have the ability to trigger a Ceph update and make sure
we continue to test the combination between the two projects, but at the
same time we are not introducing an hard dependency as it can easily be
skipped.

Jira: https://issues.redhat.com/browse/OSPRH-9697

Signed-off-by: Francesco Pantano <[email protected]>
  • Loading branch information
fmount committed Sep 13, 2024
1 parent c3457d1 commit 8803734
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions playbooks/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@
hosts: "{{ cifmw_target_host | default('localhost') }}"
gather_facts: false
tasks:
- name: Update Ceph if part of the deployment
when: ceph_update | bool | default(false)
tags:
- update
- ceph_update
ansible.builtin.import_role:
name: cifmw_cephadm
tasks_from: ceph_upgrade
- name: Run update
tags:
- update
Expand Down

0 comments on commit 8803734

Please sign in to comment.