[one-users] Opennebula DB upgrade issues:
abhatnagar at rim.com
Wed Sep 14 07:07:20 PDT 2011
I tried to upgrade Mysql db from V2.0 to 2.9.80 using onedb upgrade -v command for updating db to support Opennebula 3. But ran in into issues described below
Does it need some more mysql component or some fix in onedb upgrade process ?
a. OS : Suse 11Sp1 188.8.131.52-0.7-default
b. Mysql : Server version: 5.0.67 SUSE MySQL RPM
c. Installed mysql components rpm -qa|grep mysql
Following issues were encountered:
1. Following mysql gem install does not resolve all issues to run upgrade, needed to add gem sequel.
gem install mysql2-0.3.7.gem
gem install mysql-2.8.1.gem
./onedb upgrade -v
/usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- sequel (LoadError)
from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /srv/cloud/lib/ruby/onedb/onedb.rb:18:in `require'
from ./onedb:39:in `require'
gem install sequel-3.27.0.gem
Successfully installed sequel-3.27.0
1 gem installed
Installing ri documentation for sequel-3.27.0...
Installing RDoc documentation for sequel-3.27.0...
2. During upgrade it refers to function count which does not exist.
./onedb upgrade -v
2.0 : Could not read any previous db_versioning data, assuming it is an OpenNebula 2.0 or 2.2 DB.
MySQL dump stored in /srv/cloud/var/mysql_localhost_opennebula.sql
Use 'onedb restore' or restore the DB using the mysql command:
mysql -u user -h server -P port db_name < backup_file
> Running migrator /srv/cloud/lib/ruby/onedb/2.0_to_2.9.80.rb
Mysql::Error: FUNCTION opennebula.COUNT does not exist
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users