Browse code

Merge "Change deprecated nova settings"

Jenkins authored on 2017/09/25 22:37:20
Showing 1 changed files
... ...
@@ -229,16 +229,6 @@ function configure_cinder {
229 229
 
230 230
     configure_auth_token_middleware $CINDER_CONF cinder $CINDER_AUTH_CACHE_DIR
231 231
 
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
-
242 232
     iniset $CINDER_CONF DEFAULT auth_strategy keystone
243 233
     iniset $CINDER_CONF DEFAULT debug $ENABLE_DEBUG_LOG_LEVEL
244 234
 
... ...
@@ -253,8 +243,6 @@ function configure_cinder {
253 253
     iniset $CINDER_CONF DEFAULT periodic_interval $CINDER_PERIODIC_INTERVAL
254 254
     iniset $CINDER_CONF DEFAULT my_ip "$HOST_IP"
255 255
 
256
-    iniset $CINDER_CONF DEFAULT os_region_name "$REGION_NAME"
257
-
258 256
     iniset $CINDER_CONF key_manager api_class cinder.keymgr.conf_key_mgr.ConfKeyManager
259 257
 
260 258
     if is_service_enabled c-vol && [[ -n "$CINDER_ENABLED_BACKENDS" ]]; then
... ...
@@ -331,10 +319,9 @@ function configure_cinder {
331 331
         iniset $CINDER_CONF DEFAULT glance_api_version 2
332 332
     fi
333 333
 
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"
334
+    # Set nova credentials (used for os-assisted-snapshots)
335
+    configure_auth_token_middleware $CINDER_CONF nova $CINDER_AUTH_CACHE_DIR nova
336
+    iniset $CINDER_CONF nova region_name "$REGION_NAME"
338 337
     iniset $CINDER_CONF DEFAULT graceful_shutdown_timeout "$SERVICE_GRACEFUL_SHUTDOWN_TIMEOUT"
339 338
 
340 339
     if [[ ! -z "$CINDER_COORDINATION_URL" ]]; then