object auditor can error for some objects

Bug #664656 reported by John Dickinson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Fix Released
High
John Dickinson

Bug Description

I wanted to see if anybody else ran into this problem before I reported it as a bug.

The object auditor (1.1 RC1) is producing the following error in bulk.

Oct 20 15:25:28 node1 object-auditor ERROR Trying to audit
/srv/node/sdb1/objects/42/264/0ab4073c4caa1850e4c7a532f1128264/1287612239.32427.data: #012Traceback (most recent call last):#012 File "/
usr/lib/pymodules/python2.6/swift/obj/auditor.py", line 110, in object_audit#012 if os.path.get
size(df.data_file) != \#012 File "/usr/lib/python2.6/genericpath.py", line 49, in getsize#012
return os.stat(filename).st_size#012TypeError: coercing to Unicode: need string or buffer, NoneTyp
e found

The problem appears to be that filename is None, which I assume is obtained from df.data_file. The files they refer to exist, and I am able to os.path.getsize() and os.stat() them from the interpreter, and they are owned by the swift user.

Is anybody else seeing this?

Related branches

Revision history for this message
John Dickinson (notmyname) wrote :

This seems to be possible when a .data file and a .ts file exist in the same directory. DataFile will find the .ts file, set self.data_file to None and return. The auditor will then error.

Revision history for this message
Travis W Kiel (twkiel) wrote :

Checking several of these, I find that the .data file is the only thing present in the directory.

Changed in swift:
status: New → In Progress
importance: Undecided → High
assignee: nobody → John Dickinson (notmyname)
Changed in swift:
milestone: none → 1.1.0
Revision history for this message
Travis W Kiel (twkiel) wrote :

From what I am seeing, this appears to happen also with objects that should still exist (not tombstoned).

Chuck Thier (cthier)
Changed in swift:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.