<div dir="ltr">Thanks Alex and Izy.<div><br></div><div style>Your replies confirm that my first part of the assumption that when location is provide the image in not uploaded into glance.<br></div><div style><br></div><div style>
Will check the patch links if the following is also eliminated by the patches.<br></div><div style>"Then whenever an image is requested to be downloaded from glance, glance <b>will first download the image data from the specified location and then pass it on</b>."<br>
</div><div style><br></div><div style>What I was thinking was that when nova boot is done for an image with location on a http server, glance will not get the image, instead it will pass on the information such as image meta-data and http location to compute so that compute can get the image. This makes sense in cases where the compute nodes have direct access to the http server repository location (SAN) and transfer would be faster.</div>
<div style><br></div><div style>@Izy patch seems to address this, let me check.</div><div style><br></div><div style>Thanks again!</div><div style><br></div><div style>VK Kumar</div><div style><br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, Feb 5, 2013 at 7:53 AM, <a href="mailto:lzy.dev@gmail.com">lzy.dev@gmail.com</a> <span dir="ltr"><<a href="mailto:lzy.dev@gmail.com" target="_blank">lzy.dev@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">@VK<br>
If you give "location" option when you create glance image, glance<br>
will just register it  and set status to "active" but not upload.<br>
<br>
@Alex Meade<br>
I'm developing an iSCSI store driver for Glance, it also be used to<br>
avoid downloading/uploading operation for nova-compute and user. It<br>
can support multiple path accessing:<br>
<br>
<a href="https://review.openstack.org/#/c/20593/" target="_blank">https://review.openstack.org/#/c/20593/</a><br>
<div><div class="h5"><br>
On Tue, Feb 5, 2013 at 6:43 AM, Alex Meade <<a href="mailto:alex.meade@rackspace.com">alex.meade@rackspace.com</a>> wrote:<br>
> Hi VK,<br>
><br>
> Currently, the answer is sort of. There is work going into bypassing glance<br>
> when downloading from an image store so that it goes straight from the image<br>
> store to the compute node. There was a recent patch<br>
> (<a href="https://review.openstack.org/#/c/19408/" target="_blank">https://review.openstack.org/#/c/19408/</a>) for making this work when nova has<br>
> access to the same filesystem as glance and glance is using the filesystem<br>
> as the image store.<br>
><br>
> Other than this I do not believe there is a way to avoid the extra download<br>
> to glance.<br>
><br>
> Specifying the location just makes it so that an image can be added to<br>
> glance without uploading data to glance. Then whenever an image is requested<br>
> to be downloaded from glance, glance will first download the image data from<br>
> the specified location and then pass it on.<br>
><br>
> Does this answer your question?<br>
><br>
> -Alex Meade<br>
><br>
><br>
><br>
> -----Original Message-----<br>
> From: "VK Kumar" <<a href="mailto:vkkumar.live@gmail.com">vkkumar.live@gmail.com</a>><br>
> Sent: Thursday, January 31, 2013 6:34am<br>
> To: <a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a><br>
> Subject: [openstack-dev] Glance to refer images on a image library rather<br>
> than upload<br>
><br>
> Hi All,<br>
> Is there a way to add an image from an existing image library (file share)<br>
> into glance so that the image is not copied to the glance server?<br>
> When ever nova boot is used, the image is then directly copied from the<br>
> image server to the compute node.<br>
> I am not sure if using the location option as http/s3/switf url still copies<br>
> the image or references it.<br>
> glance add location=http+s3://AWSACCOUNTID:<email address<br>
> hidden>/BUCKET/OBJECTNAME name="My S3 Image" disk_format=ami<br>
> container_format=ami is_public=True<br>
><br>
> Thanks,<br>
> VK Kumar.<br>
><br>
</div></div>> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> <a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
><br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div><br></div></div>