Ask Your Question
0

Glance images on S3 storage - shared

asked 2012-06-10 02:53:02 -0500

pborghard gravatar image

Hello All,

I'm building out an openstack environment where we have several nodes in different locations. In order to cut down on server space, we are looking to keep images on s3 storage. However we would like the images to be shared between the nodes. Please keep in mind the nodes have no knowledge of each other. When I import an instance into glance using s3 storage, the image is saved with a unique ID. Is it possible to share the images? Without the unique ID? For instance if I uploaded several images to S3 storage(not using glance). Is there a way to configure a list of s3 images on the openstack nodes?

Thanks, Peter Borghard

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2012-06-11 13:46:09 -0500

jaypipes gravatar image

You can upload your images to S3 and then add those image locations to Glance using the location field. For instance:

glance add location=http+s3://AWSACCOUNTID:AWSACCOUNTKEY@s3.amazonaws.com/BUCKET/OBJECTNAME name="My S3 Image" disk_format=ami container_format=ami is_public=True

You will get a different image ID in each of your glance registry servers, however.

Best, -jay

edit flag offensive delete link more
0

answered 2012-06-11 14:27:50 -0500

pborghard gravatar image

Jay,

That's what I'm trying to avoid. The path I'm looking to take is:

1.) upload images to S3 storage without using glance 2.) Try to configure glance to use these images without adding a unique ID

I'm not sure if this is possible, or if this is a poor design choice.

Thanks, Peter Borghard

edit flag offensive delete link more
0

answered 2012-06-11 14:34:47 -0500

jaypipes gravatar image

Peter, you can add the image (as shown in previous post) to Glance, and then on the second and N glance registry servers, you can add the:

glance add id=<uuid_of_first_image> ...

to set the ID at time of adding. However, that said, your images will still have separate URIs, although the UUID will be the same, of course, as the glance API endpoints will be different, I assume :)

Best, -jay

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-06-10 02:53:02 -0500

Seen: 69 times

Last updated: Jun 11 '12