Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-496

Custom labels on Kogito Images are exceeding the default limit for s2i builds

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 0.6.0
    • 0.5.0
    • Image
    • None
    • OpenShift 3.11 with apps with more than 3 proto files approximately

    • Medium
    • 2019 Week 44-46 (from Okt 28)

      When building a new Kogito Service with the CLI/Operator, one might face the following error:

      [INFO] [io.quarkus.resteasy] Resteasy running without servlet container.
      [INFO] [io.quarkus.resteasy] - Add quarkus-undertow to run Resteasy within a servlet container
      [INFO] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Building thin jar: /tmp/src/target/kogito-travel-agency-1.0-SNAPSHOT-runner.jar
      [INFO] [io.quarkus.deployment.QuarkusAugmentor] Quarkus augmentation completed in 24600ms
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  01:25 min
      [INFO] Finished at: 2019-10-28T14:11:43Z
      [INFO] ------------------------------------------------------------------------
      'target/kogito-travel-agency-1.0-SNAPSHOT-runner.jar' -> '/home/kogito/bin/kogito-travel-agency-1.0-SNAPSHOT-runner.jar'
      ---> Copy image metadata file...
      '/tmp/src/target/image_metadata.json' -> '/tmp/.s2i/image_metadata.json'
      '/tmp/src/target/image_metadata.json' -> '/home/kogito/bin/image_metadata.json'
      error: Execution of post execute step failed
      error: build error: label validation failed for "172.30.1.1:5000/openshift/kogito-quarkus-ubi8-s2i@sha256:2d18c994f32da15cd6560be81719da7e294372bc93796ad2a9067a6bae9a5f40" image: label size '14509' exceeds the maximum limit '10240'
      

      This is likely to happen on custom image labels that have more than 3 proto files with 5 attributes.

      Until we change the way we deploy the proto files, a "known issue" should be listed in the docs with a workaround to increase this limit, if possible:
      https://docs.openshift.com/container-platform/3.11/admin_guide/limits.html#image-limits

              rhn-support-zanini Ricardo Zanini
              rhn-support-zanini Ricardo Zanini
              Karel Suta Karel Suta
              Karel Suta Karel Suta
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: