]
Brian Stansberry reassigned WFCORE-317:
---------------------------------------
Assignee: luck3y
Ken, I'm assigning this as one of several in the general area of how various Host
Controllers interact. We should look at them in total and come up with a strategy, not do
them piecemeal.
Failed to start server when -backup -cached-dc are used together
----------------------------------------------------------------
Key: WFCORE-317
URL:
https://issues.jboss.org/browse/WFCORE-317
Project: WildFly Core
Issue Type: Bug
Components: Domain Management
Reporter: Rok Bertoncelj
Assignee: luck3y
When starting a slave host controller with *-backup -cached-dc* at the same time, the
servers fail to start. Tested with 7.1.1.Final and 7.1.2.Final-SNAPSHOT today.
Also tried starting only with -backup first (starts OK) and then for the second time with
both options, to make sure that cached configuration is already present if it would help,
but it didn't.
Host controller should determine availability of domain controller and either backup
domain configuration or use the cached one if domain controller is unavailable.
{code}
10:35:36,093 INFO [org.jboss.modules] (main) JBoss Modules version 1.1.1.GA
10:35:36,176 INFO [org.jboss.msc] (main) JBoss MSC version 1.0.2.GA
10:35:36,225 INFO [org.jboss.as] (MSC service thread 1-3) JBAS015899: JBoss AS
7.1.2.Final-SNAPSHOT "Brontes" starting
10:35:36,612 WARN [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010930:
Cannot load the domain model using using --backup
10:35:36,617 INFO [org.xnio] (MSC service thread 1-6) XNIO Version 3.0.3.GA
10:35:36,631 INFO [org.xnio.nio] (MSC service thread 1-6) XNIO NIO Implementation
Version 3.0.3.GA
10:35:36,649 INFO [org.jboss.remoting] (MSC service thread 1-6) JBoss Remoting version
3.2.4.GA
10:35:36,970 ERROR [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010907:
Failed to start server (server-one): java.util.NoSuchElementException: No child
'server-group' exists
at org.jboss.dmr.ModelValue.requireChild(ModelValue.java:362)
[jboss-dmr-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.dmr.ObjectModelValue.requireChild(ObjectModelValue.java:298)
[jboss-dmr-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.dmr.ModelNode.require(ModelNode.java:812)
[jboss-dmr-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.host.controller.ModelCombiner.<init>(ModelCombiner.java:139)
[jboss-as-host-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.host.controller.ServerInventoryImpl.createManagedServer(ServerInventoryImpl.java:474)
[jboss-as-host-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.host.controller.ServerInventoryImpl.startServer(ServerInventoryImpl.java:160)
[jboss-as-host-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.host.controller.ServerInventoryImpl.startServer(ServerInventoryImpl.java:150)
[jboss-as-host-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.host.controller.DomainModelControllerService$DelegatingServerInventory.startServer(DomainModelControllerService.java:521)
[jboss-as-host-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.host.controller.operations.StartServersHandler.cleanStartServers(StartServersHandler.java:114)
[jboss-as-host-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.host.controller.operations.StartServersHandler.access$300(StartServersHandler.java:50)
[jboss-as-host-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.host.controller.operations.StartServersHandler$1.execute(StartServersHandler.java:94)
[jboss-as-host-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:385)
[jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:272)
[jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:200)
[jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.domain.controller.operations.coordination.PrepareStepHandler.executeDirect(PrepareStepHandler.java:122)
[jboss-as-host-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.domain.controller.operations.coordination.PrepareStepHandler.execute(PrepareStepHandler.java:74)
[jboss-as-host-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:385)
[jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:272)
[jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:200)
[jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:121)
[jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.host.controller.DomainModelControllerService.startServers(DomainModelControllerService.java:443)
[jboss-as-host-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.host.controller.DomainModelControllerService.boot(DomainModelControllerService.java:403)
[jboss-as-host-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:155)
[jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_30]
10:35:36,989 INFO [org.jboss.as.remoting] (MSC service thread 1-8) JBAS017100: Listening
on /127.0.0.1:29999
10:35:37,015 ERROR [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010907:
Failed to start server (server-two): java.util.NoSuchElementException: No child
'server-group' exists
at org.jboss.dmr.ModelValue.requireChild(ModelValue.java:362)
[jboss-dmr-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.dmr.ObjectModelValue.requireChild(ObjectModelValue.java:298)
[jboss-dmr-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.dmr.ModelNode.require(ModelNode.java:812)
[jboss-dmr-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.host.controller.ModelCombiner.<init>(ModelCombiner.java:139)
[jboss-as-host-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.host.controller.ServerInventoryImpl.createManagedServer(ServerInventoryImpl.java:474)
[jboss-as-host-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.host.controller.ServerInventoryImpl.startServer(ServerInventoryImpl.java:160)
[jboss-as-host-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.host.controller.ServerInventoryImpl.startServer(ServerInventoryImpl.java:150)
[jboss-as-host-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.host.controller.DomainModelControllerService$DelegatingServerInventory.startServer(DomainModelControllerService.java:521)
[jboss-as-host-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.host.controller.operations.StartServersHandler.cleanStartServers(StartServersHandler.java:114)
[jboss-as-host-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.host.controller.operations.StartServersHandler.access$300(StartServersHandler.java:50)
[jboss-as-host-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.host.controller.operations.StartServersHandler$1.execute(StartServersHandler.java:94)
[jboss-as-host-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:385)
[jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:272)
[jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:200)
[jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.domain.controller.operations.coordination.PrepareStepHandler.executeDirect(PrepareStepHandler.java:122)
[jboss-as-host-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.domain.controller.operations.coordination.PrepareStepHandler.execute(PrepareStepHandler.java:74)
[jboss-as-host-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:385)
[jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:272)
[jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:200)
[jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:121)
[jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.host.controller.DomainModelControllerService.startServers(DomainModelControllerService.java:443)
[jboss-as-host-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.host.controller.DomainModelControllerService.boot(DomainModelControllerService.java:403)
[jboss-as-host-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at
org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:155)
[jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_30]
10:35:37,082 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS
7.1.2.Final-SNAPSHOT "Brontes" (Host Controller) started in 1249ms - Started 11
of 11 services (0 services are passive or on-demand)
{code}