a problem about cosbench+swift+keystone

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

a problem about cosbench+swift+keystone

nick.ma
Hi all, I'm now testing COSBench 0.3.0.2 and have some problems about swift authentication.
Right now, I'm using keystone and the swift itself works very well.

swift -A http://10.1.101.90:5000/v2.0 -U admin -K password -V 2 stat
   Account: AUTH_e1b1095cf9874c0ba53edcb43add5f61
Containers: 0
   Objects: 0
     Bytes: 0
Accept-Ranges: bytes

Then, I configured COSBench with the parameters below:
Authentication: keystone
username=admin;password=password;tenant_name=admin;auth_url=http://10.1.101.90:5000/v2.0;service=swift;timeout=30000;retry=10
Storage: swift

And everything matches the keystone database, I promise.

However, here's the error log:

2013-05-08 10:33:51,470 [ERROR] [AbstractOperator] - fail to perform prepare operation
com.intel.cosbench.api.storage.StorageException: org.apache.http.conn.HttpHostConnectException: Connection to http://localhost:8080 refused

I wonder why the url http://localhost:8080 appears.

Thanks a lot,
Nick Ma (skywalker25@163.com)
Reply | Threaded
Open this post in threaded view
|

RE: a problem about cosbench+swift+keystone

ywang19
Administrator

Could you try below command line in your environment, and paste the output?

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

 

-Y.G.

From: nick.ma [via cosbench] [mailto:ml-node+[hidden email]]
Sent: Wednesday, May 08, 2013 10:56 AM
To: Wang, Yaguang
Subject: a problem about cosbench+swift+keystone

 

Hi all, I'm now testing COSBench 0.3.0.2 and have some problems about swift authentication.
Right now, I'm using keystone and the swift itself works very well.

swift -A http://10.1.101.90:5000/v2.0 -U admin -K password -V 2 stat
   Account: AUTH_e1b1095cf9874c0ba53edcb43add5f61
Containers: 0
   Objects: 0
     Bytes: 0
Accept-Ranges: bytes

Then, I configured COSBench with the parameters below:
Authentication: keystone
username=admin;password=password;tenant_name=admin;auth_url=http://10.1.101.90:5000/v2.0;service=swift;timeout=30000;retry=10
Storage: swift

And everything matches the keystone database, I promise.

However, here's the error log:

2013-05-08 10:33:51,470 [ERROR] [AbstractOperator] - fail to perform prepare operation
com.intel.cosbench.api.storage.StorageException: org.apache.http.conn.HttpHostConnectException: Connection to http://localhost:8080 refused

I wonder why the url http://localhost:8080 appears.

Thanks a lot,
Nick Ma ([hidden email])


If you reply to this email, your message will be added to the discussion below:

http://cosbench.1094679.n5.nabble.com/a-problem-about-cosbench-swift-keystone-tp5.html

To start a new topic under cosbench, email [hidden email]
To unsubscribe from cosbench, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re:RE: a problem about cosbench+swift+keystone

nick.ma

Hey, you are very helpful. I wrote "localhost" when creating keystone endpoint and this is the problem that caused me to fail.

Thanks a lot,
Nick Ma

在 2013-05-08 11:30:58,"ywang19 [via cosbench]" <[hidden email]> 写道:

Could you try below command line in your environment, and paste the output?

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

 

-Y.G.

From: nick.ma [via cosbench] [mailto:ml-node+[hidden email]]
Sent: Wednesday, May 08, 2013 10:56 AM
To: Wang, Yaguang
Subject: a problem about cosbench+swift+keystone

 

Hi all, I'm now testing COSBench 0.3.0.2 and have some problems about swift authentication.
Right now, I'm using keystone and the swift itself works very well.

swift -A http://10.1.101.90:5000/v2.0 -U admin -K password -V 2 stat
   Account: AUTH_e1b1095cf9874c0ba53edcb43add5f61
Containers: 0
   Objects: 0
     Bytes: 0
Accept-Ranges: bytes

Then, I configured COSBench with the parameters below:
Authentication: keystone
username=admin;password=password;tenant_name=admin;auth_url=http://10.1.101.90:5000/v2.0;service=swift;timeout=30000;retry=10
Storage: swift

And everything matches the keystone database, I promise.

However, here's the error log:

2013-05-08 10:33:51,470 [ERROR] [AbstractOperator] - fail to perform prepare operation
com.intel.cosbench.api.storage.StorageException: org.apache.http.conn.HttpHostConnectException: Connection to http://localhost:8080 refused

I wonder why the url http://localhost:8080 appears.

Thanks a lot,
Nick Ma ([hidden email])


If you reply to this email, your message will be added to the discussion below:

http://cosbench.1094679.n5.nabble.com/a-problem-about-cosbench-swift-keystone-tp5.html

To start a new topic under cosbench, email [hidden email]
To unsubscribe from cosbench, click here.
NAML




If you reply to this email, your message will be added to the discussion below:
http://cosbench.1094679.n5.nabble.com/a-problem-about-cosbench-swift-keystone-tp5p6.html
To unsubscribe from a problem about cosbench+swift+keystone, click here.
NAML