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

InterfaceManagementUnitTestCase fails on RHEL9

XMLWordPrintable

    • False
    • None
    • False
    • Regression
    • Hide

      Replace 20230626 with whatever version more recent than 2023-06-15 and be sure to run on RHEL9 (we used openjdk 11):

      rm -rdf /tmp/as-testsuite
      mkdir /tmp/as-testsuite
      cd /tmp/as-testsuite
      
      export EAP_TS_MAVEN_REPO_ZIP=jboss-eap-8.0.0.GA-redhat-20230626-testsuite-maven-repository.zip
      export EAP_MAVEN_REPO_ZIP=jboss-eap-8.0.0.GA-redhat-20230626-maven-repository.zip
      export EAP_CORE_SRC_ZIP=jboss-eap-8.0.0.GA-redhat-20230626-core-src.zip
      export EAP_ZIP=jboss-eap-8.0.0.GA-redhat-20230626.zip
      
      mkdir -p /tmp/as-testsuite/local-maven-repository
      unzip -q $EAP_TS_MAVEN_REPO_ZIP
      unzip -q $EAP_MAVEN_REPO_ZIP
      
      rsync -a -v /tmp/as-testsuite/jboss-eap-8.0.0.GA-maven-repository/maven-repository/ /tmp/as-testsuite/local-maven-repository/
      rsync -a -v /tmp/as-testsuite/eap-local-maven-repository/ /tmp/as-testsuite/local-maven-repository/
      
      unzip -q $EAP_ZIP
      
      unzip -q $EAP_CORE_SRC_ZIP
      cd /tmp/as-testsuite/jboss-eap-8.0-core-src
      mvn install -B -DreuseForks=false -Dmaven.repo.local=/tmp/as-testsuite/local-maven-repository -fae -Dmaven.test.failure.ignore=true -llr -DallTests -Dsecurity.manager -Dtest=InterfaceManagementUnitTestCase -DfailIfNoTests=false > test.log 2>&1
      
      Show
      Replace 20230626 with whatever version more recent than 2023-06-15 and be sure to run on RHEL9 (we used openjdk 11): rm -rdf /tmp/as-testsuite mkdir /tmp/as-testsuite cd /tmp/as-testsuite export EAP_TS_MAVEN_REPO_ZIP=jboss-eap-8.0.0.GA-redhat-20230626-testsuite-maven-repository.zip export EAP_MAVEN_REPO_ZIP=jboss-eap-8.0.0.GA-redhat-20230626-maven-repository.zip export EAP_CORE_SRC_ZIP=jboss-eap-8.0.0.GA-redhat-20230626-core-src.zip export EAP_ZIP=jboss-eap-8.0.0.GA-redhat-20230626.zip mkdir -p /tmp/as-testsuite/local-maven-repository unzip -q $EAP_TS_MAVEN_REPO_ZIP unzip -q $EAP_MAVEN_REPO_ZIP rsync -a -v /tmp/as-testsuite/jboss-eap-8.0.0.GA-maven-repository/maven-repository/ /tmp/as-testsuite/local-maven-repository/ rsync -a -v /tmp/as-testsuite/eap-local-maven-repository/ /tmp/as-testsuite/local-maven-repository/ unzip -q $EAP_ZIP unzip -q $EAP_CORE_SRC_ZIP cd /tmp/as-testsuite/jboss-eap-8.0-core-src mvn install -B -DreuseForks=false -Dmaven.repo.local=/tmp/as-testsuite/local-maven-repository -fae -Dmaven.test.failure.ignore=true -llr -DallTests -Dsecurity.manager -Dtest=InterfaceManagementUnitTestCase -DfailIfNoTests=false > test.log 2>&1

      Starting with EAP8 builds produced after 2023-06-15, we have the following error on RHEL9 in test InterfaceManagementUnitTestCase:

      java.lang.AssertionError: 
      {
          "outcome" => "failed",
          "failure-description" => "WFLYCTL0379: System boot is in process; execution of remote management operations is not currently available"
      }
      	at org.junit.Assert.fail(Assert.java:89)
      	at org.junit.Assert.assertTrue(Assert.java:42)
      	at org.jboss.as.server.test.InterfaceManagementUnitTestCase.executeForServiceFailure(InterfaceManagementUnitTestCase.java:466)
      	at org.jboss.as.server.test.InterfaceManagementUnitTestCase.testComplexInterface(InterfaceManagementUnitTestCase.java:248)
      

      Note that a simple thread.sleep before the failing statement, is enough to make the issue go away.

              yborgess1@redhat.com Yeray Borges Santana
              tborgato@redhat.com Tommaso Borgato
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: