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] Fix xm sysrq command for inactive managed domain

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Fix xm sysrq command for inactive managed domain
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Mon, 09 Jul 2007 16:47:59 +0900
Delivery-date: Mon, 09 Jul 2007 00:46:38 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

I tried to test a wrong operation on purpose again.  When I tried 
xm sysrq command to a inactive managed domain, I saw the following 
error message.  The error message did not have a message text 
behind "Error:".  And I found an AssertionError message in xend.log. 

# xm list PVdomain.1
Name                                        ID   Mem VCPUs      State   Time(s)
PVdomain.1                                      1024     4                 0.0
# xm sysrq PVdomain.1 m
Error: 
Usage: xm sysrq <Domain> <letter>

Send a sysrq to a domain.

[2007-07-09 14:49:35 3945] ERROR (xmlrpclib2:178) Internal error handling 
xend.domain.send_sysrq
Traceback (most recent call last):
  File "//usr/lib/python/xen/util/xmlrpclib2.py", line 131, in 
_marshaled_dispatch
    response = self._dispatch(method, params)
  File "/usr/lib/python2.4/SimpleXMLRPCServer.py", line 406, in _dispatch
    return func(*params)
  File "<string>", line 1, in <lambda>
  File "//usr/lib/python/xen/xend/server/XMLRPCServer.py", line 55, in dispatch
    return getattr(info, fn)(*args)
  File "//usr/lib/python/xen/xend/XendDomainInfo.py", line 493, in send_sysrq
    self.storeDom("control/sysrq", '%c' % key)
  File "//usr/lib/python/xen/xend/XendDomainInfo.py", line 774, in storeDom
    return xstransact.Store(self.dompath, *args)
  File "//usr/lib/python/xen/xend/xenstore/xstransact.py", line 338, in Store
    complete(path, lambda t: t.store(*args))
  File "//usr/lib/python/xen/xend/xenstore/xstransact.py", line 352, in complete
    t = xstransact(path)
  File "//usr/lib/python/xen/xend/xenstore/xstransact.py", line 19, in __init__
    assert path is not None
AssertionError



I fixed the error message as follows. 
Could you apply the attached patch?

# xm list PVdomain.1
Name                                        ID   Mem VCPUs      State   Time(s)
PVdomain.1                                      1024     4                 0.0
# xm sysrq PVdomain.1 m
Error: Domain 'PVdomain.1' is not started
Usage: xm sysrq <Domain> <letter>

Send a sysrq to a domain.


Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>

Best regards,
 Kan

Attachment: xm_sysrq.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Fix xm sysrq command for inactive managed domain, Masaki Kanno <=