From 107ae91ed6ab17400909a4f37024112aeeacbdf7 Mon Sep 17 00:00:00 2001 From: Wenzhi Yu Date: Mon, 21 Mar 2016 16:28:24 +0800 Subject: [PATCH] Set 'libvirt.sysinfo_serial' to 'none' in RealTimeServersTest During execution of nova test case 'nova.tests.functional.libvirt. test_rt_servers.RealTimeServersTest.test_success', 'LibvirtDriver. _sysinfo_serial_func' method will be called to get information from the compute host[1] if value of 'CONF.libvirt.sysinfo_serial' is not 'none', this is not expected during test run. We should set 'CONF.libvirt.sysinfo_serial' to 'none' in test case so that it would not try to get info from compute host during execution. [1]https://github.com/openstack/nova/blob/13.0.0.0rc1/nova/virt/libvirt/driver.py#L569-L577 Change-Id: I0f6c7fcea34c3ecaa9b19861a7640fda551f040f Closes-bug: #1559579 --- nova/tests/functional/libvirt/test_rt_servers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nova/tests/functional/libvirt/test_rt_servers.py b/nova/tests/functional/libvirt/test_rt_servers.py index 98f1e89475ba..e98b5229d5a0 100644 --- a/nova/tests/functional/libvirt/test_rt_servers.py +++ b/nova/tests/functional/libvirt/test_rt_servers.py @@ -70,6 +70,7 @@ class RealTimeServersTest(ServersTestBase): 'nova.virt.libvirt.guest.libvirt', fakelibvirt)) self.useFixture(fakelibvirt.FakeLibvirtFixture()) + self.flags(sysinfo_serial='none', group='libvirt') def _setup_compute_service(self): self.flags(compute_driver='nova.virt.libvirt.LibvirtDriver')