Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-1663

Fix Kie Server location for OpenShift deployment created by APB image

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 7.2.0.GA
    • None
    • Cloud
    • None
    • OpenShift 3.11, RHPAM APB Image

    • 2018 Week 45-47, 2018 Week 48-50, 2019 Week 02-04, 2018 Week 51-01, 2019 Week 05-07

      All OpenShift deployments created by APB plans have set HTTPS routes.
      Kie Server location is set to HTTP route. When is Kie Server connected to the controller, then it gaves to controller location. Controller is not able to work with the Kie Server, because from the Kie Server are coming unexpected HTTP response code (e.g. 302).
      In Controller (Business Central) log is following exception:

      12:33:21,106 WARN  [org.kie.server.controller.impl.KieServerInstanceManager] (Thread-191) Unable to get list of containers from remote server at url http://rhpam-authoring-kieserver-jschwan-test.project.openshiftdomain:80/services/rest/server  due to Unexpected HTTP response code when requesting URI 'http://rhpam-authoring-kieserver-jschwan-test.project.openshiftdomain:80/services/rest/server'!  Error code: 302, message: 
      12:33:21,106 ERROR [stderr] (Thread-191) Exception in thread "Thread-191" org.kie.server.api.exception.KieServicesHttpException: Unexpected HTTP response code when requesting URI 'http://rhpam-authoring-kieserver-jschwan-test.project.openshiftdomain:80/services/rest/server'!  Error code: 302, message: 
      12:33:21,106 ERROR [stderr] (Thread-191) 	at org.kie.server.client.impl.AbstractKieServicesClientImpl.createExceptionForUnexpectedResponseCode(AbstractKieServicesClientImpl.java:617)
      12:33:21,106 ERROR [stderr] (Thread-191) 	at org.kie.server.client.impl.AbstractKieServicesClientImpl.makeHttpGetRequestAndCreateServiceResponse(AbstractKieServicesClientImpl.java:191)
      12:33:21,107 ERROR [stderr] (Thread-191) 	at org.kie.server.client.impl.KieServicesClientImpl.getServerInfo(KieServicesClientImpl.java:157)
      12:33:21,107 ERROR [stderr] (Thread-191) 	at org.kie.server.client.impl.KieServicesClientImpl.getCapabilitiesFromServer(KieServicesClientImpl.java:130)
      12:33:21,107 ERROR [stderr] (Thread-191) 	at org.kie.server.client.impl.KieServicesClientImpl.init(KieServicesClientImpl.java:85)
      12:33:21,107 ERROR [stderr] (Thread-191) 	at org.kie.server.client.impl.KieServicesClientImpl.<init>(KieServicesClientImpl.java:72)
      12:33:21,107 ERROR [stderr] (Thread-191) 	at org.kie.server.client.KieServicesFactory.newKieServicesClient(KieServicesFactory.java:101)
      12:33:21,107 ERROR [stderr] (Thread-191) 	at org.kie.server.controller.impl.client.RestKieServicesClientProvider.get(RestKieServicesClientProvider.java:45)
      12:33:21,107 ERROR [stderr] (Thread-191) 	at org.kie.server.controller.impl.KieServerInstanceManager.getClient(KieServerInstanceManager.java:471)
      12:33:21,107 ERROR [stderr] (Thread-191) 	at org.kie.server.controller.impl.KieServerInstanceManager.getContainers(KieServerInstanceManager.java:387)
      12:33:21,107 ERROR [stderr] (Thread-191) 	at org.kie.workbench.common.screens.server.management.backend.runtime.AsyncKieServerInstanceManager.access$701(AsyncKieServerInstanceManager.java:53)
      12:33:21,107 ERROR [stderr] (Thread-191) 	at org.kie.workbench.common.screens.server.management.backend.runtime.AsyncKieServerInstanceManager$7.run(AsyncKieServerInstanceManager.java:206)
      12:33:21,107 ERROR [stderr] (Thread-191) 	at org.uberfire.backend.server.cdi.workspace.WorkspaceExecutorService.lambda$generateRunnable$0(WorkspaceExecutorService.java:134)
      12:33:21,107 ERROR [stderr] (Thread-191) 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      12:33:21,107 ERROR [stderr] (Thread-191) 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      12:33:21,107 ERROR [stderr] (Thread-191) 	at java.lang.Thread.run(Thread.java:748)
      

      In Kie Server log is set location to:

      org.kie.server.location = http://rhpam-authoring-kieserver-jschwan-test.project.openshiftdomain:80/services/rest/server 
      

      Kie Server location is set by a property org.kie.server.location . And for the Kie Server image is this property set in jboss-kie-modules here.

      Actual result:
      HTTP route is set to Kie Server location, but for Kie Server is provided only HTTPS route
      Expected result:
      HTTPS route is set to Kie Server location and for Kie Server is provided only HTTPS route

              rhn-support-rromerom Ruben Romero Montes
              jakubschwan Jakub Schwan
              Jakub Schwan Jakub Schwan
              Jakub Schwan Jakub Schwan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: