@@ -229,16 +229,6 @@ function configure_cinder {
229229
230230 configure_auth_token_middleware $CINDER_CONF cinder $CINDER_AUTH_CACHE_DIR
231231
232- # Change the default nova_catalog_info and nova_catalog_admin_info values in
233- # cinder so that the service name cinder is searching for matches that set for
234- # nova in keystone.
235- if [[ -n " $CINDER_NOVA_CATALOG_INFO " ]]; then
236- iniset $CINDER_CONF DEFAULT nova_catalog_info $CINDER_NOVA_CATALOG_INFO
237- fi
238- if [[ -n " $CINDER_NOVA_CATALOG_ADMIN_INFO " ]]; then
239- iniset $CINDER_CONF DEFAULT nova_catalog_admin_info $CINDER_NOVA_CATALOG_ADMIN_INFO
240- fi
241-
242232 iniset $CINDER_CONF DEFAULT auth_strategy keystone
243233 iniset $CINDER_CONF DEFAULT debug $ENABLE_DEBUG_LOG_LEVEL
244234
@@ -253,8 +243,6 @@ function configure_cinder {
253243 iniset $CINDER_CONF DEFAULT periodic_interval $CINDER_PERIODIC_INTERVAL
254244 iniset $CINDER_CONF DEFAULT my_ip " $HOST_IP "
255245
256- iniset $CINDER_CONF DEFAULT os_region_name " $REGION_NAME "
257-
258246 iniset $CINDER_CONF key_manager api_class cinder.keymgr.conf_key_mgr.ConfKeyManager
259247
260248 if is_service_enabled c-vol && [[ -n " $CINDER_ENABLED_BACKENDS " ]]; then
@@ -331,10 +319,9 @@ function configure_cinder {
331319 iniset $CINDER_CONF DEFAULT glance_api_version 2
332320 fi
333321
334- # Set os_privileged_user credentials (used for os-assisted-snapshots)
335- iniset $CINDER_CONF DEFAULT os_privileged_user_name nova
336- iniset $CINDER_CONF DEFAULT os_privileged_user_password " $SERVICE_PASSWORD "
337- iniset $CINDER_CONF DEFAULT os_privileged_user_tenant " $SERVICE_PROJECT_NAME "
322+ # Set nova credentials (used for os-assisted-snapshots)
323+ configure_auth_token_middleware $CINDER_CONF nova $CINDER_AUTH_CACHE_DIR nova
324+ iniset $CINDER_CONF nova region_name " $REGION_NAME "
338325 iniset $CINDER_CONF DEFAULT graceful_shutdown_timeout " $SERVICE_GRACEFUL_SHUTDOWN_TIMEOUT "
339326
340327 if [[ ! -z " $CINDER_COORDINATION_URL " ]]; then
0 commit comments