[Openstack] Swift stat issue

Siwei Zhang siwzhang at teslamotors.com
Tue Sep 29 22:48:44 UTC 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20150929/38f7a3b4/attachment.html>


More information about the Openstack mailing list