[Openstack] Swift stat issue

Mark Kirkwood mark.kirkwood at catalyst.net.nz
Wed Sep 30 00:17:25 UTC 2015


There are a number of things to check and some (perhaps) unintuitive
gotchas that can give rise to that error:

1/ Check that keystone is working
2/ Check controller swift proxy log for errors
3/ Check storage node(s) swift log for errors

Worth mentioning (an example of case 3/) you get this error if you have
forgotten to chown the devices to swift (ahem...that tripped me up a
which back).

regards

Mark

On 30/09/15 11:48, Siwei Zhang wrote:
> I am testing OpenStack on CentOS 7.
> I follow the link below to install Swift:
> http://docs.openstack.org/juno/install-guide/install/yum/content/swift-install-controller-node.html
> 
> But when I did a "swift stat", I encountered the errors as shown below:
> 
> Could someone help?
> 
> Regards,
> 
> Kevin
> 
> 
> 
> # swift stat
> Traceback (most recent call last):
>   File "/bin/swift", line 10, in <module>
>     sys.exit(main())
>   File "/usr/lib/python2.7/site-packages/swiftclient/shell.py", line 1287, in main
>     globals()['st_%s' % args[0]](parser, argv[1:], output)
>   File "/usr/lib/python2.7/site-packages/swiftclient/shell.py", line 492, in st_stat
>     stat_result = swift.stat()
>   File "/usr/lib/python2.7/site-packages/swiftclient/service.py", line 443, in stat
>     raise SwiftError('Account not found', exc=err)
> swiftclient.service.SwiftError: 'Account not found'
> 
> 
> 
> #env |grep OS
> HOSTNAME=controller
> OS_PASSWORD=xxxx
> OS_AUTH_URL=http://controller:35357/v2.0
> OS_USERNAME=admin
> OS_TENANT_NAME=admin
> 
> 
> #source demo-openrc.sh
> #env |grep OS
> HOSTNAME=controller
> OS_PASSWORD=xxxx
> OS_AUTH_URL=http://controller:5000/v2.0
> OS_USERNAME=demo
> OS_TENANT_NAME=demo
> 
> 





More information about the Openstack mailing list