Module Expr Str Import alias Expr Call AttributeLoad NameLoad attr Import alias Import alias ImportFrom alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr If CompareIn Str AttributeLoad NameLoad attr body Print Call AttributeLoad Str attr NameLoad Print BinOpMod Str Call NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A 
destroy_cached_images.py

This script is used to clean up Glance images that are cached in the SR. By
default, this script will only cleanup unused cached images.

Options:

    --dry_run - Don't actually destroy the VDIs
    --all_cached - Destroy all cached images instead of just unused cached
                   images.
 N/A eventlet N/A N/A N/A eventlet monkey_patch N/A os N/A sys oslo_config cfg N/A POSSIBLE_TOPDIR N/A N/A N/A os path normpath N/A N/A N/A os path join N/A N/A N/A os path abspath N/A N/A sys argv N/A 0 N/A os pardir N/A os pardir N/A os pardir N/A N/A N/A N/A os path exists N/A N/A N/A os path join POSSIBLE_TOPDIR nova __init__.py N/A N/A N/A N/A N/A sys path insert 0 POSSIBLE_TOPDIR nova config nova utils nova.virt.xenapi.client session nova.virt.xenapi vm_utils N/A destroy_opts N/A N/A N/A cfg BoolOpt all_cached default False help Destroy all cached images instead of just unused cached images. N/A N/A cfg BoolOpt dry_run default False help Don't actually delete the VDIs. N/A CONF N/A cfg CONF N/A N/A N/A CONF register_cli_opts destroy_opts N/A N/A N/A CONF import_opt connection_url nova.virt.xenapi.driver group xenserver N/A N/A N/A CONF import_opt connection_username nova.virt.xenapi.driver group xenserver N/A N/A N/A CONF import_opt connection_password nova.virt.xenapi.driver group xenserver main N/A N/A N/A N/A N/A N/A N/A config parse_args N/A sys argv N/A N/A N/A utils monkey_patch N/A _session N/A N/A session XenAPISession N/A N/A CONF xenserver connection_url N/A N/A CONF xenserver connection_username N/A N/A CONF xenserver connection_password N/A sr_ref N/A N/A vm_utils safe_find_sr _session N/A destroyed N/A N/A vm_utils destroy_cached_images _session sr_ref all_cached N/A CONF all_cached dry_run N/A CONF dry_run N/A N/A --verbose N/A sys argv N/A N/A N/A N/A join destroyed N/A N/A Destroyed %d cached VDIs N/A len destroyed N/A N/A N/A __name__ __main__ N/A N/A N/A main