Skip to content
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

Does cosbench support keystone v3 auth for swift? #330

Open
anirudh-kashyap opened this issue Aug 26, 2016 · 15 comments
Open

Does cosbench support keystone v3 auth for swift? #330

anirudh-kashyap opened this issue Aug 26, 2016 · 15 comments

Comments

@anirudh-kashyap
Copy link

anirudh-kashyap commented Aug 26, 2016

Hello,

I am trying to use cosbench v0.4.2 release candidate 4 with keystone v3. Is this currently supported on cosbench?

This is my config:

<auth type="keystone" config="username=admin;password=XXXXXXX;tenant_name=admin;auth_url=http://172.29.236.50:5000/v3;service=swift;retry=10"/>
This is what I see in the driver log
I know the user name and pass is right because that is what is in the openrc

2016-08-25 20:09:58,016 [ERROR] [AuthAgent] - bad username and password
com.intel.cosbench.api.auth.AuthBadException: com.intel.cosbench.client.keystone.KeystoneAuthException
    at com.intel.cosbench.api.keystone.KeystoneAuth.login(KeystoneAuth.java:116)
    at com.intel.cosbench.driver.agent.AuthAgent.tryLogin(AuthAgent.java:126)
    at com.intel.cosbench.driver.agent.AuthAgent.login(AuthAgent.java:81)
    at com.intel.cosbench.driver.agent.AuthAgent.execute(AuthAgent.java:52)
    at com.intel.cosbench.driver.agent.AbstractAgent.call(AbstractAgent.java:44)
    at com.intel.cosbench.driver.agent.AbstractAgent.call(AbstractAgent.java:1)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
Caused by: com.intel.cosbench.client.keystone.KeystoneAuthException
    at com.intel.cosbench.client.keystone.handler.HttpAuthHandler.parseResponse(HttpAuthHandler.java:88)
    at com.intel.cosbench.client.keystone.handler.HttpAuthHandler.POST(HttpAuthHandler.java:67)
    at com.intel.cosbench.client.keystone.KeystoneClient.login(KeystoneClient.java:106)
    at com.intel.cosbench.api.keystone.KeystoneAuth.login(KeystoneAuth.java:110)
    ... 9 more

@anirudh-kashyap anirudh-kashyap changed the title Does cosbench support keystone v3 auth? Does cosbench support keystone v3 auth for swift ? Aug 26, 2016
@anirudh-kashyap anirudh-kashyap changed the title Does cosbench support keystone v3 auth for swift ? Does cosbench support keystone v3 auth for swift? Aug 26, 2016
@ywang19
Copy link
Contributor

ywang19 commented Aug 26, 2016

Yes, v3 is supported, pls make sure you set region parameter.

在 2016年8月26日,上午9:17,santaclause88 [email protected] 写道:

Hello,

I am trying to use cosbench with keystone v3. Is this currently supported on cosbench?

This is my config:
This is what I see in the driver log
I know the user name and pass is right because that is what is in the openrc

2016-08-25 20:09:58,016 [ERROR] [AuthAgent] - bad username and password
com.intel.cosbench.api.auth.AuthBadException: com.intel.cosbench.client.keystone.KeystoneAuthException
at com.intel.cosbench.api.keystone.KeystoneAuth.login(KeystoneAuth.java:116)
at com.intel.cosbench.driver.agent.AuthAgent.tryLogin(AuthAgent.java:126)
at com.intel.cosbench.driver.agent.AuthAgent.login(AuthAgent.java:81)
at com.intel.cosbench.driver.agent.AuthAgent.execute(AuthAgent.java:52)
at com.intel.cosbench.driver.agent.AbstractAgent.call(AbstractAgent.java:44)
at com.intel.cosbench.driver.agent.AbstractAgent.call(AbstractAgent.java:1)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.intel.cosbench.client.keystone.KeystoneAuthException
at com.intel.cosbench.client.keystone.handler.HttpAuthHandler.parseResponse(HttpAuthHandler.java:88)
at com.intel.cosbench.client.keystone.handler.HttpAuthHandler.POST(HttpAuthHandler.java:67)
at com.intel.cosbench.client.keystone.KeystoneClient.login(KeystoneClient.java:106)
at com.intel.cosbench.api.keystone.KeystoneAuth.login(KeystoneAuth.java:110)
... 9 more


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@anirudh-kashyap
Copy link
Author

