<div dir="ltr">Hi Dongcan<div><br></div><div>It looks like you may have multiple glance-api services configured with different</div><div>glance_store backends i.e one with filesystem and the other with vsphere.</div><div><br></div><div>Or it could be that you changed the glance_store backend configuration</div><div>between the two snapshot operations. Can you check again ?</div><div><br></div><div>If you try to upload a new image it should be using the vsphere backend</div><div>according to your configuration. Please ping me on IRC (sabari) on #openstack-glance,</div><div>I can help you more quickly.</div><div><br></div><div>Thanks</div><div>Sabari</div><div><br></div><div><div><br><div class="gmail_quote">On Mon, Mar 14, 2016 at 8:32 PM, dongcan ye <span dir="ltr"><<a href="mailto:hellochosen@gmail.com" target="_blank">hellochosen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>Hi, Sabari</div><div><br></div><div>Thanks for your reply.</div><div><br></div><div>Yes, I had tuned FileSystem to vsphere. Then I create an image, image info shows it stores in VMware</div><div>datastore. </div><div><br></div><div>I had followed your suggestion, add show_multiple_locations to glance api conf.</div><div>Then I repeat the operations.</div><div><br></div><div>Results from two snapshotted images:</div><div>locations [{"url": "file:///var/lib/glance/images/0cdd8188-537e-49e2-b173-7de122070574", "metadata": {}}]</div><div><br></div><div>locations [{"url": "vsphere://<a href="http://172.20.2.38/folder/openstack_glance/f462c06a-f202-4b1f-a89a-17f72264b502?dcPath=IDC_Test&dsName=LUN03-00" target="_blank">172.20.2.38/folder/openstack_glance/f462c06a-f202-4b1f-a89a-17f72264b502?dcPath=IDC_Test&dsName=LUN03-00</a>", "metadata": {}}]</div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><br></div></blockquote></div></div></div></blockquote></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 14, 2016 at 2:41 AM, Sabari Murugesan <span dir="ltr"><<a href="mailto:sabari.bits@gmail.com" target="_blank">sabari.bits@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>Hi Dongcan</div><div><br></div><div>Regardless of when you snapshot, the image should be uploaded to</div><div>the default glance store. Is it possible that you had enabled the FileSystem</div><div>store earlier and recently changed to the vsphere store ? </div><div><br></div><div>To further debug, can</div><div>you add the following to the default section of glance-api.conf and provide</div><div>us the value for 'locations' attribute of the snapshotted image. You can do</div><div>"glance image-show --os-image-api-version 2 image-show <image_id>" to</div><div>know the location.</div><div><br></div><div>[DEFAULT]</div><div>show_multiple_locations = True</div><div><br></div><div>Thanks</div><div>Sabari</div><div><br></div><div><br></div></div><div class="gmail_extra"><div class="gmail_quote"><div><div class="h5">On Sun, Mar 13, 2016 at 7:54 PM, dongcan ye <span dir="ltr"><<a href="mailto:hellochosen@gmail.com" target="_blank">hellochosen@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi all,<div><br></div><div>In our production environment, we enables glance_store for VMware datastore.</div><div>Configuration in glance-api.conf:</div><div><br></div><div><div>[DEFAULT]</div><div>show_image_direct_url = True</div><div>[glance_store]</div><div>stores= glance.store.vmware_datastore.Store</div><div>default_store = vsphere</div><div>vmware_server_host= 172.18.6.22</div><div>vmware_server_username = administrator@vsphere.local</div><div>vmware_server_password = 1qaz!QAZ</div><div>vmware_datastores = ICT Test:F7-HPP9500-SAS-ICTHPCLUSTER03-LUN06</div></div><div><br></div><div><br></div><div>Firstly we boot an instance, make online snapshot for the VM, we see the image stores on local file system:</div><div>direct_url file:///var/lib/glance/images/8cf7ba51-31d8-4282-89db-06957d609691<br></div><div><br>Then we poweroff the VM, make offline snapshot, the image stores on VMware datastore:</div><div>direct_url vsphere://<a href="http://172.20.2.38/folder/openstack_glance/52825a70-f645-46b5-80ec-7a430dcd13cf?dcPath=IDC_Test&dsName=LUN03-00" target="_blank">172.20.2.38/folder/openstack_glance/52825a70-f645-46b5-80ec-7a430dcd13cf?dcPath=IDC_Test&dsName=LUN03-00</a><br></div><div><br></div><div>In Nova VCDriver, make snapshot will upload VM disk file to Glance image server. But why different behaviour for the VM poweron and poweroff?</div><div><br></div><div>Hopes for your reply.</div></div>
<br></div></div>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div></div></div></div>