Merge "Configure glance user in cinder conf"

This commit is contained in:
Zuul
2025-09-15 15:17:49 +00:00
committed by Gerrit Code Review
2 changed files with 6 additions and 1 deletions

View File

@@ -419,6 +419,9 @@ function configure_cinder {
iniset $CINDER_CONF DEFAULT glance_ca_certificates_file $SSL_BUNDLE_FILE
fi
# Set glance credentials (used for location APIs)
configure_keystone_authtoken_middleware $CINDER_CONF glance glance
# Set nova credentials (used for os-assisted-snapshots)
configure_keystone_authtoken_middleware $CINDER_CONF nova nova
iniset $CINDER_CONF nova region_name "$REGION_NAME"

View File

@@ -484,7 +484,9 @@ function configure_glance {
function create_glance_accounts {
if is_service_enabled g-api; then
create_service_user "glance"
# When cinder talk to glance service APIs user needs service
# role for RBAC checks and admin role for cinder to access images.
create_service_user "glance" "admin"
# required for swift access
if is_service_enabled s-proxy; then