Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Xen: API

SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

 

 

Xen api RSS feed   Index | Next | Previous | View Threaded


rama.rajesh100120 at gmail

Feb 24, 2011, 3:59 AM

Post #1 of 5 (2656 views)
Permalink
SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

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<http://docs.vmd.citrix.com/XenServer/4.0.1/api/client-examples/python/index.html>.

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.?


rama.rajesh100120 at gmail

Feb 25, 2011, 9:47 AM

Post #2 of 5 (2726 views)
Permalink
Re: SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol [In reply to]

Well, could you please tell me how you solved that problem? I just want to
try it here and see if it works in this context also.
Actually when I googled about this problem I found that keeping the
sslengine option on will generally solve this problem.
But there is no such option as that in the xend config file. So do anyone
know how to set this option for xen-api server ?
On Fri, Feb 25, 2011 at 2:21 PM, Kämpfe, Christiane <
christiane.kaempfe [at] ts> wrote:

> I have had once this SSL message (on a different service) .
>
>
>
> One side has had simply disconnected ssl handshake because this side
> declared the certificate as not trusted ...
>
>
>
> I have not see this for localhost and I'm not using XEN and .py so I have
> no idea if this is the fact here.
>
>
>
> ckae
>
>
>
> *From:* xen-api-bounces [at] lists [mailto:
> xen-api-bounces [at] lists] *On Behalf Of *Rama Rajesh
> *Sent:* Thursday, February 24, 2011 12:59 PM
> *To:* xen-api [at] lists
> *Subject:* [Xen-API] SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
>
>
>
> 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<http://docs.vmd.citrix.com/XenServer/4.0.1/api/client-examples/python/index.html>.
>
> 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.?
>
>


alberto at pesadilla

Feb 25, 2011, 1:43 PM

Post #3 of 5 (2585 views)
Permalink
Re: SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol [In reply to]

Are you using Xen Oss right?

Xenserver api and Xen OSS API aren't identical


On Fri, Feb 25, 2011 at 6:47 PM, Rama Rajesh <rama.rajesh100120 [at] gmail>wrote:

>
> Well, could you please tell me how you solved that problem? I just want to
> try it here and see if it works in this context also.
> Actually when I googled about this problem I found that keeping the
> sslengine option on will generally solve this problem.
> But there is no such option as that in the xend config file. So do anyone
> know how to set this option for xen-api server ?
> On Fri, Feb 25, 2011 at 2:21 PM, Kämpfe, Christiane <
> christiane.kaempfe [at] ts> wrote:
>
>> I have had once this SSL message (on a different service) .
>>
>>
>>
>> One side has had simply disconnected ssl handshake because this side
>> declared the certificate as not trusted ...
>>
>>
>>
>> I have not see this for localhost and I'm not using XEN and .py so I have
>> no idea if this is the fact here.
>>
>>
>>
>> ckae
>>
>>
>>
>> *From:* xen-api-bounces [at] lists [mailto:
>> xen-api-bounces [at] lists] *On Behalf Of *Rama Rajesh
>> *Sent:* Thursday, February 24, 2011 12:59 PM
>> *To:* xen-api [at] lists
>> *Subject:* [Xen-API] SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
>>
>>
>>
>> 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<http://docs.vmd.citrix.com/XenServer/4.0.1/api/client-examples/python/index.html>.
>>
>> 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 [at] lists
> http://lists.xensource.com/mailman/listinfo/xen-api
>
>


rama.rajesh100120 at gmail

Feb 26, 2011, 4:01 AM

Post #4 of 5 (2573 views)
Permalink
Re: SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol [In reply to]

Yes. I'm using XenOSS.

When I use the following basic commands also i get the protocol error.

*import XenAPI
session = Session('http://localhost:9363/')
session.login_with_password('me', 'mypassword')

*
I'm sure these commands are supported in XenOSS becuase i found them
in the /usr/local/lib/python2.6/dist-packages/xen/xm/XenAPI.py

Even after running this basic code I get the protocol error. But this time
it comes as
*
xmlrpclib.ProtocolError: <ProtocolError for localhost:9363/: -1 >
*

I'm attaching the xend-config.sxp. Can you please suggest me if there are
any changes that need to be done?




2011/2/26 Alberto González Rodríguez <alberto [at] pesadilla>

