Ask Your Question

Swift Stat command is not returning with keystone

asked 2013-11-18 05:29:00 -0600

jayesh gravatar image

updated 2013-11-18 07:46:52 -0600

koolhead17 gravatar image


When i run swift --debug -V 2 -A http://My_IP:5000/v2.0 -U swift:swift_user -K swift_pwd stat it gave me response body with authentication token. but after that nothing was happening. It didnt display result of stat.

I have configured keystone with swift. Please let me know what is happening? Once the request is sent, Response is obtained then another request is expected to be generated and sent??

I am new to this and not able to understand whats happening inside. I got log in keystone as

(root): 2013-11-18 16:44:48,014 DEBUG TOKEN_REF {'id': 'f2877a63573249359f81246c8944acb7', 'expires': datetime.datetime(2013, 11, 19, 11, 14, 47, 980507), 'user': {u'tenantId': u'0cda1ad54e894b93a04c9e1f60ad0135', u'enabled': True, u'email': u'', 'name': u'swift_user', 'id': u'92cebf723c674134bee8a72cdc585ef0'}, 'tenant': {u'description': None, u'enabled': True, 'id': u'0cda1ad54e894b93a04c9e1f60ad0135', 'name': u'swift'}, 'metadata': {u'roles': [u'806e1d1bcf84440ebb64087e525f625a']}}
(eventlet.wsgi.server): 2013-11-18 16:44:48,016 DEBUG - - [18/Nov/2013 16:44:48] "POST /v2.0/tokens HTTP/1.1" 200 1273 0.067817

Something is stuck and where exactly I am not able to understand. Please advice. Let me know if any additional details are required.

edit retag flag offensive close merge delete


@jayesh Can you paste what you got after executing the stat command.

koolhead17 gravatar imagekoolhead17 ( 2013-11-18 07:48:42 -0600 )edit

Alternatively you can retive the token and storage_url via curl from keystone and then use the token to access the Swift

koolhead17 gravatar imagekoolhead17 ( 2013-11-18 07:59:20 -0600 )edit

how to access swift using token?? I have token with me.

jayesh gravatar imagejayesh ( 2013-11-18 08:02:36 -0600 )edit

This is what i got after executing stat command DEBUG:keystoneclient.client:REQ: curl -i -X POST -H "Content-Type: application/json" -H "User-Agent: python-keystoneclient" DEBUG:keystoneclient.client:REQ BODY: {"auth": {"tenantName": "swift", "passwordCredentials": {"username": "swift_user", "password": "swift_pwd"}}}

jayesh gravatar imagejayesh ( 2013-11-18 08:18:19 -0600 )edit

DEBUG:keystoneclient.client:RESP: {'date': 'Mon, 18 Nov 2013 14:06:00 GMT', 'transfer-encoding': 'chunked', 'status': '200', 'vary': 'X-Auth-Token', 'content-type': 'application/json'} RESP BODY: {"access": {"token": {"expires": "2013-11-19T14:06:00Z", "id": "0529096f3df54f1f94c3bbf9df2d0995", "tenant": {"description": null, "enabled": true, "id": "0cda1ad54e894b93a04c9e1f60ad0135", "name": "swift"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "", "region": "regionOne", "internalURL": "http:", "publicURL": ""}], "endpoints_links": [], "type": "object-store", "name": "swift"}, {"endpoints": [{"adminURL": "", "region": "regionOne", "internalURL": "http:", "publicURL": "http:

jayesh gravatar imagejayesh ( 2013-11-18 08:18:38 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2013-11-19 20:23:17 -0600

koolhead17 gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-11-18 05:29:00 -0600

Seen: 246 times

Last updated: Nov 18 '13