xm sysrq == Internal Server Error
Using stable (2.05) tools and kernel, dom0 is CentOS 4.
# xm sysrq mydomain s Error: Internal Server Error
(sorry for the word-wrapping)
==> /var/log/xend-debug.log <==
{'key': 115}
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/twisted/protocols/basic.py", line 229, in
dataReceived
return self.rawDataReceived(data)
File "/usr/lib/python2.3/site-packages/twisted/protocols/http.py", line 1015, in
rawDataReceived
self.allContentReceived()
File "/usr/lib/python2.3/site-packages/twisted/protocols/http.py", line 1006, in
allContentReceived
req.requestReceived(command, path, version)
File "/usr/lib/python2.3/site-packages/twisted/protocols/http.py", line 557, in
requestReceived
self.process()
--- <exception caught here> ---
File "/usr/lib/python2.3/site-packages/twisted/web/server.py", line 165, in process
self.render(resrc)
File "/usr/lib/python2.3/site-packages/twisted/web/server.py", line 172, in render
body = resrc.render(self)
File "/usr/lib/python2.3/site-packages/twisted/web/resource.py", line 201, in
render
return m(request)
File "/usr/lib/python/xen/xend/server/SrvDomain.py", line 197, in render_POST
return self.perform(req)
File "/usr/lib/python/xen/xend/server/SrvBase.py", line 103, in perform
return self._perform(op, op_method, req)
File "/usr/lib/python/xen/xend/server/SrvBase.py", line 109, in _perform
return self._perform_err(err, op, req)
File "/usr/lib/python/xen/xend/server/SrvBase.py", line 107, in _perform
val = op_method(op, req)
File "/usr/lib/python/xen/xend/server/SrvDomain.py", line 52, in op_shutdown
val = fn(req.args, {'dom': self.dom.id}) File "/usr/lib/python/xen/xend/Args.py", line 140, in __call__
return self.call_with_form_args(self.fn, fargs, xargs=xargs)
File "/usr/lib/python/xen/xend/Args.py", line 116, in call_with_form_args
return fn(*params, **keys)
File "/usr/lib/python/xen/xend/XendDomain.py", line 477, in domain_shutdown
val = xend.domain_shutdown(dominfo.id, reason, key)
File "/usr/lib/python/xen/xend/server/SrvDaemon.py", line 724, in domain_shutdown
ctrl.shutdown(reason, key)
File "/usr/lib/python/xen/xend/server/domain.py", line 52, in shutdown
self.writeRequest(packMsg(msgtype, extra))
File "/usr/lib/python/xen/xend/server/messages.py", line 274, in packMsg
msg = xu.message(major, minor, msgid, args)
exceptions.TypeError: payload contains bad items
-Chris
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Quoted 4 lines
Using stable (2.05) tools and kernel, dom0 is CentOS 4.
# xm sysrq mydomain s Error: Internal Server Error
Is this fixed for you yet? Searching my mail archives, I don't see evidence for / against it having been dealt with.
If not, let me know - at first glance, it doesn't look like a difficult fix.
Cheers,
Mark
Quoted 52 lines
(sorry for the word-wrapping)
==>/var/log/xend-debug.log<==
{'key': 115}
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/twisted/protocols/basic.py", line
229, in dataReceived
returnself.rawDataReceived(data)
File "/usr/lib/python2.3/site-packages/twisted/protocols/http.py", line
1015, in rawDataReceived
self.allContentReceived()
File "/usr/lib/python2.3/site-packages/twisted/protocols/http.py", line
1006, in allContentReceived
req.requestReceived(command, path, version)
File "/usr/lib/python2.3/site-packages/twisted/protocols/http.py", line
557, in requestReceived
self.process()
--- <exception caught here> ---
File "/usr/lib/python2.3/site-packages/twisted/web/server.py", line 165,
in processself.render(resrc)
File "/usr/lib/python2.3/site-packages/twisted/web/server.py", line 172,
in render body =resrc.render(self)
File "/usr/lib/python2.3/site-packages/twisted/web/resource.py", line
201, in render
return m(request)
File "/usr/lib/python/xen/xend/server/SrvDomain.py", line 197, inrender_POSTreturnself.perform(req)
File "/usr/lib/python/xen/xend/server/SrvBase.py", line 103, in perform
returnself._perform(op, op_method, req)
File "/usr/lib/python/xen/xend/server/SrvBase.py", line 109, in_perform
returnself._perform_err(err, op, req)
File "/usr/lib/python/xen/xend/server/SrvBase.py", line 107, in_perform
val =op_method(op, req)
File "/usr/lib/python/xen/xend/server/SrvDomain.py", line 52, inop_shutdownval =fn(req.args, {'dom': self.dom.id})
File "/usr/lib/python/xen/xend/Args.py", line 140, in__call__
returnself.call_with_form_args(self.fn, fargs, xargs=xargs)
File "/usr/lib/python/xen/xend/Args.py", line 116, incall_with_form_args
returnfn(*params, **keys)
File "/usr/lib/python/xen/xend/XendDomain.py", line 477, indomain_shutdownval =xend.domain_shutdown(dominfo.id, reason, key)
File "/usr/lib/python/xen/xend/server/SrvDaemon.py", line 724, indomain_shutdownctrl.shutdown(reason, key)
File "/usr/lib/python/xen/xend/server/domain.py", line 52, in shutdown
self.writeRequest(packMsg(msgtype, extra))
File "/usr/lib/python/xen/xend/server/messages.py", line 274, in packMsg
msg =xu.message(major, minor, msgid, args)
exceptions.TypeError: payload contains bad items-Chris
Quoted 9 lines
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Quoted 9 lines
Quoted 4 lines
Using stable (2.05) tools and kernel, dom0 is CentOS 4.
# xm sysrq mydomain s Error: Internal Server ErrorIs this fixed for you yet? Searching my mail archives, I don't see evidence for / against it having been dealt with.
If not, let me know - at first glance, it doesn't look like a difficult fix.
No, not yet. I'd be happy to test any patches.
-Chris
Thanks for sending to the correct list, unlike me ;-)
Quoted 2 lines
Quoted 2 lines
Is this fixed for you yet? Searching my mail archives, I don't see evidence for / against it having been dealt with.
<snip>
Quoted 1 line
No, not yet. I'd be happy to test any patches.
Great!
Please apply the attached patches (against 2.0-testing, should work with other 2.0 releases) and rebuild / reinstall the tools. The existing kernel / Xen should work OK with these.
Compile tested only, so YMMV ;-)
Cheers,
Mark
tools/python/xen/lowlevel/xu/xu.c +3 -0
@@ -671,6 +671,9 @@P2C (mem_request_t, target, u32);P2C (mem_request_t, status, u32);break ; +case TYPE (CMSG_SHUTDOWN ,CMSG_SHUTDOWN_SYSRQ ): +P2C (shutdown_sysrq_t, key, char); +break ; }if ( dict_items_parsed !=PyDict_Size (payload) )
xen/include/public/io/domain_controller.h +4 -0
@@ -545,6 +545,10 @@/* SHUTDOWN_suspend. */ #define CMSG_SHUTDOWN_SYSRQ 3 +typedef struct { +char key;/* 0: sysrq key */ +char __pad[3 ];/* 1: */ +} PACKED shutdown_sysrq_t; /* 4 bytes *//****************************************************************************** * MEMORY CONTROLS
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 5 lines
Please apply the attached patches (against 2.0-testing, should work with other 2.0 releases) and rebuild / reinstall the tools. The existing kernel / Xen should work OK with these.
Compile tested only, so YMMV ;-)
Applied patches, deleted and re-installed tools, same result:
# xm sysrq domain3 s Error: Internal Server Error
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/twisted/protocols/basic.py", line 229, in
dataReceived
return self.rawDataReceived(data)
File "/usr/lib/python2.3/site-packages/twisted/protocols/http.py", line 1015, in
rawDataReceived
self.allContentReceived()
File "/usr/lib/python2.3/site-packages/twisted/protocols/http.py", line 1006, in
allContentReceived
req.requestReceived(command, path, version)
File "/usr/lib/python2.3/site-packages/twisted/protocols/http.py", line 557, in
requestReceived
self.process()
--- <exception caught here> ---
File "/usr/lib/python2.3/site-packages/twisted/web/server.py", line 165, in process
self.render(resrc)
File "/usr/lib/python2.3/site-packages/twisted/web/server.py", line 172, in render
body = resrc.render(self)
File "/usr/lib/python2.3/site-packages/twisted/web/resource.py", line 201, in
render
return m(request)
File "/usr/lib/python/xen/xend/server/SrvDomain.py", line 197, in render_POST
return self.perform(req)
File "/usr/lib/python/xen/xend/server/SrvBase.py", line 103, in perform
return self._perform(op, op_method, req)
File "/usr/lib/python/xen/xend/server/SrvBase.py", line 109, in _perform
return self._perform_err(err, op, req)
File "/usr/lib/python/xen/xend/server/SrvBase.py", line 107, in _perform
val = op_method(op, req)
File "/usr/lib/python/xen/xend/server/SrvDomain.py", line 52, in op_shutdown
val = fn(req.args, {'dom': self.dom.id}) File "/usr/lib/python/xen/xend/Args.py", line 140, in __call__
return self.call_with_form_args(self.fn, fargs, xargs=xargs)
File "/usr/lib/python/xen/xend/Args.py", line 116, in call_with_form_args
return fn(*params, **keys)
File "/usr/lib/python/xen/xend/XendDomain.py", line 477, in domain_shutdown
val = xend.domain_shutdown(dominfo.id, reason, key)
File "/usr/lib/python/xen/xend/server/SrvDaemon.py", line 724, in domain_shutdown
ctrl.shutdown(reason, key)
File "/usr/lib/python/xen/xend/server/domain.py", line 52, in shutdown
self.writeRequest(packMsg(msgtype, extra))
File "/usr/lib/python/xen/xend/server/messages.py", line 274, in packMsg
msg = xu.message(major, minor, msgid, args)
exceptions.TypeError: payload contains bad items
-Chris
Quoted 4 lines
Applied patches, deleted and re-installed tools, same result:
# xm sysrq domain3 s Error: Internal Server Error
I think the Python build system must have done something weird on your system
- I just tested the patches and they fix the problem for me, whereas without them I see the same error you are getting.
Can you double check your tools install? You may find it helps to blow away the current Xen Python libraries! I have occasionally had issues with the Python's build / install system before.
Cheers,
Mark
Quoted 46 lines
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/twisted/protocols/basic.py", line
229, in dataReceived
returnself.rawDataReceived(data)
File "/usr/lib/python2.3/site-packages/twisted/protocols/http.py", line
1015, in rawDataReceived
self.allContentReceived()
File "/usr/lib/python2.3/site-packages/twisted/protocols/http.py", line
1006, in allContentReceived
req.requestReceived(command, path, version)
File "/usr/lib/python2.3/site-packages/twisted/protocols/http.py", line
557, in requestReceived
self.process()
--- <exception caught here> ---
File "/usr/lib/python2.3/site-packages/twisted/web/server.py", line 165,
in processself.render(resrc)
File "/usr/lib/python2.3/site-packages/twisted/web/server.py", line 172,
in render body =resrc.render(self)
File "/usr/lib/python2.3/site-packages/twisted/web/resource.py", line
201, in render
return m(request)
File "/usr/lib/python/xen/xend/server/SrvDomain.py", line 197, inrender_POSTreturnself.perform(req)
File "/usr/lib/python/xen/xend/server/SrvBase.py", line 103, in perform
returnself._perform(op, op_method, req)
File "/usr/lib/python/xen/xend/server/SrvBase.py", line 109, in_perform
returnself._perform_err(err, op, req)
File "/usr/lib/python/xen/xend/server/SrvBase.py", line 107, in_perform
val =op_method(op, req)
File "/usr/lib/python/xen/xend/server/SrvDomain.py", line 52, inop_shutdownval =fn(req.args, {'dom': self.dom.id})
File "/usr/lib/python/xen/xend/Args.py", line 140, in__call__
returnself.call_with_form_args(self.fn, fargs, xargs=xargs)
File "/usr/lib/python/xen/xend/Args.py", line 116, incall_with_form_args
returnfn(*params, **keys)
File "/usr/lib/python/xen/xend/XendDomain.py", line 477, indomain_shutdownval =xend.domain_shutdown(dominfo.id, reason, key)
File "/usr/lib/python/xen/xend/server/SrvDaemon.py", line 724, indomain_shutdownctrl.shutdown(reason, key)
File "/usr/lib/python/xen/xend/server/domain.py", line 52, in shutdown
self.writeRequest(packMsg(msgtype, extra))
File "/usr/lib/python/xen/xend/server/messages.py", line 274, in packMsg
msg =xu.message(major, minor, msgid, args)
exceptions.TypeError: payload contains bad items-Chris
Quoted 7 lines
I think the Python build system must have done something weird on your system
- I just tested the patches and they fix the problem for me, whereas without them I see the same error you are getting.Can you double check your tools install? You may find it helps to blow away the current Xen Python libraries! I have occasionally had issues with the Python's build / install system before.
Yeah -- I did blow away /usr/lib/python/xen, but forgot to restart xend :/
# xm sysrq domain3 s
xennode root # dmesg
SysRq : Emergency Sync
Emergency Sync complete
Thanks! It works now -- nice job :)
-Chris
Quoted 10 lines · Christopher S. Aker
Quoted 7 lines
I think the Python build system must have done something weird on your system - I just tested the patches and they fix the problem for me, whereas without them I see the same error you are getting.
Can you double check your tools install? You may find it helps to blow away the current Xen Python libraries! I have occasionally had issues with the Python's build / install system before.
Yeah -- I did blow away
/usr/lib/python/xen, but forgot to restart xend :/
Quoted 7 lines
# xm sysrq domain3 sxennode root # dmesg
SysRq : Emergency Sync
Emergency Sync completeThanks! It works now -- nice job :)
Wicked! Thanks for testing it out. I'll get a version of this fix pushed into the testing repository presently.
Cheers,
Mark
Mark,
Thanks, if these patches are in 2.0 and 2.0-testing, will they be in xen-unstable?
wm
============
Quoted 27 lines · Christopher S. Aker
Quoted 7 lines
I think the Python build system must have done something weird on your system
- I just tested the patches and they fix the problem for me, whereas without them I see the same error you are getting.Can you double check your tools install? You may find it helps to blow away the current Xen Python libraries! I have occasionally had issues with the Python's build / install system before.
Yeah -- I did blow away
/usr/lib/python/xen, but forgot to restart xend :/# xm sysrq domain3 sxennode root # dmesg
SysRq : Emergency Sync
Emergency Sync completeThanks! It works now -- nice job :)
-Chris
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Signature · 5 lines
Sincerely, Woody Marvel LTC Open Source Projects Beaverton, OR tel: 503-578-3833/775-3833 email: [email protected] ======================================================================= "The branch is not only ever near the stem, but ever receiving life and fruitfulness from it." -- C.H.Spurgeon =======================================================================
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Yes, fixes that go into -testing get pulled into -unstable too. I've never had to deal with this but I think bitkeeper takes away some of the pain involved in doing this.
Cheers
Mark
Quoted 33 lines · woody
Mark,
Thanks, if these patches are in 2.0 and 2.0-testing, will they be in xen-unstable?
wm
============Quoted 24 lines · Christopher S. Aker
Quoted 7 lines
I think the Python build system must have done something weird on your system - I just tested the patches and they fix the problem for me, whereas without them I see the same error you are getting.
Can you double check your tools install? You may find it helps to blow away the current Xen Python libraries! I have occasionally had issues with the Python's build / install system before.
Yeah -- I did blow away
/usr/lib/python/xen, but forgot to restart xend :/# xm sysrq domain3 sxennode root # dmesg
SysRq : Emergency Sync
Emergency Sync completeThanks! It works now -- nice job :)
-Chris
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel