Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults kwarg body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareNotEq SubscriptLoad NameLoad Index Str Str body Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad Return NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad Return NameLoad Assign TupleStore NameStore NameStore Call NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Return NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad ListComp Num comprehension NameStore NameLoad CompareIs NameLoad NameLoad If CompareNotEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Return NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad Return NameLoad decorator_list decorator_list
N/A N/A 
Prefetches images into the Image Cache
 N/A logging N/A eventlet glance.common exception glance.image_cache ImageCache glance registry N/A glance.store N/A glance.store.filesystem N/A glance.store.http N/A glance.store.rbd N/A glance.store.s3 N/A glance.store.swift glance.store get_from_backend N/A logger N/A N/A logging getLogger __name__ Prefetcher N/A object N/A __init__ N/A N/A self conf N/A local_conf N/A N/A N/A self conf conf N/A N/A N/A N/A glance store create_stores conf N/A N/A self cache N/A ImageCache conf N/A N/A N/A registry configure_registry_client conf N/A fetch_image_into_cache N/A N/A self image_id N/A N/A N/A ctx N/A N/A registry get_client_context N/A self conf is_admin True show_deleted True N/A N/A N/A image_meta N/A N/A registry get_image_metadata ctx image_id N/A N/A N/A image_meta N/A status active N/A N/A N/A N/A logger warn N/A _ Image '%s' is not active. Not caching. image_id N/A False N/A N/A N/A N/A exception NotFound N/A N/A N/A N/A logger warn N/A _ No metadata found for image '%s' image_id N/A False N/A N/A image_data image_size N/A get_from_backend N/A image_meta N/A location N/A N/A N/A logger debug N/A _ Caching image '%s' image_id N/A N/A N/A N/A self cache cache_image_iter image_id image_data N/A True N/A run N/A N/A self N/A N/A N/A images N/A N/A N/A self cache get_queued_images N/A N/A images N/A N/A N/A N/A logger debug N/A _ Nothing to prefetch. N/A True N/A num_images N/A len images N/A N/A N/A logger debug N/A _ Found %d images to prefetch num_images N/A pool N/A N/A eventlet GreenPool num_images N/A results N/A N/A pool imap N/A self fetch_image_into_cache images N/A successes N/A sum N/A 1 N/A r results N/A r True N/A N/A successes num_images N/A N/A N/A N/A logger error N/A _ Failed to successfully cache all images in queue. N/A False N/A N/A N/A logger info N/A _ Successfully cached all %d images num_images N/A True N/A N/A