[Openstack] Swift: not existing objects in container list

Andrew Hale andy at wwwdata.eu
Mon Oct 6 13:19:59 UTC 2014


Hi Jan,

When expiring objects are still showing in listings they are not really
deleted by object-expirer yet - the object-server lies rather than serve a
file with a x-delete-at header in the past.

Its likely that your expirer is stuck on an object name and not proceeding
past that name, there are a few different unicode related bugs in previous
versions of swift.

Check out what the expiring objects container looks like, I do this with a
command like: swiftly --direct=/v1/.expiring_objects

The containers are each unix timestamps corresponding to a particular hour,
each container has object names for those files which need deleted in that
time period. You can see if you have old containers which have got stuck,
and what the object names are. Its usually quite obvious. You can delete
manually.

Andrew

On Mon, Oct 6, 2014 at 1:11 PM, Jan Krajdl <jan.krajdl at casablanca.cz> wrote:

> Hello,
>
> I have problem with our very small swift cluster (running openstack
> grizzly). I have 2 storage nodes in 2 zones (both with 5 discs, all
> nodes are running account, container and object server), 2 swift proxy
> servers and 2 load balancers for proxy servers. Objects are created with
> X-Delete-At header. On one of proxy servers is running object-expirer.
>
> Everything is working as expected (objects are automatically deleted)
> but in some cases list of the container shows already deleted objects.
> If I several times list container content in 30% cases I got in list
> object which should be already deleted by object-expirer. Stat on this
> object fails with error so it seems that object really doesn't exists
> but only container see it. If I delete object manually it will work and
> I never can see him again. Also only some objects stays in list, most of
> objects are really deleted by object-expirer. Has anybody idea what can
> cause this strange, random behaviour?
>
> Thanks,
>
> --
> Jan Krajdl
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20141006/3e6c7047/attachment.html>


More information about the Openstack mailing list