ironic.common.glance_service.base_image_service module

ironic.common.glance_service.base_image_service module

class ironic.common.glance_service.base_image_service.BaseImageService(client=None, version=1, context=None)[source]

Bases: object

call(method, *args, **kwargs)[source]

Call a glance client method.

If we get a connection error, retry the request according to CONF.glance_num_retries.

Parameters:
  • context – The request context, for access checks.
  • version – The requested API version.v
  • method – The method requested to be called.
  • args – A list of positional arguments for the method called
  • kwargs – A dict of keyword arguments for the method called
Raises:

GlanceConnectionFailed

ironic.common.glance_service.base_image_service.check_image_service(func)[source]

Creates a glance client if doesn’t exists and calls the function.

Creative Commons Attribution 3.0 License

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