Auditors Duplicate Tests and Miss Entire Devices

Bug #691254 reported by Travis W Kiel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Fix Released
Undecided
David Goetz

Bug Description

Version: trunk rev 145

When a node has more than one device/disk, the account, container, obj auditors are duplicating tests against the first device found, and are not actually testing the other devices. This of course means that many objects go unaudited.

The auditors call on swift.common.utils.audit_location_generator() to obtain a list of objects to test against.

The problem is that the 'objects' directory is supplied in arguments to audit_location_generator() as var 'datadir', and the code in the function redefines it for use as a full path. A quick solution to this is to build the path as var 'datadir_path' instead of redefining datadir.

Attached is a fixed swift.common.utils.audit_location_generator().

Related branches

Revision history for this message
Travis W Kiel (twkiel) wrote :
Revision history for this message
David Goetz (david-goetz) wrote :

I'm working with the obj auditor right now- I'll add this in. Thanks,

David

Changed in swift:
assignee: nobody → David Goetz (david-goetz)
Changed in swift:
status: New → Fix Committed
Chuck Thier (cthier)
Changed in swift:
milestone: none → 1.2.0
Chuck Thier (cthier)
Changed in swift:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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