[Openstack] Swift Object Storage Delete-After:120 doesn't delete

Thorfinn thorfinn at poivron.org
Tue Nov 26 10:45:24 UTC 2013


 

Hi All,

I use Openstack Havana (Storage + Identity)

I want to
automatically delete an object after 2 minutes but swift doesn't remove
the object.

Example

curl -i -X PUT --data-binary 2 -H "X-Auth-Token:
$tokenSwift" -H 'X-Delete-After:120'
http://192.168.3.100:8080/v1/AUTH_$tenantSwift/Container-Test-003/test
HTTP/1.1 201 Created Last-Modified: Tue, 26 Nov 2013 10:10:33 GMT
Content-Length: 0 Etag: c81e728d9d4c2f636f067f89cc14862c Content-Type:
text/html; charset=UTF-8 Date: Tue, 26 Nov 2013 10:10:33 GMT Connection:
close 
CURL -I -X GET -H "X-AUTH-TOKEN: $TOKENSWIFT"
HTTP://192.168.3.100:8080/V1/AUTH_$TENANTSWIFT/CONTAINER-TEST-003
HTTP/1.1 200 OK Content-Length: 5 X-Container-Object-Count: 1
Accept-Ranges: bytes X-Timestamp: 1385459942.90726
X-Container-Bytes-Used: 1 Content-Type: text/plain; charset=utf-8 Date:
Tue, 26 Nov 2013 10:10:41 GMT Connection: close test CURL -I -X HEAD -H
"X-AUTH-TOKEN: $TOKENSWIFT"
HTTP://192.168.3.100:8080/V1/AUTH_$TENANTSWIFT/CONTAINER-TEST-003/TEST
HTTP/1.1 200 OK Content-Length: 1 X-Delete-At: 1385460753 Accept-Ranges:
bytes Last-Modified: Tue, 26 Nov 2013 10:10:33 GMT Etag:
c81e728d9d4c2f636f067f89cc14862c X-Timestamp: 1385460633.76513
Content-Type: application/x-www-form-urlencoded Date: Tue, 26 Nov 2013
10:12:16 GMT Connection: close

_After 2 minutes_

CURL -I -X HEAD -H
"X-AUTH-TOKEN: $TOKENSWIFT"
HTTP://192.168.3.100:8080/V1/AUTH_$TENANTSWIFT/CONTAINER-TEST-003/TEST
HTTP/1.1
404 Not Found
Content-Length: 0
Content-Type: text/html;
charset=UTF-8
Date: Tue, 26 Nov 2013 10:27:23 GMT
Connection:
close

CURL -I -X GET -H "X-AUTH-TOKEN: $TOKENSWIFT"
HTTP://192.168.3.100:8080/V1/AUTH_$TENANTSWIFT/CONTAINER-TEST-003/
HTTP/1.1
200 OK
Content-Length: 5
X-Container-Object-Count: 1
Accept-Ranges:
bytes
X-Timestamp: 1385459942.90726
X-Container-Bytes-Used:
1
Content-Type: text/plain; charset=utf-8
Date: Tue, 26 Nov 2013
10:31:23 GMT
Connection: close

test

One day after, the object is still
there
Why the object is not deleted?

Thank you
Thorfinn

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20131126/0b95660b/attachment.html>


More information about the Openstack mailing list