[one-users] oneimage show does not work

MENDOZA, John Robert T. bert at asti.dost.gov.ph
Thu Nov 10 22:36:18 PST 2011


Hi Carlos,

Apologies for the late response. During the migration, the script 
"/usr/lib/one/ruby/onedb/2.9.80_to_2.9.85.rb" produces a sqlite related 
error. We figured that the script was unable to write into the database. 
I had to comment out Line 51-52 of the said script. I also had to do 
this for the 2.9.90_to_3.0.0.rb script. Commenting out line 40-41 and 
manually editing the tm_mad elements from the database to reflect the 
new schema of OpenNebula 3.0 (tm_nfs -> tm_shared). So far, we're now 
running OpenNebula 3.0 but can't query information regarding existing VM 
images thus we cannot create new VM instances. Inspecting the new 
database schema, I'm missing the value for the "SIZE" element.

As for issuing "oneimage list -x", it outputs the resources in XML 
format, as expected. :)

Thanks,
Bert.



On 11/05/2011 12:26 AM, Carlos Martín Sánchez wrote:
> Hi Bert,
>
> Maybe the migration process failed and the XML for the image objects 
> is missing some new mandatory elements.
>
> What do you mean by "after much tinkering with the database migration 
> codes"? Did you find any bug? How did you solve it?
>
> Can you provide any error messages from /var/log/one/oned.log ?
> I would also find useful the output of "oneimage list -x"
>
> Regards.
> --
> Carlos Martín, MSc
> Project Engineer
> OpenNebula - The Open Source Toolkit for Data Center Virtualization
> www.OpenNebula.org <http://www.OpenNebula.org> | 
> cmartin at opennebula.org <mailto:cmartin at opennebula.org> | @OpenNebula 
> <http://twitter.com/opennebula>
>
>
> On Thu, Nov 3, 2011 at 11:05 AM, MENDOZA, John Robert T. 
> <bert at asti.dost.gov.ph <mailto:bert at asti.dost.gov.ph>> wrote:
>
>     Hi all,
>
>     I have recently upgraded our OpenNebula deployment from 2.2.1 to
>     3.0. I've successfully migrated the database (after much tinkering
>     with the database migration codes.) and have started one daemon.
>     My problem is, whenever I'm issuing the command oneimage show
>     <some_image_id>, it prints this error "[ImageInfo] Error getting
>     image [some_image_id]." Also, in sunstone, whenever I'm selecting
>     one image from the image pool, it outputs an error about the
>     method "ImageInfo". Our current setup is:
>
>     OS: CentOS 5.6
>     Ruby: ruby 1.8.6 (2010-02-05 patchlevel 399) [x86_64-linux]
>     DB:  Sqlite
>
>     Is "oneimage show" broken?
>
>     Thanks,
>     Bert
>
>     _______________________________________________
>     Users mailing list
>     Users at lists.opennebula.org <mailto: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/20111111/a0976c1b/attachment-0003.htm>


More information about the Users mailing list