openstack-swift验证出现问题
swift stat出现以下报错
Account HEAD failed: http://controller:8080/v1/AUTH_bd0c2a3208694000b06fde178f3655fe 503 Internal Server Error
都是按照官方文档弄的,开始需要安装python-keystone-auth-token这个包,但是官方的所有源里都没有找到,不知道和这个有没有关系,系统是centos6.6的,请求帮助谢谢啦
[root@Controller ~]# yum search python-keystone-auth-token
Loaded plugins: fastestmirror, priorities, refresh-packagekit, security
Loading mirror speeds from cached hostfile
epel/metalink | 5.6 kB 00:00
* base: mirrors.yun-idc.com
* epel: mirrors.yun-idc.com
* extras: mirrors.yun-idc.com
* updates: mirrors.btte.net
base | 3.7 kB 00:00
epel | 4.4 kB 00:00
epel/primary_db | 6.5 MB 00:08
extras | 3.4 kB 00:00
foreman | 2.9 kB 00:00
foreman-plugins | 2.9 kB 00:00
openstack-icehouse | 2.9 kB 00:00
puppetlabs-deps | 2.5 kB 00:00
puppetlabs-products | 2.5 kB 00:00
updates | 3.4 kB 00:00
170 packages excluded due to repository priority protections
epel/pkgtags | 1.4 MB 00:01
Warning: No matches found for: python-keystone-auth-token
No Matches found
[root@Controller ~]#
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Install python-keystoneclient instead of python-keystone-auth-token.
$ source admin-openrc.sh
$ swift stat
http://controller:8080/v1/AUTH_687784e650a04ff3a594fcf85b46dd56 503 Internal Server Error
将127.0.0.1改为192.168.0.1(你的ip)
vim /etc/swift/account-server.conf
#bind_ip = 127.0.0.1
bind_ip = 192.168.0.1(你的ip)
重启所有服务:
/etc/init.d/openstack-swift-proxy restart
for service in
openstack-swift-object openstack-swift-object-replicator openstack-swift-object-updater openstack-swift-object-auditor
openstack-swift-container openstack-swift-container-replicator openstack-swift-container-updater openstack-swift-container-auditor
openstack-swift-account openstack-swift-account-replicator openstack-swift-account-reaper openstack-swift-account-auditor; do
service $service restart; done
再次检查:swift stat
OK