From af4dc62e49128cb5e0be1fb244074b3a7c8733e8 Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Fri, 10 Aug 2012 10:09:13 -0400 Subject: Implement get_host_uptime in libvirt driver. Updates the libvirt compute driver to support the host uptime call. Change-Id: Ife6aad55c5544177b4172487b4cae02f02dc247f --- nova/tests/test_libvirt.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nova/tests') diff --git a/nova/tests/test_libvirt.py b/nova/tests/test_libvirt.py index 0a9df31e5..01b426ecd 100644 --- a/nova/tests/test_libvirt.py +++ b/nova/tests/test_libvirt.py @@ -2657,6 +2657,10 @@ class HostStateTestCase(test.TestCase): def get_hypervisor_hostname(self): return 'compute1' + def get_host_uptime(self): + return ('10:01:16 up 1:36, 6 users, ' + 'load average: 0.21, 0.16, 0.19') + def get_disk_available_least(self): return 13091 -- cgit