Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Static Large Objects

Hi !

I've some issues trying to use the static large objects feature (while dynamic large objects feature works perfectly)

(http://docs.openstack.org/api/openstack-object-storage/1.0/content/static-large-objects.html)

When I send my "multipart" file with its manifest, followed by the multipart-manifest=put query (json format), everything is successful.

Manifest file :

[
    {
        "path": "/bar/musique.mp3",
        "etag": "b77211f7a0c76e3b7ad87d88f605e21d",
        "size_bytes": 3256896
    },
    {
        "path": "/foo/toto.txt",
        "etag": "4b6678c41d52dadfb385a4a078c79a14",
        "size_bytes": 20
    }
]

Request :

curl -X PUT -i -H "X-Auth-Token: abcdef0123456789" -T ./manifest.json "https://lb1234.pcs.ovh.net/v1/AUTH_0123654789abcdef/container/foo?multipart-manifest=put"

Response :

HTTP/1.1 100 Continue

HTTP/1.1 201 Created
Last-Modified: Wed, 13 Nov 2013 16:00:15 GMT
Content-Length: 0
Etag: 0123456789abcdeg
Content-Type: text/html; charset=UTF-8
X-Trans-Id: 1s5d4f6s4fdf1s56fd47d56f514s
Date: Wed, 13 Nov 2013 16:00:15 GMT

The thing is when I try to get the whole file by using the GET method on the manifest, I only get the manifest in its json format, instead of downloading the whole reunited file.

Using the HEAD request returns Content-Length with the size of the manifest itself instead of size of the large object I try to download.

Request :

curl -X HEAD -i -H "X-Auth-Token: abcdef0123456789" "https://lb1234.pcs.ovh.net/v1/AUTH_0123654789abcdef/container/foo"

Response :

HTTP/1.1 200 OK
Content-Length: 259
Accept-Ranges: bytes
Last-Modified: Wed, 13 Nov 2013 16:00:15 GMT
Etag: 0123456789abcdeg
X-Timestamp: 123456789.36351
Content-Type: application/octet-stream
X-Trans-Id: 1s5d4f6s4fdf1s56fd47d56f514s
Date: Wed, 13 Nov 2013 16:01:02 GMT

If someone has any idea on how to deal with this problem, it would be really helpful ! Thanks you a lot.

(If anybody speeks french this topic deals with the same issue : https://forums.hubic.com/showthread.php?371-OpenStack-Large-Objects)

Static Large Objects

Hi !

I've some issues trying to use the static large objects feature (while dynamic large objects feature works perfectly)

(http://docs.openstack.org/api/openstack-object-storage/1.0/content/static-large-objects.html)

When I send my "multipart" file with its manifest, followed by the multipart-manifest=put query (json format), everything is successful.

Manifest file :

[
    {
        "path": "/bar/musique.mp3",
        "etag": "b77211f7a0c76e3b7ad87d88f605e21d",
        "size_bytes": 3256896
    },
    {
        "path": "/foo/toto.txt",
        "etag": "4b6678c41d52dadfb385a4a078c79a14",
        "size_bytes": 20
    }
]

Request :

curl -X PUT -i -H "X-Auth-Token: abcdef0123456789" -T ./manifest.json "https://lb1234.pcs.ovh.net/v1/AUTH_0123654789abcdef/container/foo?multipart-manifest=put"

Response :

HTTP/1.1 100 Continue

HTTP/1.1 201 Created
Last-Modified: Wed, 13 Nov 2013 16:00:15 GMT
Content-Length: 0
Etag: 0123456789abcdeg
Content-Type: text/html; charset=UTF-8
X-Trans-Id: 1s5d4f6s4fdf1s56fd47d56f514s
Date: Wed, 13 Nov 2013 16:00:15 GMT

The thing is when I try to get the whole file by using the GET method on the manifest, I only get the manifest in its json format, instead of downloading the whole reunited file.

Using the HEAD request returns Content-Length with the size of the manifest itself instead of size of the large object I try to download.

Request :

curl -X HEAD -i -H "X-Auth-Token: abcdef0123456789" "https://lb1234.pcs.ovh.net/v1/AUTH_0123654789abcdef/container/foo"

Response :

HTTP/1.1 200 OK
Content-Length: 259
Accept-Ranges: bytes
Last-Modified: Wed, 13 Nov 2013 16:00:15 GMT
Etag: 0123456789abcdeg
X-Timestamp: 123456789.36351
Content-Type: application/octet-stream
X-Trans-Id: 1s5d4f6s4fdf1s56fd47d56f514s
Date: Wed, 13 Nov 2013 16:01:02 GMT

If someone has any idea on how to deal with this problem, it would be really helpful ! Thanks you a lot.

(If anybody speeks french this topic deals with the same issue : https://forums.hubic.com/showthread.php?371-OpenStack-Large-Objects)