> Are you using Xen Oss right?
>
> Xenserver api and Xen OSS API aren't identical
>
>
> On Fri, Feb 25, 2011 at 6:47 PM, Rama Rajesh <rama.rajesh100120 [at] gmail>wrote:
>
>>
>> Well, could you please tell me how you solved that problem? I just want to
>> try it here and see if it works in this context also.
>> Actually when I googled about this problem I found that keeping the
>> sslengine option on will generally solve this problem.
>> But there is no such option as that in the xend config file. So do anyone
>> know how to set this option for xen-api server ?
>> On Fri, Feb 25, 2011 at 2:21 PM, Kämpfe, Christiane <
>> christiane.kaempfe [at] ts> wrote:
>>
>>> I have had once this SSL message (on a different service) .
>>>
>>>
>>>
>>> One side has had simply disconnected ssl handshake because this side
>>> declared the certificate as not trusted ...
>>>
>>>
>>>
>>> I have not see this for localhost and I'm not using XEN and .py so I have
>>> no idea if this is the fact here.
>>>
>>>
>>>
>>> ckae
>>>
>>>
>>>
>>> *From:* xen-api-bounces [at] lists [mailto:
>>> xen-api-bounces [at] lists] *On Behalf Of *Rama Rajesh
>>> *Sent:* Thursday, February 24, 2011 12:59 PM
>>> *To:* xen-api [at] lists
>>> *Subject:* [Xen-API] SSL routines:SSL23_GET_SERVER_HELLO:unknown
>>> protocol
>>>
>>>
>>>
>>> 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<http://docs.vmd.citrix.com/XenServer/4.0.1/api/client-examples/python/index.html>.
>>>
>>> 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 [at] lists
>> http://lists.xensource.com/mailman/listinfo/xen-api
>>
>>
>
Attachments: xend-config.sxp (9.92 KB)


todd.deshane at xen

Feb 26, 2011, 11:35 AM

Post #5 of 5 (2619 views)
Permalink
Re: SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol [In reply to]

2011/2/26 Rama Rajesh <rama.rajesh100120 [at] gmail>:
> Yes. I'm using XenOSS.
>

You need to be using the Xen Cloud Platform (XCP), which is also open
source software (OSS) for this to work.

See:
http://www.xen.org/products/cloudxen.html


> When I use the following basic commands also i get the protocol error.
>
> import XenAPI
> session = Session('http://localhost:9363/')
>
> session.login_with_password('me', 'mypassword')
>
>
> I'm sure these commands are supported in XenOSS becuase i found them in the
> /usr/local/lib/python2.6/dist-packages/xen/xm/XenAPI.py
>
> Even after running this basic code I get the protocol error. But this time
> it comes as
>
> xmlrpclib.ProtocolError: <ProtocolError for localhost:9363/: -1 >
>
>
> I'm attaching the xend-config.sxp. Can you please suggest me if there are
> any changes that need to be done?
>
>
>
>
> 2011/2/26 Alberto González Rodríguez <alberto [at] pesadilla>
>>
>> Are you using Xen Oss right?
>> Xenserver api and Xen OSS API aren't identical
>>
>> On Fri, Feb 25, 2011 at 6:47 PM, Rama Rajesh <rama.rajesh100120 [at] gmail>
>> wrote:
>>>
>>> Well, could you please tell me how you solved that problem? I just want
>>> to try it here and see if it works  in this context also.
>>> Actually when I googled about this problem I found that keeping the
>>> sslengine option on will generally solve this problem.
>>> But there is no such option as that in the xend config file. So do anyone
>>>  know how to set this option for xen-api server ?
>>> On Fri, Feb 25, 2011 at 2:21 PM, Kämpfe, Christiane
>>> <christiane.kaempfe [at] ts> wrote:
>>>>
>>>> I have had once this SSL message (on a different service) .
>>>>
>>>>
>>>>
>>>> One side has had simply disconnected ssl handshake because this side
>>>> declared the certificate as not trusted ...
>>>>
>>>>
>>>>
>>>> I have not see this for localhost and I'm not using XEN and .py so I
>>>> have no idea if this is the fact here.
>>>>
>>>>
>>>>
>>>> ckae
>>>>
>>>>
>>>>
>>>> From: xen-api-bounces [at] lists
>>>> [mailto:xen-api-bounces [at] lists] On Behalf Of Rama Rajesh
>>>> Sent: Thursday, February 24, 2011 12:59 PM
>>>> To: xen-api [at] lists
>>>> Subject: [Xen-API] SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
>>>>
>>>>
>>>>
>>>> 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 [at] lists
>>> http://lists.xensource.com/mailman/listinfo/xen-api
>>>
>>
>
>
> _______________________________________________
> xen-api mailing list
> xen-api [at] lists
> http://lists.xensource.com/mailman/listinfo/xen-api
>
>

_______________________________________________
xen-api mailing list
xen-api [at] lists
http://lists.xensource.com/mailman/listinfo/xen-api

Xen api RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.