Add trailing IDENTITY_API_VERSION to OS_AUTH_URL in swift_configure_tempurls
The python-keystoneclient requires a trailing /v<IDENTITY_API_VERSION> 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
This commit is contained in:
parent
d21a29cb9e
commit
3e3212b52d
@ -801,6 +801,7 @@ function swift_configure_tempurls {
|
|||||||
OS_USERNAME=swift \
|
OS_USERNAME=swift \
|
||||||
OS_TENANT_NAME=$SERVICE_TENANT_NAME \
|
OS_TENANT_NAME=$SERVICE_TENANT_NAME \
|
||||||
OS_PASSWORD=$SERVICE_PASSWORD \
|
OS_PASSWORD=$SERVICE_PASSWORD \
|
||||||
|
OS_AUTH_URL=$KEYSTONE_AUTH_URI/v$IDENTITY_API_VERSION \
|
||||||
swift post -m "Temp-URL-Key: $SWIFT_TEMPURL_KEY"
|
swift post -m "Temp-URL-Key: $SWIFT_TEMPURL_KEY"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user