Add service secret to libvirt when cinder enabled

The current code only adds the service secret to libvirt when Ceph has
been enabled in Nova, but it should also be enabled if it has only been
enabled in Cinder.

This patch changes devstack/plugin.sh to write the service secret to
libvirt whenever Nova or Cinder is using Ceph.

This would be the counterpart of the code we already have in
_undefine_virsh_secret where we are already checking if it's enabled in
either of the services to remove the secret.

Change-Id: I1067d52b7a435fcef7996eea6479d598be842dca
This commit is contained in:
Gorka Eguileor 2023-06-06 18:32:56 +02:00
parent bf4598d923
commit bc0d969885
1 changed files with 2 additions and 1 deletions

View File

@ -75,7 +75,8 @@ elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
echo_summary "Configuring Cinder for Ceph"
configure_ceph_cinder
fi
if is_ceph_enabled_for_service nova; then
if is_ceph_enabled_for_service nova ||
is_ceph_enabled_for_service cinder; then
# NOTE (leseb): the part below is a requirement
# to attach Ceph block devices
echo_summary "Configuring libvirt secret"