heat.engine.clients.os.glance module
updated: 2023-04-14 08:22
heat.engine.clients.os.glance module
-
class heat.engine.clients.os.glance.GlanceClientPlugin(context)[source]
Bases: ClientPlugin
-
IMAGE = 'image'
-
V1 = '1'
-
V2 = '2'
-
default_version = '2'
-
exceptions_module = [<module 'heat.engine.clients.client_exception' from '/build/heat-zbX4j5/heat-19.0.0/heat/engine/clients/client_exception.py'>, <module 'glanceclient.exc' from '/usr/lib/python3/dist-packages/glanceclient/exc.py'>]
-
find_image_by_name_or_id(image_identifier)[source]
Return the ID for the specified image name or identifier.
- Parameters:
image_identifier – image name or a UUID-like identifier
- Returns:
the id of the requested :image_identifier:
-
get_image(image_identifier)[source]
Return the image object for the specified image name/id.
- Parameters:
image_identifier – image name
- Returns:
an image object with name/id :image_identifier:
-
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 = ['image']
-
supported_versions = ['1', '2']
-
class heat.engine.clients.os.glance.ImageConstraint[source]
Bases: BaseCustomConstraint
-
expected_exceptions = (<class 'heat.engine.clients.client_exception.EntityMatchNotFound'>, <class 'heat.engine.clients.client_exception.EntityUniqueMatchNotFound'>)
-
resource_client_name = 'glance'
-
resource_getter_name = 'find_image_by_name_or_id'
updated: 2023-04-14 08:22