互联网服务

关于swift的问题

openstack Kilo版本+centos7.1,现所有组件都运行OK,唯有swift有点问题,但是又不知道哪方面出错,感觉swift很复杂,目测是认证出错了,服务应该没问题,因为test账户可以上传下载查阅,详细查阅图片,求大神解答,谢谢。

33333333333333.png


QQ图片20151018173150.png


QQ图片20151018172900.png


QQ图片20151018172937.png


QQ图片20151018173340.jpg


参与14

5同行回答

zhanghao001122zhanghao001122项目经理北京休伦科技有限公司
你可以在执行的命令中加上debug,这样信息更全面.通过执行命令的前后对比,我觉得应该是你admin这个用户没有swift项目的权限.显示全部

你可以在执行的命令中加上debug,这样信息更全面.

通过执行命令的前后对比,我觉得应该是你admin这个用户没有swift项目的权限.

收起
软件开发 · 2015-10-19
浏览2091
laishanwulaishanwu技术经理云润
非常感激你的回答、如果是admin没有权限、是否是kilo版本的官档有问题?我看步骤和其他版本的文档差异也不大,求教解决方法。显示全部

非常感激你的回答、

QQ图片.png


如果是admin没有权限、是否是kilo版本的官档有问题?我看步骤和其他版本的文档差异也不大,求教解决方法。

收起
互联网服务 · 2015-10-19
浏览1915
laishanwulaishanwu技术经理云润
只有这些报错,感觉和命令的差不多:[Sun Oct 18 17:26:18.297185 2015] [:error] [pid 3157] RESP BODY: UnauthorizedThis server could not verify that you are authorized to access the document you requested.[Sun Oct 18 17:26:18.298001 2015] [:error] [pid 3157]...显示全部

只有这些报错,感觉和命令的差不多:


[Sun Oct 18 17:26:18.297185 2015] [:error] [pid 3157] RESP BODY:

Unauthorized

This server could not verify that you are authorized to access the document you requested.

[Sun Oct 18 17:26:18.298001 2015] [:error] [pid 3157] Account GET failed: http://controller:8080/v1/AUTH_124df7d38bef47ac811d1fb5581eb541?format=json&limit=1001 401 Unauthorized  [first 60 chars of response]

Unauthorized

This server could not verify t

[Sun Oct 18 17:26:18.298018 2015] [:error] [pid 3157] Traceback (most recent call last):

[Sun Oct 18 17:26:18.298023 2015] [:error] [pid 3157]   File \"/usr/lib/python2.7/site-packages/swiftclient/client.py\", line 1261, in _retry

[Sun Oct 18 17:26:18.298027 2015] [:error] [pid 3157]     rv = func(self.url, self.token, *args, **kwargs)

[Sun Oct 18 17:26:18.298030 2015] [:error] [pid 3157]   File \"/usr/lib/python2.7/site-packages/swiftclient/client.py\", line 474, in get_account

[Sun Oct 18 17:26:18.298034 2015] [:error] [pid 3157]     end_marker, http_conn)

[Sun Oct 18 17:26:18.298037 2015] [:error] [pid 3157]   File \"/usr/lib/python2.7/site-packages/swiftclient/client.py\", line 509, in get_account

[Sun Oct 18 17:26:18.298041 2015] [:error] [pid 3157]     http_response_content=body)

[Sun Oct 18 17:26:18.298044 2015] [:error] [pid 3157] ClientException: Account GET failed: http://controller:8080/v1/AUTH_124df7d38bef47ac811d1fb5581eb541?format=json&limit=1001 401

收起
互联网服务 · 2015-10-19
浏览2010
zhanghao001122zhanghao001122项目经理北京休伦科技有限公司
有没有看过swift相关服务的日志,有没有什么报错的信息显示全部

有没有看过swift相关服务的日志,有没有什么报错的信息

