From: Archana Singh <archus(a)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(a)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