Tracking issue for the GOSS-Core activation-order fix that resolves the GridAPPS-D develop-tag startup failure reported in GRIDAPPSD/GOSS-GridAPPS-D#1882, plus the follow-up items surfaced during diagnosis and review.
Root cause
Declarative Services activation-order race introduced by the DependencyManager to DS migration (commit d687f17). GridOpticsServer.start() authenticates system/manager against the Shiro realm set before the system-authenticating realm is registered, so startup dies nondeterministically with "Realm UnauthTokenBasedRealm was unable to find account data for system". Machine and startup-path dependent.
Primary fix
Mandatory @Reference(target="(realm.type=system)") gates on the system realm binding (SecurityManager publication + GridOpticsServer activation), plus collapse of the double-writer race to a single realm-set writer in Activator. Reviewed: fail-closed confirmed, no fail-open window, no dropped realm.
Follow-ups (sub-issues)
Items found during diagnosis/review that are out of scope for the primary fix. See the linked sub-issues.
Tracking issue for the GOSS-Core activation-order fix that resolves the GridAPPS-D develop-tag startup failure reported in GRIDAPPSD/GOSS-GridAPPS-D#1882, plus the follow-up items surfaced during diagnosis and review.
Root cause
Declarative Services activation-order race introduced by the DependencyManager to DS migration (commit d687f17).
GridOpticsServer.start()authenticatessystem/manageragainst the Shiro realm set before the system-authenticating realm is registered, so startup dies nondeterministically with "Realm UnauthTokenBasedRealm was unable to find account data for system". Machine and startup-path dependent.Primary fix
Mandatory
@Reference(target="(realm.type=system)")gates on the system realm binding (SecurityManager publication + GridOpticsServer activation), plus collapse of the double-writer race to a single realm-set writer inActivator. Reviewed: fail-closed confirmed, no fail-open window, no dropped realm.Follow-ups (sub-issues)
Items found during diagnosis/review that are out of scope for the primary fix. See the linked sub-issues.