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

Sabari Murugesan sabari.bits at gmail.com
Mon Mar 14 09:41:58 UTC 2016


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 <hellochosen at gmail.com> 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 = 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.
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160314/43624923/attachment.html>


More information about the OpenStack-dev mailing list