From 8803734011d931b1e93a7319f036092a2d301cc3 Mon Sep 17 00:00:00 2001 From: Francesco Pantano Date: Fri, 13 Sep 2024 14:52:58 +0200 Subject: [PATCH] Run ceph update if part of the deployment 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 --- playbooks/update.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/playbooks/update.yml b/playbooks/update.yml index ed4e3506f8..0eb9c9fcb9 100644 --- a/playbooks/update.yml +++ b/playbooks/update.yml @@ -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