<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&nbsp;vdsClient.</div><div>my cert,key,ca are right, i use then all the time.</div><div><br></div><div>i launch&nbsp;vdsClient on agent HOST to connect itself.</div><div><span style="line-height: 1.7;">the &nbsp;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 &nbsp;server</span></div><div><span style="line-height: 1.7;"><span class="Apple-tab-span" style="white-space:pre">        </span>#</span>&nbsp;python SecureXMLRPCServer.py &nbsp;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>&nbsp;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 &nbsp;of ssl-socket, &nbsp;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&nbsp;2013-03-18&nbsp;17:56:46,"Dan&nbsp;Kenigsberg"&nbsp;&lt;<a href="mailto:danken@redhat.com">danken@redhat.com</a>&gt;&nbsp;wrote:
&gt;On&nbsp;Mon,&nbsp;Mar&nbsp;18,&nbsp;2013&nbsp;at&nbsp;04:23:19PM&nbsp;+0800,&nbsp;bigclouds&nbsp;wrote:
&gt;&gt;&nbsp;i&nbsp;use&nbsp;&nbsp;&nbsp;SecureXMLRPCServer.py&nbsp;to&nbsp;test&nbsp;xml-rpc,&nbsp;just&nbsp;change&nbsp;cert,key,ca&nbsp;to&nbsp;mine.
&gt;&gt;&nbsp;Encounter&nbsp;the&nbsp;same&nbsp;problem&nbsp;alsoĦ£
&gt;&gt;&nbsp;if&nbsp;SSL-reading&nbsp;cause&nbsp;this&nbsp;problem,&nbsp;len&nbsp;is&nbsp;fixed&nbsp;to&nbsp;1024.&nbsp;socket&nbsp;is&nbsp;syncing&nbsp;to&nbsp;recv&nbsp;all&nbsp;1024&nbsp;bytes.
&gt;&gt;&nbsp;
&gt;
&gt;What&nbsp;you&nbsp;are&nbsp;doing&nbsp;is&nbsp;not&nbsp;clear&nbsp;to&nbsp;me.&nbsp;Are&nbsp;you&nbsp;connecting&nbsp;to&nbsp;the&nbsp;same
&gt;host?
&gt;
&gt;SecureXMLRPCServer&nbsp;has&nbsp;a&nbsp;test&nbsp;script&nbsp;of&nbsp;its&nbsp;own&nbsp;-&nbsp;does&nbsp;it&nbsp;work&nbsp;for&nbsp;you?
&gt;See
&gt;&nbsp;&nbsp;class&nbsp;__Test(object):
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"""Self-signed&nbsp;key,&nbsp;generated&nbsp;with
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;make&nbsp;-C&nbsp;/etc/pki/tls/certs&nbsp;/tmp/selfsign.pem
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;with&nbsp;CN=127.0.0.1
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"""
&gt;
&gt;&gt;&nbsp;
&gt;&gt;&nbsp;thanks
&gt;&gt;&nbsp;
&gt;&gt;&nbsp;
&gt;&gt;&nbsp;
&gt;&gt;&nbsp;
&gt;&gt;&nbsp;
&gt;&gt;&nbsp;
&gt;&gt;&nbsp;
&gt;&gt;&nbsp;At&nbsp;2013-03-18&nbsp;16:10:10,bigclouds&nbsp;&lt;<a href="mailto:bigclouds@163.com">bigclouds@163.com</a>&gt;&nbsp;wrote:
&gt;&gt;&nbsp;
&gt;&gt;&nbsp;hi,&nbsp;vdsclient&nbsp;waiting&nbsp;all&nbsp;the&nbsp;time
&gt;&gt;&nbsp;client&nbsp;can&nbsp;send&nbsp;command,&nbsp;i&nbsp;see&nbsp;server&nbsp;side&nbsp;return&nbsp;result.
&gt;&gt;&nbsp;but&nbsp;client&nbsp;&nbsp;can&nbsp;not&nbsp;return.
&gt;&gt;&nbsp;
&gt;&gt;&nbsp;
&gt;&gt;&nbsp;
&gt;&gt;&nbsp;
&gt;&gt;&nbsp;[root@localhost&nbsp;mcvda]#&nbsp;python&nbsp;mcvdacli.py&nbsp;
&gt;&gt;&nbsp;connecting&nbsp;to&nbsp;192.168.88.101:54321&nbsp;ssl&nbsp;True&nbsp;ts&nbsp;/etc/pki/mcvda
&gt;&gt;&nbsp;&lt;ServerProxy&nbsp;for&nbsp;192.168.88.101:54321/RPC2&gt;
&gt;&gt;&nbsp;^CTraceback&nbsp;(most&nbsp;recent&nbsp;call&nbsp;last):
&gt;&gt;&nbsp;&nbsp;&nbsp;File&nbsp;"mcvdacli.py",&nbsp;line&nbsp;124,&nbsp;in&nbsp;&lt;module&gt;
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print&nbsp;server.ping()
&gt;&gt;&nbsp;&nbsp;&nbsp;File&nbsp;"/usr/lib64/python2.6/xmlrpclib.py",&nbsp;line&nbsp;1199,&nbsp;in&nbsp;__call__
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;self.__send(self.__name,&nbsp;args)
&gt;&gt;&nbsp;&nbsp;&nbsp;File&nbsp;"/usr/lib64/python2.6/xmlrpclib.py",&nbsp;line&nbsp;1489,&nbsp;in&nbsp;__request
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;verbose=self.__verbose
&gt;&gt;&nbsp;&nbsp;&nbsp;File&nbsp;"/usr/lib64/python2.6/xmlrpclib.py",&nbsp;line&nbsp;1253,&nbsp;in&nbsp;request
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;self._&nbsp;parse_response(h.getfile(),&nbsp;sock)
&gt;&gt;&nbsp;&nbsp;&nbsp;File&nbsp;"/usr/lib64/python2.6/xmlrpclib.py",&nbsp;line&nbsp;1382,&nbsp;in&nbsp;_parse_response
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response&nbsp;=&nbsp;file.read(1024)
&gt;&gt;&nbsp;&nbsp;&nbsp;File&nbsp;"/usr/lib64/python2.6/socket.py",&nbsp;line&nbsp;383,&nbsp;in&nbsp;read
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;data&nbsp;=&nbsp;self._sock.recv(left)
&gt;&gt;&nbsp;&nbsp;&nbsp;File&nbsp;"/usr/lib64/python2.6/ssl.py",&nbsp;line&nbsp;215,&nbsp;in&nbsp;recv
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;self.read(buflen)
&gt;&gt;&nbsp;&nbsp;&nbsp;File&nbsp;"/usr/lib64/python2.6/ssl.py",&nbsp;line&nbsp;136,&nbsp;in&nbsp;read
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;self._sslobj.read(len)
&gt;&gt;&nbsp;KeyboardInterrupt
&gt;&gt;&nbsp;
&gt;&gt;&nbsp;
&gt;
&gt;&gt;&nbsp;_______________________________________________
&gt;&gt;&nbsp;Users&nbsp;mailing&nbsp;list
&gt;&gt;&nbsp;<a href="mailto:Users@ovirt.org">Users@ovirt.org</a>
&gt;&gt;&nbsp;http://lists.ovirt.org/mailman/listinfo/users
&gt;
</pre></div></div></div></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>