[openstack-dev] Glance to refer images on a image library rather than upload

lzy.dev at gmail.com lzy.dev at gmail.com
Tue Feb 5 02:23:24 UTC 2013


@VK
If you give "location" option when you create glance image, glance
will just register it  and set status to "active" but not upload.

@Alex Meade
I'm developing an iSCSI store driver for Glance, it also be used to
avoid downloading/uploading operation for nova-compute and user. It
can support multiple path accessing:

https://review.openstack.org/#/c/20593/

On Tue, Feb 5, 2013 at 6:43 AM, Alex Meade <alex.meade at rackspace.com> wrote:
> 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.
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>



More information about the OpenStack-dev mailing list