heat.engine.clients.os.cinder module

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

Bases: heat.engine.constraints.BaseCustomConstraint

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

Bases: heat.engine.clients.os.ExtensionMixin, heat.engine.clients.client_plugin.ClientPlugin

VOLUME_V2 = 'volumev2'
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.8/site-packages/cinderclient/exceptions.py'>
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.

service_types = ['volumev2', 'volumev3']
class heat.engine.clients.os.cinder.QoSSpecsConstraint[source]

Bases: heat.engine.clients.os.cinder.BaseCinderConstraint

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

Bases: heat.engine.clients.os.cinder.BaseCinderConstraint

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

Bases: heat.engine.clients.os.cinder.BaseCinderConstraint

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

Bases: heat.engine.clients.os.cinder.BaseCinderConstraint

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

Bases: heat.engine.clients.os.cinder.BaseCinderConstraint

resource_getter_name = 'get_volume_type'