Proxy AMI-related calls from cloud controller to objectstore service.
-
class S3ImageService(service=None, *args, **kwargs)
Bases: object
Wraps an existing image service to support s3 based register.
-
create(context, metadata, data=None)
Create an image.
metadata[‘properties’] should contain image_location.
-
delete(context, image_id)
-
detail(context, **kwargs)
-
image_state_map = {'decrypting': 'pending', 'failed_untar': 'failed', 'untarring': 'pending', 'failed_decrypt': 'failed', 'uploading': 'pending', 'failed_download': 'failed', 'failed_upload': 'failed', 'available': 'available', 'downloading': 'pending'}
-
show(context, image_id)
-
update(context, image_id, metadata, data=None)