Hi Dongcan Regardless of when you snapshot, the image should be uploaded to the default glance store. Is it possible that you had enabled the FileSystem store earlier and recently changed to the vsphere store ?
To further debug, can you add the following to the default section of glance-api.conf and provide us the value for 'locations' attribute of the snapshotted image. You can do "glance image-show --os-image-api-version 2 image-show <image_id>" to know the location. [DEFAULT] show_multiple_locations = True Thanks Sabari On Sun, Mar 13, 2016 at 7:54 PM, dongcan ye <[email protected]> wrote: > Hi all, > > In our production environment, we enables glance_store for VMware > datastore. > Configuration in glance-api.conf: > > [DEFAULT] > show_image_direct_url = True > [glance_store] > stores= glance.store.vmware_datastore.Store > default_store = vsphere > vmware_server_host= 172.18.6.22 > vmware_server_username = [email protected] > vmware_server_password = 1qaz!QAZ > vmware_datastores = ICT Test:F7-HPP9500-SAS-ICTHPCLUSTER03-LUN06 > > > Firstly we boot an instance, make online snapshot for the VM, we see the > image stores on local file system: > direct_url > file:///var/lib/glance/images/8cf7ba51-31d8-4282-89db-06957d609691 > > Then we poweroff the VM, make offline snapshot, the image stores on VMware > datastore: > direct_url vsphere:// > 172.20.2.38/folder/openstack_glance/52825a70-f645-46b5-80ec-7a430dcd13cf?dcPath=IDC_Test&dsName=LUN03-00 > > In Nova VCDriver, make snapshot will upload VM disk file to Glance image > server. But why different behaviour for the VM poweron and poweroff? > > Hopes for your reply. > > __________________________________________________________________________ > OpenStack Development Mailing List (not for usage questions) > Unsubscribe: [email protected]?subject:unsubscribe > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > >
__________________________________________________________________________ OpenStack Development Mailing List (not for usage questions) Unsubscribe: [email protected]?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
