Bug #871
onedb reports locked table while running upgrade from 2.0 to 3.0 and fails
Status: | Closed | Start date: | 10/05/2011 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Carlos Martín | % Done: | 0% | |
Category: | Core & System | |||
Target version: | Release 3.2 - S0 | |||
Resolution: | fixed | Pull request: | ||
Affected Versions: | OpenNebula 3.0 |
Description
error message:
[oneadmin@cloudmgmt onedb]$ onedb upgrade -v -f
Version read:
2.0 : Could not read any previous db_versioning data, assuming it is an OpenNebula 2.0 or 2.2 DB.
Sqlite database backup stored in /var/lib/one/one.db.bck
Use 'onedb restore' or copy the file back to restore the DB.
> Running migrator /usr/lib/one/ruby/onedb/2.0_to_2.9.80.rb
SQLite3::SQLException: table host_shares already exists
Associated revisions
Bug #871: Avoid locked tables in onedb upgrade. Thanks to jan horacek <jahor@jhr.cz>
Bug #871: Avoid locked tables in onedb upgrade. Thanks to jan horacek <jahor@jhr.cz>
History
#1 Updated by Jan Horacek almost 10 years ago
after fix (diff attached) it completed without error:
[oneadmin@cloudmgmt onedb]$ onedb upgrade -v -f
Version read:
2.0 : Could not read any previous db_versioning data, assuming it is an OpenNebula 2.0 or 2.2 DB.
Sqlite database backup stored in /var/lib/one/one.db.bck
Use 'onedb restore' or copy the file back to restore the DB.
> Running migrator /usr/lib/one/ruby/onedb/2.0_to_2.9.80.rb
> Done
> Running migrator /usr/lib/one/ruby/onedb/2.9.80_to_2.9.85.rb
> Done
> Running migrator /usr/lib/one/ruby/onedb/2.9.85_to_2.9.90.rb
> Done
> Running migrator /usr/lib/one/ruby/onedb/2.9.90_to_3.0.0.rb
> Done
Database migrated from 2.0 to 3.0.0 (OpenNebula 3.0.0) by onedb command.
#2 Updated by Ruben S. Montero almost 10 years ago
- Target version set to Release 3.4
#3 Updated by Ruben S. Montero almost 10 years ago
- Target version changed from Release 3.4 to Release 3.2 - S0
#4 Updated by Ruben S. Montero almost 10 years ago
- Category set to Core & System
#5 Updated by Ruben S. Montero over 9 years ago
- Status changed from New to Closed
- Assignee set to Carlos Martín
- Resolution set to fixed
Now in master