The nova.virt.ironic.client_wrapper Module

class IronicClientWrapper

Bases: object

Ironic client wrapper class that encapsulates retry logic.

call(method, *args, **kwargs)

Call an Ironic client method and retry on errors.

Parameters:
  • method – Name of the client method to call as a string.
  • args – Client method arguments.
  • kwargs – Client method keyword arguments.
  • retry_on_conflict – Boolean value. Whether the request should be retried in case of a conflict error (HTTP 409) or not. If retry_on_conflict is False the cached instance of the client won’t be used. Defaults to True.
Raises:

NovaException if all retries failed.

Previous topic

The nova.virt.images Module

Next topic

The nova.virt.ironic.driver Module

Project Source

This Page