From 3e3212b52d14c27c002c27b6d4f8bcfa7f5ffbcf Mon Sep 17 00:00:00 2001 From: Christian Schwede Date: Fri, 4 Sep 2015 13:02:19 +0200 Subject: [PATCH] Add trailing IDENTITY_API_VERSION to OS_AUTH_URL in swift_configure_tempurls The python-keystoneclient requires a trailing /v to successfully authenticate, otherwise it fails with a 404 error due to a not found resource. This error showed up only when generating Swift tempurls, because the error was raised when using python-swiftclient. This change fixes this for python-swiftclient within devstack. Change-Id: Ibe222d65162898db69acba076b5fe1cb3621fbc3 Closes-Bug: 1492216 --- lib/swift | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/swift b/lib/swift index 6b61274127..645bfd7cd9 100644 --- a/lib/swift +++ b/lib/swift @@ -801,6 +801,7 @@ function swift_configure_tempurls { OS_USERNAME=swift \ OS_TENANT_NAME=$SERVICE_TENANT_NAME \ OS_PASSWORD=$SERVICE_PASSWORD \ + OS_AUTH_URL=$KEYSTONE_AUTH_URI/v$IDENTITY_API_VERSION \ swift post -m "Temp-URL-Key: $SWIFT_TEMPURL_KEY" }