Comment 17 for bug 1194987

Revision history for this message
Matthew Thode (prometheanfire) wrote :

not pep8 compliant, but should be a more full fix.

I am still worried about anything that calls the 'parse_cache_args' function.

also, another bug (making a note here) related to files in the cache dir.

any file I touch in that dir causes this

/var/lib/glance/scrubber/asd

2013-09-14 05:56:10.478 CRITICAL glance [67cdbd73-8892-4bb9-bfdf-0daa13d4b36d None None] invalid literal for int() with base 10: ''
2013-09-14 05:56:10.478 31193 TRACE glance Traceback (most recent call last):
2013-09-14 05:56:10.478 31193 TRACE glance File "/usr/bin/glance-scrubber-python2.7", line 76, in <module>
2013-09-14 05:56:10.478 31193 TRACE glance scrubber = app.run(pool)
2013-09-14 05:56:10.478 31193 TRACE glance File "/usr/lib64/python2.7/site-packages/glance/store/scrubber.py", line 119, in run
2013-09-14 05:56:10.478 31193 TRACE glance uri, delete_time = read_queue_file(file_name)
2013-09-14 05:56:10.478 31193 TRACE glance File "/usr/lib64/python2.7/site-packages/glance/store/scrubber.py", line 208, in read_queue_file
2013-09-14 05:56:10.478 31193 TRACE glance delete_time = int(f.readline().strip())
2013-09-14 05:56:10.478 31193 TRACE glance ValueError: invalid literal for int() with base 10: ''
2013-09-14 05:56:10.478 31193 TRACE glance

we use dotfiles to track dirs we need to keep.
/var/lib/glance/scrubber/.keep_app-admin_glance-0