错误描述:
安装配置完swift后,运行swift list命令,报如下错误:
Account GET failed: http://172.80.80.146:8081:8081/v1/AUTH_f3df03ae27a54dbbad2920b07a5462a9?format=json 401 Unauthorized [first 60 chars of response] <html><h1>Unauthorized</h1><p>This server could not verify t
运行swift stat命令,报如下错误:
Account HEAD failed: http://172.80.80.146:8081:8081/v1/AUTH_f3df03ae27a54dbbad2920b07a5462a9 401 Unauthorized
通过Google查找401 Unauthorized error,大部分文章都说是由于proxy-server.conf配置文件配置项缺少或错误导致的,但我尝试添加或修改,问题依然存在。
解决办法:
修改Keyston使用UUID tokens,找到/etc/keystone/keystone.conf文件,查找token_format配置项,将其值修改为UUID,之后运行service keystone restart使配置生效。之后重新运行swift命令,将发现问题解决。
解决参考:
http://thornelabs.net/2014/07/16/openstack-swift-401-unauthorized-when-using-the-swift-command.html
来源:oschina
链接:https://my.oschina.net/u/186217/blog/405754