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
This commit is contained in:
committed by
Matt Riedemann
parent
c4763d46fe
commit
107ae91ed6
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user