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

(8.0.z) Configuration migration to EAP 8 fails if jgroup authentication is configured in EAP 7.4.x configuration files.

XMLWordPrintable

      Migration from EAP 7.4 to 8.0 failed if jgroup authentication is configured in EAP 7.4 cluster enabled profiles.

      2024-02-19 22:01:42,576 ERROR [controller] /profile=ha/subsystem=jgroups/stack=udp/protocol=AUTH/token=plain -- WFLYCTL0368: Cannot remove capability 'org.wildfly.clustering.jgroups.auth-token.udp' from context 'profile=ha' as it is required by other capabilities:
      capability 'org.wildfly.clustering.jgroups.protocol.udp.AUTH' requires it for address '/profile=ha/subsystem=jgroups/stack=udp/protocol=AUTH'
      2024-02-19 22:01:42,592 ERROR [management-operation] WFLYCTL0008: Failed to persist configuration change: org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0084: Failed to marshal configuration
          at org.jboss.as.controller@21.0.5.Final-redhat-00001//org.jboss.as.controller.persistence.AbstractFilePersistenceResource.<init>(AbstractFilePersistenceResource.java:53)
          at org.jboss.as.controller@21.0.5.Final-redhat-00001//org.jboss.as.controller.persistence.ConfigurationFilePersistenceResource.<init>(ConfigurationFilePersistenceResource.java:46)
      . . .
      Caused by: java.lang.IllegalArgumentException
          at org.jboss.dmr.ModelValue.asProperty(ModelValue.java:99)
          at org.jboss.dmr.ModelNode.asProperty(ModelNode.java:517)
      

      Steps to replicate issue:

      1. Add 'auth-protocol' tag in vanilla EAP 7.4.x(domain.xml) under jgroups subsystem to configure authentication in jgroups:

      <subsystem xmlns="urn:jboss:domain:jgroups:8.0">
       . . .. 
       <stacks>
       <stack name="udp">
          . . . .
         <protocol type="pbcast.STABLE"/>
         <auth-protocol type="AUTH">
           <plain-token>
             <shared-secret-reference clear-text="my_password"/>
           </plain-token>
         </auth-protocol>
        <protocol type="pbcast.GMS"/>

      2. Download EAP 8 migration tool and try migrating EAP 7.4.x configuration to EAP 8.0 installation

      ./jboss-server-migration.sh --source /EAP7/jboss-eap-7.4.6/jboss-eap-7.4 --target /jboss-eap-8.0

      3. Migration will fail with error. Complete migration.log attached.

      Is this a bug or we need any additional configuration for migrating files.

        1. migration.log
          88 kB
          Eduardo Martins

              emartins@redhat.com Eduardo Martins
              emartins@redhat.com Eduardo Martins
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: