← Back to team overview

openstack team mailing list archive

nova.virt.libvirt.imagecache is removing good base file

 

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.

Follow ups