Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-3541

Starter app generated and deployed via odo and devfile fail to build on OpenShift with OOM

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.2.9.SP1
    • 3.2.6-Ghost.GA
    • team/eng
    • None
    • Hide
      # Download odo and add it to the path
      wget -q https://developers.redhat.com/content-gateway/file/pub/openshift-v4/clients/odo/v2.5.1/odo-linux-amd64.tar.gz
      tar x -f odo-linux-amd64.tar.gz
      PATH=${WORKSPACE}:${PATH}
      
      # Log in to the specified cluster and create a new project using odo
      odo login ${OCP_URL} --username=${OCP_USERNAME} --password=${OCP_PASSWORD} --insecure-skip-tls-verify
      OCP_PROJECT="odo-test"
      odo project create ${OCP_PROJECT}
      
      # Create a starter application and deploy it to OpenShift using odo
      odo create java-quarkus --starter=redhat-product
      odo push
      

      Then, check the deployment in test project

      Show
      # Download odo and add it to the path wget -q https://developers.redhat.com/content-gateway/file/pub/openshift-v4/clients/odo/v2.5.1/odo-linux-amd64.tar.gz tar x -f odo-linux-amd64.tar.gz PATH=${WORKSPACE}:${PATH} # Log in to the specified cluster and create a new project using odo odo login ${OCP_URL} --username=${OCP_USERNAME} --password=${OCP_PASSWORD} --insecure-skip-tls-verify OCP_PROJECT= "odo-test" odo project create ${OCP_PROJECT} # Create a starter application and deploy it to OpenShift using odo odo create java-quarkus --starter=redhat-product odo push Then, check the deployment in test project
    • +
    • ---

      Deployment started with odo from Quarkus devfile v2 ends in OOM during build:

      [INFO] Invoking resources:2.6:resources (default-resources) @ code-with-quarkus
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 2 resources
      [INFO] Invoking quarkus:3.2.6.Final-redhat-00002:generate-code (default) @ code-with-quarkus
      [INFO] Invoking compiler:3.11.0:compile (default-compile) @ code-with-quarkus
      [INFO] Changes detected - recompiling the module! :dependency
      [INFO] Compiling 2 source files with javac [debug release 17] to target/classes
      [INFO] Invoking resources:2.6:testResources (default-testResources) @ code-with-quarkus
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] skip non existing resourceDirectory /projects/src/test/resources
      [INFO] Invoking quarkus:3.2.6.Final-redhat-00002:generate-code-tests (default) @ code-with-quarkus
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 18.014 s
      [INFO] Finished at: 2023-10-20T21:37:01Z
      [INFO] ------------------------------------------------------------------------
      [ERROR] Java heap space -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError
      time="2023-10-20T21:37:01Z" level=error msg="program stopped with error:exit status 1" program=devrun
      time="2023-10-20T21:37:01Z" level=info msg="Don't start the stopped program because its retry times 0 is greater than start retries 0" program=devrun
      

      Note: this is old version of odo. But we haven't had support request for later - for this purpose I created QUARKUS-3542
      Full log attached in https://issues.redhat.com/secure/attachment/13060970/java-quarkus-rhbq-postga-eizb-app-5598c9959-rcj7c-tools.log

      I think it's related to the devfile specifying 512 MB container:

      components: 
      - container: 
          args: 
          - tail
          - -f
          - /dev/null
          endpoints: 
          - name: http-quarkus
            targetPort: 8080
          - exposure: none
            name: debug
            targetPort: 5858
          env: 
          - name: DEBUG_PORT
            value: "5858"
          image: registry.access.redhat.com/ubi8/openjdk-17:1.16-1
          memoryLimit: 512Mi
          mountSources: true
          volumeMounts: 
          - name: m2
            path: /home/user/.m2
        name: tools
      

            manderse@redhat.com Max Andersen
            mjurc@redhat.com Michal Jurc
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: