<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><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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>__________________________________________________________________________<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>