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

Tino Vazquez tinova at fdi.ucm.es
Fri Jun 27 04:42:50 PDT 2008


Hi Alvaro,

No probs, glad that is clear now.

The installer is just a toy script that it's going to be completely
rewritten, so don't bother about what it lacks becouse is going to be dumped
anyway.

Thanks again for the feedback,

-Tino

On Fri, Jun 27, 2008 at 1:21 PM, Alvaro Canales <accleo at gmail.com> wrote:

> Ok, sorry!
> I didn't realize that files in bin directory are, in fact, symlinks to the
> source. Thank god I didn't delete it! hehe
> Now I understand everything about the "easy reinstallation process" ;)
> Excuse my previous mail then!
> Regards
>
> PS: Should the installer ask about overwriting configuration files, by
> doing something like "cp -i" (maybe better if after doing a diff ;) ) in the
> inst_cp function of install.sh?
>
>
> On Fri, Jun 27, 2008 at 1:13 PM, Tino Vazquez <tinova79 at gmail.com> wrote:
>
>> Hi Alvaro,
>>
>> Our installer is really simple at the moment, it just create links to the
>> compiled binaries.
>>
>> If you untar the source over the previous source directory, you just need
>> to recompile it and there is no need to reinstall it again since the links
>> now will point to the new binaries.
>>
>> If you choose to untar the source onto another directory and you want to
>> install it on the same $ONE_LOCATION, then you have to erase first all the
>> contents of $ONE_LOCATION.
>>
>> Hope it helps,
>>
>> -Tino
>>
>>
>> On Fri, Jun 27, 2008 at 12:06 PM, Alvaro Canales <accleo at gmail.com>
>> wrote:
>>
>>> 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
>>> _______________________________________________
>>> 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
>>
>
>
>
> --
> Álvaro




-- 
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/25051c44/attachment-0003.htm>


More information about the Users mailing list