← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1298420] [NEW] Libvirt's image caching fetches images multiple times

 

Public bug reported:

When launching several VMs in rapid succession, it is possible that libvirt's image caching
will fetch the same image serveral times.  This can occur when all of the VMs in question
are using the same base image and this base image has not been previously fetched. The inline
fetch_func_sync method prevents multiple threads from fetching the same image at the same time,
but it does not prevent a thread that is waiting to acquire the lock from fetching the image
that was being fetched while the lock was still in use. This is because the presence of the image
is checked only before the lock has been acquired, not after.

** Affects: nova
     Importance: Undecided
         Status: New


** Tags: libvirt

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1298420

Title:
  Libvirt's image caching fetches images multiple times

Status in OpenStack Compute (Nova):
  New

Bug description:
  When launching several VMs in rapid succession, it is possible that libvirt's image caching
  will fetch the same image serveral times.  This can occur when all of the VMs in question
  are using the same base image and this base image has not been previously fetched. The inline
  fetch_func_sync method prevents multiple threads from fetching the same image at the same time,
  but it does not prevent a thread that is waiting to acquire the lock from fetching the image
  that was being fetched while the lock was still in use. This is because the presence of the image
  is checked only before the lock has been acquired, not after.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1298420/+subscriptions


Follow ups

References