heat.engine.clients.os.cinder module

class heat.engine.clients.os.cinder.BaseCinderConstraint[source]

Bases: BaseCustomConstraint

resource_client_name = 'cinder'
class heat.engine.clients.os.cinder.CinderClientPlugin(*args, **kwargs)[source]

Bases: MicroversionMixin, ExtensionMixin, ClientPlugin

CINDER_API_VERSION = '3'
VOLUME_V3 = 'volumev3'
check_attach_volume_complete(vol_id)[source]
check_detach_volume_complete(vol_id, server_id=None)[source]
exceptions_module = <module 'cinderclient.exceptions' from '/home/zuul/src/opendev.org/openstack/heat/.tox/docs/lib/python3.10/site-packages/cinderclient/exceptions.py'>
get_max_microversion()[source]
get_qos_specs(qos_specs)[source]
get_volume(volume)[source]
get_volume_api_version()[source]

Returns the most recent API version.

get_volume_backup(backup)[source]
get_volume_snapshot(snapshot)[source]
get_volume_type(volume_type)[source]
is_conflict(ex)[source]

Returns True if the exception is a conflict.

is_not_found(ex)[source]

Returns True if the exception is a not-found.

is_over_limit(ex)[source]

Returns True if the exception is an over-limit.

is_version_supported(version)[source]
max_microversion = None
service_types = ['volumev3']
class heat.engine.clients.os.cinder.QoSSpecsConstraint[source]

Bases: BaseCinderConstraint

expected_exceptions = (<class 'cinderclient.exceptions.NotFound'>,)
resource_getter_name = 'get_qos_specs'
class heat.engine.clients.os.cinder.VolumeBackupConstraint[source]

Bases: BaseCinderConstraint

resource_getter_name = 'get_volume_backup'
class heat.engine.clients.os.cinder.VolumeConstraint[source]

Bases: BaseCinderConstraint

resource_getter_name = 'get_volume'
class heat.engine.clients.os.cinder.VolumeSnapshotConstraint[source]

Bases: BaseCinderConstraint

resource_getter_name = 'get_volume_snapshot'
class heat.engine.clients.os.cinder.VolumeTypeConstraint[source]

Bases: BaseCinderConstraint

resource_getter_name = 'get_volume_type'