[one-users] Error in "onevm list": `get_history_host':undefined method `[]' for nil:NilClass (NoMethodError)

Tino Vazquez tinova at fdi.ucm.es
Fri Jun 27 01:20:17 PDT 2008


Hi Alvaro,

This nasty bugs have been washed away in our development trunk. Please check
out the latest from our subversion repository to get rid of them:

#  svn co http://svn.opennebula.org/trunk

Best regards,

-Tino

On Thu, Jun 26, 2008 at 7:00 PM, Alvaro Canales <accleo at gmail.com> wrote:

> More info:
> if I execute "onevm show 0", it works as expected, listing the
> characteristics of the image with id 0.
> But if I do "onevm history", I get this:
>
>> onevm history
>> History for VM 0
>>
>>   ID SEQ        HOSTNAME          STIME          ETIME        TIME REASON
>> /OVS/opennebula/bin/onevm:90: undefined method `[]' for true:TrueClass
>> (NoMethodError)
>>     from /OVS/opennebula/lib/ruby/client_utilities.rb:131:in `call'
>>     from /OVS/opennebula/lib/ruby/client_utilities.rb:131:in `data_array'
>>     from /OVS/opennebula/lib/ruby/client_utilities.rb:130:in `collect'
>>     from /OVS/opennebula/lib/ruby/client_utilities.rb:130:in `data_array'
>>     from /OVS/opennebula/lib/ruby/client_utilities.rb:129:in `collect'
>>     from /OVS/opennebula/lib/ruby/client_utilities.rb:129:in `data_array'
>>     from /OVS/opennebula/lib/ruby/client_utilities.rb:110:in `data_str'
>>     from /OVS/opennebula/bin/onevm:252:in `list_vm_history'
>>     from /OVS/opennebula/bin/onevm:268:in `list_vm_history_array'
>>     from /OVS/opennebula/bin/onevm:265:in `each'
>>     from /OVS/opennebula/bin/onevm:265:in `list_vm_history_array'
>>     from /OVS/opennebula/bin/onevm:277:in `list_vm_history_all'
>>     from /OVS/opennebula/bin/onevm:276:in `each'
>>     from /OVS/opennebula/bin/onevm:276:in `list_vm_history_all'
>>     from /OVS/opennebula/bin/onevm:450
>>
>
> Hope this helps...
>
>
> On Thu, Jun 26, 2008 at 6:37 PM, Alvaro Canales <accleo at gmail.com> wrote:
>
>> Hello again!
>>
>> After adding some hosts with the "onehost add..."  command and
>> successfully listing them, I submit an image this way:
>>
>>> onevm submit images/myfirstVM.template
>>> ID: 1
>>>
>> I think this is the expected output.
>>
>> The problem comes when trying to do "onevm list", where I get this error:
>>
>>> onevm list
>>> /opt/nebula/ONE/lib/ruby/one.rb:340:in `get_history_host': undefined
>>> method `[]' for nil:NilClass (NoMethodError)
>>>     from /opt/nebula/ONE/lib/ruby/one.rb:316:in `get_vms'
>>>     from /opt/nebula/ONE/lib/ruby/one.rb:315:in `each'
>>>     from /opt/nebula/ONE/lib/ruby/one.rb:315:in `get_vms'
>>>     from /opt/nebula/ONE/bin/onevm:184:in `list_short'
>>>     from /opt/nebula/ONE/bin/onevm:422
>>>
>>
>> Can you spot the error? I guess get_history_host doesn't return what is
>> expected...
>> Thank you for your help and attention! ;)
>>
>> --
>> Álvaro
>
>
>
>
> --
> Álvaro
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


-- 
Constantino Vázquez, Grid Technology Engineer/Researcher:
http://www.dsa-research.org/doku.php?id=people:tinova
DSA Research Group: http://dsa-research.org
Globus GridWay Metascheduler: http://www.GridWay.org
OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20080627/df5a3298/attachment-0007.htm>


More information about the Users mailing list