* [dts] [PATCH V1] tests/vm_power_manager:restart libvirtd
@ 2021-10-18 19:04 Lewei Yang
2021-10-25 3:34 ` Tu, Lijuan
0 siblings, 1 reply; 2+ messages in thread
From: Lewei Yang @ 2021-10-18 19:04 UTC (permalink / raw)
To: dts; +Cc: Lewei Yang
dut needs to create a new vm,but a suite has created a vm before.
restart libvirtd to make sure new vm can be created
Signed-off-by: Lewei Yang <leweix.yang@intel.com>
---
tests/TestSuite_vm_power_manager.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/TestSuite_vm_power_manager.py b/tests/TestSuite_vm_power_manager.py
index f650ba28..455383f7 100644
--- a/tests/TestSuite_vm_power_manager.py
+++ b/tests/TestSuite_vm_power_manager.py
@@ -63,6 +63,7 @@ class TestVmPowerManager(TestCase):
self.vcpu_map = []
# start vm
self.vm_name = "vm0"
+ self.dut.send_expect("service libvirtd restart", "# ")
self.vm = LibvirtKvm(self.dut, self.vm_name, self.suite_name)
channels = [
{'path': '/tmp/powermonitor/%s.0' %
--
2.17.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dts] [PATCH V1] tests/vm_power_manager:restart libvirtd
2021-10-18 19:04 [dts] [PATCH V1] tests/vm_power_manager:restart libvirtd Lewei Yang
@ 2021-10-25 3:34 ` Tu, Lijuan
0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2021-10-25 3:34 UTC (permalink / raw)
To: Yang, LeweiX, dts; +Cc: Yang, LeweiX
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Lewei Yang
> Sent: 2021年10月19日 3:05
> To: dts@dpdk.org
> Cc: Yang, LeweiX <leweix.yang@intel.com>
> Subject: [dts] [PATCH V1] tests/vm_power_manager:restart libvirtd
>
> dut needs to create a new vm,but a suite has created a vm before.
> restart libvirtd to make sure new vm can be created
>
> Signed-off-by: Lewei Yang <leweix.yang@intel.com>
> ---
> tests/TestSuite_vm_power_manager.py | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tests/TestSuite_vm_power_manager.py
> b/tests/TestSuite_vm_power_manager.py
> index f650ba28..455383f7 100644
> --- a/tests/TestSuite_vm_power_manager.py
> +++ b/tests/TestSuite_vm_power_manager.py
> @@ -63,6 +63,7 @@ class TestVmPowerManager(TestCase):
> self.vcpu_map = []
> # start vm
> self.vm_name = "vm0"
> + self.dut.send_expect("service libvirtd restart", "# ")
It's real a bad idea to restart service. Libvirt should have the cap to create a new vm.
> self.vm = LibvirtKvm(self.dut, self.vm_name, self.suite_name)
> channels = [
> {'path': '/tmp/powermonitor/%s.0' %
> --
> 2.17.1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-10-25 3:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-18 19:04 [dts] [PATCH V1] tests/vm_power_manager:restart libvirtd Lewei Yang
2021-10-25 3:34 ` Tu, Lijuan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).