Issue in Object Versioning

Asked by Netmagic Solutions

Hi,

We are following http://docs.openstack.org/developer/swift/overview_object_versioning.html 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

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

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.

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

Thanks John Dickinson, that solved my question.