Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-10084

Backward compatibility: Slave hosts (default host-slave.xml from EAP 7.0.0) are not able to connect to master host (default host-master.xml from EAP 7.0.0)

XMLWordPrintable

    • Regression
    • Not Required

      Description of problem:
      JBEAP-9655 was not properly fixed for backward compatibility

      Slave hosts with default host-slave.xml configuration from EAP 7.0.0 are not able to connect to master host with default host-master.xml configuration from EAP 7.0.0

      Steps to Reproduce:

      1. # set path to EAP 7.0, example:
        • EAP_7_0_0=/home/mkopecky/playground/eap/7.0.0/jboss-eap-7.0
      2. rm domain/configuration/host.xml domain/configuration/domain.xml
      3. rm domain/configuration/host-master.xml domain/configuration/host-slave.xml
      4. cp ${EAP_7_0_0}/domain/configuration/host-master.xml domain/configuration/
      5. cp ${EAP_7_0_0}/domain/configuration/host-slave.xml domain/configuration/
      6. cp ${EAP_7_0_0}/domain/configuration/host.xml domain/configuration/
      7. cp ${EAP_7_0_0}/domain/configuration/domain.xml domain/configuration/
      8. ./bin/domain.sh --host-config=host-master.xml
      9. ./bin/domain.sh --host-config=host-slave.xml -Djboss.domain.master.address=localhost -Djboss.management.native.port=1111

      Actual results:

      [mkopecky@dhcp-10-40-4-182 jboss-eap-7.1]$ ./bin/domain.sh --host-config=host-slave.xml -Djboss.domain.master.address=localhost -Djboss.management.native.port=1111
      =========================================================================
      
        JBoss Bootstrap Environment
      
        JBOSS_HOME: /home/mkopecky/playground/eap/7.1.0.DR15/jboss-eap-7.1
      
        JAVA: java
      
        JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
      
      =========================================================================
      
      11:53:44,291 INFO  [org.jboss.modules] (main) JBoss Modules version 1.6.0.Beta6-redhat-1
      11:53:44,427 INFO  [org.jboss.as.process.Host Controller.status] (main) WFLYPC0018: Starting process 'Host Controller'
      [Host Controller] 11:53:44,711 INFO  [org.jboss.modules] (main) JBoss Modules version 1.6.0.Beta6-redhat-1
      [Host Controller] 11:53:44,866 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.7.SP1-redhat-1
      [Host Controller] 11:53:44,904 INFO  [org.jboss.as] (MSC service thread 1-7) WFLYSRV0049: JBoss EAP 7.1.0.Alpha1 (WildFly Core 3.0.0.Beta10-redhat-1) starting
      [Host Controller] 11:53:45,268 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/host=dhcp-10-40-4-182.brq.redhat.com/core-service=management/management-interface=native-interface' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
      [Host Controller] 11:53:45,270 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
      [Host Controller] 11:53:45,346 INFO  [org.xnio] (MSC service thread 1-8) XNIO version 3.5.0.Beta2-redhat-1
      [Host Controller] 11:53:45,351 INFO  [org.xnio.nio] (MSC service thread 1-8) XNIO NIO Implementation Version 3.5.0.Beta2-redhat-1
      [Host Controller] 11:53:45,363 INFO  [org.jboss.as.patching] (MSC service thread 1-3) WFLYPAT0050: JBoss EAP cumulative patch ID is: base, one-off patches include: none
      [Host Controller] 11:53:45,403 INFO  [org.jboss.remoting] (MSC service thread 1-5) JBoss Remoting version 5.0.0.Beta19-redhat-1
      [Host Controller] 11:53:45,428 INFO  [org.jboss.as.remoting] (MSC service thread 1-5) WFLYRMT0001: Listening on 127.0.0.1:1111
      [Host Controller] 11:53:45,456 INFO  [org.wildfly.security] (Controller Boot Thread) ELY00001: WildFly Elytron version 1.1.0.Beta31-SP1-redhat-1
      [Host Controller] 11:53:45,636 WARN  [org.jboss.as.host.controller] (Controller Boot Thread) WFLYHC0001: Could not connect to remote domain controller remote://localhost:9999: java.lang.IllegalStateException: WFLYHC0043: Unable to connect due to authentication failure.
      [Host Controller] 	at org.jboss.as.host.controller.RemoteDomainConnectionService.rethrowIrrecoverableConnectionFailures(RemoteDomainConnectionService.java:674)
      [Host Controller] 	at org.jboss.as.host.controller.RemoteDomainConnectionService.register(RemoteDomainConnectionService.java:293)
      [Host Controller] 	at org.jboss.as.host.controller.DomainModelControllerService.connectToDomainMaster(DomainModelControllerService.java:918)
      [Host Controller] 	at org.jboss.as.host.controller.DomainModelControllerService.boot(DomainModelControllerService.java:672)
      [Host Controller] 	at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:337)
      [Host Controller] 	at java.lang.Thread.run(Thread.java:745)
      [Host Controller] Caused by: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed:
      [Host Controller]    JBOSS-LOCAL-USER: javax.security.sasl.SaslException: Server rejected authentication
      [Host Controller]    DIGEST-MD5: javax.security.sasl.SaslException: Server rejected authentication
      [Host Controller] 	at org.jboss.remoting3.remote.ClientConnectionOpenListener.allMechanismsFailed(ClientConnectionOpenListener.java:108)
      [Host Controller] 	at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:395)
      [Host Controller] 	at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:241)
      [Host Controller] 	at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
      [Host Controller] 	at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
      [Host Controller] 	at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:89)
      [Host Controller] 	at org.xnio.nio.WorkerThread.run(WorkerThread.java:567)
      [Host Controller] 	at ...asynchronous invocation...(Unknown Source)
      [Host Controller] 	at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:465)
      [Host Controller] 	at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:427)
      [Host Controller] 	at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:415)
      [Host Controller] 	at org.jboss.as.protocol.ProtocolConnectionUtils.connect(ProtocolConnectionUtils.java:177)
      [Host Controller] 	at org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:113)
      [Host Controller] 	at org.jboss.as.host.controller.RemoteDomainConnection.lambda$openConnection$0(RemoteDomainConnection.java:223)
      [Host Controller] 	at org.wildfly.common.context.Contextual.runExceptionAction(Contextual.java:108)
      [Host Controller] 	at org.wildfly.security.auth.client.AuthenticationContext.run(AuthenticationContext.java:296)
      [Host Controller] 	at org.jboss.as.host.controller.RemoteDomainConnection.openConnection(RemoteDomainConnection.java:223)
      [Host Controller] 	at org.jboss.as.host.controller.RemoteDomainConnection$InitialConnectTask.connect(RemoteDomainConnection.java:592)
      [Host Controller] 	at org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:70)
      [Host Controller] 	at org.jboss.as.host.controller.RemoteDomainConnection.connect(RemoteDomainConnection.java:147)
      [Host Controller] 	at org.jboss.as.host.controller.RemoteDomainConnectionService.register(RemoteDomainConnectionService.java:288)
      [Host Controller] 	... 4 more
      [Host Controller] 	Suppressed: javax.security.sasl.SaslException: Server rejected authentication
      [Host Controller] 		at org.jboss.remoting3.remote.ClientConnectionOpenListener$Authentication.handleEvent(ClientConnectionOpenListener.java:716)
      [Host Controller] 		at org.jboss.remoting3.remote.ClientConnectionOpenListener$Authentication.handleEvent(ClientConnectionOpenListener.java:560)
      [Host Controller] 		at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
      [Host Controller] 		at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
      [Host Controller] 		at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:89)
      [Host Controller] 		at org.xnio.nio.WorkerThread.run(WorkerThread.java:567)
      [Host Controller] 	Suppressed: javax.security.sasl.SaslException: Server rejected authentication
      [Host Controller] 		at org.jboss.remoting3.remote.ClientConnectionOpenListener$Authentication.handleEvent(ClientConnectionOpenListener.java:716)
      [Host Controller] 		at org.jboss.remoting3.remote.ClientConnectionOpenListener$Authentication.handleEvent(ClientConnectionOpenListener.java:560)
      [Host Controller] 		at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
      [Host Controller] 		at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
      [Host Controller] 		at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:89)
      [Host Controller] 		at org.xnio.nio.WorkerThread.run(WorkerThread.java:567)
      [Host Controller] 
      [Host Controller] 11:53:45,637 WARN  [org.jboss.as.host.controller] (Controller Boot Thread) WFLYHC0147: No domain controller discovery options remain.
      [Host Controller] 11:53:45,637 ERROR [org.jboss.as.host.controller] (Controller Boot Thread) WFLYHC0002: Could not connect to master. Error was: java.lang.IllegalStateException: WFLYHC0120: Tried all domain controller discovery option(s) but unable to connect
      [Host Controller] 11:53:45,638 FATAL [org.jboss.as.host.controller] (Controller Boot Thread) WFLYHC0178: Aborting with exit code 99
      [Host Controller] 11:53:45,645 INFO  [org.jboss.as] (MSC service thread 1-6) WFLYSRV0050: JBoss EAP 7.1.0.Alpha1 (WildFly Core 3.0.0.Beta10-redhat-1) stopped in 5ms
      [Host Controller] 
      11:53:45,965 INFO  [org.jboss.as.process.Host Controller.status] (reaper for Host Controller) WFLYPC0011: Process 'Host Controller' finished with an exit status of 99
      11:53:45,966 INFO  [org.jboss.as.process] (Thread-8) WFLYPC0017: Shutting down process controller
      11:53:45,967 INFO  [org.jboss.as.process] (Thread-8) WFLYPC0016: All processes finished; exiting
      [mkopecky@dhcp-10-40-4-182 jboss-eap-7.1]$
      

              bstansbe@redhat.com Brian Stansberry
              mkopecky@redhat.com Marek Kopecky
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: