[Users] vdsClient not work ,it waiting all the time

bigclouds bigclouds at 163.com
Mon Mar 18 10:24:08 EDT 2013


vdsClient do not work all the time.i need it to debug.
all parts of ovirt work fine except vdsClient.
my cert,key,ca are right, i use then all the time.


i launch vdsClient on agent HOST to connect itself.
the  following point is important,(but it has no matter with host ip address,i do not know why)
1.start  server
# python SecureXMLRPCServer.py  oioioiooio
2.start client
#python SecureXMLRPCServer.py
after start client, i can see server is aware of the call from client, and return after process rpc-call
 3.ctrl+c to kill server.
client return ,the result is 5.



according to my test.i start vdsm daemon , then vdsclient -s 0 getVdsCapabilities, then shutdown vdsm daemon, client return and get result.
i think it is question  of ssl-socket,  or certification problems, but i do not know its root cause.
thanks.







At 2013-03-18 17:56:46,"Dan Kenigsberg" <danken at redhat.com> wrote:
>On Mon, Mar 18, 2013 at 04:23:19PM +0800, bigclouds wrote:
>> i use   SecureXMLRPCServer.py to test xml-rpc, just change cert,key,ca to mine.
>> Encounter the same problem also。
>> if SSL-reading cause this problem, len is fixed to 1024. socket is syncing to recv all 1024 bytes.
>> 
>
>What you are doing is not clear to me. Are you connecting to the same
>host?
>
>SecureXMLRPCServer has a test script of its own - does it work for you?
>See
>  class __Test(object):
>      """Self-signed key, generated with
>         make -C /etc/pki/tls/certs /tmp/selfsign.pem
>         with CN=127.0.0.1
>      """
>
>> 
>> thanks
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> At 2013-03-18 16:10:10,bigclouds <bigclouds at 163.com> wrote:
>> 
>> hi, vdsclient waiting all the time
>> client can send command, i see server side return result.
>> but client  can not return.
>> 
>> 
>> 
>> 
>> [root at localhost mcvda]# python mcvdacli.py 
>> connecting to 192.168.88.101:54321 ssl True ts /etc/pki/mcvda
>> <ServerProxy for 192.168.88.101:54321/RPC2>
>> ^CTraceback (most recent call last):
>>   File "mcvdacli.py", line 124, in <module>
>>     print server.ping()
>>   File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__
>>     return self.__send(self.__name, args)
>>   File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request
>>     verbose=self.__verbose
>>   File "/usr/lib64/python2.6/xmlrpclib.py", line 1253, in request
>>     return self._ parse_response(h.getfile(), sock)
>>   File "/usr/lib64/python2.6/xmlrpclib.py", line 1382, in _parse_response
>>     response = file.read(1024)
>>   File "/usr/lib64/python2.6/socket.py", line 383, in read
>>     data = self._sock.recv(left)
>>   File "/usr/lib64/python2.6/ssl.py", line 215, in recv
>>     return self.read(buflen)
>>   File "/usr/lib64/python2.6/ssl.py", line 136, in read
>>     return self._sslobj.read(len)
>> KeyboardInterrupt
>> 
>> 
>
>> _______________________________________________
>> Users mailing list
>> Users at ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20130318/7c5c22df/attachment.html>


More information about the Users mailing list