Ask Your Question
0

Image arked as deleted in the Glance database but not deleted from Swift

asked 2013-04-03 14:54:38 -0500

anonymous user

Anonymous

updated 2013-04-05 08:25:20 -0500

I am using Swift as Storage Backend for Glance. Every time I delete an image from Glance (glance delete [IMAGE_ID]) it is not deleted from Swift.

Everything looks good, there is no output error and the image is marked as deleted in the glance database, except that it is not deleted from Swift.

Is there any other additional configuration needed in order to delete the images from Swift? I used to use the file system as storage backend and the images where deleted properly.

I have followed SAIO - Swift All in One Instructions - docs.openstack.org/developer/swift/development_saio.html

edit retag flag offensive close merge delete

Comments

Please, provide more info about which services are running and more details of their configs. As for glance, Are glance-(api|registry|scrubber) running? What API version are you using? Is delayed_delete set in glance-api configs? What does glance image-show say? Provide more info for swift as well.

flaper87 gravatar imageflaper87 ( 2013-04-04 04:13:24 -0500 )edit

Thank you, please see my comments below.

suppldp2001 gravatar imagesuppldp2001 ( 2013-04-08 15:37:23 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2013-04-04 14:50:27 -0500

annegentle gravatar image

I believe the imagecachemanager_interval configuration setting in nova.conf is related.

From the 2012.2.1 release notes: Because of a serious issue with Nova image cache management on shared storage, the image cache manager is now disabled by default. In cases where shared storage isn't in use, it can be re-enabled by setting imagecachemanager_interval = 40 in nova.conf.

edit flag offensive delete link more
0

answered 2013-04-08 14:52:59 -0500

suppldp2001 gravatar image

updated 2013-04-08 14:53:46 -0500

glance-api, glance-registry are running, but glance-scrubber it is not running. Glance-Api version is '2012.1-0ubuntu2' and delayed delete is set to false in glance-api.conf Looks like that is the issue(?). Where can I find information on how to set up glance + scrubber + swift?

--- glance-api.conf (Delayed Delete Options section): ---

*Turn on/off delayed delete

delayed_delete = False

*Delayed delete time in seconds

scrub_time = 43200

*Directory that the scrubber will use to remind itself of what to delete *Make sure this is also set in glance-scrubber.conf

scrubber_datadir = /var/lib/glance/scrubber

--- glance-scrubber.conf: ---

[DEFAULT]

*Show more verbose log output (sets INFO log level output)

verbose = True

*Show debugging output in logs (sets DEBUG log level output)

debug = False

*Log to this file. Make sure you do not set the same log file for both the API and registry servers

log_file = /var/log/glance/scrubber.log

*Send logs to syslog (/dev/log) instead of to file specified by log_file use_syslog = False

*Should we run our own loop or rely on cron/scheduler to run us

daemon = False

*Loop time between checking for new items to schedule for delete wakeup_time = 300

*Directory that the scrubber will use to remind itself of what to delete. Make sure this is also set in glance-api.conf

scrubber_datadir = /var/lib/glance/scrubber

*Only one server in your deployment should be designated the cleanup host

cleanup_scrubber = False

*Pending_delete items older than this time are candidates for cleanup

cleanupscrubbertime = 86400

*Address to find the registry server for cleanups

registry_host = 0.0.0.0

*Port the registry server is listening on

registry_port = 9191

edit flag offensive delete link more

Comments

mmmh, Is there something useful in the logs (Glance's and Swift's)? It would be great if you could upload those files somewhere (http://paste.openstack.org)

flaper87 gravatar imageflaper87 ( 2013-04-11 06:32:42 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2013-04-03 14:54:38 -0500

Seen: 1,411 times

Last updated: Apr 08 '13