[Openstack] nova.virt.libvirt.imagecache is removing good base file

Vishvananda Ishaya vishvananda at gmail.com
Wed Dec 5 19:20:41 UTC 2012


This is a known issue in folsom and stable/folsom. You should turn off the image cache if you are using shared storage.

https://bugs.launchpad.net/nova/+bug/1078594

See the upgrade notes here to see how to disable the imagecache run:

http://wiki.openstack.org/ReleaseNotes/Folsom#OpenStack_Compute_.28Nova.29

Note that the current version of stable/folsom (and 2012.2.1) turn off imagecache by default.

Vish

On Dec 5, 2012, at 9:56 AM, Davide Guerri <davide.guerri at gmail.com> wrote:

> Hi all,
> I've a bad problem with nova.virt.libvirt.imagecache: it keeps removing "good" (not stale) base images even if they are used by running VMs.
> 
> I have a multi-node installation with shared storage (as described here: http://docs.openstack.org/trunk/openstack-compute/admin/content/configuring-live-migrations.html)
> 
> Here is a log except:
> 
> ---
> nova-compute.log:2012-12-05 16:21:29 INFO nova.virt.libvirt.imagecache [-] Removable base files: /var/lib/nova/instances/_base/cf38dbb4e4468fe68f8486ed6ade984f766086cc /var/lib/nova/instances/_base/cf38dbb4e4468fe68f8486ed6ade984f766086cc_80 /var/lib/nova/instances/_base/7fab5ccd237dbb7428e9a47e26eb278e9b66e357 /var/lib/nova/instances/_base/7fab5ccd237dbb7428e9a47e26eb278e9b66e357_40 /var/lib/nova/instances/_base/7fab5ccd237dbb7428e9a47e26eb278e9b66e357_80 /var/lib/nova/instances/_base/eed4493e949ae9303c0342c50860f1ba368e8177 /var/lib/nova/instances/_base/eed4493e949ae9303c0342c50860f1ba368e8177_80 /var/lib/nova/instances/_base/34c234536ae3df4ea641258c57c35872c10cd0d2
> nova-compute.log:2012-12-05 16:21:29 INFO nova.virt.libvirt.imagecache [-] Removing base file: /var/lib/nova/instances/_base/cf38dbb4e4468fe68f8486ed6ade984f766086cc_80
> nova-compute.log:2012-12-05 17:11:34 INFO nova.virt.libvirt.imagecache [-] Active base files: /var/lib/nova/instances/_base/7fab5ccd237dbb7428e9a47e26eb278e9b66e357_40 /var/lib/nova/instances/_base/eed4493e949ae9303c0342c50860f1ba368e8177_80 /var/lib/nova/instances/_base/cf38dbb4e4468fe68f8486ed6ade984f766086cc_80
> ---
> 
> 
> For my understanding the backing file eed4493e949ae9303c0342c50860f1ba368e8177_80 is removed even if it's considered Active.
> 
> Actually the node that is removing base files is not the node where instances related to those backing files run.
> 
> It's correct to share the whole /var/lib/nova/instances/ directory or the "_base" subdirectory should reside locally to each node?
> 
> Thanks in advance for any help you can provide.
> 
> Davide.
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp





More information about the Openstack mailing list