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

OptaWeb project backend docker configuration causes permission error during deployment on OpenShift

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.13.5.GA
    • 7.13.4.GA
    • OptaPlanner
    • None
    • False
    • None
    • False
    • CR1
    • +
    • Hide

      Steps to reproduce:
      1. Download vrp sources and unpack it:

      http://download.eng.bos.redhat.com/rcm-guest/staging//kogito/kogito-1.13.4.SP1/rhpam-7.13.4-kogito-maven-repository.zip

      http://download.eng.bos.redhat.com/rcm-guest/staging//kogito/kogito-1.13.4.SP1/rhpam-7.13.4-kogito-and-optaplanner-quickstarts.zip

      2. Build optaweb from the sources with
      mvn clean install -Dmaven.repo.local=<PATH_TO_UNPACKED_REPO>rhpam-7.13.4-kogito-maven-repository

      3. Login into RH OpenShift
      https://console-openshift-console.apps.production.rhba.baqe.org/

      4. Create a new project

      oc new-project vrp-test-project
      

      5. Run

      ./<PATH_TO_OPTAWEB>/runOnOpenShift.sh test.osm.pbf DE https://github.com/kiegroup/optaweb-vehicle-routing/raw/main/optaweb-vehicle-routing-standalone/data/openstreetmap/planet_12.032%2C53.0171_12.1024%2C53.0491.osm.pbf
      

      6. Check project at https://console-openshift-console.apps.production.rhba.baqe.org/k8s/cluster/projects/

      Expected: Backend pod to be in status Running
      Actual: Backend pod is in status CreateContainerError
      with [1]

      Show
      Steps to reproduce: 1. Download vrp sources and unpack it: http://download.eng.bos.redhat.com/rcm-guest/staging//kogito/kogito-1.13.4.SP1/rhpam-7.13.4-kogito-maven-repository.zip http://download.eng.bos.redhat.com/rcm-guest/staging//kogito/kogito-1.13.4.SP1/rhpam-7.13.4-kogito-and-optaplanner-quickstarts.zip 2. Build optaweb from the sources with mvn clean install -Dmaven.repo.local=<PATH_TO_UNPACKED_REPO>rhpam-7.13.4-kogito-maven-repository 3. Login into RH OpenShift https://console-openshift-console.apps.production.rhba.baqe.org/ 4. Create a new project oc new -project vrp-test-project 5. Run ./<PATH_TO_OPTAWEB>/runOnOpenShift.sh test.osm.pbf DE https: //github.com/kiegroup/optaweb-vehicle-routing/raw/main/optaweb-vehicle-routing-standalone/data/openstreetmap/planet_12.032%2C53.0171_12.1024%2C53.0491.osm.pbf 6. Check project at https://console-openshift-console.apps.production.rhba.baqe.org/k8s/cluster/projects/ Expected: Backend pod to be in status Running Actual: Backend pod is in status CreateContainerError with [1]
    • ---
    • ---

    Description

      runOnOpenShift.sh fails to deploy optaweb-vehicle-routing application on OpenShift

      [1]CreateContainerError

      Error: container create failed: time="2023-10-13T13:11:07Z" level=error msg="runc create failed: unable to start container process: eaccess /deployments/run-java.sh: permission denied"
      

      Solution: Update backend configuration to use registry.access.redhat.com/ubi8/openjdk-11:1.14 with all security parameters preset

      Further investigation: After this solution^:

      If user wants to add demo location, it causes "403 CORS Rejected - Invalid origin" error.

      Steps to reproduce:
      1. Go to
      http://frontend-vehicle-routing-0b11b31e.apps.production.rhba.baqe.org/
      2. In Add location input insert "Garz"
      3. From drop down menu choose the first option

      Expected :
      Button demo-clear-button appear

      Actual:
      http://frontend-vehicle-routing-b11b31e.apps.production.rhba.baqe.org/api/location
      Request Method:
      POST
      Status Code:
      403 CORS Rejected - Invalid origin

      Attachments

        Activity

          People

            jlocker Jiří Locker
            pbizzarr@redhat.com Paolo Bizzarri
            Paolo Bizzarri Paolo Bizzarri
            Paolo Bizzarri Paolo Bizzarri
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: