From 3d09a28ceca8bf0e594fc103f977e844071e3ea8 Mon Sep 17 00:00:00 2001 From: Luis Fernandez Alvarez Date: Mon, 12 Nov 2012 14:35:12 +0100 Subject: Fixed HyperV to get disk stats of instances drive It fixes bug 1077922 The current version of the HyperV Compute driver was returning the disk stats about the C: drive always. This patch makes HyperV driver extract the current drive from the flag 'instances_path'. In order to optimize the procedure, the disk stats extraction is also unified in one method. Change-Id: I4920cf2cc07d0f514c0358144b7bceb15d439a63 --- ...se.test_get_available_resource_multiprocessing.p.gz | Bin 270 -> 270 bytes ...perVAPITestCase.test_get_available_resource_os.p.gz | Bin 0 -> 423 bytes ...APITestCase.test_get_available_resource_shutil.p.gz | Bin 298 -> 298 bytes ...erVAPITestCase.test_get_available_resource_wmi.p.gz | Bin 1013 -> 978 bytes ...rvapi.HyperVAPITestCase.test_get_host_stats_os.p.gz | Bin 0 -> 415 bytes ...i.HyperVAPITestCase.test_get_host_stats_shutil.p.gz | Bin 290 -> 290 bytes ...vapi.HyperVAPITestCase.test_get_host_stats_wmi.p.gz | Bin 888 -> 842 bytes 7 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 nova/tests/hyperv/stubs/test_hypervapi.HyperVAPITestCase.test_get_available_resource_os.p.gz create mode 100644 nova/tests/hyperv/stubs/test_hypervapi.HyperVAPITestCase.test_get_host_stats_os.p.gz (limited to 'nova/tests') diff --git a/nova/tests/hyperv/stubs/test_hypervapi.HyperVAPITestCase.test_get_available_resource_multiprocessing.p.gz b/nova/tests/hyperv/stubs/test_hypervapi.HyperVAPITestCase.test_get_available_resource_multiprocessing.p.gz index 3f50a76e0..42665b9f1 100644 Binary files a/nova/tests/hyperv/stubs/test_hypervapi.HyperVAPITestCase.test_get_available_resource_multiprocessing.p.gz and b/nova/tests/hyperv/stubs/test_hypervapi.HyperVAPITestCase.test_get_available_resource_multiprocessing.p.gz differ diff --git a/nova/tests/hyperv/stubs/test_hypervapi.HyperVAPITestCase.test_get_available_resource_os.p.gz b/nova/tests/hyperv/stubs/test_hypervapi.HyperVAPITestCase.test_get_available_resource_os.p.gz new file mode 100644 index 000000000..56a2cc958 Binary files /dev/null and b/nova/tests/hyperv/stubs/test_hypervapi.HyperVAPITestCase.test_get_available_resource_os.p.gz differ diff --git a/nova/tests/hyperv/stubs/test_hypervapi.HyperVAPITestCase.test_get_available_resource_shutil.p.gz b/nova/tests/hyperv/stubs/test_hypervapi.HyperVAPITestCase.test_get_available_resource_shutil.p.gz index 35126ad4b..e38b94d44 100644 Binary files a/nova/tests/hyperv/stubs/test_hypervapi.HyperVAPITestCase.test_get_available_resource_shutil.p.gz and b/nova/tests/hyperv/stubs/test_hypervapi.HyperVAPITestCase.test_get_available_resource_shutil.p.gz differ diff --git a/nova/tests/hyperv/stubs/test_hypervapi.HyperVAPITestCase.test_get_available_resource_wmi.p.gz b/nova/tests/hyperv/stubs/test_hypervapi.HyperVAPITestCase.test_get_available_resource_wmi.p.gz index 1a34569d1..fd4fd77af 100644 Binary files a/nova/tests/hyperv/stubs/test_hypervapi.HyperVAPITestCase.test_get_available_resource_wmi.p.gz and b/nova/tests/hyperv/stubs/test_hypervapi.HyperVAPITestCase.test_get_available_resource_wmi.p.gz differ diff --git a/nova/tests/hyperv/stubs/test_hypervapi.HyperVAPITestCase.test_get_host_stats_os.p.gz b/nova/tests/hyperv/stubs/test_hypervapi.HyperVAPITestCase.test_get_host_stats_os.p.gz new file mode 100644 index 000000000..56bc137ed Binary files /dev/null and b/nova/tests/hyperv/stubs/test_hypervapi.HyperVAPITestCase.test_get_host_stats_os.p.gz differ diff --git a/nova/tests/hyperv/stubs/test_hypervapi.HyperVAPITestCase.test_get_host_stats_shutil.p.gz b/nova/tests/hyperv/stubs/test_hypervapi.HyperVAPITestCase.test_get_host_stats_shutil.p.gz index 805931bbb..aaa2cdc1c 100644 Binary files a/nova/tests/hyperv/stubs/test_hypervapi.HyperVAPITestCase.test_get_host_stats_shutil.p.gz and b/nova/tests/hyperv/stubs/test_hypervapi.HyperVAPITestCase.test_get_host_stats_shutil.p.gz differ diff --git a/nova/tests/hyperv/stubs/test_hypervapi.HyperVAPITestCase.test_get_host_stats_wmi.p.gz b/nova/tests/hyperv/stubs/test_hypervapi.HyperVAPITestCase.test_get_host_stats_wmi.p.gz index e9852d038..c60521c1d 100644 Binary files a/nova/tests/hyperv/stubs/test_hypervapi.HyperVAPITestCase.test_get_host_stats_wmi.p.gz and b/nova/tests/hyperv/stubs/test_hypervapi.HyperVAPITestCase.test_get_host_stats_wmi.p.gz differ -- cgit