Hi all
We found a database issue upgrading the current ONE 4.14 beta1 version to 4.14 beta 2, if we execute onedb upgrade we get this message:
$ onedb upgrade -v -S localhost -u oneadmin -p xxxxxxxxxxx -d opennebula
Version read:
Shared tables 4.11.80 : Database migrated from 4.6.0 to 4.11.80 (OpenNebula 4.11.80) by onedb command.
Local tables 4.13.80 : Database migrated from 4.11.80 to 4.13.80 (OpenNebula 4.13.80) by onedb command.
MySQL dump stored in /var/lib/one/mysql_localhost_opennebula_2015-9-22_10:29:0.sql
Use ‘onedb restore’ or restore the DB using the mysql command:
mysql -u user -h server -P port db_name < backup_file
Running migrators for shared tables
Database already uses version 4.11.80
Running migrators for local tables
Running migrator /usr/lib/one/ruby/onedb/local/4.13.80_to_4.13.85.rb
Done in 0.21s
But if we try to run oned service the db version is not changed and the service is not started correctly:
$ oned start
$ Database version mismatch. Check oned.log.
And from our logs:
Tue Sep 22 10:47:11 2015 [Z0][ONE][I]: Checking database version.
Tue Sep 22 10:47:11 2015 [Z0][ONE][E]: Database version mismatch ( local_db_versioning). Installed OpenNebula 4.13.85 needs DB version ‘4.13.85’, and existing DB version is ‘4.13.80’.
Tue Sep 22 10:47:11 2015 [Z0][ONE][E]: Use onedb to upgrade DB.
and the onedb fsck output seems to be ok:
$ onedb fsck -S localhost -u oneadmin -p xxxxxxxxxxxxx -d opennebula
MySQL dump stored in /var/lib/one/mysql_localhost_opennebula_2015-9-22_10:55:12.sql
Use ‘onedb restore’ or restore the DB using the mysql command:
mysql -u user -h server -P port db_name < backup_file
Total errors found: 0
Total errors repaired: 0
Total errors unrepaired: 0
A copy of this output was stored in /var/log/one/onedb-fsck.log
Is this a known issue? or something is missing in the documentation?
We have installed opennebula-server-4.13.85-2.x86_64 from opennebula repo.
Thanks in advance
Alvaro