mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-09 14:03:20 +09:00
M #-: error message if db upgrade wasn't successful (#34)
(cherry picked from commit 42c8c513e9)
This commit is contained in:
1 parent
924dc5543a
commit
b73f063bc9
1 file changed
+15
-1
+15
-1
@@ -305,8 +305,22 @@ class OneDB
|
||||
puts
|
||||
puts "Total time: #{"%0.02f" % (timeb - timea).to_s}s" if ops[:verbose]
|
||||
|
||||
return 0
|
||||
db_version = @backend.read_db_version
|
||||
local = db_version[:local_version]
|
||||
shared = db_version[:version]
|
||||
|
||||
return 0 if local == OneDBBacKEnd::LATEST_DB_VERSION &&
|
||||
shared == OneDBBacKEnd::LATEST_DB_VERSION
|
||||
|
||||
STDERR.puts 'ERROR: Database upgrade to the latest versions ' \
|
||||
"(local #{local}, shared #{shared})\nwasn't successful " \
|
||||
'due to missing migration descriptors. Migrators ' \
|
||||
"are\nprovided as part of Enterprise Edition for " \
|
||||
"customers with active subscription.\nFor community " \
|
||||
'with non-commercial deployments they are provided ' \
|
||||
"via a\ndedicated migration package, which must be " \
|
||||
'obtained separately.'
|
||||
0
|
||||
rescue Exception => e
|
||||
puts
|
||||
puts e.message
|
||||
|
||||
Reference in new issue
Block a user