Skip to content

Commit c04ac03

Browse files
committed
Change deprecated nova settings
Change-Id: I0d129150411ede344c9b710d1aca5af1df3478b6
1 parent dbd32d1 commit c04ac03

1 file changed

Lines changed: 3 additions & 16 deletions

File tree

lib/cinder

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -230,16 +230,6 @@ function configure_cinder {
230230

231231
configure_auth_token_middleware $CINDER_CONF cinder $CINDER_AUTH_CACHE_DIR
232232

233-
# Change the default nova_catalog_info and nova_catalog_admin_info values in
234-
# cinder so that the service name cinder is searching for matches that set for
235-
# nova in keystone.
236-
if [[ -n "$CINDER_NOVA_CATALOG_INFO" ]]; then
237-
iniset $CINDER_CONF DEFAULT nova_catalog_info $CINDER_NOVA_CATALOG_INFO
238-
fi
239-
if [[ -n "$CINDER_NOVA_CATALOG_ADMIN_INFO" ]]; then
240-
iniset $CINDER_CONF DEFAULT nova_catalog_admin_info $CINDER_NOVA_CATALOG_ADMIN_INFO
241-
fi
242-
243233
iniset $CINDER_CONF DEFAULT auth_strategy keystone
244234
iniset $CINDER_CONF DEFAULT debug $ENABLE_DEBUG_LOG_LEVEL
245235

@@ -254,8 +244,6 @@ function configure_cinder {
254244
iniset $CINDER_CONF DEFAULT periodic_interval $CINDER_PERIODIC_INTERVAL
255245
iniset $CINDER_CONF DEFAULT my_ip "$HOST_IP"
256246

257-
iniset $CINDER_CONF DEFAULT os_region_name "$REGION_NAME"
258-
259247
iniset $CINDER_CONF key_manager api_class cinder.keymgr.conf_key_mgr.ConfKeyManager
260248

261249
if is_service_enabled c-vol && [[ -n "$CINDER_ENABLED_BACKENDS" ]]; then
@@ -332,10 +320,9 @@ function configure_cinder {
332320
iniset $CINDER_CONF DEFAULT glance_api_version 2
333321
fi
334322

335-
# Set os_privileged_user credentials (used for os-assisted-snapshots)
336-
iniset $CINDER_CONF DEFAULT os_privileged_user_name nova
337-
iniset $CINDER_CONF DEFAULT os_privileged_user_password "$SERVICE_PASSWORD"
338-
iniset $CINDER_CONF DEFAULT os_privileged_user_tenant "$SERVICE_PROJECT_NAME"
323+
# Set nova credentials (used for os-assisted-snapshots)
324+
configure_auth_token_middleware $CINDER_CONF nova $CINDER_AUTH_CACHE_DIR nova
325+
iniset $CINDER_CONF nova region_name "$REGION_NAME"
339326
iniset $CINDER_CONF DEFAULT graceful_shutdown_timeout "$SERVICE_GRACEFUL_SHUTDOWN_TIMEOUT"
340327

341328
if [[ ! -z "$CINDER_COORDINATION_URL" ]]; then

0 commit comments

Comments
 (0)