summaryrefslogtreecommitdiffstats
path: root/nova/virt
diff options
context:
space:
mode:
authorMichael Kerrin <michael.kerrin@hp.com>2013-04-16 11:33:36 +0000
committerMichael Kerrin <michael.kerrin@hp.com>2013-04-16 11:41:27 +0000
commita6fed74d1d5d384a735ae58017e8c33daee783aa (patch)
tree89528aacf13da282bde93c23db754c30020b2056 /nova/virt
parent36b10384724fec9657784980cd2bd38e72b445bc (diff)
Cleanup and test volume usage on volume detach
* Refactor _poll_volume_usage to be more readable * Test that detaching a volume updates the totals on the volume usage cache correctly. This works but adding test to make sure that it always works. Change-Id: I82da44137bc65d5f04bca0820eb327438d6e1f35
Diffstat (limited to 'nova/virt')
-rwxr-xr-xnova/virt/fake.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/nova/virt/fake.py b/nova/virt/fake.py
index e55fbb640..18774245f 100755
--- a/nova/virt/fake.py
+++ b/nova/virt/fake.py
@@ -274,8 +274,7 @@ class FakeDriver(driver.ComputeDriver):
bw = []
return bw
- def get_all_volume_usage(self, context, instances, start_time,
- stop_time=None):
+ def get_all_volume_usage(self, context, compute_host_bdms):
"""Return usage info for volumes attached to vms on
a given host"""
volusage = []