收起
软件开发 · 2015-10-19
浏览2084
  • 没有报错,来来去去都是这几句 Oct 19 10:09:30 controller proxy-server: 10.0.10.215 10.0.10.215 19/Oct/2015/02/09/30 GET /v1/AUTH_124df7d38bef47ac811d1fb5581eb541%3Fformat%3Djson HTTP/1.0 401 - python-swiftclient-2.4.0 755c84c780aa4fa5... - 131 - txabfca90ae6164272961a1-00562450da - 0.0009 - - 1445220570.875056982 1445220570.875973940 - Oct 19 10:15:19 controller proxy-server: - - 19/Oct/2015/02/15/19 HEAD /v1/v1.0 HTTP/1.0 204 - Swift - - - - tx5f6329d3fd75474d85d25-0056245237 - 0.0171 RL - 1445220919.751341105 1445220919.768482924 - Oct 19 10:15:19 controller proxy-server: 10.0.10.215 10.0.10.215 19/Oct/2015/02/15/19 GET /auth/v1.0 HTTP/1.0 200 - python-swiftclient-2.4.0 - - - - tx5f6329d3fd75474d85d25-0056245237 - 0.0210 - - 1445220919.750734091 1445220919.771770000 - Oct 19 10:15:19 controller proxy-server: - - 19/Oct/2015/02/15/19 HEAD /v1/AUTH_admin HTTP/1.0 204 - Swift - - - - tx46cedb6494e24ce6ad112-0056245237 - 0.0142 RL - 1445220919.777298927 1445220919.791492939 - Oct 19 10:15:19 controller proxy-server: 10.0.10.215 10.0.10.215 19/Oct/2015/02/15/19 HEAD /v1/AUTH_admin HTTP/1.0 204 - python-swiftclient-2.4.0 AUTH_tkfc7cdb5e3... - - - tx46cedb6494e24ce6ad112-0056245237 - 0.0320 - - 1445220919.776492119 1445220919.808532953 - Oct 19 10:19:29 controller proxy-server: - - 19/Oct/2015/02/19/29 HEAD /v1/AUTH_124df7d38bef47ac811d1fb5581eb541 HTTP/1.0 204 - Swift - - - - tx0905e89b4d7f4275bab6b-0056245331 - 0.0158 RL - 1445221169.235232115 1445221169.251043081 - Oct 19 10:19:29 controller proxy-server: 10.0.10.215 10.0.10.215 19/Oct/2015/02/19/29 HEAD /v1/AUTH_124df7d38bef47ac811d1fb5581eb541 HTTP/1.0 401 - python-swiftclient-2.4.0 86162b4502d440a1... - - - tx0905e89b4d7f4275bab6b-0056245331 - 0.0175 - - 1445221169.234585047 1445221169.252055883 - Oct 19 10:19:29 controller proxy-server: 10.0.10.215 10.0.10.215 19/Oct/2015/02/19/29 HEAD /v1/AUTH_124df7d38bef47ac811d1fb5581eb541 HTTP/1.0 401 - python-swiftclient-2.4.0 86162b4502d440a1... - - - txf1489dd681024cf7912e6-0056245331 - 0.0009 - - 1445221169.259056091 1445221169.259942055 - Oct 19 10:19:29 controller proxy-server: 10.0.10.215 10.0.10.215 19/Oct/2015/02/19/29 GET /v1/AUTH_124df7d38bef47ac811d1fb5581eb541%3Fformat%3Djson HTTP/1.0 401 - python-swiftclient-2.4.0 86162b4502d440a1... - 131 - tx748a04ec71f74945b46e5-0056245331 - 0.0012 - - 1445221169.696650028 1445221169.697832108 - Oct 19 10:19:30 controller proxy-server: 10.0.10.215 10.0.10.215 19/Oct/2015/02/19/30 HEAD /v1/AUTH_124df7d38bef47ac811d1fb5581eb541 HTTP/1.0 401 - python-swiftclient-2.4.0 86162b4502d440a1... - - - tx2899e7b173a64d73ad2a2-0056245332 - 0.0011 - - 1445221170.103162050 1445221170.104264975 - Oct 19 10:19:30 controller proxy-server: 10.0.10.215 10.0.10.215 19/Oct/2015/02/19/30 GET /v1/AUTH_124df7d38bef47ac811d1fb5581eb541%3Fformat%3Djson HTTP/1.0 401 - python-swiftclient-2.4.0 86162b4502d440a1... - 131 - tx4adbb9bdef474e399883e-0056245332 - 0.0011 - - 1445221170.112413883 1445221170.113492012 - Oct 19 10:29:29 controller proxy-server: - - 19/Oct/2015/02/29/29 HEAD /v1/AUTH_124df7d38bef47ac811d1fb5581eb541 HTTP/1.0 204 - Swift - - - - txd9671924ce3d417caf015-0056245589 - 0.0167 RL - 1445221769.240339041 1445221769.257004976 - Oct 19 10:29:29 controller proxy-server: 10.0.10.215 10.0.10.215 19/Oct/2015/02/29/29 HEAD /v1/AUTH_124df7d38bef47ac811d1fb5581eb541 HTTP/1.0 401 - python-swiftclient-2.4.0 afc574cf7c59487a... - - - txd9671924ce3d417caf015-0056245589 - 0.0183 - - 1445221769.239660025 1445221769.258006096 - Oct 19 10:29:29 controller proxy-server: 10.0.10.215 10.0.10.215 19/Oct/2015/02/29/29 HEAD /v1/AUTH_124df7d38bef47ac811d1fb5581eb541 HTTP/1.0 401 - python-swiftclient-2.4.0 afc574cf7c59487a... - - - tx333ab1f1e7914383b06bd-0056245589 - 0.0009 - - 1445221769.265131950 1445221769.266017914 - Oct 19 10:29:29 controller proxy-server: 10.0.10.215 10.0.10.215 19/Oct/2015/02/29/29 GET /v1/AUTH_124df7d38bef47ac811d1fb5581eb541%3Fformat%3Djson HTTP/1.0 401 - python-swiftclient-2.4.0 afc574cf7c59487a... - 131 - tx3bdb5060e32c4ef2a0f38-0056245589 - 0.0011 - - 1445221769.659631968 1445221769.660756111 - Oct 19 10:29:30 controller proxy-server: 10.0.10.215 10.0.10.215 19/Oct/2015/02/29/30 HEAD /v1/AUTH_124df7d38bef47ac811d1fb5581eb541 HTTP/1.0 401 - python-swiftclient-2.4.0 afc574cf7c59487a... - - - tx344e78de945740429b097-005624558a - 0.0010 - - 1445221770.092293978 1445221770.093337059 - Oct 19 10:29:30 controller proxy-server: 10.0.10.215 10.0.10.215 19/Oct/2015/02/29/30 GET /v1/AUTH_124df7d38bef47ac811d1fb5581eb541%3Fformat%3Djson HTTP/1.0 401 - python-swiftclient-2.4.0 afc574cf7c59487a... - 131 - tx14b6bd895817441ba8f88-005624558a - 0.0010 - - 1445221770.101336002 1445221770.102322102 -
    2015-10-19
  • 看看apache的日志,应该有报错
    2015-10-19
laishanwulaishanwu技术经理云润
我换账户来测试、admin是可以的噢,哈哈显示全部

QQ图片20151019102328.png


我换账户来测试、admin是可以的噢,哈哈

收起
互联网服务 · 2015-10-19
浏览1932

提问者

laishanwu
技术经理云润
擅长领域: 云计算云管平台桌面云

问题状态

  • 发布时间:2015-10-18
  • 关注会员:2 人
  • 问题浏览:5406
  • 最近回答:2015-10-19
  • X社区推广