Glance Scrubber not running

Asked by GABIS on 2012-02-21

I am installing openstack with Xen Server, I followed the official tutorial from openstack, I am blocked in Glance Scrubber that did not want to start.

Even I ignored this step of the tutorial, I was confronted to another problem when creating the test machine

The config and log file scrubber.log :

# 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

filesystem_store_datadir = /var/lib/glance/images/

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

# Delayed delete time in seconds
scrub_time = 43200

# Should we run our own loop or rely on cron/scheduler to run us
daemon = False

# Loop time between checking the db for new items to schedule for delete
wakeup_time = 300

# SQLAlchemy connection string for the reference implementation
# registry server. Any valid SQLAlchemy connection string is fine.
# See:$
sql_connection = mysql://root:password@

# Period in seconds after which SQLAlchemy should reestablish its connection
# to the database.
# MySQL uses a default `wait_timeout` of 8 hours, after which it will drop
# idle connections. This can result in 'MySQL Gone Away' exceptions. If you
# notice this, you can lower this value to ensure that SQLAlchemy reconnects
# before MySQL can drop the connection.
sql_idle_timeout = 3600

paste.app_factory =

2012-02-21 21:53:52 22358 INFO [] Initializing scrubber with conf: {'registry_port': 9191, 'datadir': '/var/lib/glance/scrubber', 'cleanup': False, 'cleanup_time': 86400, 'registry_host': '0.0. 0.0'}
2012-02-21 21:53:52 22358 ERROR [] Could not find s3_store_host in configuration options.
2012-02-21 21:53:52 22358 ERROR [] Failed to configure store correctly. Disabling add met hod.
2012-02-21 21:53:52 22358 ERROR [] Could not find swift_store_auth_address in configurat ion options.
2012-02-21 21:53:52 22358 ERROR [] Failed to configure store correctly. Disabling add met hod.
2012-02-21 21:53:52 22358 INFO [] Deleting 0 images


Question information

English Edit question
Glance Edit question
No assignee Edit question
Solved by:
Eoghan Glynn
Last query:
Last reply:
Best Eoghan Glynn (eglynn) said : #1


Is the issue that you expected the scrubber to continue running in the background?

In order to achieve this, you must specify the --daemon command line option.

In that case, the scrubber will wake up regularly (on intervals controlled by the wake_time config item) to check for images queued for deletion.


GABIS (gabis7) said : #2

Thanks Eogan,
that's solved my issue, I don't understood that the scrubber is executed peridiodically

GABIS (gabis7) said : #3

Thanks Eoghan Glynn, that solved my question.