swift command to test openstack object storage

て烟熏妆下的殇ゞ 提交于 2019-12-25 02:24:38

问题


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 !


回答1:


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.




回答2:


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? :)




回答3:


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




回答4:


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



来源:https://stackoverflow.com/questions/20281713/swift-command-to-test-openstack-object-storage

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!