Feature #591
DB Versioning and migration tool
Status: | Closed | Start date: | 04/26/2011 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Carlos Martín | % Done: | 0% | |
Category: | Core & System | |||
Target version: | Release 3.0 | |||
Resolution: | fixed | Pull request: |
Description
The DB will have a new table with information about the OpenNebula version it is ready for, and possibly other control information.
The core should refuse to start until the DB is updated to the right version.
In addition, a DB migration tool will be created.
Associated revisions
Feature #591: New onedb command. Core detects wrong DB versions.
Feature #591: Better core bootstrap. Upgrade process done. New functionality for onedb
Feature #591: Delete cluster_pool, update group_pool schema
Feature #591: add tests for onedb upgrade. For now, only the DB schema is compared
Feature #591: Fix wrong CDATA text element
Feature #591: Test for onedb upgrade now checks the objects loaded from an upgraded DB.
History
#1 Updated by Carlos Martín about 10 years ago
Needs testing and documentation.
#2 Updated by Damien Raude-Morvan about 10 years ago
Hi,
I don't know what's current status of this feature request, so please excuse me if my remarks are already specified/coded/tested :)
JFTR, I think you should also pay attention to :
- allow your DB migration tool to work on any database supported by OpenNebula (sqlite, mysql, maybe postresql soon #332 :)
- work from command-line (hint: called automaticaly by Debian maintainer-script)
- allow upgrade from previous versions (see my previous request for #181 and #415)
Regards,
#3 Updated by Carlos Martín about 10 years ago
Hi Damien, thank you for your comments.
Looks like we are in the right path:
- allow your DB migration tool to work on any database supported by OpenNebula (sqlite, mysql, maybe postresql soon #332 :)
The command works with sqlite and mysql, reading the connection parameters from the current installation's oned.conf, or from command line options.
- work from command-line (hint: called automaticaly by Debian maintainer-script)
That's a must for us, the cli comes first :)
- allow upgrade from previous versions (see my previous request for #181 and #415)
It will update databases created by 2.x versions.
Cheers
#4 Updated by Ruben S. Montero almost 10 years ago
- Status changed from New to Closed
- Resolution set to fixed