Disable versioning failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Medium
|
Kun Huang |
Bug Description
Found in 1.7.5
---[ note from gholt ]---
I do believe there's a bug in that you can't send an "x-remove-
---[ end note ]---
Enable object versioning as http://
Examine container/
curl -XPUT -H 'X-Auth-Token: AUTH_tk1863c0dc
Jan 28 22:57:36 keystone container-server PETER: X-Timestamp : 1359385056.12792
Jan 28 22:57:36 keystone container-server PETER: X-Account-Host : 127.0.0.1:6042
Jan 28 22:57:36 keystone container-server PETER: X-Account-Device : sdb4
Jan 28 22:57:36 keystone container-server PETER: X-Account-Partition : 160771
Jan 28 22:57:36 keystone container-server PETER: Connection : close
Jan 28 22:57:36 keystone container-server PETER: X-Trans-Id : txff7dc43b64d84
Jan 28 22:57:36 keystone container-server PETER: X-Versions-Location : versions
Jan 28 22:57:36 keystone container-server PETER: Host : 127.0.0.1:6011
Jan 28 22:57:36 keystone container-server PETER: Accept-Encoding : identity
Jan 28 22:57:36 keystone container-server PETER: Content-Type : None
Seems header "X-Versions-
Changed in swift: | |
importance: | Undecided → Medium |
Changed in swift: | |
assignee: | nobody → Kun Huang (academicgareth) |
status: | Confirmed → In Progress |
Changed in swift: | |
milestone: | none → 1.9.0 |
Changed in swift: | |
status: | Fix Committed → Fix Released |
Object versioning is enabled cluster wide by having the following in the container server config file (as mentioned in the documentation):
allow_versions = True
If this is not set, then object versioning isn't available as a feature in the cluster.
Once a container is created with versioning enabled, it *can not* be disabled. The only way to do that would be to remove the objects in the container, and then delete and re-create the container.