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/
Home Products Support Community News


[Xen-changelog] [xen-unstable] [XEND] Handle permission denied when call

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [XEND] Handle permission denied when calling xc.domain_getinfo
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 06 Nov 2006 16:50:18 +0000
Delivery-date: Mon, 06 Nov 2006 08:50:59 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Alastair Tse <atse@xxxxxxxxxxxxx>
# Node ID 4ff83eddd1f65e64610f563fbd128e953a12d4e8
# Parent  374087600412d42bc63054207226c3c94b55570a
[XEND] Handle permission denied when calling xc.domain_getinfo

Signed-off-by: Alastair Tse <atse@xxxxxxxxxxxxx>
 tools/python/xen/xend/XendDomain.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletion(-)

diff -r 374087600412 -r 4ff83eddd1f6 tools/python/xen/xend/XendDomain.py
--- a/tools/python/xen/xend/XendDomain.py       Fri Nov 03 10:39:32 2006 +0000
+++ b/tools/python/xen/xend/XendDomain.py       Fri Nov 03 10:41:20 2006 +0000
@@ -328,7 +328,11 @@ class XendDomain:
         @rtype: list of dicts
         @return: A list of dicts representing the running domains.
-        return xc.domain_getinfo()
+        try:
+            return xc.domain_getinfo()
+        except RuntimeError, e:
+            log.exception("Unable to get domain information.")
+            return {}
     def _setDom0CPUCount(self):
         """Sets the number of VCPUs dom0 has. Retreived from the

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [XEND] Handle permission denied when calling xc.domain_getinfo, Xen patchbot-unstable <=