# glance.cmd.cache_manage module

A simple cache management utility for Glance.

glance.cmd.cache_manage.catch_error(action)

  Decorator to provide sensible default error handling for actions.

glance.cmd.cache_manage.delete_all_cached_images(args)

  %(prog)s delete-all-cached-images [options]

  Remove all images from the cache.

glance.cmd.cache_manage.delete_all_queued_images(args)

  %(prog)s delete-all-queued-images [options]

  Remove all images from the cache queue.

glance.cmd.cache_manage.delete_cached_image(args)

  %(prog)s delete-cached-image <IMAGE_ID> [options]

  Deletes an image from the cache.

glance.cmd.cache_manage.delete_queued_image(args)

  %(prog)s delete-queued-image <IMAGE_ID> [options]

  Deletes an image from the cache.

glance.cmd.cache_manage.env(*vars, **kwargs)

  Search for the first defined of possibly many env vars.

  Returns the first environment variable defined in vars, or returns the default defined in kwargs.

glance.cmd.cache_manage.get_client(options)

  Return a new client object to a Glance server.

  specified by the –host and –port options supplied to the CLI

glance.cmd.cache_manage.list_cached(args)

  %(prog)s list-cached [options]

  List all images currently cached.

glance.cmd.cache_manage.list_queued(args)

  %(prog)s list-queued [options]

  List all images currently queued for caching.

glance.cmd.cache_manage.lookup_command(command_name)

glance.cmd.cache_manage.main()

glance.cmd.cache_manage.parse_args(parser)

  Set up the CLI and config-file options that may be parsed and program commands.

  Parameters:

    parser – The option parser

glance.cmd.cache_manage.print_help(args)

  Print help specific to a command

glance.cmd.cache_manage.queue_image(args)

  %(prog)s queue-image <IMAGE_ID> [options]

  Queues an image for caching.

glance.cmd.cache_manage.user_confirm(prompt, default=False)

  Yes/No question dialog with user.

  Parameters:

    - prompt – question/statement to present to user (string)

    - default – boolean value to return if empty string is received as response to prompt

glance.cmd.cache_manage.validate_input(func)

  Decorator to enforce validation on input

this page last updated: 2026-08-19 03:42:39

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

found an error? report a bug