Uploaded image for project: 'JBoss Server Migration Tool'
  1. JBoss Server Migration Tool
  2. CMTOOL-212

Validation error in migration due to removed attributes in transaction subsystem

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 1.0.7.Final, 1.3.0.CR1
    • 1.3.0.Alpha1
    • None
    • None

      EAP6 deprecated attributes path and relative-to of transaction subsystem were removed in EAP7 (Transactions Subsystem Changes) and replaced by object-store-path and object-store-relative-to.

      Running the migration tool against EAP6 server containing these fails with an exception.

      reproduce

      # setup source server
      cat <<EOF > setup.cli
      connect
      /subsystem=transactions:write-attribute(name=path, value=var)
      /subsystem=transactions:write-attribute(name=relative-to, value=jboss.server.data.dir)
      shutdown
      EOF
      
      $JBOSS_EAP_64/bin/standalone.sh &
      # wait for server start 
      $JBOSS_EAP_64/bin/jboss-cli.sh --file=setup.cli
      
      # run migration
      sh $JBOSS_SERVER_MIGRATION/jboss-server-migration.sh -s $JBOSS_EAP_64 -t $JBOSS_EAP_72 -n
      

      actual

      OPVDX001: Validation error in standalone-full-ha.xml ---------------------------
      |
      |  474: 
      |  475: <subsystem xmlns="urn:jboss:domain:transactions:1.5">
      |  476:     <core-environment path="var" relative-to="jboss.server.data.dir">
      |           ^^^^ The attribute 'path' is no longer supported
      |
      |  477:         <process-id>
      |  478:             <uuid></uuid>
      |  479:         </process-id>
      |
      | The primary underlying error message was:
      | > ParseError at [row,col]:[476,13]
      | > Message: WFLYTX0031: The attribute 'path' is no longer supported
      |
      |-------------------------------------------------------------------------------
      2018-07-10 12:00:45,180 ERROR [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0055: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0085: Failed to parse configuration
      	at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:143) [wildfly-controller-6.0.0.Alpha3.jar:6.0.0.Alpha3]
      	at org.jboss.as.server.ServerService.boot(ServerService.java:377) [wildfly-server-6.0.0.Alpha3.jar:6.0.0.Alpha3]
      	at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:372) [wildfly-controller-6.0.0.Alpha3.jar:6.0.0.Alpha3]
      	at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_171]
      ----------------------------------------------------------------------
       Migration Result: FAIL
      ----------------------------------------------------------------------
      

      expected
      path and relative-to attributes are removed from transaction subsystem configuration and their values are now stored in object-store-path and object-store-relative-to.

              emartins@redhat.com Eduardo Martins
              pkremens@redhat.com Petr Kremensky (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: