Probelm with Swift keystone and COSBench Auth

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

Probelm with Swift keystone and COSBench Auth

Chin
Hi,

I am having problem getting COSBench to authenticate with my Swift using various parameters.

If I have the following curl return info, what should I put in the COSBench auth text box?

curl -i -d '{ "auth":{ "passwordCredentials":{ "username":"admin", "password":"5613aa3ec38e4245" }, "tenantName":"admin" }}' -H "Content-type: application/json" http://192.168.1.143:35357/v2.0/tokens
HTTP/1.1 200 OK
Vary: X-Auth-Token
Content-Type: application/json
Content-Length: 3360
Date: Mon, 02 Dec 2013 07:13:17 GMT

{"access": {"token": {"issued_at": "2013-12-02T07:13:17.759794", "expires": "2013-12-03T07:13:17Z", "id": "911ae22276a447faa393203355977ff3", "tenant": {"description": "admin tenant", "enabled": true, "id": "990e621ad15e427c897d8    b935f4abcaa", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://192.168.1.143:8774/v2/990e621ad15e427c897d8b935f4abcaa", "region": "RegionOne", "internalURL": "http://192.168.1.143:8774/v2/990e621ad15e427c    897d8b935f4abcaa", "id": "ab1208cd346649a5bfb6f226d948ab74", "publicURL": "http://192.168.1.143:8774/v2/990e621ad15e427c897d8b935f4abcaa"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "    http://192.168.1.143:9696/", "region": "RegionOne", "internalURL": "http://192.168.1.143:9696/", "id": "1b6883ae5f69470cb4297fe0e90ee34d", "publicURL": "http://192.168.1.143:9696/"}], "endpoints_links": [], "type": "network", "na    me": "neutron"}, {"endpoints": [{"adminURL": "http://192.168.1.143:8080", "region": "RegionOne", "internalURL": "http://192.168.1.143:8080", "id": "334b9a7c6e8e453391bea11be519285e", "publicURL": "http://192.168.1.143:8080"}], "e    ndpoints_links": [], "type": "s3", "name": "swift_s3"}, {"endpoints": [{"adminURL": "http://192.168.1.143:9292", "region": "RegionOne", "internalURL": "http://192.168.1.143:9292", "id": "1667dbeba6884d4ab8053ca700d41fed", "public    URL": "http://192.168.1.143:9292"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://192.168.1.143:8777", "region": "RegionOne", "internalURL": "http://192.168.1.143:8777", "id": "30    a0dff7fb4446d4adf4326bbeeaf317", "publicURL": "http://192.168.1.143:8777"}], "endpoints_links": [], "type": "metering", "name": "ceilometer"}, {"endpoints": [{"adminURL": "http://192.168.1.143:8776/v1/990e621ad15e427c897d8b935f4a    bcaa", "region": "RegionOne", "internalURL": "http://192.168.1.143:8776/v1/990e621ad15e427c897d8b935f4abcaa", "id": "cd8fa95f494c4d48a89e59f8e02eaab1", "publicURL": "http://192.168.1.143:8776/v1/990e621ad15e427c897d8b935f4abcaa"}    ], "endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints": [{"adminURL": "http://192.168.1.143:8773/services/Admin", "region": "RegionOne", "internalURL": "http://192.168.1.143:8773/services/Cloud", "id": "28229    f730219423f848c017593be1032", "publicURL": "http://192.168.1.143:8773/services/Cloud"}], "endpoints_links": [], "type": "ec2", "name": "nova_ec2"}, {"endpoints": [{"adminURL": "http://192.168.1.143:8080/", "region": "RegionOne",     "internalURL": "http://192.168.1.143:8080/v1/AUTH_990e621ad15e427c897d8b935f4abcaa", "id": "0f0fca025b3f4d3eb92c133b539276c6", "publicURL": "http://192.168.1.143:8080/v1/AUTH_990e621ad15e427c897d8b935f4abcaa"}], "endpoints_links"    : [], "type": "object-store", "name": "swift"}, {"endpoints": [{"adminURL": "http://192.168.1.143:35357/v2.0", "region": "RegionOne", "internalURL": "http://192.168.1.143:5000/v2.0", "id": "3c14cc935d27492b81ecd45563e21ae0", "pub    licURL": "http://192.168.1.143:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "a368cd03fc784a4a8179d0c59625c6f2", "roles": [{"name": "admin"},     {"name": "_member_"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["5f6056555c2e4bd6b949fa18482c2010", "9fe2ff9ee4384b1894a90878d3e92bab"]}}}[root@dell710b keystone]

Thanks in advance,
Chin
Reply | Threaded
Open this post in threaded view
|

Re: Probelm with Swift keystone and COSBench Auth

ywang19
Administrator
Based on the output, the authentication part should be as following:
 
  <auth type="keystone" config="username=admin;password=5613aa3ec38e4245;tenant_name=admin;auth_url=http://192.168.1.143:5000/v2.0;service=swift" /> 

-yaguang
Reply | Threaded
Open this post in threaded view
|

Re: Probelm with Swift keystone and COSBench Auth

Chin
Hi yaguang,

Thanks for your help.  Once you confirmed that I was using the correct parameters, I was able to quickly track the problem to having the firewall enabled on my OpenStack All-in-One server.  Now I can get familiar with the utility before using it on a larger environment.

Thanks again,
Chin