[Openstack] FW: Swift stat issue

Siwei Zhang siwzhang at teslamotors.com
Thu Oct 1 23:31:34 UTC 2015


FYI

-----Original Message-----
From: Mark Kirkwood [mailto:mark.kirkwood at catalyst.net.nz] 
Sent: Thursday, October 01, 2015 4:00 PM
To: Siwei Zhang <siwzhang at teslamotors.com>
Subject: Re: [Openstack] Swift stat issue

Excellent!

Do mention this on the list too - as it may help someone else debugging the same type of problem.

regards

Mark

On 02/10/15 11:54, Siwei Zhang wrote:
> Hi Mark,
> 
> Thanks for your help.
> I have resolved the issues by making sure the two Object Storage are all running fine.
> 
> Regards,
> 
> Kevin
> 
> -----Original Message-----
> From: Mark Kirkwood [mailto:mark.kirkwood at catalyst.net.nz]
> Sent: Tuesday, September 29, 2015 5:17 PM
> To: openstack at lists.openstack.org
> Subject: Re: [Openstack] Swift stat issue
> 
> 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/swif
>> t
>> -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
>>
>>
> 
> 
> _______________________________________________
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe : 
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> 





More information about the Openstack mailing list