Issue with object versioning

asked 2012-12-10 18:43:29 -0600

simplidrive gravatar image


We are running a 5 node + 2 proxy behind LB setup with swift 1.5.0.

We have observed a strange behavior in object versioning. We are using cyberduck as a client. Here's what we do ,

Under versioned container "mycontainer" create folder1 under folder1 create folder2 under folder2 create folder3 under folder3 create folder4 upload a file myfile.txt to folder4 and create 2 versions of the same.

The query to the container "swift list mycontainer" gives below output :

folder1 folder1/folder2 folder1/folder2/folder3 folder1/folder2/folder3/folder4 folder1/folder2/folder3/folder4/myfile.txt

Now, from cyberduck, try to delete folder1 which should recursively delete everything under it. But, the version of "myfile.txt" gets restored from the version container, which in turn recreates the entire hierarchy we deleted in last step. Cyberduck shows the same perfectly. But, The query to the container "swift list mycontainer" gives below output


Which is not same as the previous output.



edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2012-12-11 18:26:45 -0600

notmyname gravatar image

Cyberduck is creating "directory marker" objects when you use it to make pseudo directories. However, those directory marker objects aren't needed. Therefore cyberduck "works" in that it shows the pseudo-directory structure in its UI even without the directory marker objects. Swift is working as intended.

edit flag offensive delete link more

answered 2013-07-16 12:20:54 -0600

simplidrive gravatar image

Thanks John Dickinson, that solved my question.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2012-12-10 18:43:29 -0600

Seen: 52 times

Last updated: Jul 16 '13