From cc4d766a0476211288d5b67f3647a721159185d3 Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Mon, 22 Oct 2012 10:25:21 -0700 Subject: Remove database usage from libvirt imagecache module This removes the database instance list operation from the libvirt imagecache module and pushes it up into compute/manager.py. This is a step in the proposed strategy to move db usage out of the virt drivers up into compute/manager.py in support of bp:no-db-compute. Change-Id: I2ea39f14304ed4b44c7ac9650703a5f780411c18 --- nova/compute/manager.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'nova/compute') diff --git a/nova/compute/manager.py b/nova/compute/manager.py index 515737992..712a7aa62 100644 --- a/nova/compute/manager.py +++ b/nova/compute/manager.py @@ -2975,7 +2975,5 @@ class ComputeManager(manager.SchedulerDependentManager): if FLAGS.image_cache_manager_interval == 0: return - try: - self.driver.manage_image_cache(context) - except NotImplementedError: - pass + all_instances = self.db.instance_get_all(context) + self.driver.manage_image_cache(context, all_instances) -- cgit