Hi Carlos,

I was able solve the "oneimage show" problem. I had to manually modify the database to reflect changes to the image_pool table. I had to insert the <SIZE> element into the body column, and retrieve the image sizes using du -m. Good thing we only a few images in our repository (around 10). :D

Thanks!
Bert.

P.S.
Just to clear things out, does the sequel version affect the migration scripts? I'm using sequel 3.29.0.


On 11/11/2011 02:36 PM, MENDOZA, John Robert T. wrote:
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> | [email protected] <mailto:[email protected]> | @OpenNebula <http://twitter.com/opennebula>


On Thu, Nov 3, 2011 at 11:05 AM, MENDOZA, John Robert T. <[email protected] <mailto:[email protected]>> 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
    [email protected] <mailto:[email protected]>
    http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to