Hello,

I'm trying to deploy and get information of some VM deployed with ONE, I'd
like to obtain this information with the XML-RPC API, when I try to invoice
some commands I always get an authentication error:

The example script:

#!/usr/bin/python

import xmlrpclib
import os

#server=xmlrpclib.ServerProxy('http://localhost:2633/RPC2')
server=xmlrpclib.ServerProxy('http://oneadmin:7bc8559a8fe509e680562b85c337f170956fcb06@localhost
:2633/RPC2')

#-------Get Info about VM ----------
vm=37
vminfo=server.one.vm.info("",vm)
print  vminfo[1]



 oneadmin@opennebula:~$ *./test.py *
[VirtualMachineInfo] User couldn't be authenticated, aborting call.


*one_xmlrpc.log*
.
.
.
127.0.0.1:18874 - no_user - [07/Aug/2011:23:07:16 -0200] "POST" 200 2097
127.0.0.1:18874 - no_user - [07/Aug/2011:23:07:16 -0200] "POST" 200 468
127.0.0.1:18874 - no_user - [07/Aug/2011:23:07:46 -0200] "POST" 200 2097
127.0.0.1:18874 - no_user - [07/Aug/2011:23:07:46 -0200] "POST" 200 468



If some body knows how to connect with python or perl and the correct way to
authenticate the connection. I have tested with username/password and
without.

Thanks
Miguel
_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to