object auditor can error for some objects
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/
usr/lib/
size(df.data_file) != \#012 File "/usr/lib/
return os.stat(
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
- Chuck Thier (community): Approve
-
Diff: 64 lines (+6/-11)3 files modifieddoc/source/deployment_guide.rst (+0/-8)
swift/common/utils.py (+3/-3)
swift/obj/auditor.py (+3/-0)
Changed in swift: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → John Dickinson (notmyname) |
Changed in swift: | |
milestone: | none → 1.1.0 |
Changed in swift: | |
status: | In Progress → Fix Released |
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.