Ask Your Question
0

Issue in Object Versioning

asked 2012-08-07 10:23:00 -0500

simplidrive gravatar image

Hi,

We are following http://docs.openstack.org/developer/swift/overview_object_versioning.html (http://docs.openstack.org/developer/s...) to enable object-versioning in our swift environment.

Issue 1 - We are able to create versions for an object. But, according to the guide we are not able to see the list of versioned objects using below command from the guide

See a listing of the older versions of the object:

curl -i -H "X-Auth-Token: <token>" http://<storage_url>/versions?prefix=myobject/

it gives output as :

HTTP/1.1 204 No Content X-Container-Object-Count: 1 X-Timestamp: 1344334195.70066 X-Container-Bytes-Used: 1 Accept-Ranges: bytes Content-Length: 0 X-Trans-Id: tx8e3851a719d7421ea318fb016ecc4f31 Date: Tue, 07 Aug 2012 10:16:33 GMT

Issue 2 - When we connect to swift using cyberduck, we see a folder getting created in the versions container with objects in it.

Question 1 - for example, if the object name is 'myobject', then the folder gets created with a name '008myobject', what does 008 mean here? is it the month of creation (august) ?

Question 2 - under the '008myobject' folder, we see an object created with a name '1344334333.42845'.

In the object name, we figured out that first 10 characters are the epoch time. What doe that later 5 characters mean?

Regards,

Viral Patadiya

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2012-08-07 23:24:42 -0500

notmyname gravatar image

For the first issue, the docs are bad. I need to update them. Use ?prefix=008myobject/

For the second issue, the first three characters are the length of the filename (zero-padded, base 16). The entire "1344334333.42845" is the timestamp. The numbers after the decimal are sub-second resolution.

edit flag offensive delete link more
0

answered 2012-08-08 11:50:08 -0500

simplidrive gravatar image

Thanks John Dickinson, that solved my question.

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: 2012-08-07 10:23:00 -0500

Seen: 13 times

Last updated: Aug 08 '12