分享

求助:swift stat时,Account HEAD failed或Auth GET failed

marsaber 发表于 2014-12-27 14:21:29 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 8 56093
我的是KVM的虚拟机,2G内存。
操作系统是CentOS6.5 x86_64的,用的是Icehouse版本。

[root@control ~]# swift stat
Account HEAD failed: http://controller:8080/v1/AUTH_6298a6f29bcf43489a051975b36df694 401 Unauthorized
[root@control ~]# swift -A http://192.168.25.7:5000/v2.0 -U service:swift -K waftest stat
Auth GET failed: http://192.168.25.7:5000/v2.0 200 OK

日志:
Dec 27 06:59:43 control account-replicator: Beginning replication run
Dec 27 06:59:43 control account-replicator: Replication run OVER
Dec 27 06:59:43 control account-replicator: Attempted to replicate 0 dbs in 0.00129 seconds (0.00000/s)
Dec 27 06:59:43 control account-replicator: Removed 0 dbs
Dec 27 06:59:43 control account-replicator: 0 successes, 0 failures
Dec 27 06:59:43 control account-replicator: no_change:0 ts_repl:0 diff:0 rsync:0 diff_capped:0 hashmatch:0 empty:0
Dec 27 06:59:49 control container-updater: Begin container update sweep
Dec 27 06:59:49 control container-updater: Container update sweep completed: 0.00s
Dec 27 06:59:56 control proxy-server: Unexpected response from keystone service: {u'error': {u'message': u'The request you have made requires authentication.', u'code': 401, u'title': u'Unauthorized'}}
Dec 27 06:59:56 control proxy-server: Authorization failed for token
Dec 27 06:59:56 control proxy-server: Invalid user token - rejecting request

Dec 27 06:59:58 control proxy-server: Unexpected response from keystone service: {u'error': {u'message': u'The request you have made requires authentication.', u'code': 401, u'title': u'Unauthorized'}}
Dec 27 06:59:58 control proxy-server: Authorization failed for token
Dec 27 06:59:58 control proxy-server: Invalid user token - rejecting request
Dec 27 07:00:00 control object-replicator: Starting object replication pass.
Dec 27 07:00:00 control object-replicator: Nothing replicated for 0.00130391120911 seconds.
Dec 27 07:00:00 control object-replicator: Object replication complete. (0.00 minutes)
Dec 27 07:00:01 control object-auditor: Begin object audit "forever" mode (ZBF)
Dec 27 07:00:01 control object-auditor: Object audit (ZBF) "forever" mode completed: 0.00s. Total quarantined: 0, Total errors: 0, Total files/sec: 0.00, Total bytes/sec: 0.00, Auditing time: 0.00, Rate: 0.00
Dec 27 07:00:01 control object-auditor: Begin object audit "forever" mode (ALL)
Dec 27 07:00:01 control object-auditor: Object audit (ALL) "forever" mode completed: 0.00s. Total quarantined: 0, Total errors: 0, Total files/sec: 0.00, Total bytes/sec: 0.00, Auditing time: 0.00, Rate: 0.00
Dec 27 07:00:01 control object-auditor: Begin object audit "forever" mode (ZBF)
Dec 27 07:00:01 control object-auditor: Object audit (ZBF) "forever" mode completed: 0.00s. Total quarantined: 0, Total errors: 0, Total files/sec: 0.00, Total bytes/sec: 0.00, Auditing time: 0.00, Rate: 0.00
Dec 27 07:00:04 control container-replicator: Beginning replication run
Dec 27 07:00:04 control container-replicator: Replication run OVER
Dec 27 07:00:04 control container-replicator: Attempted to replicate 0 dbs in 0.00128 seconds (0.00000/s)
Dec 27 07:00:04 control container-replicator: Removed 0 dbs
Dec 27 07:00:04 control container-replicator: 0 successes, 0 failures
Dec 27 07:00:04 control container-replicator: no_change:0 ts_repl:0 diff:0 rsync:0 diff_capped:0 hashmatch:0 empty:0
Dec 27 07:00:06 control container-auditor: Begin container audit pass.


已有(8)人评论

跳转到指定楼层
bioger_hit 发表于 2014-12-27 21:49:09
令牌失效了,如下图,你的token是无效的,所以失败了。




回复

使用道具 举报

marsaber 发表于 2014-12-28 14:43:19
bioger_hit 发表于 2014-12-27 21:49
令牌失效了,如下图,你的token是无效的,所以失败了。

已经找到原因了,非常感谢。
回复

使用道具 举报

tntzbzc 发表于 2014-12-28 15:35:45
marsaber 发表于 2014-12-28 14:43
已经找到原因了,非常感谢。
楼主什么原因,我也遇到这个问题,能否给详细答案
回复

使用道具 举报

marsaber 发表于 2014-12-28 15:40:45
tntzbzc 发表于 2014-12-28 15:35
楼主什么原因,我也遇到这个问题,能否给详细答案

你是参考openstack提供的官方文档安装的吗?
我是在安装过程中遇到这个问题的。

回复

使用道具 举报

tntzbzc 发表于 2014-12-28 15:45:46
marsaber 发表于 2014-12-28 15:40
你是参考openstack提供的官方文档安装的吗?
我是在安装过程中遇到这个问题的。
对啊,你的是什么原因
回复

使用道具 举报

marsaber 发表于 2014-12-28 15:47:28
参考文档
http://www.server110.com/openstack/201402/6662.html

官方文档好像有问题的,我对着这篇文章做了一遍,就好了。
回复

使用道具 举报

wonitazansa 发表于 2015-3-17 22:38:36
感谢楼主的分享
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条