2011-12-16 18:52:55 |
Johannes Erdfelt |
description |
if you use python webob 1.2b2 (it is the default install version of easy_install), you'd better change back to 1.1 stable version
when i use command:
swauth-list -A https://10.38.10.127:8080/auth/ -U .super_admin -K swauthkey
it's return 500 error
and from log of proxy server :
Nov 9 17:23:56 localhost proxy-server ERROR Unhandled exception in request: #012Traceback (most recent call last):#012 File "/usr/lib/python2.6/site-packages/swift-1.4.3-py2.6.egg/swift/proxy/server.py", line 1706, in handle_request#012 return handler(req)#012 File "/usr/lib/python2.6/site-packages/swift-1.4.3-py2.6.egg/swift/proxy/server.py", line 82, in wrapped#012 return func(*a, **kw)#012 File "/usr/lib/python2.6/site-packages/swift-1.4.3-py2.6.egg/swift/proxy/server.py", line 596, in GET#012 return self.GETorHEAD(req)#012 File "/usr/lib/python2.6/site-packages/swift-1.4.3-py2.6.egg/swift/proxy/server.py", line 1439, in GETorHEAD#012 req.path_info.rstrip('/'), self.app.account_ring.replica_count)#012 File "/usr/lib/python2.6/site-packages/swift-1.4.3-py2.6.egg/swift/proxy/server.py", line 719, in GETorHEAD_base#012 source.getheader('x-timestamp')#012TypeError: 'NoneType' object does not support item assignment
at the storage node log:
Nov 9 17:02:18 wq045g2fatm account-server ERROR __call__ error with GET /sdb1/194797/AUTH_.auth : #012Traceback (most recent call last):#012 File "/usr/lib/python2.6/site-packages/swift-1.4.3-py2.6.egg/swift/account/server.py", line 305, in __call__#012 res = getattr(self, req.method)(req)#012 File "/usr/lib/python2.6/site-packages/swift-1.4.3-py2.6.egg/swift/account/server.py", line 189, in GET#012 prefix = get_param(req, 'prefix')#012 File "/usr/lib/python2.6/site-packages/swift-1.4.3-py2.6.egg/swift/common/utils.py", line 117, in get_param#012 value = req.str_params.get(name, default)#012 File "build/bdist.linux-x86_64/egg/webob/descriptors.py", line 86, in fget#012 warn()#012 File "build/bdist.linux-x86_64/egg/webob/descriptors.py", line 83, in warn#012 3#012 File "build/bdist.linux-x86_64/egg/webob/util.py", line 51, in warn_deprecation#012 raise DeprecationWarning(text)#012DeprecationWarning: The attribute None is deprecated: disabled starting WebOb 1.2, use params instead
if i change my webob lib version from 1.2b2 to 1.1 , it's ok and just return:
{"accounts": [{"name": "hahah"}, {"name": "root2"}, {"name": "root3"}, {"name": "root4"}, {"name": "root5"}, {"name": "root6"}, {"name": "root7"}, {"name": "root8"}, {"name": "test"}, {"name": "testa"}, {"name": "testa20"}, {"name": "testa21"}, {"name": "testa22"}, {"name": "testaa"}, {"name": "testaaa"}, {"name": "testaaaa"}, {"name": "testaaaaa"}, {"name": "testaaaaaa"}, {"name": "testaaaaaaa"}, {"name": "testaaaaaaaa"}, {"name": "testaaaaaaaaa"}, {"name": "testaaaaaaaaaa"}, {"name": "testaaaaaaaaaaa"}, {"name": "testaccount"}]} |
if you use python webob 1.2b2 (it is the default install version of easy_install), you'd better change back to 1.1 stable version
when i use command:
swauth-list -A https://10.38.10.127:8080/auth/ -U .super_admin -K swauthkey
it's return 500 error
and from log of proxy server :
Nov 9 17:23:56 localhost proxy-server ERROR Unhandled exception in request:
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/swift-1.4.3-py2.6.egg/swift/proxy/server.py", line 1706, in handle_request
return handler(req)#012 File "/usr/lib/python2.6/site-packages/swift-1.4.3-py2.6.egg/swift/proxy/server.py", line 82, in wrapped
return func(*a, **kw)
File "/usr/lib/python2.6/site-packages/swift-1.4.3-py2.6.egg/swift/proxy/server.py", line 596, in GET
return self.GETorHEAD(req)
File "/usr/lib/python2.6/site-packages/swift-1.4.3-py2.6.egg/swift/proxy/server.py", line 1439, in GETorHEAD
req.path_info.rstrip('/'), self.app.account_ring.replica_count)
File "/usr/lib/python2.6/site-packages/swift-1.4.3-py2.6.egg/swift/proxy/server.py", line 719, in GETorHEAD_base
source.getheader('x-timestamp')
TypeError: 'NoneType' object does not support item assignment
at the storage node log:
Nov 9 17:02:18 wq045g2fatm account-server ERROR __call__ error with GET /sdb1/194797/AUTH_.auth :
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/swift-1.4.3-py2.6.egg/swift/account/server.py", line 305, in __call__
res = getattr(self, req.method)(req)
File "/usr/lib/python2.6/site-packages/swift-1.4.3-py2.6.egg/swift/account/server.py", line 189, in GET
prefix = get_param(req, 'prefix')
File "/usr/lib/python2.6/site-packages/swift-1.4.3-py2.6.egg/swift/common/utils.py", line 117, in get_param
value = req.str_params.get(name, default)
File "build/bdist.linux-x86_64/egg/webob/descriptors.py", line 86, in fget
warn()
File "build/bdist.linux-x86_64/egg/webob/descriptors.py", line 83, in warn
3
File "build/bdist.linux-x86_64/egg/webob/util.py", line 51, in warn_deprecation
raise DeprecationWarning(text)
DeprecationWarning: The attribute None is deprecated: disabled starting WebOb 1.2, use params instead
if i change my webob lib version from 1.2b2 to 1.1 , it's ok and just return:
{"accounts": [{"name": "hahah"}, {"name": "root2"}, {"name": "root3"}, {"name": "root4"}, {"name": "root5"}, {"name": "root6"}, {"name": "root7"}, {"name": "root8"}, {"name": "test"}, {"name": "testa"}, {"name": "testa20"}, {"name": "testa21"}, {"name": "testa22"}, {"name": "testaa"}, {"name": "testaaa"}, {"name": "testaaaa"}, {"name": "testaaaaa"}, {"name": "testaaaaaa"}, {"name": "testaaaaaaa"}, {"name": "testaaaaaaaa"}, {"name": "testaaaaaaaaa"}, {"name": "testaaaaaaaaaa"}, {"name": "testaaaaaaaaaaa"}, {"name": "testaccount"}]} |
|