Issue with object versioning

Asked by Netmagic Solutions

Hi,

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

folder1/folder2/folder3/folder4/myfile.txt

Which is not same as the previous output.

Regards,

Viral

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Solved by:
John Dickinson
Solved:
Last query:
Last reply:
Revision history for this message
Best John Dickinson (notmyname) said :
#1

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.

Revision history for this message
Netmagic Solutions (simplidrive) said :
#2

Thanks John Dickinson, that solved my question.