[openstack-dev] [Nova][Glance_store][VMware] Different glance store for Nova snapshot in VMware

dongcan ye hellochosen at gmail.com
Mon Mar 14 02:54:49 UTC 2016


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 = administrator at vsphere.local
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160314/769fba9f/attachment.html>


More information about the OpenStack-dev mailing list