-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not able to authorize with auth token #282
Comments
Swift-config-sample.xml is a sample workload profile in conf/ folder, here is the snippet for section: It supports 3 different approach for authentication:
For the command you show for python-swiftclient, it seems you expect to directly assign auth token and storage url directly, so you’d follow -yaguang From: nadgowdas [mailto:[email protected]] Hi, I am using token authorization for swift. And I am able to authenticate with python-swiftclient, ssbench from the same host, but with cosbench, it gives me "Unauthorized" error. Python-swiftclient: when i am using python swift-client, i am able to access my swift cluster as: swift --os-auth-token f2d11ffd111841f3b88d5b7b3c1a2181 --os-storage-url http://x.x.x.x:8080/v1/AUTH_2685ea9ace184a17b0dcfa1798127e93 list test_container cosbench: I have tried following various formats for defining storage types for swift: what is the right format to specify the auth token in workload profile.? — |
thanks. |
Haven’t tried against keystone V3 yet. if you like to add version parameter, a quick way is to put it into “config” list like config=”version=3, …”, and then in KeystoneAuth, you could check the version to go to different branch. Thanks for your upcoming contributions. From: nadgowdas [mailto:[email protected]] thanks. — |
Hi, I'm having similar (although not identical) authentication issues. I'm trying to benchmark a small OpenStack (Kilo) Swift cluster, which is up & running. I use Keystone for authentication. Any help is greatly appreciated! If I configure a workload and directly feed an authentication token (by manually obtaining a token), it works:
However, I want to run multiple benchmarks in the coming period and I'd like to avoid manually updating the workload XML with a new token, so I prefer to use the keystone authentication. This is configured as follows:
This does not work for me. When I run the driver with DEBUG log level, everything looks OK (token is acquired, worker seems to be successfully authenticated, but the storage operations on Swift fail. There is one line in the logging (more below) that does not look right to me:
It looks like it was able to get a token, but not parse the storage URL from the Keystone response. Any idea what I'm doing wrong? Thanks in advance for your help & advice! Kind regards, Error logging: |
The issue is the storage url is not correctly parsed from keystone response, one possible cause is you are using some region other than the default "RegionOne". |
Thanks for your help! I am pretty sure that I am using the standard Swift region configuration (i.e. RegionOne). However, let me try to configure it and see what happens. If it doesn't work, I'll post the auth response that I see if I use curl. Also, I think you missed the sample form in your reponse. My auth config is now as follows:
|
aha, you're right. another correction is the default region is "regionOne", the "r" is with lower case. Here is the sample snippet:
|
please refer to #330 |
Hi,
I am using token authorization for swift. And I am able to authenticate with python-swiftclient, ssbench from the same host, but with cosbench, it gives me "Unauthorized" error.
Python-swiftclient:
when i am using python swift-client, i am able to access my swift cluster as:
swift --os-auth-token f2d11ffd111841f3b88d5b7b3c1a2181 --os-storage-url http://x.x.x.x:8080/v1/AUTH_2685ea9ace184a17b0dcfa1798127e93 list test_container
cosbench:
I have tried following various formats for defining storage types for swift:
what is the right format to specify the auth token in workload profile.?
The text was updated successfully, but these errors were encountered: