[Openstack] swift stat shows raise SwiftError('Account not found', exc=err) swiftclient.service.SwiftError: 'Account not found' error
Vivek Varghese Cherian
vivekcherian at gmail.com
Tue Nov 25 05:40:47 UTC 2014
Hi,
On Tue, Nov 18, 2014 at 12:27 AM, Clay Gerrard <clay.gerrard at gmail.com>
wrote:
> 401 seems to indicate the token you're getting from keystone isn't able to
> be validated by the swift proxy.
>
> Maybe the proxy logs or keystone logs will indicate if keystone thinks
> AUTH_ca382398c06749f483d4adfa6cecd868 is a valid token?
>
> -Clay
>
>
My issue is resolved, I had to provide the bind_ip = 0.0.0.0 in the files
account-server.conf, container-server.conf, object-server.conf in the
/etc/swift directory.
I also recreated the rings
swift-ring-builder account.builder create 10 3 1
swift-ring-builder account.builder add
r1z1-single_node_controller_ip_address:6002/swift 100
swift-ring-builder account.builder
swift-ring-builder account.builder rebalance
swift-ring-builder container.builder create 10 3 1
swift-ring-builder container.builder add
r1z1-single_node_controller_ip_address:6001/swift 100
swift-ring-builder container.builder
swift-ring-builder container.builder rebalance
swift-ring-builder object.builder create 10 3 1
swift-ring-builder object.builder add
r1z1-single_node_controller_ip_address:6000/swift 100
swift-ring-builder object.builder
swift-ring-builder object.builder rebalance
I am able to get the following output for swift stat.
root at juno-14:~# swift stat
Account: AUTH_ca382398c06749f483d4adfa6cecd868
Containers: 2
Objects: 1
Bytes: 306
Objects in policy "policy-0": 1
Bytes in policy "policy-0": 306
X-Timestamp: 1416841903.34267
X-Trans-Id: tx8318107dd43140238a5f9-00547410e4
Content-Type: text/plain; charset=utf-8
Accept-Ranges: bytes
root at juno-14:~#
I created 2 containers 'test1' which is private and 'public-container'
which is public.
'swift list' is able to list both containers.
root at juno-14:~# swift list
public-container
test1
root at juno-14:~#
I am also able to download the files from the containers.
Thanks to the community for the pointers.
Regards,
--
Vivek Varghese Cherian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20141125/145f1980/attachment.html>
More information about the Openstack
mailing list