Can't auth with keystone mechanizm

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Can't auth with keystone mechanizm

vills
Hello,

Early i've been tested my swift-cluster with cosbench and all was ok (with tempauth). Now i tring test it once again, but with keystone auth, and got AuthException. I really don't know why this exception appears. Although i can authorize in keystone and swift from swift-cli:

swift -V 2 -A http://mydomain:5000/v2.0 -U cosbench:cosbench -K q1w2e3r4 stat
   Account: AUTH_ca31d07f927c4368802dce96b6d2a1c4
Containers: 32
   Objects: 3200
     Bytes: 475273000
Accept-Ranges: bytes
X-Timestamp: 1371813527.00045
Content-Type: text/plain; charset=utf-8

From workload config:
<auth type="keystone" config="username=cosbench;password=q1w2e3r4;tenant_name=cosbench;auth_url=http://mydomain:5000/v2.0;retry=5"/>
<storage type="swift" config=""/>

In COSbench i have 4 driver-nodes. And 50 workers in workload stage.

Here from mission log.
2013-07-12 15:57:06,290 [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:108)
        at com.intel.cosbench.driver.agent.AuthAgent.login(AuthAgent.java:81)
        at com.intel.cosbench.driver.agent.AuthAgent.execute(AuthAgent.java:54)
        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$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        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:722)
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:99)
        at com.intel.cosbench.api.keystone.KeystoneAuth.login(KeystoneAuth.java:102)
        ... 9 more
Reply | Threaded
Open this post in threaded view
|

Re: Can't auth with keystone mechanizm

ywang19
Vills,

could you have a try with below command and paste the output?

curl -d '{"auth": {"tenantName": "cosbench", "passwordCredentials":{"username": "cosbench", "password": "q1w2e3r4"}}}' -H "Content-type: application/json" http://mydomain:35357/v2.0/tokens | python -mjson.tool


-Y.G.