wtsi-hgi/glance-proxy

Name: glance-proxy

Owner: Wellcome Trust Sanger Institute - Human Genetics Informatics

Description: Proxy to provide image data from glance via HTTP, using an S3 temporary store to support Range requests

Created: 2018-03-17 14:00:43.0

Updated: 2018-03-17 18:57:03.0

Pushed: 2018-03-17 18:57:02.0

Homepage: null

Size: 26

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

glance-proxy

Proxy to provide image data from Openstack glance via HTTP, using an S3-like temporary store to support Range requests.

Main use case is to allow conversion of raw disk images stored in glance using qemu-img convert on a system that does not have enough local disk space to accomodate the conversion.

The server requires environment variables be set to provide login details for both Openstack and Minio (S3 client).

Run the server on localhost:

rt OS_AUTH_URL=https://os.example.com:5001/v2.0
rt OS_USERNAME=example-user
rt OS_PASSWORD=XXXXXXXXXXXXXXXX
rt OS_TENANT_NAME=example-tenant
rt MINIO_ENDPOINT=s3.amazonaws.com
rt MINIO_ACCESS_KEY_ID=XXXXXXXXXXXXXXXXXXXX
rt MINIO_SECRET_ACCESS_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ce-proxy -minio-bucket openstack-images -minio-prefix tmp

Example invocation of qemu-img:

-img convert -O qcow2 --image-opts 'driver=http,timeout=900,url=http://127.0.0.1:8080/id/e50aefed-28a1-4118-bca5-32784626d51d' e50aefed-28a1-4118-bca5-32784626d51d.qcow2

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.