anirudh-kashyap commented Aug 26, 2016

Hi

I have set the region parameter and am still seeing the same issue.

I cannot seem to find how to change the log level for the drivers. I did set the controller to debug but how do I do so for the drivers?

This is my new auth

<auth type="keystone" config="username=swift;password=swift;tenant_name=service;auth_url=http://172.29.236.50:5000/v3;service=swift;retry=10;region=regionOne"/>

@ywang19
Copy link
Contributor

ywang19 commented Aug 29, 2016

to change log level for driver, you need create a driver.conf on driver nodes.

在 2016年8月26日,下午11:52,santaclause88 [email protected] 写道:

Hi

I have set the region parameter and am still seeing the same issue.

I cannot seem to find how to change the log level for the drivers. I did set the controller to debug but how do I do so for the drivers?

This is my new auth


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

@cb371j
Copy link

cb371j commented Feb 2, 2017

Did you ever get cosbench to work with keystone v3?

@ywang19
Copy link
Contributor

ywang19 commented Feb 7, 2017 via email

@f0o
Copy link

f0o commented Mar 16, 2017

@ywang19 how?
I am at the same issue..

@f0o
Copy link

f0o commented Mar 16, 2017

It looks to me like cosbench tries to talk v2 auth json to the v3 URL which obviously fails.

How can it tell cosbench to truly use v3?

@zhoubofsy
Copy link

same issue

1 similar comment
@sdu-merrye
Copy link

same issue

@mujtabainamdar
Copy link

It looks to me like cosbench tries to talk v2 auth json to the v3 URL which obviously fails.

How can it tell cosbench to truly use v3?

Any luck in getting this to work ?

@f0o
Copy link

f0o commented Dec 1, 2020

Nope, I just gave it up

@mujtabainamdar
Copy link

Nope, I just gave it up

Me too

@osmboy
Copy link

osmboy commented Oct 12, 2021

Hi guys! keystone v3 is supported by this branch keystoneV3, you can pull this source code and build it by eclipse, the details please refer to BUILD.md, or just download the jar cosbench-keystone_0.4.2.0.jar.zip to use.
here is the keystoneV3 example config:

<auth type="keystone" config="username=tester;tenant_name=test;password=testing;domain=default;url=http://127.0.0.1:5000/v3;service=swift;retry=10"/>

it works well in my keystoneV3 env
image
For follow-up questions, you can submit an issue to this repo.
the pull request is #421

@digvijay2040
Copy link

digvijay2040 commented Aug 22, 2022

Hi, Added improvement to @osmboy repo, Added support for passing project_domain id and user_domain_id from config file

you can use this branch keystoneV3Support . Please refer to BUILD.md to build it using eclipse. Please download eclipse for rcp and rap developers if you don't get options mentioned in BUILD.md or you can download already build jar file cosbench-keystone_0.4.2.0.jar . Move this jar file to your cosbench release 0.4.2.0 osgi/plugins/ folder.

here is the updated keystoneV3 config:
<auth type="keystone" config="username={{USERNAME}};password={{PASSWORD}};project_domain={{PROJECT_DOMAIN_ID}};user_domain={{USER_DOMAIN_ID}};tenant_name={{TENANT_NAME}};auth_url={{AUTH_URL}};service=swift;retry=5"/>
update params according to your openrc.

for any question you can submit an issue to this repo
to check the changes Pull request is #428

I used

Eclipse IDE for RCP and RAP Developers (includes Incubating components)
Version: 2022-06 (4.24.0)
Build id: 20220609-1112```

@sulaimanyu
Copy link

Hi, there
my swift v3 auth information did not have tenant_id and tenant_name, and I use project_id and project_name to do the auth. how can I pass project_id and project_name to cosbench auth config?
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants