Hi
I tried the SSH patch from Anthony.. using the following test code. It seems
that it works only once... I mean for executing only one command over the
established channel/connection.
Any ideas...
code
from xmlrpclib import Transport
from xen.util.xmlrpclib2 import ServerProxy
server = ServerProxy("ssh://root@192.168.0.102/RPC2", None, None, 1,
1)
l = server.xend.domains(1)
print l
# try again
l = server.xend.domains(1)
print l
Output :
-----------
[''Domain-0'', ''U1'']
Traceback (most recent call last):
File "/home/jd/test/t.py", line 15, in ?
l = server.xend.domains(0)
File "/usr/lib/python2.4/xmlrpclib.py", line 1096, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.4/site-packages/xen/util/xmlrpclib2.py", line
155, in __request
response = xmlrpclib.ServerProxy.__request(self, methodname, params)
File "/usr/lib/python2.4/xmlrpclib.py", line 1383, in __request
verbose=self.__verbose
File "/usr/lib/python2.4/site-packages/xen/util/xmlrpclib2.py", line
68, in request
ssh.stdin.write("""POST /%s HTTP/1.1
IOError: [Errno 32] Broken pipe
Thanks
/Jd
---------------------------------
Do you Yahoo!?
Next-gen email? Have it all with the all-new Yahoo! Mail Beta.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel