[DRBD-user] Error upgrading linstor controller 0.7.5 > 0.9.5

Doug Dimick doug+drbd at dimick.net
Mon Apr 8 21:14:48 CEST 2019


I failed to upgrade this morning from 0.7.5
(d74305b420fdc878182afa162378a317e6a4a3b9) to 0.9.5
(8f1f42f256776eb30161ee29945268c3faf71db9). Are there intermediary steps 
I
should be taking manually to migrate the database?

LINSTOR, Module Controller
Version:            0.9.5 (8f1f42f256776eb30161ee29945268c3faf71db9)
Build time:         2019-04-08T13:34:07+00:00
Java Version:       1.8
Java VM:            Oracle Corporation, Version 25.212-b01
Operating system:   Linux, Version 4.15.18-11-pve
Environment:        amd64, 1 processors, 11685 MiB memory reserved for
allocations

System components initialization in progress

08:52:19.848 [main] INFO  LINSTOR/Controller - Log directory set to:
'/var/log/linstor-controller'
08:52:19.851 [Main] INFO  LINSTOR/Controller - Loading API classes
started.
08:52:21.433 [Main] INFO  LINSTOR/Controller - API classes loading
finished: 1569ms
08:52:21.433 [Main] INFO  LINSTOR/Controller - Dependency injection
started.
08:52:23.856 [Main] INFO  LINSTOR/Controller - Dependency injection
finished: 2423ms
08:52:24.396 [Main] INFO  LINSTOR/Controller - Initializing 
authentication
subsystem
08:52:24.586 [Main] INFO  LINSTOR/Controller - Initializing the database
connection pool
08:52:25.292 [Main] INFO
org.flywaydb.core.internal.license.VersionPrinter - Flyway Community
Edition 5.2.4 by Boxfuse
08:52:25.319 [Main] INFO
org.flywaydb.core.internal.database.DatabaseFactory - Database:
jdbc:h2:/var/lib/linstor/linstordb (H2 1.4)
08:52:25.541 [Main] INFO  org.flywaydb.core.internal.command.DbValidate 
-
Successfully validated 20 migrations (execution time 00:00.101s)
08:52:25.662 [Main] INFO  org.flywaydb.core.internal.command.DbMigrate -
Current version of schema "LINSTOR": 2018.12.13.14.32
08:52:25.662 [Main] WARN  org.flywaydb.core.internal.command.DbMigrate -
outOfOrder mode is active. Migration of schema "LINSTOR" may not be
reproducible.
08:52:25.664 [Main] INFO  org.flywaydb.core.internal.command.DbMigrate -
Migrating schema "LINSTOR" to version 2019.01.17.10.48 - Change 
controller
props instance name
08:52:25.856 [Main] INFO  org.flywaydb.core.internal.command.DbMigrate -
Migrating schema "LINSTOR" to version 2019.02.20.09.26 - Add tables for
layer data and move old layer-specifc data to new tables (drbd-port,
-minor,...)
08:52:26.407 [Main] INFO  org.flywaydb.core.internal.command.DbMigrate -
Migrating schema "LINSTOR" to version 2019.03.06.09.10 - Add new column
layer_stack to resource-definition and snapshots
08:52:26.692 [Main] INFO  org.flywaydb.core.internal.command.DbMigrate -
Migrating schema "LINSTOR" to version 2019.03.06.14.00 - Add
RESOURCE_EXTERNAL_NAME column to RESOURCE_DEFINITIONS
08:52:26.836 [Main] INFO  org.flywaydb.core.internal.command.DbMigrate -
Migrating schema "LINSTOR" to version 2019.03.14.09.10 - Converting
string-based storageDriver to enum-based providerKind
08:52:26.888 [Main] INFO  org.flywaydb.core.internal.command.DbMigrate -
Migrating schema "LINSTOR" to version 2019.03.15.07.00 - Fix lost 
database
constraints
Error:
ALTER TABLE LAYER_DRBD_VOLUME_DEFINITIONS DROP CONSTRAINT FK_LDRD_VD
08:52:27.012 [Main] INFO  org.flywaydb.core.internal.command.DbMigrate -
Migrating schema "LINSTOR" to version 2019.04.04.09.53 - Fixing 
incorrect
Migration LayerData
08:52:27.053 [Main] INFO  org.flywaydb.core.internal.command.DbMigrate -
Successfully applied 7 migrations to schema "LINSTOR" (execution time
00:01.475s)
08:52:27.055 [Main] INFO  LINSTOR/Controller - Loading security objects
08:52:27.084 [Main] INFO  LINSTOR/Controller - Current security level is
NO_SECURITY
08:52:27.102 [Main] INFO  LINSTOR/Controller - Core objects load from
database is in progress
08:52:27.413 [Main] INFO  LINSTOR/Controller - Core objects load from
database completed
08:52:27.424 [Main] ERROR LINSTOR/Controller - Problem of type
'java.lang.NullPointerException' logged to report number
5CAB6E33-00000-000000

08:52:27.450 [Thread-1] INFO  LINSTOR/Controller - Shutdown in progress
08:52:27.451 [Thread-1] INFO  LINSTOR/Controller - Shutting down service
instance 'DatabaseService' of type DatabaseService
08:52:27.452 [Thread-1] INFO  LINSTOR/Controller - Waiting for service
instance 'DatabaseService' to complete shutdown
08:52:27.452 [Thread-1] INFO  LINSTOR/Controller - Shutting down service
instance 'TaskScheduleService' of type TaskScheduleService
08:52:27.452 [Thread-1] INFO  LINSTOR/Controller - Waiting for service
instance 'TaskScheduleService' to complete shutdown
08:52:27.452 [Thread-1] INFO  LINSTOR/Controller - Shutting down service
instance 'TimerEventService' of type TimerEventService
08:52:27.452 [Thread-1] INFO  LINSTOR/Controller - Waiting for service
instance 'TimerEventService' to complete shutdown
08:52:27.452 [Thread-1] INFO  LINSTOR/Controller - Shutdown complete


ERROR REPORT 5CAB6E33-00000-000000

============================================================

Application:                        LINBITR LINSTOR
Module:                             Controller
Version:                            0.9.5
Build ID:
8f1f42f256776eb30161ee29945268c3faf71db9
Build time:                         2019-04-08T13:34:07+00:00
Error time:                         2019-04-08 08:52:27
Node:                               linstor-controller

============================================================

Reported error:
===============

Category:                           RuntimeException
Class name:                         NullPointerException
Class canonical name:               java.lang.NullPointerException
Generated at:                       Method 'allocate', Source file
'DbNumberPoolInitializer.java', Line #155


Call backtrace:

     Method                                   Native Class:Line number
     allocate                                 N
com.linbit.linstor.numberpool.DbNumberPoolInitializer:155
     initializeLayerRscIdPool                 N
com.linbit.linstor.numberpool.DbNumberPoolInitializer:139
     initialize                               N
com.linbit.linstor.numberpool.DbNumberPoolInitializer:61
     start                                    N
com.linbit.linstor.core.Controller:217
     main                                     N
com.linbit.linstor.core.Controller:447


END OF ERROR REPORT.


More information about the drbd-user mailing list