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:
1 changed files with 2 additions and 1 deletions
@@ -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"
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.