[openstack-dev] Glance to refer images on a image library rather than upload
Alex Meade
alex.meade at rackspace.com
Mon Feb 4 22:43:43 UTC 2013
Hi VK,
Currently, the answer is sort of. There is work going into bypassing glance when downloading from an image store so that it goes straight from the image store to the compute node. There was a recent patch (https://review.openstack.org/#/c/19408/) for making this work when nova has access to the same filesystem as glance and glance is using the filesystem as the image store.
Other than this I do not believe there is a way to avoid the extra download to glance.
Specifying the location just makes it so that an image can be added to glance without uploading data to glance. Then whenever an image is requested to be downloaded from glance, glance will first download the image data from the specified location and then pass it on.
Does this answer your question?
-Alex Meade
-----Original Message-----
From: "VK Kumar" <vkkumar.live at gmail.com>
Sent: Thursday, January 31, 2013 6:34am
To: openstack-dev at lists.openstack.org
Subject: [openstack-dev] Glance to refer images on a image library rather than upload
Hi All,
Is there a way to add an image from an existing image library (file share) into glance so that the image is not copied to the glance server?
When ever nova boot is used, the image is then directly copied from the image server to the compute node.
I am not sure if using the location option as http/s3/switf url still copies the image or references it.
glance add location=http+s3://AWSACCOUNTID:<email address hidden>/BUCKET/OBJECTNAME name="My S3 Image" disk_format=ami container_format=ami is_public=True
Thanks,
VK Kumar.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130204/b1469b0d/attachment.html>
More information about the OpenStack-dev
mailing list