Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-17947

13.5.2 cross upgrade tests failure in AM 6.5.x

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.5.4
    • 6.5.4
    • upgrade
    • Rank:
      1|i04vxy:
    • AM Sustaining Sprint 88, AM Sustaining Sprint 89
    • 3

    Description

      Bug description

      Cross upgrade tests are failing in 6.5.x per commit pipeline for some time already. After investigation in AMSUST-1212 we can see, there is error during upgrade process "Could not create chain Amster service"

      How to reproduce the issue

      run cross upgrade tests in branch sustaining/6.5.x by running command:

      temper upgrade-tests --hostname am.localtest.me --deploy 13.5.2 --upgrade-to 6.5.4-SNAPSHOT --debug
      

      while in IDE we setup remote JVM debugger.

      Wait until temper says it's waiting for debugger to connect and run debugger in IDE with breakpoint on line 447 of CargoContainer.java temper file (this could be probably done more easily with different breakpoint)

      Go forward until preupgrade tests are run and then tests start to fail because of not being able to retrieve admin token. This is because upgrade didn't work as expected. Debugger stops the process at this point, so we can goto am.localtest.me:8080/openam to see that AM was not upgraded. When we try to do upgrade manually at this point by clicking in the AM page, there is error: "Could not create chain Amster service" - see attached error.png

      Expected behaviour
      Upgrade test is green
      
      Current behaviour
      Upgrade test fails
      

      Additional notes

      There is also this NPE in https://qa.forgerock.com/am/5c2364de83c727830c0846a7e3eb58ce5a7235cb/42167e56-02e6-43d0-8340-074a54d65ae9/cross-upgrade-tests-from-13.5.2/output.log

      [Click] [error] handleException: java.lang.NullPointerException
      	at org.forgerock.openam.upgrade.steps.UpgradePushModulesStep.perform(UpgradePushModulesStep.java:106)
      	at org.forgerock.openam.upgrade.UpgradeServices.upgrade(UpgradeServices.java:152)
      	at com.sun.identity.config.upgrade.Upgrade.doUpgrade(Upgrade.java:70)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.apache.click.util.ClickUtils.invokeMethod(ClickUtils.java:3317)
      	at org.apache.click.util.ClickUtils.invokeListener(ClickUtils.java:2088)
      	at org.apache.click.control.AbstractControl$1.onAction(AbstractControl.java:228)
      	at org.apache.click.ActionEventDispatcher.fireActionEvent(ActionEventDispatcher.java:259)
      	at org.apache.click.ActionEventDispatcher.fireActionEvents(ActionEventDispatcher.java:236)
      	at org.apache.click.ActionEventDispatcher.fireActionEvents(ActionEventDispatcher.java:180)
      	at org.apache.click.ClickServlet.performOnProcess(ClickServlet.java:746)
      	at org.apache.click.ClickServlet.processPageEvents(ClickServlet.java:607)
      	at org.apache.click.ClickServlet.processPage(ClickServlet.java:561)
      	at org.apache.click.ClickServlet.handleRequest(ClickServlet.java:383)
      	at org.apache.click.ClickServlet.doGet(ClickServlet.java:276)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.forgerock.openam.headers.DisableSameSiteCookiesFilter.doFilter(DisableSameSiteCookiesFilter.java:105)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.forgerock.openam.validation.ResponseValidationFilter.doFilter(ResponseValidationFilter.java:59)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.forgerock.openam.headers.SetHeadersFilter.doFilter(SetHeadersFilter.java:80)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.forgerock.openam.headers.SetHeadersFilter.doFilter(SetHeadersFilter.java:80)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:127)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.forgerock.openam.validation.RequestEntitySizeVerificationFilter.doFilter(RequestEntitySizeVerificationFilter.java:64)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.forgerock.openam.audit.context.AuditContextFilter.doFilter(AuditContextFilter.java:46)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
      	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:1025)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
      	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1137)
      	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
      	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      	at java.lang.Thread.run(Thread.java:748)

      Attachments

        Activity

          People

            adam.heath Adam Heath
            lubomir.mlich Ľubomír Mlích
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: