<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>Hello,</div><div><br></div><div>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. <a href="http://trac.opennebula.org/changeset/17">http://trac.opennebula.org/changeset/17</a></div><div><br></div><div>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. Also recompiling makes executables in the installation directory updated.</div><div><br></div><div>Configuration files are copied so you wont loose any. It was made like this to make developing and testing easier. There will be a real installation procedure when it reaches an stable version.</div><div><br></div><div>Sorry for the inconveniences.</div><div><br></div><div>Bye</div><div><br></div><div><br></div><div><div>On Jun 26, 2008, at 7:00 PM, Alvaro Canales wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">More info:<br>if I execute "onevm show 0", it works as expected, listing the characteristics of the image with id 0.<br>But if I do "onevm history", I get this:<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"> onevm history<br>History for VM 0<br><br>  ID SEQ        HOSTNAME          STIME          ETIME        TIME REASON<br>/OVS/opennebula/bin/onevm:90: undefined method `[]' for true:TrueClass (NoMethodError)<br>    from /OVS/opennebula/lib/ruby/client_utilities.rb:131:in `call'<br>     from /OVS/opennebula/lib/ruby/client_utilities.rb:131:in `data_array'<br>    from /OVS/opennebula/lib/ruby/client_utilities.rb:130:in `collect'<br>    from /OVS/opennebula/lib/ruby/client_utilities.rb:130:in `data_array'<br>     from /OVS/opennebula/lib/ruby/client_utilities.rb:129:in `collect'<br>    from /OVS/opennebula/lib/ruby/client_utilities.rb:129:in `data_array'<br>    from /OVS/opennebula/lib/ruby/client_utilities.rb:110:in `data_str'<br>     from /OVS/opennebula/bin/onevm:252:in `list_vm_history'<br>    from /OVS/opennebula/bin/onevm:268:in `list_vm_history_array'<br>    from /OVS/opennebula/bin/onevm:265:in `each'<br>    from /OVS/opennebula/bin/onevm:265:in `list_vm_history_array'<br>     from /OVS/opennebula/bin/onevm:277:in `list_vm_history_all'<br>    from /OVS/opennebula/bin/onevm:276:in `each'<br>    from /OVS/opennebula/bin/onevm:276:in `list_vm_history_all'<br>    from /OVS/opennebula/bin/onevm:450<br> </blockquote><br>Hope this helps...<br><br><div class="gmail_quote">On Thu, Jun 26, 2008 at 6:37 PM, Alvaro Canales <<a href="mailto:accleo@gmail.com">accleo@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hello again!<br><br>After adding some hosts with the "onehost add..."  command and successfully listing them, I submit an image this way:<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"> onevm submit images/myfirstVM.template<br clear="all">ID: 1<br></blockquote>I think this is the expected output. <br><br>The problem comes when trying to do "onevm list", where I get this error:<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"> onevm list<br>/opt/nebula/ONE/lib/ruby/one.rb:340:in `get_history_host': undefined method `[]' for nil:NilClass (NoMethodError)<br>    from /opt/nebula/ONE/lib/ruby/one.rb:316:in `get_vms'<br>    from /opt/nebula/ONE/lib/ruby/one.rb:315:in `each'<br>     from /opt/nebula/ONE/lib/ruby/one.rb:315:in `get_vms'<br>    from /opt/nebula/ONE/bin/onevm:184:in `list_short'<br>    from /opt/nebula/ONE/bin/onevm:422<br></blockquote><br>Can you spot the error? I guess get_history_host doesn't return what is expected...<br> Thank you for your help and attention! ;)<br><font color="#888888"><br>-- <br>Álvaro </font></blockquote></div><br><br clear="all"><br>-- <br>Álvaro _______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>http://lists.opennebula.org/listinfo.cgi/users-opennebula.org<br></blockquote></div><br></body></html>