[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [XEND] Handle permission denied when calling xc.domain_getinfo



# 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
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.