Browse code

Merge "Work around issue in glance_store swift driver"

Jenkins authored on 2016/09/28 06:37:14
Showing 1 changed files
... ...
@@ -187,8 +187,6 @@ function configure_glance {
187 187
 
188 188
         iniset $GLANCE_SWIFT_STORE_CONF ref1 key $SERVICE_PASSWORD
189 189
         iniset $GLANCE_SWIFT_STORE_CONF ref1 auth_address $KEYSTONE_SERVICE_URI/v3
190
-        iniset $GLANCE_SWIFT_STORE_CONF ref1 user_domain_name $SERVICE_DOMAIN_NAME
191
-        iniset $GLANCE_SWIFT_STORE_CONF ref1 project_domain_name $SERVICE_DOMAIN_NAME
192 190
         iniset $GLANCE_SWIFT_STORE_CONF ref1 auth_version 3
193 191
 
194 192
         # commenting is not strictly necessary but it's confusing to have bad values in conf
... ...
@@ -312,6 +310,11 @@ function create_glance_accounts {
312 312
             "$GLANCE_SERVICE_PROTOCOL://$GLANCE_HOSTPORT" \
313 313
             "$GLANCE_SERVICE_PROTOCOL://$GLANCE_HOSTPORT" \
314 314
             "$GLANCE_SERVICE_PROTOCOL://$GLANCE_HOSTPORT"
315
+
316
+        # Note(frickler): Crude workaround for https://bugs.launchpad.net/glance-store/+bug/1620999
317
+        service_domain_id=$(get_or_create_domain $SERVICE_DOMAIN_NAME)
318
+        iniset $GLANCE_SWIFT_STORE_CONF ref1 project_domain_id $service_domain_id
319
+        iniset $GLANCE_SWIFT_STORE_CONF ref1 user_domain_id $service_domain_id
315 320
     fi
316 321
 
317 322
     # Add glance-glare service and endpoints