Onedb upgrade 5.6 to 5.8 upgrades database to 5.10

Trying to upgrade my opennebula to 5.8.1 when I run onedb upgrade this happens
onedb upgrade 5.8.1 -v -S localhost -u oneadmin -p oneadmin -d opennebula
Version read:
Shared tables 5.2.0 : Database migrated from 4.11.80 to 5.2.0 (OpenNebula 5.2.0) by onedb command.
Local tables 4.90.0 : Database migrated from 4.13.85 to 4.90.0 (OpenNebula 4.90.0) by onedb command.

MySQL dump stored in /var/lib/one/mysql_localhost_opennebula_2019-7-11_10:32:1.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
Running migrator /usr/lib/one/ruby/onedb/shared/5.2.0_to_5.3.80.rb
Done in 0.00s

Running migrator /usr/lib/one/ruby/onedb/shared/5.3.80_to_5.4.0.rb
Done in 0.00s

Running migrator /usr/lib/one/ruby/onedb/shared/5.4.0_to_5.4.1.rb
Done in 0.00s

Running migrator /usr/lib/one/ruby/onedb/shared/5.4.1_to_5.5.80.rb
Done in 0.00s

Running migrator /usr/lib/one/ruby/onedb/shared/5.5.80_to_5.6.0.rb
Done in 0.00s

Running migrator /usr/lib/one/ruby/onedb/shared/5.6.0_to_5.10.0.rb
Done in 0.00s

Database migrated from 5.2.0 to 5.10.0 (OpenNebula 5.9.80) by onedb command.

Running migrators for local tables
Running migrator /usr/lib/one/ruby/onedb/local/4.90.0_to_5.3.80.rb
Old EC2 file not found, skipping EC2 host migration
Done in 31.02s

Running migrator /usr/lib/one/ruby/onedb/local/5.3.80_to_5.4.0.rb
Done in 0.00s

Running migrator /usr/lib/one/ruby/onedb/local/5.4.0_to_5.4.1.rb
Done in 1.93s

Running migrator /usr/lib/one/ruby/onedb/local/5.4.1_to_5.5.80.rb
Old Az file not found, skipping Az host migration
Done in 14.38s

Running migrator /usr/lib/one/ruby/onedb/local/5.5.80_to_5.6.0.rb
Done in 0.00s

Running migrator /usr/lib/one/ruby/onedb/local/5.6.0_to_5.7.80.rb
Done in 94.74s

Running migrator /usr/lib/one/ruby/onedb/local/5.7.80_to_5.8.0.rb
Done in 0.00s

Running migrator /usr/lib/one/ruby/onedb/local/5.8.0_to_5.10.0.rb
Done in 6.07s

Database migrated from 4.90.0 to 5.10.0 (OpenNebula 5.9.80) by onedb command.

then I get a version mismatch when I do “one start” any ideas ho to resolve this

Hello,

where / how did you get these packages? What is the OS? Can you provide metadata from a server package? (rpm -qi opennebula-server or apt-cache show opennebula).

These doesn’t look like a valid official packages for 5.8.1.

Best,
Vlastimil

yeah cause I’m doing from source ’ gentoo user’. Went to github and cloned the source from there and everything works now except sunstone ,but thats a migration to a new server issue not a upgrade issue. Will start a new topic for that