Authentication Failure

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

Authentication Failure

Paul
I saw a post similar to this but did not see a resolution.  I am getting a bad username and password error.  I tried both ports (5000, 35357) also.

Entry in the workload file:
<auth type="keystone" config="username=swift;password=swift;tenant_name=swift;auth_url=http://10.39.12.154:
35357/v2.0/tokens;service=swift service" />

Error:
2013-10-11 14:54:11,607 [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:90)
        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:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:679)
Caused by: com.intel.cosbench.client.keystone.KeystoneAuthException
        at com.intel.cosbench.client.keystone.handler.HttpAuthHandler.parseResponse(HttpAuthHandler.jav
a: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

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

{
    "access": {
        "metadata": {
            "is_admin": true,
            "roles": [
                "7b9a902423a582c9eda266dcf3ad69740455f3e86019620d40d7a3adcc3b2dc4"
            ]
        },
        "serviceCatalog": {},
        "token": {
            "expires": "2013-10-11T22:44:27Z",
            "id": "f30be7d65d314c4c955e225db9a95103",
            "tenant": {
                "enabled": true,
                "id": "7b9a902423a582c9eda266dcf3ad69740455f3e86019620d40d7a3adcc3b2dc4",
                "name": "swift"
            }
        },
        "user": {
            "id": "2d034b7aedb3d5d2e897226ab0919ba77b9a902423a582c9eda266dcf3ad6974",
            "name": "swift",
            "roles": [
                {
                    "name": "admin"
                }
            ],
            "roles_links": [],
            "username": "swift"
        }
    }
}

What is the issue/solution?
Reply | Threaded
Open this post in threaded view
|

Re: Authentication Failure

ywang19
Administrator
hi paul,

For the issue, the real cause is the parameter "service" is wrong, from the output retrieved by curl, it should be "swift" instead of "swift service".

-ywang

在 2013-10-12,5:16,"Paul [via COSBench]" <[hidden email]<mailto:[hidden email]>> 写道:

I saw a post similar to this but did not see a resolution.  I am getting a bad username and password error.  I tried both ports (5000, 35357) also.

Entry in the workload file:
<auth type="keystone" config="username=swift;password=swift;tenant_name=swift;auth_url=http://10.39.12.154:
35357/v2.0/tokens;service=swift service" />

Error:
2013-10-11 14:54:11,607 [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:90)
        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:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:679)
Caused by: com.intel.cosbench.client.keystone.KeystoneAuthException
        at com.intel.cosbench.client.keystone.handler.HttpAuthHandler.parseResponse(HttpAuthHandler.jav
a: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

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

{
    "access": {
        "metadata": {
            "is_admin": true,
            "roles": [
                "7b9a902423a582c9eda266dcf3ad69740455f3e86019620d40d7a3adcc3b2dc4"
            ]
        },
        "serviceCatalog": {},
        "token": {
            "expires": "2013-10-11T22:44:27Z",
            "id": "f30be7d65d314c4c955e225db9a95103",
            "tenant": {
                "enabled": true,
                "id": "7b9a902423a582c9eda266dcf3ad69740455f3e86019620d40d7a3adcc3b2dc4",
                "name": "swift"
            }
        },
        "user": {
            "id": "2d034b7aedb3d5d2e897226ab0919ba77b9a902423a582c9eda266dcf3ad6974",
            "name": "swift",
            "roles": [
                {
                    "name": "admin"
                }
            ],
            "roles_links": [],
            "username": "swift"
        }
    }
}

What is the issue/solution?

________________________________
If you reply to this email, your message will be added to the discussion below:
http://cosbench.1094679.n5.nabble.com/Authentication-Failure-tp68.html
To start a new topic under cosbench-user, email [hidden email]<mailto:[hidden email]>
To unsubscribe from COSBench, click here<
NAML<
http://cosbench.1094679.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
Reply | Threaded
Open this post in threaded view
|

Re: Authentication Failure

Paul
In reply to this post by Paul
Thank you for the info.  I have corrected the service parameter and removed "service".  I am still failing authentication with exactly the same error.

Corrected line from the conf file:
  <auth type="keystone" config="username=swift;password=swift;tenantName=swift;auth_url=http://10.39.12.154:3
5357/v2.0/tokens;service=swift"/> 

Error:
2013-10-14 13:19:47,518 [ERROR] [AuthAgent] - bad username and password
com.intel.cosbench.api.auth.AuthBadException: com.intel.cosbench.client.keystone.KeystoneAuthException
......
Reply | Threaded
Open this post in threaded view
|

Re: Authentication Failure

ywang19
Administrator
the curl output is not complete, valid output should include values for "serviceCatalog" and "endpoint" as following:

        "serviceCatalog": [
            {
                "endpoints": [
                    {
                        "adminURL": "http://192.168.90.67:8080",
                        "id": "eeedaeb610564327a11f53592b8727ad",
                        "internalURL": "http://192.168.90.67:8080/v1/AUTH_6ad36293c53741cbab0a4641da174a24",
                        "publicURL": "http://192.168.90.67:8080/v1/AUTH_6ad36293c53741cbab0a4641da174a24",
                        "region": "RegionOne"
                    }
                ],
                "endpoints_links": [],
                "name": "swift",
                "type": "object-store"
            },
            {
                "endpoints": [
                    {
                        "adminURL": "http://192.168.1.123:35357/v2.0",
                        "id": "abb49baa9a52490aa6539186950cab59",
                        "internalURL": "http://192.168.1.123:5000/v2.0",
                        "publicURL": "http://192.168.1.123:5000/v2.0",
                        "region": "RegionOne"
                    }
                ],
                "endpoints_links": [],
                "name": "keystone",
                "type": "identity"
            }
        ],



for your case, it means you need additional steps to create service and endpoint with keystone commands, please refer keystone document for how to.

- Y.G.