Ask Your Question
0

Swift read problems

asked 2015-03-13 12:47:04 -0600

Paul Roberts gravatar image

Hi all, I'm trying to benchmark my swift install using COSBench and I'm seeing lots of read failures. The errors in the log are of the following format: object-auditor: ERROR Object /srv/node/v7ka1/objects/3342/0bf/e9e11ac7f28ea51d14ba0f4adb7b70bf failed audit and was quarantined: Hash of name in metadata does not match directory name and object-auditor: Quarantined object /srv/node/v7ka1/objects/3342/424/5d9bcded71875416d3c8d581e1a82424/1426251597.97548.data: Hash of name in metadata does not match directory name

Does anyone have any thoughts on why this might be happening and/or what to do about it?

The writes and deletes are both completing with 100% success so I'm at a bit of a loss.

Thanks in advance

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2015-03-15 11:40:14 -0600

torgomatic gravatar image

Odds are that your /etc/swift/swift.conf is not the same across all your nodes, in particular the entries swift_hash_path_prefix and swift_hash_path_suffix. If those don't match, then the object auditor will compute a different hash than the proxy will for a given object name, and so it will believe the object corrupted.

Always keep /etc/swift/swift.conf the same across all the nodes in your cluster.

edit flag offensive delete link more

Comments

Thanks a lot, one of my nodes died and I must've forgotten to copy this across after my reinstall.

Paul Roberts gravatar imagePaul Roberts ( 2015-03-17 06:06:54 -0600 )edit
0

answered 2015-03-13 16:37:34 -0600

If an error is found, the corrupted object is moved to a quarantine area, and replication is responsible for replacing the data with a known good copy. Are you still seeing this error, as it's most likely not an issue any longer.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-03-13 12:47:04 -0600

Seen: 289 times

Last updated: Mar 15 '15