[one-users] Need Information on Open Nebula Client Interface.

lalithamba.vishwanathaiah at wipro.com lalithamba.vishwanathaiah at wipro.com
Fri Jan 9 06:21:27 PST 2009


Hi,
 
I am using OpenNebula Client Utility to get the Front-end (ONE) details.
 
I am calling oneClient.allHostsIds(session) method from my java program.
I am getting the following error :
 
--------------------------------------------------------------------------------------------
org.apache.xmlrpc.XmlRpcException: Method 'one.allhostsids' not defined
 at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:186)
 at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:145)
 at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:94)
 at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:44)
 at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:53)
 at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166)
 at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:157)
 at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:146)
 at org.opennebula.stubs.OpenNebulaClientImpl.execute(OpenNebulaClientImpl.java:115)
 at org.opennebula.stubs.OpenNebulaClientImpl.allHostsIds(OpenNebulaClientImpl.java:272)
--------------------------------------------------------------------------------------------
 
Why am I getting the error ?
 
I have added one machine as host using "onehost create" command.
How can I get the HID for a given hostname from Front-End using Client Utility ?
Can anybody give me a sample code for this.
 
Any help is appreciated.  Anticipating for a response.
 
Thanks and Regards,
Lalithamba.

Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 

www.wipro.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20090109/75444d79/attachment-0001.htm>


More information about the Users mailing list