WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
From: Rama Rajesh <rama.rajesh100120@xxxxxxxxx>
Date: Thu, 24 Feb 2011 17:29:24 +0530
Delivery-date: Thu, 24 Feb 2011 04:05:15 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=ct2UeS1OYqmY0a3nZZDVqOwDA2LNB7roLIKZbCcRwfA=; b=LVVCKVuKRepy26waYr6IZ+QTI3TiM84b80rye5IwrIsndD4nmn/Qk+6rinq/GtTtMM NYRq7u7+KcTY2CfOsBUW/aVzxGLyT6VIm1afeZM/k4SGby5NkPdzEcR7iGp0umF9OcX3 Org2bd4tX5qqWCMJIDnsofgmp3ZYudWSktd2Q=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=trqAwRmS1xeBrEQudH2EfVSz9it04/WkcOfbo9XiBWbqaR+/BpMLfeW3rHFXMjBhGG blgO4xewoKGLQg9ROyZaVz9+I8I1roJwQsvKOJLEazBL67dzlrgaxmLJP4gGLtnCLEog sEmhzn3Wc7Gelx886fri3mx31GS+3re9zoaFE=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Hi all,

I'm new to Xen.I'm trying to use the API. For this I'm using the official example that is given at powercycle.py .

When I execute  the command
./powercycle.py https://localhost:9363/ root my_password

It is giving me the following error.

Traceback (most recent call last):
File "./powercycle.py", line 72, in <module>
session.xenapi.login_with_password(username, password)
File "/usr/local/lib/python2.6/dist-packages/xen/xm/XenAPI.py", line 214, in __call__
return self.__send(self.__name, args)
File "/usr/local/lib/python2.6/dist-packages/xen/xm/XenAPI.py", line 136, in xenapi_request
self._login(methodname, params)
File "/usr/local/lib/python2.6/dist-packages/xen/xm/XenAPI.py", line 157, in _login
result = _parse_result(getattr(self, 'session.%s' % method)(*params))
File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
return self.__send(self.__name, args)
File "/usr/local/lib/python2.6/dist-packages/xen/util/xmlrpcclient.py", line 118, in __request
response = xmlrpclib.ServerProxy.__request(self, methodname, params)
File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
verbose=self.__verbose
File "/usr/lib/python2.6/xmlrpclib.py", line 1235, in request
self.send_content(h, request_body)
File "/usr/lib/python2.6/xmlrpclib.py", line 1349, in send_content
connection.endheaders()
File "/usr/lib/python2.6/httplib.py", line 908, in endheaders
self._send_output()
File "/usr/lib/python2.6/httplib.py", line 780, in _send_output
self.send(msg)
File "/usr/lib/python2.6/httplib.py", line 739, in send
self.connect()
File "/usr/lib/python2.6/httplib.py", line 1116, in connect
self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file)
File "/usr/lib/python2.6/ssl.py", line 338, in wrap_socket
suppress_ragged_eofs=suppress_ragged_eofs)
File "/usr/lib/python2.6/ssl.py", line 120, in __init__
self.do_handshake()
File "/usr/lib/python2.6/ssl.py", line 279, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [Errno 1] _ssl.c:490: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol


Can someone please tell me how to fix this error.?
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>