diff options
| author | Michael Kerrin <michael.kerrin@hp.com> | 2013-04-16 11:33:36 +0000 |
|---|---|---|
| committer | Michael Kerrin <michael.kerrin@hp.com> | 2013-04-16 11:41:27 +0000 |
| commit | a6fed74d1d5d384a735ae58017e8c33daee783aa (patch) | |
| tree | 89528aacf13da282bde93c23db754c30020b2056 /nova/virt | |
| parent | 36b10384724fec9657784980cd2bd38e72b445bc (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-x | nova/virt/fake.py | 3 |
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 = [] |
