From eb01602ebcbcf58052665008fdb77022a2597634 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Wed, 13 Aug 2025 16:50:39 +0200 Subject: [PATCH] Provision backup configuration for cinder-backup group While cinder-backup has it's own service and group, we still use cinder-volume for conditioning some configuration, which makes it untrivial to separate cinder-volume from cinder-backup in deployments This improves some crucial conditions to work for cinder-backup in case it's deployed separately. Change-Id: Ie74931133b7e2bf4262bb48134e80a64c9779d04 Signed-off-by: Dmitriy Rabotyagov --- tasks/main.yml | 2 +- templates/cinder.conf.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 312ed374..9a3c9db4 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -227,7 +227,7 @@ openstack_service_system_user: "{{ cinder_system_user_name }}" openstack_service_venv_bin: "{{ (cinder_install_method == 'source') | ternary(cinder_bin, '') }}" when: - - cinder_services['cinder-volume']['group'] in group_names + - cinder_services['cinder-volume']['group'] in group_names or cinder_services['cinder-backup']['group'] in group_names - cinder_backend_rbd_inuse | bool tags: - ceph diff --git a/templates/cinder.conf.j2 b/templates/cinder.conf.j2 index e225cdd7..c835b6d1 100644 --- a/templates/cinder.conf.j2 +++ b/templates/cinder.conf.j2 @@ -23,7 +23,7 @@ cluster = {{ cinder_active_active_cluster_name }} scheduler_default_filters={{ cinder_scheduler_default_filters | join(',') }} {% endif %} -{% if cinder_services['cinder-volume']['group'] in group_names %} +{% if cinder_services['cinder-backup']['group'] in group_names %} {% if cinder_service_backup_program_enabled == true %} ## Cinder Backup