[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] socket error




sir i have installed, xen cloud platform . using xenp api sdk , i am call the vm window os, redhat, window server2008.
--



hi, can u please help me ,


import sys, time
import XenAPI
session =XenAPI.Session("http://localhost.localdomain:443/")
session.login_with_password('
root','babukarthik','XenServer SDK 5.6.100')
session.xenapi.VM.start('c6d4abac-2317-3a5c-e480-e488a6762cbc')




"session.py" 5L, 230C written
[root@localhost python]# python session.py
Traceback (most recent call last):
  File "session.py", line 4, in ?
    session.login_with_password('root','babukarthik','XenServer SDK 5.6.100')
  File "/usr/lib/python2.4/site-packages/XenAPI.py", line 182, in <lambda>
    return lambda *params: self._login(name, params)
  File "/usr/lib/python2.4/site-packages/XenAPI.py", line 148, in _login
    result = _parse_result(getattr(self, 'session.%s' % method)(*params))
  File "/usr/lib/python2.4/xmlrpclib.py", line 1096, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.4/xmlrpclib.py", line 1383, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.4/xmlrpclib.py", line 1129, in request
    self.send_content(h, request_body)
  File "/usr/lib/python2.4/xmlrpclib.py", line 1243, in send_content
    connection.endheaders()
  File "/usr/lib/python2.4/httplib.py", line 804, in endheaders
    self._send_output()
  File "/usr/lib/python2.4/httplib.py", line 685, in _send_output
    self.send(msg)
  File "/usr/lib/python2.4/httplib.py", line 652, in send
    self.connect()
  File "/usr/lib/python2.4/httplib.py", line 636, in connect

 raise socket.error, msg
socket.error: (111, 'Connection refused')




R.G.BABUKARTHIK
M.Tech NIE
Pondicherry university


The secret of success is to know something nobody else knows.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.