Merge "Configure glance user in cinder conf"
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user