Removing bin/image_cache directory
This commit is contained in:
parent
631d707a35
commit
b796cb70f9
|
@ -31,7 +31,6 @@ import sys
|
|||
# If ../glance/__init__.py exists, add ../ to Python search path, so that
|
||||
# it will override what happens to be installed in /usr/(local/)lib/python...
|
||||
possible_topdir = os.path.normpath(os.path.join(os.path.abspath(sys.argv[0]),
|
||||
os.pardir,
|
||||
os.pardir,
|
||||
os.pardir))
|
||||
if os.path.exists(os.path.join(possible_topdir, 'glance', '__init__.py')):
|
|
@ -31,7 +31,6 @@ import sys
|
|||
# If ../glance/__init__.py exists, add ../ to Python search path, so that
|
||||
# it will override what happens to be installed in /usr/(local/)lib/python...
|
||||
possible_topdir = os.path.normpath(os.path.join(os.path.abspath(sys.argv[0]),
|
||||
os.pardir,
|
||||
os.pardir,
|
||||
os.pardir))
|
||||
if os.path.exists(os.path.join(possible_topdir, 'glance', '__init__.py')):
|
|
@ -19,7 +19,7 @@
|
|||
# under the License.
|
||||
|
||||
"""
|
||||
Glance Image Cache Invalid Cache Entry Reaper
|
||||
Glance Image Cache Invalid Cache Entry and Stalled Image Reaper
|
||||
|
||||
This is meant to be run as a periodic task from cron.
|
||||
|
||||
|
@ -27,6 +27,9 @@ If something goes wrong while we're caching an image (for example the fetch
|
|||
times out, or an exception is raised), we create an 'invalid' entry. These
|
||||
entires are left around for debugging purposes. However, after some period of
|
||||
time, we want to cleans these up, aka reap them.
|
||||
|
||||
Also, if an incomplete image hangs around past the image_cache_stall_timeout
|
||||
period, we automatically sweep it up.
|
||||
"""
|
||||
|
||||
import optparse
|
||||
|
@ -36,7 +39,6 @@ import sys
|
|||
# If ../glance/__init__.py exists, add ../ to Python search path, so that
|
||||
# it will override what happens to be installed in /usr/(local/)lib/python...
|
||||
possible_topdir = os.path.normpath(os.path.join(os.path.abspath(sys.argv[0]),
|
||||
os.pardir,
|
||||
os.pardir,
|
||||
os.pardir))
|
||||
if os.path.exists(os.path.join(possible_topdir, 'glance', '__init__.py')):
|
Loading…
Reference in New Issue