[one-users] REG: operation problem

srivatsan jagannathan srivatsanjn at gmail.com
Tue Sep 20 11:27:35 PDT 2011


Hi,

OpenNebula version 2.2
onehost list
  ID NAME              CLUSTER  RVM   TCPU   FCPU   ACPU    TMEM    FMEM
STAT
  18 cloud9            default    0   2400   2400   2400     63G   61.6G
on
onehost show 18 -x
<HOST>
  <ID>18</ID>
  <NAME>cloud9</NAME>
  <STATE>2</STATE>
  <IM_MAD>im_kvm</IM_MAD>
  <VM_MAD>vmm_kvm</VM_MAD>
  <TM_MAD>tm_nfs</TM_MAD>
  <LAST_MON_TIME>1316541929</LAST_MON_TIME>
  <CLUSTER>default</CLUSTER>
  <HOST_SHARE>
    <HID>18</HID>
    <DISK_USAGE>0</DISK_USAGE>
    <MEM_USAGE>0</MEM_USAGE>
    <CPU_USAGE>0</CPU_USAGE>
    <MAX_DISK>0</MAX_DISK>
    <MAX_MEM>66097408</MAX_MEM>
    <MAX_CPU>2400</MAX_CPU>
    <FREE_DISK>0</FREE_DISK>
    <FREE_MEM>64609184</FREE_MEM>
    <FREE_CPU>2400</FREE_CPU>
    <USED_DISK>0</USED_DISK>
    <USED_MEM>1488224</USED_MEM>
    <USED_CPU>0</USED_CPU>
    <RUNNING_VMS>0</RUNNING_VMS>
  </HOST_SHARE>
  <TEMPLATE>
    <ARCH><![CDATA[x86_64]]></ARCH>
    <CPUSPEED><![CDATA[2100]]></CPUSPEED>
    <FREECPU><![CDATA[2400.0]]></FREECPU>
    <FREEMEMORY><![CDATA[64609184]]></FREEMEMORY>
    <HOSTNAME><![CDATA[cloud9]]></HOSTNAME>
    <HYPERVISOR><![CDATA[kvm]]></HYPERVISOR>
    <MODELNAME><![CDATA[AMD Opteron(tm) Processor 6172]]></MODELNAME>
    <NETRX><![CDATA[2998354]]></NETRX>
    <NETTX><![CDATA[4807146]]></NETTX>
    <TOTALCPU><![CDATA[2400]]></TOTALCPU>
    <TOTALMEMORY><![CDATA[66097408]]></TOTALMEMORY>
    <USEDCPU><![CDATA[0.0]]></USEDCPU>
    <USEDMEMORY><![CDATA[1488224]]></USEDMEMORY>
  </TEMPLATE>
</HOST>



once again i reran the program, still getting same error.....
JAVA API code

OneResponse or = Host.info(Client, 18);
if(or.isError()){
           System.out.println(" Check for error "+or.getErrorMessage());
  }
else{
     System.out.println(or.getMessage());
 }


the response for this code error Failed to parse servers response: Unknown
type: string

I am thinking OneResponse return TRUE, because "Check for error" is missing
in the output


Regards,
Srivatsan J.

2011/9/20 Carlos Martín Sánchez <cmartin at opennebula.org>

> Hi,
>
> I can't reproduce this problem. Can you provide more information?
>
> What OpenNebula version are you using?
> What's the output of "onehost show <id> -x"?
> Any trace?
>
> Regards
> --
> Carlos Martín, MSc
> Project Major Contributor
> OpenNebula - The Open Source Toolkit for Cloud Computing
> www.OpenNebula.org <http://www.opennebula.org/> | cmartin at opennebula.org
>
>
> On Mon, Sep 19, 2011 at 11:59 AM, srivatsan jagannathan <
> srivatsanjn at gmail.com> wrote:
>
>> Hi Team,
>>
>> I am trying to use JAVA API to perform operation on host.
>>
>> All these operation succeed,
>> Host.allocate(Client, hostname, im, vmm, tm)
>> Host.enable(Client, id, true)
>> Host.enable(Client, id, false)
>> Host.delete(Client, id)
>>
>> But
>> Host.info(Client, id)
>> gives error Failed to parse servers response: Unknown type: string
>>
>> in CLI onehost list & onehost show works properly
>>
>> no error in oned.log
>>
>>
>> Regards,
>> Srivatsan J.
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110920/d6bc1608/attachment-0003.htm>


More information about the Users mailing list