glance.common.config module

Routines for configuring Glance

glance.common.config.load_paste_app(app_name, flavor=None, conf_file=None)[source]

Builds and returns a WSGI app from a paste config file.

We assume the last config file specified in the supplied ConfigOpts object is the paste config file, if conf_file is None.

  • app_name – name of the application to load

  • flavor – name of the variant of the application to load

  • conf_file – path to the paste config file


RuntimeError – when config file cannot be located or application cannot be loaded from config file

glance.common.config.parse_args(args=None, usage=None, default_config_files=None)[source]

This method updates all configuration default values.


Update default configuration options for oslo.middleware.