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

Sabari Murugesan sabari.bits at gmail.com
Mon Mar 21 18:45:46 UTC 2016


Hi Dongcan

It looks like you may have multiple glance-api services configured with
different
glance_store backends i.e one with filesystem and the other with vsphere.

Or it could be that you changed the glance_store backend configuration
between the two snapshot operations. Can you check again ?

If you try to upload a new image it should be using the vsphere backend
according to your configuration. Please ping me on IRC (sabari) on
#openstack-glance,
I can help you more quickly.

Thanks
Sabari


On Mon, Mar 14, 2016 at 8:32 PM, dongcan ye <hellochosen at gmail.com> wrote:

> Hi, Sabari
>
> Thanks for your reply.
>
> Yes, I had tuned FileSystem to vsphere. Then I create an image, image info
> shows it stores in VMware
> datastore.
>
> I had followed your suggestion, add show_multiple_locations to glance api
> conf.
> Then I repeat the operations.
>
> Results from two snapshotted images:
> locations [{"url":
> "file:///var/lib/glance/images/0cdd8188-537e-49e2-b173-7de122070574",
> "metadata": {}}]
>
> locations [{"url": "vsphere://
> 172.20.2.38/folder/openstack_glance/f462c06a-f202-4b1f-a89a-17f72264b502?dcPath=IDC_Test&dsName=LUN03-00",
> "metadata": {}}]
>
>>
>>
On Mon, Mar 14, 2016 at 2:41 AM, Sabari Murugesan <sabari.bits at gmail.com>
wrote:

> 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/20160321/ba9c498f/attachment.html>


More information about the OpenStack-dev mailing list