[Openstack] [Swift] Object-Expirer not expiring objects

Matt Harlum matt at cactuar.net
Fri Dec 6 05:18:03 UTC 2013


Hi John,

I’ve checked but I’m running 1.8.0, so unfortunately for me the patch won’t help

Using swiftly direct mode I can list objects in the .expiring_objects container, but trying to do a head or delete on the one object that is now in there results in a 404 error

#swiftly -v --direct=/v1/.expiring_objects get
VERBOSE 0.00 1 Creating default proxy instance.
VERBOSE 0.01 1 > GET /v1/.expiring_objects
VERBOSE 0.01 1 < 200 OK
1377129600
VERBOSE 0.01 1 > GET /v1/.expiring_objects
VERBOSE 0.02 1 < 200 OK
# swiftly -v --direct=/v1/.expiring_objects delete 1377129600
VERBOSE 0.00 1 Creating default proxy instance.
VERBOSE 0.01 1 > DELETE /v1/.expiring_objects/1377129600
VERBOSE 0.02 1 < 404 Not Found
404 Not Found
VERBOSE 0.02 < '<html><h1>Not Found</h1><p>The resource could not be found.</p></html>’

Regards,
Matt

On 6 Dec 2013, at 3:17 am, John Dickinson <me at not.mn> wrote:

> What version of Swift are you using? You can find it with `python -c 'import swift; print swift.__version__'`.
> 
> If you have a version later than 1.10.0 (ie the Havana release), you may be running into https://bugs.launchpad.net/swift/+bug/1257330 (for which we have a patch in progress at https://review.openstack.org/#/c/59811/).
> 
> --John
> 
> 
> 
> 
> On Dec 4, 2013, at 9:52 PM, Matt Harlum <matt at cactuar.net> wrote:
> 
>> Hi,
>> 
>> I’m currently trying to get the Object-expiry working, it shows that there are objects to delete, but for some reason it just doesn’t do it
>> 
>> When object-expirer runs, it shows that there are objects to delete but doesn’t do so. I have been trying to get this working for months without any luck, am I missing something?
>> 
>> Config:
>> 
>> [DEFAULT]
>> swift_dir = /etc/swift
>> user = swift
>> log_facility = LOG_LOCAL0
>> log_level = DEBUG
>> 
>> [object-expirer]
>> auto_create_account_prefix = .
>> 
>> [pipeline:main]
>> pipeline = recon catch_errors cache proxy-server
>> 
>> [app:proxy-server]
>> use = egg:swift#proxy
>> 
>> [filter:recon]
>> use = egg:swift#recon
>> recon_cache_path = /var/cache/swift
>> 
>> [filter:cache]
>> use = egg:swift#memcache
>> memcache_servers = 127.0.0.1:11211
>> 
>> [filter:catch_errors]
>> use = egg:swift#catch_errors
>> 
>> 
>> swift-object-expirer /etc/swift/object-expirer.conf -v -o
>> object-expirer Run begin
>> swift - - 05/Dec/2013/05/49/14 HEAD /v1/.expiring_objects HTTP/1.0 204 - Swift%20Object%20Expirer - - - - txb51bcf9ecc694987b3c40d363519ab00 - 0.0029 -
>> object-expirer Pass beginning; 2 possible containers; 2 possible objects
>> swift - - 05/Dec/2013/05/49/14 GET /v1/.expiring_objects%3Fformat%3Djson%26marker%3D%26end_marker%3D HTTP/1.0 200 - Swift%20Object%20Expirer - - 96 - tx4d7393a8cfd64cfb9186ce028d4a6dd2 - 0.0021 -
>> swift - - 05/Dec/2013/05/49/14 GET /v1/.expiring_objects/1377129600%3Fformat%3Djson%26marker%3D%26end_marker%3D HTTP/1.0 404 - Swift%20Object%20Expirer - - 52 - txc6b0e2737d874afa9aff1227cce0f972 - 0.0055 -
>> swift - - 05/Dec/2013/05/49/14 DELETE /v1/.expiring_objects/1377129600 HTTP/1.0 404 - Swift%20Object%20Expirer - - 52 - txb3aa5fa3c54b4b478634fec4ddc6845f - 0.0038 -
>> object-expirer Run end (txn: txb3aa5fa3c54b4b478634fec4ddc6845f)
>> object-expirer Pass completed in 0s; 0 objects expired
>> 
>> 
>> Thanks,
>> —Matt
>> 
>> 
>> 
>> _______________________________________________
>> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>> Post to     : openstack at lists.openstack.org
>> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> 





More information about the Openstack mailing list