'Account not found' Error when Verify operation of Object Storage service

asked 2015-09-03 10:00:10 -0600

lakak gravatar image

updated 2015-09-03 12:13:02 -0600

Hi, I have configured the controller and storage nodes as it is described in "Openstack Installation guide for ubuntu 14.04 - kilo 2015". I didn't get any error message, but when I tried to verify operation of the Object Storage service by executing " swift -V 3 stat" after sourcing the demo-openrc.sh file, I get the following error :

    Traceback (most recent call last):
       File "/usr/bin/sift", line 10, in <module>
          sys.exit(main())
       File "/usr/lib/python2.7/dist-packages/swiftclient/shell.py", line 1287, in main
          globals()[' st_%s' % args[0]](parser, argv[1:1], output)
       File "/usr/lib/python2.7/dist-packages/swiftclient/shell.py", line 492, in st_stat
          stat_result = swift.stat()
       File "/usr/lib/python2.7/dist-packages/swiftclient/service.py", line 443, in stat
          raison SwiftError(' Account not found', exc=err)
    swiftclient.service.SwiftError: 'Account not found'

Any help is welcome, Thanks in advance.

This is the output after executing swift post test and

swift --debug -V 3 stat
    $ swift post test
    $swift --debug -V 3 stat
    DEBUG:keystoneclient.auth.identity.v3:Making authentication request to http://controller:5000/v3/auth/tokens
    INFO:urllib3.connectionpool:Starting new HTTP connection (1): controller
    DEBUG:urllib3.connectionpool:"POST /v3/auth/tokens HTTP/1.1" 500 143
    DEBUG:keystoneclient.session:Request returned failure status: 500
    ERROR:swiftclient:Authorization Failure. Authorization failed: An unexpected error prevented the server from fulfilling your request. (HTTP 500) (Request-ID: req-bc901493-c149-42ef-880d-3cc7dd1190e9)
    Traceback (most recent call last):
       File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1235, in _retry
          self.url, self.token = self.get_auth()
       File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1209, in get_auth
          insecure=self.insecure)
       File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 406, in get_auth
          auth_version=auth_version)
       File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 341, in get_auth_keystone
          raise ClientException('Authorization Failure. %s' % err)
    ClientException: Authorization Failure. Authorization failed: An unexpected error prevented the server from fulfilling your request. (HTTP 500) (Request-ID: req-bc901493-c149-42ef-880d-3cc7dd1190e9)
    Traceback (most recent call last):
       File "/usr/bin/swift", line 10, in <module>
          sys.exit(main())
       File "/usr/lib/python2.7/dist-packages/swiftclient/shell.py", line 1287, in main
          globals()[' st_%s' % args[0]](parser, argv[1:], output)
       File "/usr/lib/python2.7/dist-packages/swiftclient/shell.py", line 492, in st_stat
          stat_result = swift.stat()
       File "/usr/lib/python2.7/dist-packages/swiftclient/service.py", line 443, in stat
          raise SwiftError( ' Account not found', exc=err)
    swiftclient.service.SwiftError: 'Account not found' 

Please any suggestion.
edit retag flag offensive close merge delete

Comments

Hi, make a swift post test, then swift --debug -V 3 stat and share output if it doesn't works. Sometimes, the account is not created until a post request is made it. Regards

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2015-09-03 10:16:27 -0600 )edit

Can you issue other keystone requests? Check swift config for keystone and if is the right version

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2015-09-03 12:54:33 -0600 )edit

i do having same issue.I followed the http://docs.openstack.org/juno/install-guide/install/apt/content/swift-verify.html (http://docs.openstack.org/juno/instal...) link.Pls guide to complete swift configuration

loosy gravatar imageloosy ( 2015-11-05 07:49:40 -0600 )edit

Seems that you have problems while swift authenticates to keystone, check proxy configuration related to keystone and proxy logs. Share config files. Regards

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2015-11-10 09:03:53 -0600 )edit