Defects observed in SoF with the patch - https://review.openstack.org/#/c/159285/
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
swiftonfile |
New
|
Undecided
|
Thiago da Silva |
Bug Description
Hello,
I was testing SoF with the patch - https:/
In that below defect was found: (I am reporting it here, fixing it is conditional to checkin of the patch)
Issues:
1. new argument - frag_index is being passed to DiskFile and DiskFileManager; added **kwargs to signature of __init__().
Aug 19 09:28:15 brokentooth proxy-server: ERROR __call__ error with PUT /sdb9/175/
Traceback (most recent call last):
File "/home/
res = method(req)
File "/home/
return func(*a, **kw)
File "/home/
resp = func(ctrl, *args, **kwargs)
File "/home/
return server.
File "/home/
return func(*a, **kw)
File "/home/
resp = func(ctrl, *args, **kwargs) File "/home/
File "/home/
device, partition, account, container, obj, policy, **kwargs)
File "/home/
TypeError: __init__() got an unexpected keyword argument 'frag_index' (txn: txc2d501fdbd734
2. It seems that the base class - swift.obj.
3. swift client is reporting error while downloading as etag is encapsulated in double quote.
[swift@
Pushkaraj: "a662a581b0412f
Error downloading object 'sofsos1/
[swift@
% Total % Received % Xferd Average Speed Time Time Time Current
100 366 100 366 0 0 28162 0 --:--:-- --:--:-- --:--:-- 30500
Etag: "a662a581b0412f
This may not be related to this code change.
Thx
Changed in swiftonfile: | |
assignee: | nobody → Thiago da Silva (thiagodasilva) |
FYI, this was basic SAIO setup with the patch applied, and single-process.conf points to swiftonfile egg.
Also, the object POST (metadata update) failed with below error.
metadata POST fails with error: swift/swift/ swift/obj/ server. py", line 908, in __call__ swift/swift/ swift/common/ utils.py" , line 2667, in wrapped swift/swift/ swift/common/ utils.py" , line 1207, in _timing_stats swift/swiftonfi le/swiftonfile/ swift/obj/ server. py", line 74, in PUT ObjectControlle r.PUT(self, request) swift/swift/ swift/common/ utils.py" , line 2667, in wrapped swift/swift/ swift/common/ utils.py" , line 1207, in _timing_stats swift/swift/ swift/obj/ server. py", line 584, in PUT reader, ''): swift/swift/ swift/obj/ server. py", line 370, in timeout_reader read(self. network_ chunk_size) swift/swift/ swift/common/ utils.py" , line 2794, in read input.read( *args, **kwargs) python2. 7/site- packages/ eventlet/ wsgi.py" , line 190, in read read(self. rfile.read, length) python2. 7/site- packages/ eventlet/ wsgi.py" , line 124, in _do_read
Traceback (most recent call last):
File "/home/
res = method(req)
File "/home/
return func(*a, **kw)
File "/home/
resp = func(ctrl, *args, **kwargs)
File "/home/
return server.
File "/home/
return func(*a, **kw)
File "/home/
resp = func(ctrl, *args, **kwargs)
File "/home/
for chunk in iter(timeout_
File "/home/
return file_like.
File "/home/
chunk = self.wsgi_
File "/usr/lib/
return self._do_
File "/usr/lib/
if length and length > self.content_length - self.position:
TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'