Configure glance user in cinder conf

Cinder talk to glance for new image location APIs which
are default to 'service' role[1]. That needs cinder to have
the glance service user configured. We need to assign admin
role also to service user so that it can access images from
glance.

Needed-By: https://review.opendev.org/c/openstack/glance/+/958715

[1] https://review.opendev.org/c/openstack/glance/+/958715

Change-Id: I52d118672c053b9d6890bc6289bf12dcf5d7dce3
Signed-off-by: Ghanshyam Maan <gmaan@ghanshyammann.com>
This commit is contained in:
Ghanshyam Maan
2025-08-28 03:39:25 +00:00
committed by Rajat Dhasmana
parent c072f159cf
commit 2df0d7ab82
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

@@ -503,7 +503,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