Glance's swift driver provides the capability to delete image data from Swift backend when an image is deleted. However, as of today, the swift driver is only capable of deleting image data that is stored as a regular swift object or dynamic large object(DLO). When image data is stored as static large object(SLO), it fails to delete the image data completely. Currently, for an SLO, the swift driver just deletes the manifest and leaves the segments behind. This leads to stale data sitting around in the cluster.
A point to note here would be: Glance itself never uploads an image as SLO. It either uploads the image as one object or DLO. However, this doesn't eliminate the possibility of a user creating an image with '--file' that points to a swift SLO. So, even though Glance itself may not upload data as DLO, it should be able to delete data that is stored as SLO.
Fix proposed to branch: master /review. openstack. org/159223
Review: https:/