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

Alvaro Canales accleo at gmail.com
Fri Jun 27 03:06:38 PDT 2008


Hello,
I have some doubts about the process of reinstalling OpenNEbula, can you
help me?

On Thu, Jun 26, 2008 at 9:54 PM, Javier Fontan <jfontan at fdi.ucm.es> wrote:

>
> Hello,
>
> You are correct, there is a bug there. We have been changing the ruby API a
> bit broke the history. That is already solved in the svn.
> http://trac.opennebula.org/changeset/17
>
> I encourage you to get the source from subversion and update from time to
> time. The good thing is that the script that installs it makes links from
> where the source files are so ruby files are automatically updated when you
> download new changes.
>

What do you mean with this? I don't understand the process... When I execute
"install.sh", I usually get a "ln -s xxx yyy" failed because yyy already
existed, so I delete all yyy*'s and then reinstall. Is that correct?
Should I:
1: scons --clean
2: scons
3: install.sh $ONE_LOCATION
or what?

Also recompiling makes executables in the installation directory updated.
>
>
>

> Configuration files are copied so you wont loose any. It was made like this
> to make developing and testing easier.
>

Perfect! Thanks!


> There will be a real installation procedure when it reaches an stable
> version.
>
> Sorry for the inconveniences.
>

No problem at all! ;)


>
> Bye
>

Bye


>
>
> On Jun 26, 2008, at 7:00 PM, Alvaro Canales 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
>
>
>


-- 
Álvaro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20080627/22e9fe7b/attachment-0003.htm>


More information about the Users mailing list