[Kimchi-devel] [PATCH] [Kimchi 2/3] Added on_poweroff, on_reboot, on_crash tag to support s390x architecture.

archus at linux.vnet.ibm.com archus at linux.vnet.ibm.com
Tue Aug 9 12:53:02 UTC 2016


From: Archana Singh <archus at linux.vnet.ibm.com>

By default on_crash is destory, and if vm crashed
then '/var/run/libvirt/qemu/%s.pid is deleted on s390x
which in turn throw exception.
So having on_crash tag with restart solve the issue.

Signed-off-by: Archana Singh <archus at linux.vnet.ibm.com>
---
 kvmusertests.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/kvmusertests.py b/kvmusertests.py
index 567955a..a3fb273 100644
--- a/kvmusertests.py
+++ b/kvmusertests.py
@@ -36,6 +36,9 @@ class UserTests(object):
         <type arch='%(arch)s'>hvm</type>
         <boot dev='hd'/>
       </os>
+      <on_poweroff>destroy</on_poweroff>
+      <on_reboot>restart</on_reboot>
+      <on_crash>restart</on_crash>
     </domain>"""
     lock = threading.Lock()
     user = None
-- 
2.7.4




More information about the Kimchi-devel mailing list