WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] [xend] fix coredump-{restart, destroy} on_crash acti

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] [xend] fix coredump-{restart, destroy} on_crash actions
From: Jim Fehlig <jfehlig@xxxxxxxxxx>
Date: Tue, 27 Jul 2010 09:09:11 -0600
Delivery-date: Tue, 27 Jul 2010 08:10:03 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.23 (X11/20090817)
After all of these years, more fallout from xen-api and legacy xmlrpc
integration.  Can't say I'll miss xend :-).

Please apply to xen-4.0-testing.

Regards,
Jim


# HG changeset patch
# User Jim Fehlig <jfehlig@xxxxxxxxxx>
# Date 1280165174 21600
# Node ID 3da5c666fb1ba1f532803e59040e7a0d8481c2ba
# Parent  ac7e4c6ec6c7494e4046da92aa8f62f6c1371438
The xm documentation and example config files state that possible
"on crash" behaviors include coredump-{restart,destroy},
but domain creation will fail if either of these options are
specified

xen52:~ # grep coredump /etc/xen/vm/test
on_crash="coredump-restart"
xen52:~ # xm create /etc/xen/vm/test
Using config file "/etc/xen/vm/test".
Error: Invalid argument.

coredump-and-{restart,destroy} are permissible but unnecessarily
verbose and inconsistent with documentation.  This patch simply
adds coredump-{restart,destroy} to the list of permissible values.

    Signed-off-by: Jim Fehlig <jfehlig@xxxxxxxxxx>

diff -r ac7e4c6ec6c7 -r 3da5c666fb1b tools/python/xen/xend/XendAPIConstants.py
--- a/tools/python/xen/xend/XendAPIConstants.py Fri Jul 23 19:23:49 2010 +0100
+++ b/tools/python/xen/xend/XendAPIConstants.py Mon Jul 26 11:26:14 2010 -0600
@@ -45,8 +45,10 @@
 XEN_API_ON_CRASH_BEHAVIOUR = [
     'destroy',
     'coredump_and_destroy',
+    'coredump_destroy',
     'restart',
     'coredump_and_restart',
+    'coredump_restart',
     'preserve',
     'rename_restart'
 ]
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>