[one-users] XML-RPC API's

Ruben S. Montero rubensm at dacya.ucm.es
Wed Sep 16 08:50:01 PDT 2009


Hi

We have updated the session information has been updated in the
XML-RPC API reference. I Hope now is clearer ;).

http://www.opennebula.org/doku.php?id=documentation:rel1.4:api

About the oneadmin password. First time you start OpenNebula it takes
the name and password for 'oneadmin' from the ONE_AUTH variable. Note
that oneuser list command can only be excuted by onedamin so you
should have set the ONE_AUTH variable....

http://www.opennebula.org/doku.php?id=documentation:rel1.4:cg#opennebula_users

BTW, do not forget to share the screen-shots of your web interface with us!

Thanks for the feedback!!

Cheers

Ruben


On Tue, Sep 15, 2009 at 10:19 AM, Harsha Buggi
<Harsha_Buggi at mindtree.com> wrote:
> Works. Thanks.
>
> I got it with 'oneuser list' command. But it would help if the Nebula documentation was updated with the password details like you mentioned.
>
> ________________________________________
> From: users-bounces at lists.opennebula.org [users-bounces at lists.opennebula.org] On Behalf Of Borja Sotomayor [borja at borjanet.com]
> Sent: Tuesday, September 15, 2009 1:46 PM
> To: users at lists.opennebula.org
> Subject: Re: [one-users] XML-RPC API's
>
> Hi Harsha,
>
> The oneadmin account is created the first time OpenNebula starts,
> although I don't know what the default password is (I'll let the
> OpenNebula developers clarify this; it's not entirely obvious from the
> documentation). However, if you can use the onevm, onehost, etc.
> commands, checking the password is simple: just look at your ONE_AUTH
> environment variable:
>
>   echo $ONE_AUTH
>
> However, in case the password _is_ 'oneadmin', take into account that
> the XMLRPC API expects the password's SHA1 hash (not the password
> itself). So, if you're currently sending the password verbatim, make
> sure you modify your code so it will send the SHA1 hash instead.
> Assuming 'oneadmin' is the password, the session string would look
> something like this:
>
>   oneadmin:7bc8559a8fe509e680562b85c337f170956fcb06
>
> Cheers!
> --Borja
>
> On Tue, Sep 15, 2009 at 9:57 AM, Harsha Buggi <Harsha_Buggi at mindtree.com> wrote:
>> Sorry for the deluge of mails.
>>
>> I am assuming that the password of oneadmin user is oneadmin. What is the password of oneadmin user?
>> ________________________________
>> From: Harsha Buggi
>> Sent: Tuesday, September 15, 2009 1:20 PM
>> To: users at lists.opennebula.org
>> Subject: RE: XML-RPC API's
>>
>> I tried
>>
>> $vminfo=$server->call("one.vmpool.info","oneadmin:oneadmin",-2);
>> print @$vminfo->[1];
>>
>> and I get the error
>>
>> "User is not authenticated, aborting RequestManagerPoolInfo call"
>>
>> I am running the script as 'root' and I have the ONE_AUTH="oneadmin:oneadmin" set as an env variable.
>>
>> Regards,
>> Harsha
>> ________________________________
>> From: Harsha Buggi
>> Sent: Tuesday, September 15, 2009 12:17 PM
>> To: users at lists.opennebula.org
>> Subject: XML-RPC API's
>>
>> Hi,
>>
>>     I have used perl CGI scripts to build an web interface around nebula. All that I am doing in this is have a login page with authenticates by checking for the username:password string in the system env variable and then after authentication user is given an option to upload a topology file or select random OS's that s/he wants deployed.
>>
>>     I want to use the one.vm.allocate and vm.pool.info methods to deploy VM's and  display the VM's associated only with that particular user on the home page respectively. What is the syntax for packaging the parameters and making the corresponding function calls. I am using the Frontier::Client perl module to make the xml-rpc calls. Can I have an example? I am specially confused with the syntax and values for passing the session string.
>>
>> Regards,
>> Harsha
>>
>> ________________________________
>> http://www.mindtree.com/email/disclaimer.html
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
> http://www.mindtree.com/email/disclaimer.html
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



-- 
+---------------------------------------------------------------+
 Dr. Ruben Santiago Montero
 Associate Professor
 Distributed System Architecture Group (http://dsa-research.org)

 URL:    http://dsa-research.org/doku.php?id=people:ruben
 Weblog: http://blog.dsa-research.org/?author=7

 GridWay, http://www.gridway.org
 OpenNebula, http://www.opennebula.org
+---------------------------------------------------------------+


More information about the Users mailing list