<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">vdsClient do not work all the time.i need it to debug.<div>all parts of ovirt work fine except vdsClient.</div><div>my cert,key,ca are right, i use then all the time.</div><div><br></div><div>i launch vdsClient on agent HOST to connect itself.</div><div><span style="line-height: 1.7;">the following point is important,(but it has no matter with host ip address,i do not know why)</span></div><div><span style="line-height: 1.7;">1.start server</span></div><div><span style="line-height: 1.7;"><span class="Apple-tab-span" style="white-space:pre">        </span>#</span> python SecureXMLRPCServer.py oioioiooio</div><div>2.start client</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>#python SecureXMLRPCServer.py</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>after start client, i can see server is aware of the call from client, and return after process rpc-call</div> 3.ctrl+c to kill server.<div><span class="Apple-tab-span" style="white-space:pre">        </span>client return ,the result is 5.<br><div><br><div>according to my test.i start vdsm daemon , then vdsclient -s 0 getVdsCapabilities, then shutdown vdsm daemon, client return and get result.</div><div>i think it is question of ssl-socket, or certification problems, but i do not know its root cause.</div><div>thanks.<br><br><br><br><div></div><div id="divNeteaseMailCard"></div><br><pre><br>At 2013-03-18 17:56:46,"Dan Kenigsberg" <<a href="mailto:danken@redhat.com">danken@redhat.com</a>> 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 <<a href="mailto:bigclouds@163.com">bigclouds@163.com</a>> wrote:
>>
>> hi, vdsclient waiting all the time
>> client can send command, i see server side return result.
>> but client can not return.
>>
>>
>>
>>
>> [root@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
>> <a href="mailto:Users@ovirt.org">Users@ovirt.org</a>
>> http://lists.ovirt.org/mailman/listinfo/users
>
</pre></div></div></div></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>