[one-users] Java OCA code dependency
Carlos Martín Sánchez
cmartins at fdi.ucm.es
Fri Apr 30 02:18:37 PDT 2010
Hi Shashank, I'm copying your email to the list (I guess you meant to send
it here):
Hi
>
> Thanks for guiding me through the examples. I will go through them to gain
> a better understanding. Consider the following code where I am able to fetch
> information w.r.t Virtual Machines providing invalid user name and password.
>
> Client oneClient = new Client("someuser:password","
> http://localhost:2633/RPC2");
> int vmID = 2;
>
> VirtualMachine vm = new VirtualMachine(vmID,oneClient);
>
> vm.info();
> System.out.println(vm.getName());
> System.out.println(vm.stateStr());
>
> The output of the above code is:
> ReactOS
> DONE
>
> Please note that there is only one valid user with name shashank as shown
> below.
>
> Also, I have noticed that operations which tend to change the state of
> cloud entity objects are not allowed with these invalid credentials. Only
> operations which involve fetching state information are allowed. Is this a
> desired behavior ?
>
> root at shashank:/# oneuser list
> ID USER PASSWORD
> ENABLE
> 0 shashank 8b832b62abf2bd5180f6a225e4b99cac1392ea10
> True
> root at shashank:/# onehost list
> ID NAME RVM TCPU FCPU ACPU TMEM FMEM
> STAT
> 4 localhost 1 200 78 78 1801900 1256364
> on
> root at shashank:/# onevm list
> ID USER NAME STAT CPU MEM HOSTNAME TIME
> 3 shashank ReactOS runn 0 524288 localhost 00 00:07:59
> root at shashank:/#
>
>
Yes, right now this is how OpenNebula works. The xml-rpc server side, in the
ONE core, allows information request for some pools without checking who is
asking.
If you need to change this behaviour for some reason, let us know and we'll
help you to narrow down the c++ methods you have to modify.
Regards,
Carlos.
Carlos Martín, Cloud Technology Engineer/Researcher
DSA Research Group: web http://dsa-research.org and blog
http://blog.dsa-research.org
OpenNebula Open Source Toolkit for Cloud Computing:
http://www.OpenNebula.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20100430/83cf3b8c/attachment-0003.htm>
More information about the Users
mailing list