From 5300fcea9d0f03d0efae24048ea943dcd8f0863e Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Tue, 16 Jan 2024 18:26:06 +0100 Subject: [PATCH] Run ceph_client when cinder uses Ceph In usecases where only cinder is using ceph we currently do not execute ceph_client role, which makes nodes failing to spawn instances from RBD volumes. Sample usecase where Glance might be using Swift and it might be desired to use local storage for Nova ephemeral drives, but cinder spawning volumes on Ceph Currently this can be workarounded with setting `nova_rbd_inuse: True` but at the same time `nova_libvirt_images_rbd_pool: ''`, though this is counter-intuitive and this patch aims to improve this. Change-Id: I412d1e9ccb51f0cd33a98333bfa1a01510867fbe --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 49fc2d8f..2649e3f9 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -323,7 +323,7 @@ when: - nova_virt_type != 'ironic' - nova_services['nova-compute']['group'] in group_names - - (nova_rbd_inuse | bool) or (nova_glance_rbd_inuse | bool) + - (nova_rbd_inuse | bool) or (nova_glance_rbd_inuse | bool) or (nova_cinder_rbd_inuse | bool) tags: - always