<font face="arial" size="2"><p style="margin:0;padding:0;">Hi VK,<br /><br />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. <br /><br />Other than this I do not believe there is a way to avoid the extra download to glance.<br /><br />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.<br /><br />Does this answer your question?<br /><br />-Alex Meade</p>
<p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;">-----Original Message-----<br />From: "VK Kumar" <vkkumar.live@gmail.com><br />Sent: Thursday, January 31, 2013 6:34am<br />To: openstack-dev@lists.openstack.org<br />Subject: [openstack-dev] Glance to refer images on a image library rather than upload<br /><br /></p>
<div id="SafeStyles1360017689">
<div dir="ltr">Hi All,
<div>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?</div>
<div>When ever nova boot is used, the image is then directly copied from the image server to the compute node.</div>
<div>I am not sure if using the location option as http/s3/switf url still copies the image or references it.</div>
<div><span style="color: #333333; font-family: Ubuntu,'Bitstream Vera Sans','DejaVu Sans',Tahoma,sans-serif; font-size: 12px; line-height: 18px;">glance add location=</span><span style="color: #333333; font-family: Ubuntu,'Bitstream Vera Sans','DejaVu Sans',Tahoma,sans-serif; font-size: 12px; line-height: 18px;">http+s3:</span><span style="color: #333333; font-family: Ubuntu,'Bitstream Vera Sans','DejaVu Sans',Tahoma,sans-serif; font-size: 12px; line-height: 18px;">//AWSACCOUNTID:</span><span style="color: #333333; font-family: Ubuntu,'Bitstream Vera Sans','DejaVu Sans',Tahoma,sans-serif; font-size: 12px; line-height: 18px;"><email address hidden></span><span style="color: #333333; font-family: Ubuntu,'Bitstream Vera Sans','DejaVu Sans',Tahoma,sans-serif; font-size: 12px; line-height: 18px;">/BUCKET/</span><span style="color: #333333; font-family: Ubuntu,'Bitstream Vera Sans','DejaVu Sans',Tahoma,sans-serif; font-size: 12px; line-height: 18px;">OBJECTNAME name="My S3 Image" disk_format=ami container_</span><span style="color: #333333; font-family: Ubuntu,'Bitstream Vera Sans','DejaVu Sans',Tahoma,sans-serif; font-size: 12px; line-height: 18px;">format=</span><span style="color: #333333; font-family: Ubuntu,'Bitstream Vera Sans','DejaVu Sans',Tahoma,sans-serif; font-size: 12px; line-height: 18px;">ami is_public=True</span></div>
<div><span style="color: #333333; font-family: Ubuntu,'Bitstream Vera Sans','DejaVu Sans',Tahoma,sans-serif; font-size: 12px; line-height: 18px;"><br /></span></div>
<div>Thanks,</div>
<div>VK Kumar.</div>
</div>
</div></font>