The 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

Project Source

This Page