swift-acount-audit does not work with policies
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Confirmed
|
Low
|
Unassigned |
Bug Description
The tool swift-account-audit is not able to find objects if they are in a container with a policy other than Policy-0. This is due to the tool only reading the ring file object.ring.gz instead of reading the proper file (object-X.ring.gz).
With a container with a policy:
root@test-
HTTP/1.1 204 No Content
Content-Length: 0
X-Container-
Accept-Ranges: bytes
X-Storage-Policy: montreal
X-Container-
X-Timestamp: 1438790277.67927
Content-Type: text/plain; charset=utf-8
X-Trans-Id: txb2582db469fa4
Date: Wed, 12 Aug 2015 14:33:51 GMT
Observed behavior:
root@test-
Auditing container "montreal"
Auditing account "AUTH_admin"
Bad status HEADing object "/AUTH_
[truncated]
Bad status HEADing object "/AUTH_
Failed fo fetch object /AUTH_admin/
Bad status HEADing object "/AUTH_
Failed fo fetch object /AUTH_admin/
Bad status HEADing object "/AUTH_
Failed fo fetch object /AUTH_admin/
Accounts checked: 1
Containers checked: 1
Objects checked: 500
Missing Replicas: 1500
Expected behavior:
root@test-
Auditing container "montreal"
Auditing account "AUTH_admin"
Accounts checked: 1
Containers checked: 1
Objects checked: 500
Changed in swift: | |
assignee: | nobody → Clément Contini (ccontini) |
Changed in swift: | |
assignee: | Clément Contini (ccontini) → nobody |
status: | In Progress → Confirmed |
tags: | added: low-hanging-fruit |
Changed in swift: | |
importance: | Undecided → Low |
Fix proposed to branch: master /review. openstack. org/212109
Review: https:/