swift command to test openstack object storage

2019-08-30 09:37发布

i have error when i execute swift -A http://xxx.xxx.x.x:5000/v2.0 -U service:swift -K swift -V 2.0 stat outputlike this Auth GET failed: http://xxx.xxx.x.x:5000/v2.0/tokens 500 Internal Server Error maybe any solution for me !

4条回答
三岁会撩人
2楼-- · 2019-08-30 10:11
swift -v -V 2.0 -A http://127.0.0.1:5000/v2.0/ -U service:swift -K swift stat

Let me know what you get after executing this. Also make sure all your swift related services are running. You can start all of them at once using.

sudo swift-init main start
sudo swift-init rest start

Hope it helps.

查看更多
手持菜刀,她持情操
3楼-- · 2019-08-30 10:15

Elvis Jon Freddy Sitinjak, you need to copy the object.ring.gz from your proxy node to all the storage nodes.

查看更多
做自己的国王
4楼-- · 2019-08-30 10:19

koolhead17 I have tried to execute sudo swift-init main start

result IOError: [Errno 2] No such file or directory: '/etc/swift/object.ring.gz'

and then when i execute sudo swift-init rest start

result IOError: [Errno 2] No such file or directory: '/etc/swift/object.ring.gz'

maybe...any solution for me? :)

查看更多
可以哭但决不认输i
5楼-- · 2019-08-30 10:20

to run your swift environment, use following command: swift-init all restart

查看更多
登录 后发表回答